Message ID | 1439903409-20233-1-git-send-email-srinivas.kandagatla@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 08/18/2015 06:10 AM, Srinivas Kandagatla wrote: > diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts > index b1f9ddb..08daafe 100644 > --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts > +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts > @@ -221,6 +221,18 @@ > 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>; > + default-state = "on"; > + }; > + }; Wrong place. Should be in root, not soc node.
On 25/08/15 22:36, Stephen Boyd wrote: > On 08/18/2015 06:10 AM, Srinivas Kandagatla wrote: >> diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts >> b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts >> index b1f9ddb..08daafe 100644 >> --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts >> +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts >> @@ -221,6 +221,18 @@ >> 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>; >> + default-state = "on"; >> + }; >> + }; > > Wrong place. Should be in root, not soc node. yep, Will move it to the root. >
diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts index b1f9ddb..08daafe 100644 --- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts +++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts @@ -221,6 +221,18 @@ 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>; + default-state = "on"; + }; + }; + qcom,ssbi@500000 { pmic@0 { gpio@150 { @@ -232,6 +244,15 @@ power-source = <PM8921_GPIO_S4>; }; }; + + notify_led: nled { + pios { + pins = "gpio18"; + function = "normal"; + bias-disable; + power-source = <PM8921_GPIO_S4>; + }; + }; }; }; };
This patch adds notify led support on IFC6410, whose trigger can be configured from userspace. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> --- arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)