245 lines
6.7 KiB
Diff
245 lines
6.7 KiB
Diff
From 3ce5a1296027810586c4e53757fd4ec14853265a Mon Sep 17 00:00:00 2001
|
|
From: The-going <48602507+The-going@users.noreply.github.com>
|
|
Date: Sun, 13 Nov 2022 23:15:38 +0300
|
|
Subject: [PATCH 075/158] arm64: dts: allwiner: sun50i-h616.dtsi: add
|
|
usb,ehci,ohci
|
|
|
|
---
|
|
.../arm64/boot/dts/allwinner/sun50i-h616.dtsi | 183 +++++++++++++++++-
|
|
1 file changed, 181 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
|
index 622a1f7d1..68b6d29df 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi
|
|
@@ -58,12 +58,12 @@ reserved-memory {
|
|
ranges;
|
|
|
|
/*
|
|
- * 256 KiB reserved for Trusted Firmware-A (BL31).
|
|
+ * 512 KiB reserved for Trusted Firmware-A (BL31).
|
|
* This is added by BL31 itself, but some bootloaders fail
|
|
* to propagate this into the DTB handed to kernels.
|
|
*/
|
|
secmon@40000000 {
|
|
- reg = <0x0 0x40000000 0x0 0x40000>;
|
|
+ reg = <0x0 0x40000000 0x0 0x80000>;
|
|
no-map;
|
|
};
|
|
};
|
|
@@ -466,6 +466,8 @@ spi0: spi@5010000 {
|
|
clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
|
|
clock-names = "ahb", "mod";
|
|
resets = <&ccu RST_BUS_SPI0>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&spi0_pins>;
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
@@ -479,6 +481,8 @@ spi1: spi@5011000 {
|
|
clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
|
|
clock-names = "ahb", "mod";
|
|
resets = <&ccu RST_BUS_SPI1>;
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&spi1_pins>;
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
@@ -504,6 +508,178 @@ mdio0: mdio {
|
|
};
|
|
};
|
|
|
|
+ usbotg: usb@5100000 {
|
|
+ compatible = "allwinner,sun50i-h616-musb",
|
|
+ "allwinner,sun8i-h3-musb";
|
|
+ reg = <0x05100000 0x0400>;
|
|
+ clocks = <&ccu CLK_BUS_OTG>;
|
|
+ resets = <&ccu RST_BUS_OTG>;
|
|
+ interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "mc";
|
|
+ phys = <&usbphy 0>;
|
|
+ phy-names = "usb";
|
|
+ extcon = <&usbphy 0>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ usbphy: phy@5100400 {
|
|
+ compatible = "allwinner,sun50i-h616-usb-phy";
|
|
+ reg = <0x05100400 0x24>,
|
|
+ <0x05101800 0x14>,
|
|
+ <0x05200800 0x14>,
|
|
+ <0x05310800 0x14>,
|
|
+ <0x05311800 0x14>;
|
|
+ reg-names = "phy_ctrl",
|
|
+ "pmu0",
|
|
+ "pmu1",
|
|
+ "pmu2",
|
|
+ "pmu3";
|
|
+ clocks = <&ccu CLK_USB_PHY0>,
|
|
+ <&ccu CLK_USB_PHY1>,
|
|
+ <&ccu CLK_USB_PHY2>,
|
|
+ <&ccu CLK_USB_PHY3>,
|
|
+ <&ccu CLK_BUS_EHCI2>;
|
|
+ clock-names = "usb0_phy",
|
|
+ "usb1_phy",
|
|
+ "usb2_phy",
|
|
+ "usb3_phy",
|
|
+ "pmu2_clk";
|
|
+ resets = <&ccu RST_USB_PHY0>,
|
|
+ <&ccu RST_USB_PHY1>,
|
|
+ <&ccu RST_USB_PHY2>,
|
|
+ <&ccu RST_USB_PHY3>;
|
|
+ reset-names = "usb0_reset",
|
|
+ "usb1_reset",
|
|
+ "usb2_reset",
|
|
+ "usb3_reset";
|
|
+ status = "disabled";
|
|
+ #phy-cells = <1>;
|
|
+ };
|
|
+
|
|
+ ehci0: usb@5101000 {
|
|
+ compatible = "allwinner,sun50i-h616-ehci",
|
|
+ "generic-ehci";
|
|
+ reg = <0x05101000 0x100>;
|
|
+ interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_OHCI0>,
|
|
+ <&ccu CLK_BUS_EHCI0>,
|
|
+ <&ccu CLK_USB_OHCI0>,
|
|
+ <&ccu CLK_USB_PHY2>;
|
|
+ resets = <&ccu RST_BUS_OHCI0>,
|
|
+ <&ccu RST_BUS_EHCI0>,
|
|
+ <&ccu RST_USB_PHY2>;
|
|
+ phys = <&usbphy 0>;
|
|
+ phy-names = "usb";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ ohci0: usb@5101400 {
|
|
+ compatible = "allwinner,sun50i-h616-ohci",
|
|
+ "generic-ohci";
|
|
+ reg = <0x05101400 0x100>;
|
|
+ interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_OHCI0>,
|
|
+ <&ccu CLK_USB_OHCI0>,
|
|
+ <&ccu CLK_USB_PHY2>;
|
|
+ resets = <&ccu RST_BUS_OHCI0>,
|
|
+ <&ccu RST_USB_PHY2>;
|
|
+ phys = <&usbphy 0>;
|
|
+ phy-names = "usb";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ ehci1: usb@5200000 {
|
|
+ compatible = "allwinner,sun50i-h616-ehci",
|
|
+ "generic-ehci";
|
|
+ reg = <0x05200000 0x100>;
|
|
+ interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_OHCI1>,
|
|
+ <&ccu CLK_BUS_EHCI1>,
|
|
+ <&ccu CLK_USB_OHCI1>,
|
|
+ <&ccu CLK_USB_PHY2>;
|
|
+ resets = <&ccu RST_BUS_OHCI1>,
|
|
+ <&ccu RST_BUS_EHCI1>,
|
|
+ <&ccu RST_USB_PHY2>;
|
|
+ phys = <&usbphy 1>;
|
|
+ phy-names = "usb";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ ohci1: usb@5200400 {
|
|
+ compatible = "allwinner,sun50i-h616-ohci",
|
|
+ "generic-ohci";
|
|
+ reg = <0x05200400 0x100>;
|
|
+ interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_OHCI1>,
|
|
+ <&ccu CLK_USB_OHCI1>,
|
|
+ <&ccu CLK_USB_PHY2>;
|
|
+ resets = <&ccu RST_BUS_OHCI1>,
|
|
+ <&ccu RST_USB_PHY2>;
|
|
+ phys = <&usbphy 1>;
|
|
+ phy-names = "usb";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ ehci2: usb@5310000 {
|
|
+ compatible = "allwinner,sun50i-h616-ehci",
|
|
+ "generic-ehci";
|
|
+ reg = <0x05310000 0x100>;
|
|
+ interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_OHCI2>,
|
|
+ <&ccu CLK_BUS_EHCI2>,
|
|
+ <&ccu CLK_USB_OHCI2>;
|
|
+ resets = <&ccu RST_BUS_OHCI2>,
|
|
+ <&ccu RST_BUS_EHCI2>;
|
|
+ phys = <&usbphy 2>;
|
|
+ phy-names = "usb";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ ohci2: usb@5310400 {
|
|
+ compatible = "allwinner,sun50i-h616-ohci",
|
|
+ "generic-ohci";
|
|
+ reg = <0x05310400 0x100>;
|
|
+ interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_OHCI2>,
|
|
+ <&ccu CLK_USB_OHCI2>;
|
|
+ resets = <&ccu RST_BUS_OHCI2>;
|
|
+ phys = <&usbphy 2>;
|
|
+ phy-names = "usb";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ ehci3: usb@5311000 {
|
|
+ compatible = "allwinner,sun50i-h616-ehci",
|
|
+ "generic-ehci";
|
|
+ reg = <0x05311000 0x100>;
|
|
+ interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_OHCI3>,
|
|
+ <&ccu CLK_BUS_EHCI3>,
|
|
+ <&ccu CLK_USB_OHCI3>,
|
|
+ <&ccu CLK_USB_PHY2>;
|
|
+ resets = <&ccu RST_BUS_OHCI3>,
|
|
+ <&ccu RST_BUS_EHCI3>,
|
|
+ <&ccu RST_USB_PHY2>;
|
|
+ phys = <&usbphy 3>;
|
|
+ phy-names = "usb";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
+ ohci3: usb@5311400 {
|
|
+ compatible = "allwinner,sun50i-h616-ohci",
|
|
+ "generic-ohci";
|
|
+ reg = <0x05311400 0x100>;
|
|
+ interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ clocks = <&ccu CLK_BUS_OHCI3>,
|
|
+ <&ccu CLK_USB_OHCI3>,
|
|
+ <&ccu CLK_USB_PHY2>;
|
|
+ resets = <&ccu RST_BUS_OHCI3>,
|
|
+ <&ccu RST_USB_PHY2>;
|
|
+ phys = <&usbphy 3>;
|
|
+ phy-names = "usb";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
rtc: rtc@7000000 {
|
|
compatible = "allwinner,sun50i-h616-rtc";
|
|
reg = <0x07000000 0x400>;
|
|
@@ -528,11 +704,14 @@ r_ccu: clock@7010000 {
|
|
r_pio: pinctrl@7022000 {
|
|
compatible = "allwinner,sun50i-h616-r-pinctrl";
|
|
reg = <0x07022000 0x400>;
|
|
+ interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&r_ccu CLK_R_APB1>, <&osc24M>,
|
|
<&rtc CLK_OSC32K>;
|
|
clock-names = "apb", "hosc", "losc";
|
|
gpio-controller;
|
|
#gpio-cells = <3>;
|
|
+ interrupt-controller;
|
|
+ #interrupt-cells = <3>;
|
|
|
|
/omit-if-no-ref/
|
|
r_i2c_pins: r-i2c-pins {
|
|
--
|
|
2.35.3
|
|
|