Tegra186 has one XUSB device mode controller, which can be operated
HS and SS modes. Add DT support for XUSB device mode controller.

Signed-off-by: Nagarjuna Kristam <[email protected]>
---
 arch/arm64/boot/dts/nvidia/tegra186.dtsi | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi 
b/arch/arm64/boot/dts/nvidia/tegra186.dtsi
index abdc81f..005112a 100644
--- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi
@@ -554,6 +554,25 @@
                #size-cells = <0>;
        };
 
+       usb@3550000 {
+               compatible = "nvidia,tegra186-xudc";
+               reg = <0x0 0x03550000 0x0 0x8000>,
+                     <0x0 0x03558000 0x0 0x1000>;
+               reg-names = "base", "fpci";
+               interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&bpmp TEGRA186_CLK_XUSB_CORE_DEV>,
+                        <&bpmp TEGRA186_CLK_XUSB_SS>,
+                        <&bpmp TEGRA186_CLK_XUSB_CORE_SS>,
+                        <&bpmp TEGRA186_CLK_XUSB_FS>;
+               clock-names = "dev", "ss", "ss_src", "fs_src";
+               iommus = <&smmu TEGRA186_SID_XUSB_DEV>;
+               power-domains = <&bpmp TEGRA186_POWER_DOMAIN_XUSBB>,
+                               <&bpmp TEGRA186_POWER_DOMAIN_XUSBA>;
+               power-domain-names = "dev", "ss";
+               nvidia,xusb-padctl = <&padctl>;
+               status = "disabled";
+       };
+
        fuse@3820000 {
                compatible = "nvidia,tegra186-efuse";
                reg = <0x0 0x03820000 0x0 0x10000>;
-- 
2.7.4

Reply via email to