From: qianfanguijin@163.com To: linux-sunxi@lists.linux.dev Cc: Andre Przywara <andre.przywara@arm.com>, Evgeny Boger <boger@wirenboard.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, qianfan Zhao <qianfanguijin@163.com> Subject: [PATCH v4 1/2] ARM: dts: sun8i-r40: Add USB0_OTG/HOST support Date: Wed, 18 May 2022 18:17:05 +0800 [thread overview] Message-ID: <20220518101706.26869-2-qianfanguijin@163.com> (raw) In-Reply-To: <20220518101706.26869-1-qianfanguijin@163.com> From: qianfan Zhao <qianfanguijin@163.com> The USB0 port of R40 is divided into two controllers, one is H3 compatibled MUSB device, another is OHCI/EHCI. Signed-off-by: qianfan Zhao <qianfanguijin@163.com> --- arch/arm/boot/dts/sun8i-r40.dtsi | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index 212e19183484..ae48474fdefa 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -401,6 +401,21 @@ mmc3: mmc@1c12000 { #size-cells = <0>; }; + usb_otg: usb@1c13000 { + compatible = "allwinner,sun8i-r40-musb", + "allwinner,sun8i-h3-musb"; + reg = <0x01c13000 0x0400>; + clocks = <&ccu CLK_BUS_OTG>; + resets = <&ccu RST_BUS_OTG>; + interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "mc"; + phys = <&usbphy 0>; + phy-names = "usb"; + extcon = <&usbphy 0>; + dr_mode = "otg"; + status = "disabled"; + }; + usbphy: phy@1c13400 { compatible = "allwinner,sun8i-r40-usb-phy"; reg = <0x01c13400 0x14>, @@ -427,6 +442,25 @@ usbphy: phy@1c13400 { #phy-cells = <1>; }; + ehci0: usb@1c14000 { + compatible = "allwinner,sun8i-r40-ehci", "generic-ehci"; + reg = <0x01c14000 0x100>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>; + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + + ohci0: usb@1c14400 { + compatible = "allwinner,sun8i-r40-ohci", "generic-ohci"; + reg = <0x01c14400 0x100>; + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>, + <&ccu CLK_USB_OHCI0>; + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + crypto: crypto@1c15000 { compatible = "allwinner,sun8i-r40-crypto"; reg = <0x01c15000 0x1000>; -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: qianfanguijin@163.com To: linux-sunxi@lists.linux.dev Cc: Andre Przywara <andre.przywara@arm.com>, Evgeny Boger <boger@wirenboard.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, qianfan Zhao <qianfanguijin@163.com> Subject: [PATCH v4 1/2] ARM: dts: sun8i-r40: Add USB0_OTG/HOST support Date: Wed, 18 May 2022 18:17:05 +0800 [thread overview] Message-ID: <20220518101706.26869-2-qianfanguijin@163.com> (raw) In-Reply-To: <20220518101706.26869-1-qianfanguijin@163.com> From: qianfan Zhao <qianfanguijin@163.com> The USB0 port of R40 is divided into two controllers, one is H3 compatibled MUSB device, another is OHCI/EHCI. Signed-off-by: qianfan Zhao <qianfanguijin@163.com> --- arch/arm/boot/dts/sun8i-r40.dtsi | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-r40.dtsi b/arch/arm/boot/dts/sun8i-r40.dtsi index 212e19183484..ae48474fdefa 100644 --- a/arch/arm/boot/dts/sun8i-r40.dtsi +++ b/arch/arm/boot/dts/sun8i-r40.dtsi @@ -401,6 +401,21 @@ mmc3: mmc@1c12000 { #size-cells = <0>; }; + usb_otg: usb@1c13000 { + compatible = "allwinner,sun8i-r40-musb", + "allwinner,sun8i-h3-musb"; + reg = <0x01c13000 0x0400>; + clocks = <&ccu CLK_BUS_OTG>; + resets = <&ccu RST_BUS_OTG>; + interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "mc"; + phys = <&usbphy 0>; + phy-names = "usb"; + extcon = <&usbphy 0>; + dr_mode = "otg"; + status = "disabled"; + }; + usbphy: phy@1c13400 { compatible = "allwinner,sun8i-r40-usb-phy"; reg = <0x01c13400 0x14>, @@ -427,6 +442,25 @@ usbphy: phy@1c13400 { #phy-cells = <1>; }; + ehci0: usb@1c14000 { + compatible = "allwinner,sun8i-r40-ehci", "generic-ehci"; + reg = <0x01c14000 0x100>; + interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>; + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + + ohci0: usb@1c14400 { + compatible = "allwinner,sun8i-r40-ohci", "generic-ohci"; + reg = <0x01c14400 0x100>; + interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>, + <&ccu CLK_USB_OHCI0>; + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + crypto: crypto@1c15000 { compatible = "allwinner,sun8i-r40-crypto"; reg = <0x01c15000 0x1000>; -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-05-18 10:17 UTC|newest] Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-05-18 10:17 [PATCH v4 0/2] ARM: sun8i-r40: Enable usb otg support qianfanguijin 2022-05-18 10:17 ` qianfanguijin 2022-05-18 10:17 ` qianfanguijin [this message] 2022-05-18 10:17 ` [PATCH v4 1/2] ARM: dts: sun8i-r40: Add USB0_OTG/HOST support qianfanguijin 2022-07-05 1:55 ` Samuel Holland 2022-07-05 1:55 ` Samuel Holland 2022-05-18 10:17 ` [PATCH v4 2/2] ARM: dts: bananapi-m2-ultra: Enable USB0_OTG and HOST support qianfanguijin 2022-05-18 10:17 ` qianfanguijin 2022-07-05 2:38 ` Samuel Holland 2022-07-05 2:38 ` Samuel Holland 2022-05-19 10:04 ` [PATCH v4 0/2] ARM: sun8i-r40: Enable usb otg support qianfan 2022-05-19 10:04 ` qianfan 2022-05-19 20:54 ` Evgeny Boger 2022-05-19 20:54 ` Evgeny Boger 2022-05-21 4:26 ` qianfan 2022-05-21 4:26 ` qianfan 2022-05-21 11:10 ` Evgeny Boger 2022-05-21 11:10 ` Evgeny Boger 2022-07-05 4:05 ` Samuel Holland 2022-07-05 4:05 ` Samuel Holland 2022-05-23 13:10 ` Icenowy Zheng 2022-05-23 13:10 ` Icenowy Zheng 2022-05-23 13:11 ` Icenowy Zheng 2022-05-23 13:11 ` Icenowy Zheng 2022-05-24 9:15 ` qianfan 2022-05-24 9:15 ` qianfan 2022-07-05 4:15 ` Samuel Holland 2022-07-05 4:15 ` Samuel Holland
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220518101706.26869-2-qianfanguijin@163.com \ --to=qianfanguijin@163.com \ --cc=andre.przywara@arm.com \ --cc=boger@wirenboard.com \ --cc=devicetree@vger.kernel.org \ --cc=jernej.skrabec@gmail.com \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-sunxi@lists.linux.dev \ --cc=robh+dt@kernel.org \ --cc=samuel@sholland.org \ --cc=wens@csie.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.