Skip to content

Commit 67e4ab7

Browse files
retro98boyigorpecovnik
authored andcommitted
SMART AM40: add PHY LED configuration
1 parent 2576cd1 commit 67e4ab7

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

patch/kernel/archive/rockchip64-6.12/dt/rk3399-am40.dts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@
196196
simple-audio-card,name = "dp-sound";
197197

198198
simple-audio-card,cpu {
199-
// sound-dai = <&i2s2>;
199+
/* sound-dai = <&i2s2>; */
200200
sound-dai = <&spdif>;
201201
};
202202
simple-audio-card,codec {
203-
// sound-dai = <&cdn_dp 0>;
203+
/* sound-dai = <&cdn_dp 0>; */
204204
sound-dai = <&cdn_dp 1>;
205205
};
206206
};
@@ -252,11 +252,12 @@
252252
#address-cells = <1>;
253253
#size-cells = <0>;
254254

255-
rtl8211f: ethernet-phy@0 {
255+
rtl8211f: rtl8211f@0 {
256256
reg = <0>;
257257
reset-assert-us = <10000>;
258258
reset-deassert-us = <30000>;
259259
reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
260+
realtek,ledsel = <0x820b>;
260261
};
261262
};
262263
};

patch/kernel/archive/rockchip64-6.16/dt/rk3399-am40.dts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@
196196
simple-audio-card,name = "dp-sound";
197197

198198
simple-audio-card,cpu {
199-
// sound-dai = <&i2s2>;
199+
/* sound-dai = <&i2s2>; */
200200
sound-dai = <&spdif>;
201201
};
202202
simple-audio-card,codec {
203-
// sound-dai = <&cdn_dp 0>;
203+
/* sound-dai = <&cdn_dp 0>; */
204204
sound-dai = <&cdn_dp 1>;
205205
};
206206
};
@@ -252,11 +252,12 @@
252252
#address-cells = <1>;
253253
#size-cells = <0>;
254254

255-
rtl8211f: ethernet-phy@0 {
255+
rtl8211f: rtl8211f@0 {
256256
reg = <0>;
257257
reset-assert-us = <10000>;
258258
reset-deassert-us = <30000>;
259259
reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
260+
realtek,ledsel = <0x820b>;
260261
};
261262
};
262263
};

patch/u-boot/v2025.04/board_smart-am40/add-board-smart-am40.patch

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ index 00000000..8ea5266f
9494
+CONFIG_ERRNO_STR=y
9595
diff --git a/dts/upstream/src/arm64/rockchip/rk3399-am40.dts b/dts/upstream/src/arm64/rockchip/rk3399-am40.dts
9696
new file mode 100644
97-
index 00000000..174a7eb6
97+
index 00000000..cf667415
9898
--- /dev/null
9999
+++ b/dts/upstream/src/arm64/rockchip/rk3399-am40.dts
100-
@@ -0,0 +1,778 @@
100+
@@ -0,0 +1,779 @@
101101
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
102102
+/*
103103
+ * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
@@ -296,11 +296,11 @@ index 00000000..174a7eb6
296296
+ simple-audio-card,name = "dp-sound";
297297
+
298298
+ simple-audio-card,cpu {
299-
+ // sound-dai = <&i2s2>;
299+
+ /* sound-dai = <&i2s2>; */
300300
+ sound-dai = <&spdif>;
301301
+ };
302302
+ simple-audio-card,codec {
303-
+ // sound-dai = <&cdn_dp 0>;
303+
+ /* sound-dai = <&cdn_dp 0>; */
304304
+ sound-dai = <&cdn_dp 1>;
305305
+ };
306306
+ };
@@ -352,11 +352,12 @@ index 00000000..174a7eb6
352352
+ #address-cells = <1>;
353353
+ #size-cells = <0>;
354354
+
355-
+ rtl8211f: ethernet-phy@0 {
355+
+ rtl8211f: rtl8211f@0 {
356356
+ reg = <0>;
357357
+ reset-assert-us = <10000>;
358358
+ reset-deassert-us = <30000>;
359359
+ reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
360+
+ realtek,ledsel = <0x820b>;
360361
+ };
361362
+ };
362363
+};

0 commit comments

Comments
 (0)