forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
230 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
220 changes: 220 additions & 0 deletions
220
target/linux/rockchip/patches-6.1/023-v6.8-arm64-dts-rockchip-Add-Radxa-E23-board.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,220 @@ | ||
--- a/arch/arm64/boot/dts/rockchip/Makefile | ||
+++ b/arch/arm64/boot/dts/rockchip/Makefile | ||
@@ -71,6 +71,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pi | ||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-a.dtb | ||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-b.dtb | ||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-radxa-cm3-io.dtb | ||
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-radxa-e23.dtb | ||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-roc-pc.dtb | ||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-cm4.dtb | ||
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb | ||
--- /dev/null | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-e23.dts | ||
@@ -0,0 +1,207 @@ | ||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
+/* | ||
+ * Copyright (c) 2022 Radxa Limited | ||
+ * Copyright (c) 2022 Amarula Solutions(India) | ||
+ */ | ||
+ | ||
+/dts-v1/; | ||
+#include <dt-bindings/soc/rockchip,vop2.h> | ||
+#include "rk3566.dtsi" | ||
+#include "rk3566-radxa-cm3.dtsi" | ||
+ | ||
+/ { | ||
+ model = "Radxa Compute Module 3(CM3) E23 Board"; | ||
+ compatible = "radxa,E23", "radxa,cm3", "rockchip,rk3566"; | ||
+ | ||
+ aliases { | ||
+ ethernet0 = &gmac1; | ||
+ mmc1 = &sdmmc0; | ||
+ led-boot = &status_led; | ||
+ led-failsafe = &status_led; | ||
+ led-running = &status_led; | ||
+ led-upgrade = &status_led; | ||
+ }; | ||
+ | ||
+ chosen: chosen { | ||
+ stdout-path = "serial2:1500000n8"; | ||
+ }; | ||
+ | ||
+ gmac1_clkin: external-gmac1-clock { | ||
+ compatible = "fixed-clock"; | ||
+ clock-frequency = <125000000>; | ||
+ clock-output-names = "gmac1_clkin"; | ||
+ #clock-cells = <0>; | ||
+ }; | ||
+ | ||
+ vcc5v0_usb30: vcc5v0-usb30-regulator { | ||
+ compatible = "regulator-fixed"; | ||
+ regulator-name = "vcc5v0_usb30"; | ||
+ enable-active-high; | ||
+ gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>; | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&vcc5v0_usb30_en_h>; | ||
+ regulator-always-on; | ||
+ regulator-min-microvolt = <5000000>; | ||
+ regulator-max-microvolt = <5000000>; | ||
+ vin-supply = <&vcc_sys>; | ||
+ }; | ||
+ | ||
+ vcc3v3_pcie: vcc3v3-pcie-regulator { | ||
+ compatible = "regulator-fixed"; | ||
+ regulator-name = "vcc3v3_pcie"; | ||
+ regulator-always-on; | ||
+ regulator-boot-on; | ||
+ regulator-min-microvolt = <3300000>; | ||
+ regulator-max-microvolt = <3300000>; | ||
+ vin-supply = <&vcc12v_dcin>; | ||
+ }; | ||
+ | ||
+ vcc12v_pcie: vcc12v-pcie-regulator { | ||
+ compatible = "regulator-fixed"; | ||
+ regulator-name = "vcc12v_pcie"; | ||
+ regulator-always-on; | ||
+ regulator-boot-on; | ||
+ regulator-min-microvolt = <12000000>; | ||
+ regulator-max-microvolt = <12000000>; | ||
+ vin-supply = <&vcc12v_dcin>; | ||
+ }; | ||
+ | ||
+ vcc3v0_sd: vcc3v0-sd-regulator { | ||
+ compatible = "regulator-fixed"; | ||
+ regulator-name = "vcc3v0_sd"; | ||
+ regulator-always-on; | ||
+ regulator-boot-on; | ||
+ regulator-min-microvolt = <3300000>; | ||
+ regulator-max-microvolt = <3300000>; | ||
+ vin-supply = <&vcc3v3_sys>; | ||
+ }; | ||
+}; | ||
+ | ||
+&combphy1 { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&combphy2 { | ||
+ phy-supply = <&vcc3v3_sys>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&gmac1 { | ||
+ assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; | ||
+ assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&gmac1_clkin>; | ||
+ assigned-clock-rates = <0>, <125000000>; | ||
+ clock_in_out = "input"; | ||
+ phy-handle = <&rgmii_phy1>; | ||
+ phy-mode = "rgmii"; | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&gmac1m0_miim | ||
+ &gmac1m0_tx_bus2 | ||
+ &gmac1m0_rx_bus2 | ||
+ &gmac1m0_rgmii_clk | ||
+ &gmac1m0_rgmii_bus | ||
+ &gmac1m0_clkinout>; | ||
+ snps,reset-gpio = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>; | ||
+ snps,reset-active-low; | ||
+ /* Reset time is 20ms, 100ms for rtl8211f */ | ||
+ snps,reset-delays-us = <0 20000 100000>; | ||
+ tx_delay = <0x46>; | ||
+ rx_delay = <0x2e>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&mdio1 { | ||
+ rgmii_phy1: ethernet-phy@0 { | ||
+ compatible = "ethernet-phy-ieee802.3-c22"; | ||
+ reg = <0x0>; | ||
+ }; | ||
+}; | ||
+ | ||
+&pinctrl { | ||
+ sdcard { | ||
+ sdmmc_pwren: sdmmc-pwren { | ||
+ rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; | ||
+ }; | ||
+ }; | ||
+ | ||
+ usb { | ||
+ vcc5v0_usb30_en_h: vcc5v0-host-en-h { | ||
+ rockchip,pins = <3 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; | ||
+ }; | ||
+ }; | ||
+ | ||
+ pcie { | ||
+ pcie_clkreq_h: pcie-clkreq-h { | ||
+ rockchip,pins = <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; | ||
+ }; | ||
+ pcie_reset_h: pcie-reset-h { | ||
+ rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>; | ||
+ }; | ||
+ }; | ||
+}; | ||
+ | ||
+&sdmmc0 { | ||
+ bus-width = <4>; | ||
+ cap-mmc-highspeed; | ||
+ cap-sd-highspeed; | ||
+ disable-wp; | ||
+ vqmmc-supply = <&vccio_sd>; | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_pwren>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&uart2 { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&usb2phy0_host { | ||
+ phy-supply = <&vcc5v0_usb30>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&usb2phy1_host { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&usb2phy1_otg { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&usb_host0_ehci { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&usb_host1_xhci { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&usb2phy0_otg { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&usb_host0_xhci { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&vop { | ||
+ assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; | ||
+ assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&vop_mmu { | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&vp0 { | ||
+ vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { | ||
+ reg = <ROCKCHIP_VOP2_EP_HDMI0>; | ||
+ remote-endpoint = <&hdmi_in_vp0>; | ||
+ }; | ||
+}; | ||
+ | ||
+&pcie2x1 { | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&pcie_reset_h>; | ||
+ reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; | ||
+}; |