From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Stuebner Subject: Re: [PATCH] arm64: dts: rockchip: give some life to the rk3328-roc-cc leds Date: Sat, 02 Mar 2019 01:31:11 +0100 Message-ID: <1918569.2zEEYki6OE@phil> References: <20190301225813.19834-1-papadakospan@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20190301225813.19834-1-papadakospan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+glpar-linux-rockchip=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: "Leonidas P. Papadakos" Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Rob Herring List-Id: linux-rockchip.vger.kernel.org Am Freitag, 1. M=E4rz 2019, 23:58:13 CET schrieb Leonidas P. Papadakos: > Assign the LED's to heartbeat and sdcard io, as in other RK boards. > = > https://github.com/armbian/build/commit/f1affad5c7be62d6e93832af3556c7609= edd0858 > = > Signed-off-by: Leonidas P. Papadakos > --- > .../arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 27 +++++++++++++++++++ > 1 file changed, 27 insertions(+) > = > diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts b/arch/arm64/= boot/dts/rockchip/rk3328-roc-cc.dts > index 33c44e857..a881d4c8d 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts > @@ -81,6 +81,33 @@ > regulator-always-on; > regulator-boot-on; > }; > + > + leds { > + compatible =3D "gpio-leds"; > + power { > + label =3D "firefly:blue:power"; > + linux,default-trigger =3D "heartbeat"; > + gpios =3D <&rk805 1 GPIO_ACTIVE_LOW>; > + default-state =3D "on"; > + mode =3D <0x23>; > + }; > + > + user { > + label =3D "firefly:yellow:user"; > + linux,default-trigger =3D "mmc1"; > + gpios =3D <&rk805 0 GPIO_ACTIVE_LOW>; > + default-state =3D "off"; > + mode =3D <0x05>; > + }; > + > + ir { > + status =3D "disabled"; please explain that. Is this an IR transmitting LED? And why are you adding a disabled property? Similar to how the kernel should not contain commented out code having a disabled node in the actual board file is strange. Heiko > + /* gpios =3D <&gpio2 GPIO_C2 GPIO_ACTIVE_HIGH>; */ > + linux,default-trigger =3D "ir"; > + default-state =3D "off"; > + mode =3D <0x00>; > + }; > + }; > }; > = > &cpu0 { > =