mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 12:35:30 +08:00

This commit add basic support for Photonicat Board. Flash into lede: Run first: dd if=openwrt-xxx.img of=/dev/mmcblk0 Then brush the img file to sdcard and insert it, the system will boot from above. Note: Since rockchip does not release any code to power up their device, disabled emmc for now until we can remove rkbin.
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
|
|
@@ -173,11 +173,13 @@ gmac0: ethernet@fe2a0000 {
|
|
clocks = <&cru SCLK_GMAC0>, <&cru SCLK_GMAC0_RX_TX>,
|
|
<&cru SCLK_GMAC0_RX_TX>, <&cru CLK_MAC0_REFOUT>,
|
|
<&cru ACLK_GMAC0>, <&cru PCLK_GMAC0>,
|
|
- <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_GMAC0_PTP_REF>;
|
|
+ <&cru SCLK_GMAC0_RX_TX>, <&cru CLK_GMAC0_PTP_REF>,
|
|
+ <&cru PCLK_XPCS>;
|
|
clock-names = "stmmaceth", "mac_clk_rx",
|
|
"mac_clk_tx", "clk_mac_refout",
|
|
"aclk_mac", "pclk_mac",
|
|
- "clk_mac_speed", "ptp_ref";
|
|
+ "clk_mac_speed", "ptp_ref",
|
|
+ "pclk_xpcs";
|
|
resets = <&cru SRST_A_GMAC0>;
|
|
reset-names = "stmmaceth";
|
|
rockchip,grf = <&grf>;
|
|
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
|
|
@@ -376,6 +376,12 @@ usb_host1_ohci: usb@fd8c0000 {
|
|
status = "disabled";
|
|
};
|
|
|
|
+ xpcs: syscon@fda00000 {
|
|
+ compatible = "rockchip,rk3568-xpcs", "syscon";
|
|
+ reg = <0x0 0xfda00000 0x0 0x200000>;
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
pmugrf: syscon@fdc20000 {
|
|
compatible = "rockchip,rk3568-pmugrf", "syscon", "simple-mfd";
|
|
reg = <0x0 0xfdc20000 0x0 0x10000>;
|