build/patch/kernel/archive/rockchip64-5.14/board-rockpis-0006-arm64-dts-rockchip-Enable-mac-node-on-rk3308-rock-pi.patch

50 lines
1.3 KiB
Diff

From 3bca021b34c95801788a53052f3fbe6f326756f8 Mon Sep 17 00:00:00 2001
From: ashthespy <ashthespy@gmail.com>
Date: Thu, 16 Jan 2020 21:14:23 +0100
Subject: [PATCH 06/23] arm64: dts: rockchip: Enable mac node on
rk3308-rock-pi-s
---
.../boot/dts/rockchip/rk3308-rock-pi-s.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts
index 88468a6065cf..50ae9b98da67 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts
@@ -110,6 +110,13 @@ vcc_io: vcc-io {
vin-supply = <&vcc5v0_sys>;
};
+ vcc_phy: vcc-phy-regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc_phy";
+ regulator-always-on;
+ regulator-boot-on;
+ };
+
vcc5v0_otg: vcc5v0-otg {
compatible = "regulator-fixed";
regulator-name = "vcc5v0_otg";
@@ -170,6 +177,17 @@ &sdmmc {
status = "okay";
};
+&gmac {
+ phy-supply = <&vcc_phy>;
+ clock_in_out = "output";
+ assigned-clocks = <&cru SCLK_MAC>;
+ assigned-clock-parents = <&cru SCLK_MAC_SRC>;
+ snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
+ snps,reset-active-low;
+ snps,reset-delays-us = <0 50000 50000>;
+ status = "okay";
+};
+
&spi2 {
status = "okay";
max-freq = <10000000>;
--
2.25.1