ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard
Subsystems (3)
PATCH v2 1/1 ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard
This adds the PM8058 LEDs as used in the platform.
Cc linux-arm-msm at vger.kernel.org
Cc linux-leds at vger.kernel.org
Cc Andy Gross <[email protected]>
Cc Stephen Boyd <[email protected]>
Cc Jacek Anaszewski <[email protected]>
Reviewed-by Bjorn Andersson <[email protected]>
Signed-off-by Linus Walleij <[email protected]>
---
ChangeLog v1->v2:
- Rename the infrared LED to "pm8058:infrared:proximitysensor"
--- arch/arm/boot/dts/qcom-apq8060-dragonboard.dts | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
arch/arm/boot/dts/qcom-apq8060-dragonboard.dts +39 -0
@@ -239,6 +239,45 @@ }; }; }; + + led at 48 { + /* + * The keypad LED @0x48 is routed to + * the sensor board where it is + * connected to an infrared LED + * SFH4650 (60mW, @850nm) next to the + * ambient light and proximity sensor + * Capella Microsystems CM3605. + */ + compatible = "qcom,pm8058-keypad-led"; + reg = <0x48>; + label = "pm8058:infrared:proximitysensor"; + default-state = "off"; + }; + led at 131 { + compatible = "qcom,pm8058-led"; + reg = <0x131>; + label = "pm8058:red"; + default-state = "off"; + }; + led at 132 { + /* + * This is actually green too on my + * board, but documented as yellow. + */ + compatible = "qcom,pm8058-led"; + reg = <0x132>; + label = "pm8058:yellow"; + default-state = "off"; + linux,default-trigger = "mmc0"; + }; + led at 133 { + compatible = "qcom,pm8058-led"; + reg = <0x133>; + label = "pm8058:green"; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; }; };
Signature · 1 line
2.7.4
PATCH v2 1/1 ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard
Quoted 57 lines · Linus Walleij
This adds the PM8058 LEDs as used in the platform.
Cc linux-arm-msm at vger.kernel.orgCc linux-leds at vger.kernel.orgCc Andy Gross <[email protected]>Cc Stephen Boyd <[email protected]>Cc Jacek Anaszewski <[email protected]>Reviewed-by Bjorn Andersson <[email protected]>Signed-off-by Linus Walleij <[email protected]>---
ChangeLogv1->v2:
- Rename the infrared LED to "pm8058:infrared:proximitysensor"--- arch/arm/boot/dts/qcom-apq8060-dragonboard.dts | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)arch/arm/boot/dts/qcom-apq8060-dragonboard.dts +32
-0@@ -239,6 +239,45 @@ }; }; }; + + led at 48 { + /* + * The keypad LED @0x48 is routed to + * the sensor board where it is + * connected to an infrared LED + * SFH4650 (60mW, @850nm) next to the + * ambient light and proximity sensor + * Capella Microsystems CM3605. + */ + compatible = "qcom,pm8058-keypad-led"; + reg = <0x48>; + label = "pm8058:infrared:proximitysensor"; + default-state = "off"; + }; + led at 131 { + compatible = "qcom,pm8058-led"; + reg = <0x131>; + label = "pm8058:red"; + default-state = "off"; + }; + led at 132 { + /* + * This is actually green too on my + * board, but documented as yellow. + */ + compatible = "qcom,pm8058-led"; + reg = <0x132>; + label = "pm8058:yellow"; + default-state = "off"; + linux,default-trigger = "mmc0"; + };
arch/arm/boot/dts/qcom-apq8060-dragonboard.dts line 283
Quoted 10 lines
arch/arm/boot/dts/qcom-apq8060-dragonboard.dts +7
-0+ led at 133 { + compatible = "qcom,pm8058-led"; + reg = <0x133>; + label = "pm8058:green"; + default-state = "on"; + linux,default-trigger = "heartbeat"; + }; }; };
Acked-by Jacek Anaszewski <[email protected]>
Signature · 2 lines
Best regards, Jacek Anaszewski