Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1320438
| From | Caesar Wang <wxt@rock-chips.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v4 1/9] ARM: dts: rockchip: add the leds control for kylin board |
| Date | 2016-01-28 09:50 +0100 |
| Message-ID | <qVQr9-MW-35@gated-at.bofh.it> (permalink) |
| References | <qVQr8-MW-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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(+)
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>;
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 0/9] Add the family patches to support for kylin board Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
[PATCH v4 2/9] ARM: dts: rockchip: add hdmi/vop device node for rk3036 Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
[PATCH v4 6/9] ASoC: rt5616: add mclk property for rt5616 document Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
Re: [PATCH v4 6/9] ASoC: rt5616: add mclk property for rt5616 document Rob Herring <robh@kernel.org> - 2016-01-29 17:30 +0100
Re: [PATCH v4 6/9] ASoC: rt5616: add mclk property for rt5616 document Caesar Wang <caesar.upstream@gmail.com> - 2016-01-31 10:20 +0100
[PATCH v4 9/9] ARM: dts: rockchip: support the spi for rk3036 Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
Re: [PATCH v4 9/9] ARM: dts: rockchip: support the spi for rk3036 Heiko Stuebner <heiko@sntech.de> - 2016-01-31 12:10 +0100
Re: [PATCH v4 9/9] ARM: dts: rockchip: support the spi for rk3036 Caesar Wang <caesar.upstream@gmail.com> - 2016-02-01 07:40 +0100
[PATCH v4 7/9] ASoC: rt5616: trivial: fix the typo Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
[PATCH v4 5/9] ARM: dts: rockchip: add mclk for rt5616 on kylin board Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
[PATCH v4 8/9] ASoC: rt5616: add the mclk for the codec driver Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
[PATCH v4 1/9] ARM: dts: rockchip: add the leds control for kylin board Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
Re: [PATCH v4 1/9] ARM: dts: rockchip: add the leds control for kylin board Heiko Stuebner <heiko@sntech.de> - 2016-01-31 11:50 +0100
Re: [PATCH v4 1/9] ARM: dts: rockchip: add the leds control for kylin board Caesar Wang <caesar.upstream@gmail.com> - 2016-02-01 07:50 +0100
[PATCH v4 3/9] clk: rockchip: rk3036: fix and add node id for emac clock Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
[PATCH v4 4/9] ARM: dts: rockchip: add support emac for RK3036 Caesar Wang <wxt@rock-chips.com> - 2016-01-28 09:50 +0100
[PATCH v4.1 6/9] ASoC: rt5616: add mclk property for rt5616 document Caesar Wang <wxt@rock-chips.com> - 2016-01-31 10:20 +0100
Re: [PATCH v4.1 6/9] ASoC: rt5616: add mclk property for rt5616 document Rob Herring <robh@kernel.org> - 2016-02-01 15:50 +0100
[PATCH v4.1 9/9] ARM: dts: rockchip: support the spi for rk3036 Caesar Wang <wxt@rock-chips.com> - 2016-02-01 08:40 +0100
csiph-web