Skip to content

Commit cc68a8a

Browse files
committed
arm64: dts: allwinner: sun55i-t527: avaota-a1: Enable LEDs
The Avaota A1 board features 4 RGB LEDs in a string connected to the SoC's LED controller. Enable the LED controller and add device nodes for them. The timings were copied from the downstream vendor DTS. The design does not specify what these LEDs are for, nor are there any markings on the board for them, so just use them as indicators. Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://patch.msgid.link/20260302152724.3197587-4-wens@kernel.org Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
1 parent 24cd5a8 commit cc68a8a

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/sun55i-t527-avaota-a1.dts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "sun55i-a523.dtsi"
77

88
#include <dt-bindings/gpio/gpio.h>
9+
#include <dt-bindings/leds/common.h>
910

1011
/ {
1112
model = "Avaota A1";
@@ -99,6 +100,46 @@
99100
status = "okay";
100101
};
101102

103+
&ledc {
104+
pinctrl-names = "default";
105+
pinctrl-0 = <&ledc_ph_pin>;
106+
allwinner,pixel-format = "grb";
107+
allwinner,t0l-ns = <800>;
108+
allwinner,t0h-ns = <300>;
109+
allwinner,t1l-ns = <320>;
110+
allwinner,t1h-ns = <800>;
111+
allwinner,treset-ns = <84>;
112+
status = "okay";
113+
114+
multi-led@0 {
115+
reg = <0x0>;
116+
color = <LED_COLOR_ID_RGB>;
117+
function = LED_FUNCTION_INDICATOR;
118+
function-enumerator = <0>;
119+
};
120+
121+
multi-led@1 {
122+
reg = <0x1>;
123+
color = <LED_COLOR_ID_RGB>;
124+
function = LED_FUNCTION_INDICATOR;
125+
function-enumerator = <1>;
126+
};
127+
128+
multi-led@2 {
129+
reg = <0x2>;
130+
color = <LED_COLOR_ID_RGB>;
131+
function = LED_FUNCTION_INDICATOR;
132+
function-enumerator = <2>;
133+
};
134+
135+
multi-led@3 {
136+
reg = <0x3>;
137+
color = <LED_COLOR_ID_RGB>;
138+
function = LED_FUNCTION_INDICATOR;
139+
function-enumerator = <3>;
140+
};
141+
};
142+
102143
&mdio0 {
103144
ext_rgmii0_phy: ethernet-phy@1 {
104145
compatible = "ethernet-phy-ieee802.3-c22";

0 commit comments

Comments
 (0)