* [PATCH v2] ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard
@ 2016-08-19 8:46 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2016-08-19 8:46 UTC (permalink / raw)
To: linux-arm-kernel, linux-arm-msm, linux-soc, Andy Gross
Cc: Stephen Boyd, Bjorn Andersson, David Brown, Linus Walleij,
linux-leds, Jacek Anaszewski
This adds the PM8058 LEDs as used in the platform.
Cc: linux-arm-msm@vger.kernel.org
Cc: linux-leds@vger.kernel.org
Cc: Andy Gross <andy.gross@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
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(+)
diff --git a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
index 0abc93e5bb00..6c0038398ef2 100644
--- a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
+++ b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
@@ -239,6 +239,45 @@
};
};
};
+
+ led@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@131 {
+ compatible = "qcom,pm8058-led";
+ reg = <0x131>;
+ label = "pm8058:red";
+ default-state = "off";
+ };
+ led@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@133 {
+ compatible = "qcom,pm8058-led";
+ reg = <0x133>;
+ label = "pm8058:green";
+ default-state = "on";
+ linux,default-trigger = "heartbeat";
+ };
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2] ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard
@ 2016-08-19 8:46 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2016-08-19 8:46 UTC (permalink / raw)
To: linux-arm-kernel
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 <andy.gross@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
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(+)
diff --git a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
index 0abc93e5bb00..6c0038398ef2 100644
--- a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
+++ b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
@@ -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";
+ };
};
};
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard
2016-08-19 8:46 ` Linus Walleij
@ 2016-08-19 19:13 ` Jacek Anaszewski
-1 siblings, 0 replies; 4+ messages in thread
From: Jacek Anaszewski @ 2016-08-19 19:13 UTC (permalink / raw)
To: Linus Walleij, linux-arm-kernel, linux-arm-msm, linux-soc, Andy Gross
Cc: Stephen Boyd, Bjorn Andersson, David Brown, linux-leds, Jacek Anaszewski
On 08/19/2016 10:46 AM, Linus Walleij wrote:
> This adds the PM8058 LEDs as used in the platform.
>
> Cc: linux-arm-msm@vger.kernel.org
> Cc: linux-leds@vger.kernel.org
> Cc: Andy Gross <andy.gross@linaro.org>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> 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(+)
>
> diff --git a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
> index 0abc93e5bb00..6c0038398ef2 100644
> --- a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
> +++ b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
> @@ -239,6 +239,45 @@
> };
> };
> };
> +
> + led@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@131 {
> + compatible = "qcom,pm8058-led";
> + reg = <0x131>;
> + label = "pm8058:red";
> + default-state = "off";
> + };
> + led@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@133 {
> + compatible = "qcom,pm8058-led";
> + reg = <0x133>;
> + label = "pm8058:green";
> + default-state = "on";
> + linux,default-trigger = "heartbeat";
> + };
> };
> };
>
>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
--
Best regards,
Jacek Anaszewski
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard
@ 2016-08-19 19:13 ` Jacek Anaszewski
0 siblings, 0 replies; 4+ messages in thread
From: Jacek Anaszewski @ 2016-08-19 19:13 UTC (permalink / raw)
To: linux-arm-kernel
On 08/19/2016 10:46 AM, Linus Walleij wrote:
> 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 <andy.gross@linaro.org>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: Jacek Anaszewski <j.anaszewski@samsung.com>
> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> 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(+)
>
> diff --git a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
> index 0abc93e5bb00..6c0038398ef2 100644
> --- a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
> +++ b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts
> @@ -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";
> + };
> };
> };
>
>
Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
--
Best regards,
Jacek Anaszewski
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-19 19:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-19 8:46 [PATCH v2] ARM: dts: add PM8058 LEDs to the APQ8060 Dragonboard Linus Walleij
2016-08-19 8:46 ` Linus Walleij
2016-08-19 19:13 ` Jacek Anaszewski
2016-08-19 19:13 ` Jacek Anaszewski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.