Message ID | 1453970618-4383-2-git-send-email-wxt@rock-chips.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Am Donnerstag, 28. Januar 2016, 16:43:30 schrieb Caesar Wang: > As the kylin schematic drawing, add the needed work led for > kylin board. > > Run: > echo 0 > /sys/class/leds/kylin:red:led/brightness > echo 1 > /sys/class/leds/kylin:red:led/brightness > > The led can normal on/off on kylin board. > > Signed-off-by: Caesar Wang <wxt@rock-chips.com> applied to my dts32-branch for 4.6
? 2016?01?31? 18:46, Heiko Stuebner ??: > Am Donnerstag, 28. Januar 2016, 16:43:30 schrieb Caesar Wang: >> As the kylin schematic drawing, add the needed work led for >> kylin board. >> >> Run: >> echo 0 > /sys/class/leds/kylin:red:led/brightness >> echo 1 > /sys/class/leds/kylin:red:led/brightness >> >> The led can normal on/off on kylin board. >> >> Signed-off-by: Caesar Wang <wxt@rock-chips.com> > applied to my dts32-branch for 4.6 Okay, thanks. I'm assuming this patch is applied to your local branch since I have not yet see on your branch[0].:-) branch[0]: https://git.kernel.org/cgit/linux/kernel/git/mmind/linux-rockchip.git/log/?h=v4.6-armsoc/dts32 > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip
diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts index 190f22c..3332a7f 100644 --- a/arch/arm/boot/dts/rk3036-kylin.dts +++ b/arch/arm/boot/dts/rk3036-kylin.dts @@ -46,6 +46,17 @@ model = "Rockchip RK3036 KylinBoard"; compatible = "rockchip,rk3036-kylin", "rockchip,rk3036"; + leds: gpio-leds { + compatible = "gpio-leds"; + + work { + gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>; + label = "kylin:red:led"; + pinctrl-names = "default"; + pinctrl-0 = <&led_ctl>; + }; + }; + sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; pinctrl-names = "default"; @@ -359,6 +370,12 @@ }; &pinctrl { + leds { + led_ctl: led-ctl { + rockchip,pins = <2 30 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + pmic { pmic_int: pmic-int { rockchip,pins = <2 2 RK_FUNC_GPIO &pcfg_pull_default>;
As the kylin schematic drawing, add the needed work led for kylin board. Run: echo 0 > /sys/class/leds/kylin:red:led/brightness echo 1 > /sys/class/leds/kylin:red:led/brightness The led can normal on/off on kylin board. Signed-off-by: Caesar Wang <wxt@rock-chips.com> --- Changes in v4: - Add the missing led control on kylin board. - This patch picks up at this URL. (https://patchwork.kernel.org/patch/8129971/) arch/arm/boot/dts/rk3036-kylin.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)