From a42a681f5de21dcf406ee6b13e7a47e818f82b44 Mon Sep 17 00:00:00 2001 From: Prashanth K Date: Mon, 29 Jul 2024 11:51:02 +0530 Subject: [PATCH] ARM: dts: msm: Add USB DT nodes for sdxkova Add DWC3 USB controller device-tree nodes for sdxkova. Change-Id: I9a44ad5d49dfb8bdadca04696c8580e283b5f2ec Signed-off-by: Prashanth K --- qcom/sdxkova-usb.dtsi | 68 +++++++++++++++++++++++++++++++++++++++++++ qcom/sdxkova.dtsi | 2 ++ 2 files changed, 70 insertions(+) create mode 100644 qcom/sdxkova-usb.dtsi diff --git a/qcom/sdxkova-usb.dtsi b/qcom/sdxkova-usb.dtsi new file mode 100644 index 00000000..5bf509ce --- /dev/null +++ b/qcom/sdxkova-usb.dtsi @@ -0,0 +1,68 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved. + */ + +#include + +&soc { + usb: ssusb@a600000 { + compatible = "qcom,dwc-usb3-msm"; + reg = <0x0 0xa600000 0x0 0x100000>; + reg-names = "core_base"; + + #address-cells = <2>; + #size-cells = <2>; + ranges; + + interrupts-extended = <&intc GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 10 IRQ_TYPE_EDGE_RISING>, + <&pdc 9 IRQ_TYPE_EDGE_RISING>, + <&pdc 17 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "pwr_event_irq", "dp_hs_phy_irq", + "dm_hs_phy_irq", "ss_phy_irq"; + qcom,use-pdc-interrupts; + + USB3_GDSC-supply = <&gcc_usb30_gdsc>; + clocks = <&gcc GCC_USB30_MASTER_CLK>, + <&gcc GCC_USB30_SLV_AHB_CLK>, + <&gcc GCC_USB30_MSTR_AXI_CLK>, + <&gcc GCC_USB30_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_SLEEP_CLK>; + clock-names = "core_clk", "iface_clk", + "bus_aggr_clk", "utmi_clk", + "sleep_clk"; + + resets = <&gcc GCC_USB30_BCR>; + reset-names = "core_reset"; + + qcom,sleep-clk-bcr; + qcom,core-clk-rate = <200000000>; + qcom,core-clk-rate-hs = <66666667>; + qcom,core-clk-rate-disconnected = <133333333>; + + dwc3: dwc3@a600000 { + compatible = "snps,dwc3"; + reg = <0x0 0xa600000 0x0 0xd93c>; + interrupts = ; + usb-phy = <&usb_nop_phy>, <&usb_nop_phy>; + snps,has-lpm-erratum; + snps,is-utmi-l1-suspend; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + snps,dis_u2_susphy_quirk; + snps,hird-threshold = /bits/ 8 <0x10>; + tx-fifo-resize; + /* set host mode interrupt moderation to 1 us */ + imod-interval-ns = <1000>; + maximum-speed = "super-speed-plus"; + usb-role-switch; + dr_mode = "peripheral"; + }; + + }; + + usb_nop_phy: usb_nop_phy { + compatible = "usb-nop-xceiv"; + }; +}; diff --git a/qcom/sdxkova.dtsi b/qcom/sdxkova.dtsi index 7b0b9aac..0e1add5a 100644 --- a/qcom/sdxkova.dtsi +++ b/qcom/sdxkova.dtsi @@ -399,3 +399,5 @@ #clock-cells = <1>; #reset-cells = <1>; }; + +#include "sdxkova-usb.dtsi"