This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. For the original discussion see: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
71 lines
1.6 KiB
Diff
71 lines
1.6 KiB
Diff
From: Samuel Holland <samuel@sholland.org>
|
|
Subject: riscv: dts: allwinner: d1: Add RGB LEDs to boards
|
|
Date: Sun, 29 Oct 2023 16:26:59 -0500
|
|
|
|
Some D1-based boards feature an onboard RGB LED. Enable them.
|
|
|
|
Acked-by: Guo Ren <guoren@kernel.org>
|
|
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
|
|
Tested-by: Trevor Woerner <twoerner@gmail.com>
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
(no changes since v5)
|
|
|
|
Changes in v5:
|
|
- New patch for v5
|
|
|
|
.../boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dts | 12 ++++++++++++
|
|
arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts | 13 +++++++++++++
|
|
2 files changed, 25 insertions(+)
|
|
|
|
--- a/arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dts
|
|
+++ b/arch/riscv/boot/dts/allwinner/sun20i-d1-lichee-rv-dock.dts
|
|
@@ -59,6 +59,18 @@
|
|
status = "okay";
|
|
};
|
|
|
|
+&ledc {
|
|
+ pinctrl-0 = <&ledc_pc0_pin>;
|
|
+ pinctrl-names = "default";
|
|
+ status = "okay";
|
|
+
|
|
+ multi-led@0 {
|
|
+ reg = <0x0>;
|
|
+ color = <LED_COLOR_ID_RGB>;
|
|
+ function = LED_FUNCTION_STATUS;
|
|
+ };
|
|
+};
|
|
+
|
|
&mmc1 {
|
|
bus-width = <4>;
|
|
mmc-pwrseq = <&wifi_pwrseq>;
|
|
--- a/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts
|
|
+++ b/arch/riscv/boot/dts/allwinner/sun20i-d1-nezha.dts
|
|
@@ -22,6 +22,7 @@
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
+#include <dt-bindings/leds/common.h>
|
|
|
|
/dts-v1/;
|
|
|
|
@@ -121,6 +122,18 @@
|
|
};
|
|
};
|
|
|
|
+&ledc {
|
|
+ pinctrl-0 = <&ledc_pc0_pin>;
|
|
+ pinctrl-names = "default";
|
|
+ status = "okay";
|
|
+
|
|
+ multi-led@0 {
|
|
+ reg = <0x0>;
|
|
+ color = <LED_COLOR_ID_RGB>;
|
|
+ function = LED_FUNCTION_STATUS;
|
|
+ };
|
|
+};
|
|
+
|
|
&mdio {
|
|
ext_rgmii_phy: ethernet-phy@1 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|