Skip to content

Commit

Permalink
HSD#15014927993: dts: agilex5: Refactor smmu enablement for agilex5
Browse files Browse the repository at this point in the history
Add iommu property for peripherals connected to TBU.
Add smmu enablement in agilex5 dts.
  • Loading branch information
hoyin0722 committed Mar 14, 2024
1 parent 5c480af commit 4c4221a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 9 additions & 2 deletions arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi
Expand Up @@ -220,6 +220,7 @@
snps,rx-vlan-offload;
altr,sysmgr-syscon = <&sysmgr 0x44 0>;
altr,smtg-hub;
iommus = <&smmu 1>;

status = "disabled";

Expand Down Expand Up @@ -366,6 +367,7 @@
snps,rx-vlan-offload;
altr,sysmgr-syscon = <&sysmgr 0x48 0>;
altr,smtg-hub;
iommus = <&smmu 2>;

status = "disabled";

Expand Down Expand Up @@ -512,6 +514,7 @@
snps,rx-vlan-offload;
altr,sysmgr-syscon = <&sysmgr 0x4c 0>;
altr,smtg-hub;
iommus = <&smmu 3>;

status = "disabled";

Expand Down Expand Up @@ -723,7 +726,7 @@
reset-names = "reset";
clocks = <&clkmgr AGILEX5_L4_MP_CLK>, <&clkmgr AGILEX5_SDMCLK>;
clock-names = "biu", "ciu";
/*iommus = <&smmu 5>;*/
iommus = <&smmu 5>;
status = "disabled";
};

Expand All @@ -737,6 +740,7 @@
interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkmgr AGILEX5_NAND_NF_CLK>;
cdns,board-delay-ps = <4830>;
iommus = <&smmu 4>;
status = "disabled";
};

Expand Down Expand Up @@ -764,6 +768,7 @@
snps,priority = <0 1 2 3>;
snps,axi-max-burst-len = <8>;
snps,dma-40-bit-mask;
iommus = <&smmu 8>;
status = "okay";
};

Expand All @@ -783,6 +788,7 @@
snps,priority = <0 1 2 3>;
snps,axi-max-burst-len = <8>;
snps,dma-40-bit-mask;
iommus = <&smmu 9>;
status = "okay";
};

Expand Down Expand Up @@ -920,7 +926,7 @@
reset-names = "dwc2", "dwc2-ecc";
clocks = <&clkmgr AGILEX5_USB2OTG_HCLK>;
clock-names = "otg";
otg-rev = <0x0200>;
iommus = <&smmu 6>;
status = "disabled";
};

Expand All @@ -934,6 +940,7 @@
<&clkmgr AGILEX5_USB31_BUS_CLK_EARLY>;
resets = <&rst USB1_RESET>, <&rst USB1_OCP_RESET>;
reset-names = "dwc3", "dwc3-ecc";
iommus = <&smmu 7>;
status = "disabled";

usb@11000000{
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/intel/socfpga_agilex5_socdk.dts
Expand Up @@ -146,6 +146,10 @@
disable-over-current;
};

&smmu {
status = "okay";
};

&watchdog0 {
status = "okay";
};
Expand Down

0 comments on commit 4c4221a

Please sign in to comment.