Message ID | 1438088040-17437-1-git-send-email-srinivas.kandagatla@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Am 28.07.2015 um 14:54 schrieb Srinivas Kandagatla: > This patch adds heart-beat led support on IFC6410. > > Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> > --- > arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts > index df560cf..1fc2ea5 100644 > --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts > +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts > @@ -207,6 +207,19 @@ > status = "okay"; > }; > > + leds { > + compatible = "gpio-leds"; > + pinctrl-names = "default"; > + pinctrl-0 = <¬ify_led>; > + > + led@1 { > + label = "apq8064:green:user1"; > + gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "heartbeat"; Can we please drop the heartbeat default? While that's nice as proof of concept, it's annoying to deliver it that way in Linux distros. Users can enable that trigger with a simple boot script writing to /sys. Thanks, Andreas > + default-state = "on"; > + }; > + }; > + > qcom,ssbi@500000 { > pmicintc: pmic@0 { > pm8921_gpio: gpio@150 { [snip]
On 28/07/15 18:36, Andreas Färber wrote: > Am 28.07.2015 um 14:54 schrieb Srinivas Kandagatla: >> This patch adds heart-beat led support on IFC6410. >> >> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> >> --- >> arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 22 ++++++++++++++++++++++ >> 1 file changed, 22 insertions(+) >> >> diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts >> index df560cf..1fc2ea5 100644 >> --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts >> +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts >> @@ -207,6 +207,19 @@ >> status = "okay"; >> }; >> >> + leds { >> + compatible = "gpio-leds"; >> + pinctrl-names = "default"; >> + pinctrl-0 = <¬ify_led>; >> + >> + led@1 { >> + label = "apq8064:green:user1"; >> + gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>; >> + linux,default-trigger = "heartbeat"; > > Can we please drop the heartbeat default? While that's nice as proof of > concept, it's annoying to deliver it that way in Linux distros. Users > can enable that trigger with a simple boot script writing to /sys. > Thanks for the input, I will change to be none, Let the users decide the trigger. thanks, srini > Thanks, > Andreas > >> + default-state = "on"; >> + }; >> + }; >> + >> qcom,ssbi@500000 { >> pmicintc: pmic@0 { >> pm8921_gpio: gpio@150 { > [snip] >
diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index df560cf..1fc2ea5 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -207,6 +207,19 @@ status = "okay"; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <¬ify_led>; + + led@1 { + label = "apq8064:green:user1"; + gpios = <&pm8921_gpio 18 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + default-state = "on"; + }; + }; + qcom,ssbi@500000 { pmicintc: pmic@0 { pm8921_gpio: gpio@150 { @@ -220,6 +233,15 @@ power-source = <PM8921_GPIO_S4>; }; }; + + notify_led: nled { + pios { + pins = "gpio18"; + function = "normal"; + bias-disable; + power-source = <PM8921_GPIO_S4>; + }; + }; }; }; };
This patch adds heart-beat led support on IFC6410. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)