forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rockchip: add support for HINLINK OPC-H69K
- Loading branch information
Showing
10 changed files
with
131 additions
and
22 deletions.
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
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
1 change: 1 addition & 0 deletions
1
target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-opc-h66k.dts
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
// Copyright (c) 2022 AmadeusGhost <amadeus@jmu.edu.cn> | ||
|
||
/dts-v1/; | ||
|
||
|
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
89 changes: 89 additions & 0 deletions
89
target/linux/rockchip/files/arch/arm64/boot/dts/rockchip/rk3568-opc-h69k.dts
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,89 @@ | ||
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
// Copyright (c) 2023 AmadeusGhost <amadeus@jmu.edu.cn> | ||
|
||
/dts-v1/; | ||
|
||
#include "rk3568-hinlink-opc.dtsi" | ||
|
||
/ { | ||
model = "HINLINK OPC-H69K Board"; | ||
compatible = "hinlink,opc-h69k", "rockchip,rk3568"; | ||
|
||
aliases { | ||
ethernet0 = &gmac0; | ||
ethernet1 = &gmac1; | ||
}; | ||
}; | ||
|
||
&cpu0_opp_table { | ||
/delete-node/ opp-1608000000; | ||
/delete-node/ opp-1800000000; | ||
/delete-node/ opp-1992000000; | ||
}; | ||
|
||
#ifdef DTS_NO_LEGACY | ||
&gpu_opp_table { | ||
/delete-node/ opp-700000000; | ||
/delete-node/ opp-800000000; | ||
}; | ||
#endif | ||
|
||
&gmac0 { | ||
assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; | ||
assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>; | ||
assigned-clock-rates = <0>, <125000000>; | ||
clock_in_out = "output"; | ||
phy-mode = "rgmii-id"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&gmac0_miim | ||
&gmac0_tx_bus2 | ||
&gmac0_rx_bus2 | ||
&gmac0_rgmii_clk | ||
&gmac0_rgmii_bus>; | ||
snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>; | ||
snps,reset-active-low; | ||
snps,reset-delays-us = <0 20000 100000>; | ||
tx_delay = <0x3c>; | ||
rx_delay = <0x2f>; | ||
phy-handle = <&rgmii_phy0>; | ||
status = "okay"; | ||
}; | ||
|
||
&gmac1 { | ||
assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; | ||
assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>; | ||
assigned-clock-rates = <0>, <125000000>; | ||
clock_in_out = "output"; | ||
phy-mode = "rgmii-id"; | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&gmac1m1_miim | ||
&gmac1m1_tx_bus2 | ||
&gmac1m1_rx_bus2 | ||
&gmac1m1_rgmii_clk | ||
&gmac1m1_rgmii_bus>; | ||
snps,reset-gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>; | ||
snps,reset-active-low; | ||
snps,reset-delays-us = <0 20000 100000>; | ||
tx_delay = <0x4f>; | ||
rx_delay = <0x26>; | ||
phy-handle = <&rgmii_phy1>; | ||
status = "okay"; | ||
}; | ||
|
||
&mdio0 { | ||
rgmii_phy0: ethernet-phy@0 { | ||
compatible = "ethernet-phy-ieee802.3-c22"; | ||
reg = <0x0>; | ||
}; | ||
}; | ||
|
||
&mdio1 { | ||
rgmii_phy1: ethernet-phy@0 { | ||
compatible = "ethernet-phy-ieee802.3-c22"; | ||
reg = <0x0>; | ||
}; | ||
}; | ||
|
||
&vcc3v3_pcie { | ||
gpio = <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; | ||
}; |
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
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