|
发表于 2023-1-12 09:19:37
只看该作者
板凳
或者使用这两个补丁:
$ cat 0001-arm64-dts-itx-3568q-RGMII-Crystal-25M-for-PHY-PLL-ou.patch
From 8d0b614f682f48c2b27a32b5102bfcf38eda20d6 Mon Sep 17 00:00:00 2001
From: dengkx <dkx@t-chip.com.cn>
Date: Thu, 15 Sep 2022 09:37:06 +0800
Subject: [PATCH] arm64: dts: itx-3568q: RGMII Crystal 25M for PHY, PLL output
125M for TX_CLK
---
.../rockchip/rk3568-firefly-itx-3568q.dtsi | 30 +++++++++++++++++--
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-firefly-itx-3568q.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-firefly-itx-3568q.dtsi
index fc39c42d348d..219fd27fa16f 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-firefly-itx-3568q.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568-firefly-itx-3568q.dtsi
@@ -281,10 +281,22 @@
&gmac0 {
status = "okay";
- tx_delay = <0x47>;
- rx_delay = <0x31>;
+ tx_delay = <0x44>;
+ rx_delay = <0x35>;
snps,reset-gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>;
-// snps,reset-gpio = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
+
+ clock_in_out = "output";
+ assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
+ assigned-clock-rates = <0>, <125000000>;
+ assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&gmac0_miim
+ &gmac0_tx_bus2
+ &gmac0_rx_bus2
+ &gmac0_rgmii_clk
+ &gmac0_rgmii_bus>;
+
};
&gmac1 {
@@ -292,6 +304,18 @@
tx_delay = <0x4d>;
rx_delay = <0x2d>;
snps,reset-gpio = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>;
+
+ clock_in_out = "output";
+ assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
+ assigned-clock-rates = <0>, <125000000>;
+ assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&gmac1m1_miim
+ &gmac1m1_tx_bus2
+ &gmac1m1_rx_bus2
+ &gmac1m1_rgmii_clk
+ &gmac1m1_rgmii_bus>;
};
&rgmii_phy0 {
--
2.17.1
$ cat 0002-dts-itx-3568q-gmac0-increases-the-IO-drive-capabilit.patch
From b89f257e844d9c11b2bbb71ba47f5163e9e1a4e9 Mon Sep 17 00:00:00 2001
From: dengkx <dkx@t-chip.com.cn>
Date: Tue, 11 Oct 2022 14:57:43 +0800
Subject: [PATCH] dts: itx-3568q: gmac0 increases the IO drive capability of
the CLK and TX
---
.../rockchip/rk3568-firefly-itx-3568q.dtsi | 37 ++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3568-firefly-itx-3568q.dtsi b/arch/arm64/boot/dts/rockchip/rk3568-firefly-itx-3568q.dtsi
index 219fd27fa16f..8cbd991dfdcc 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-firefly-itx-3568q.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3568-firefly-itx-3568q.dtsi
@@ -281,7 +281,7 @@
&gmac0 {
status = "okay";
- tx_delay = <0x44>;
+ tx_delay = <0x4a>;
rx_delay = <0x35>;
snps,reset-gpio = <&gpio0 RK_PD5 GPIO_ACTIVE_LOW>;
@@ -404,6 +404,41 @@
};
};
+ gmac0 {
+ /omit-if-no-ref/
+ gmac0_tx_bus2: gmac0-tx-bus2 {
+ rockchip,pins =
+ /* gmac0_txd0 */
+ <2 RK_PB3 1 &pcfg_pull_none_drv_level_5>,
+ /* gmac0_txd1 */
+ <2 RK_PB4 1 &pcfg_pull_none_drv_level_5>,
+ /* gmac0_txen */
+ <2 RK_PB5 1 &pcfg_pull_none>;
+ };
+
+ /omit-if-no-ref/
+ gmac0_rgmii_clk: gmac0-rgmii-clk {
+ rockchip,pins =
+ /* gmac0_rxclk */
+ <2 RK_PA5 2 &pcfg_pull_none>,
+ /* gmac0_txclk */
+ <2 RK_PB0 2 &pcfg_pull_none_drv_level_5>;
+ };
+
+ /omit-if-no-ref/
+ gmac0_rgmii_bus: gmac0-rgmii-bus {
+ rockchip,pins =
+ /* gmac0_rxd2 */
+ <2 RK_PA3 2 &pcfg_pull_none>,
+ /* gmac0_rxd3 */
+ <2 RK_PA4 2 &pcfg_pull_none>,
+ /* gmac0_txd2 */
+ <2 RK_PA6 2 &pcfg_pull_none_drv_level_5>,
+ /* gmac0_txd3 */
+ <2 RK_PA7 2 &pcfg_pull_none_drv_level_5>;
+ };
+ };
+
// touchscreen {
// tp_power_en: tp-power-en {
// rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
--
2.17.1
|
|