From: "Guido Günther" <agx@sigxcpu.org> To: "Rob Herring" <robh+dt@kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>, "Shawn Guo" <shawnguo@kernel.org>, "Sascha Hauer" <s.hauer@pengutronix.de>, "Pengutronix Kernel Team" <kernel@pengutronix.de>, "Fabio Estevam" <festevam@gmail.com>, "NXP Linux Team" <linux-imx@nxp.com>, "Catalin Marinas" <catalin.marinas@arm.com>, "Will Deacon" <will@kernel.org>, "Alexander Stein" <alexander.stein@ew.tq-group.com>, "Guido Günther" <agx@sigxcpu.org>, "Markus Niebel" <Markus.Niebel@ew.tq-group.com>, "Bjorn Andersson" <andersson@kernel.org>, "Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>, "Marcel Ziswiler" <marcel.ziswiler@toradex.com>, "Vinod Koul" <vkoul@kernel.org>, "Arnd Bergmann" <arnd@arndb.de>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, phone-devel@vger.kernel.org, kernel@puri.sm Subject: [PATCH v1 3/3] arm64: dts: librem5-devkit: Use function and color rather than label Date: Sun, 9 Oct 2022 14:26:55 +0200 [thread overview] Message-ID: <2d249e5fbb3a77a6ca8eb6ecbbf97ac8ce3ef371.1665318256.git.agx@sigxcpu.org> (raw) In-Reply-To: <cover.1665318256.git.agx@sigxcpu.org> Use predefined colors and function rather than making up a random label. Signed-off-by: Guido Günther <agx@sigxcpu.org> --- arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index 7e4b6d65fd89..4c8904fba1c1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -7,6 +7,7 @@ #include "dt-bindings/input/input.h" #include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/leds/common.h> #include "dt-bindings/pwm/pwm.h" #include "dt-bindings/usb/pd.h" #include "imx8mq.dtsi" @@ -64,7 +65,8 @@ leds { compatible = "pwm-leds"; led1 { - label = "LED 1"; + function = LED_FUNCTION_STATUS; + color = <LED_COLOR_ID_RED>; max-brightness = <248>; pwms = <&pwm2 0 50000 0>; }; -- 2.35.1
WARNING: multiple messages have this Message-ID (diff)
From: "Guido Günther" <agx@sigxcpu.org> To: "Rob Herring" <robh+dt@kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>, "Shawn Guo" <shawnguo@kernel.org>, "Sascha Hauer" <s.hauer@pengutronix.de>, "Pengutronix Kernel Team" <kernel@pengutronix.de>, "Fabio Estevam" <festevam@gmail.com>, "NXP Linux Team" <linux-imx@nxp.com>, "Catalin Marinas" <catalin.marinas@arm.com>, "Will Deacon" <will@kernel.org>, "Alexander Stein" <alexander.stein@ew.tq-group.com>, "Guido Günther" <agx@sigxcpu.org>, "Markus Niebel" <Markus.Niebel@ew.tq-group.com>, "Bjorn Andersson" <andersson@kernel.org>, "Dmitry Baryshkov" <dmitry.baryshkov@linaro.org>, "Marcel Ziswiler" <marcel.ziswiler@toradex.com>, "Vinod Koul" <vkoul@kernel.org>, "Arnd Bergmann" <arnd@arndb.de>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, phone-devel@vger.kernel.org, kernel@puri.sm Subject: [PATCH v1 3/3] arm64: dts: librem5-devkit: Use function and color rather than label Date: Sun, 9 Oct 2022 14:26:55 +0200 [thread overview] Message-ID: <2d249e5fbb3a77a6ca8eb6ecbbf97ac8ce3ef371.1665318256.git.agx@sigxcpu.org> (raw) In-Reply-To: <cover.1665318256.git.agx@sigxcpu.org> Use predefined colors and function rather than making up a random label. Signed-off-by: Guido Günther <agx@sigxcpu.org> --- arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index 7e4b6d65fd89..4c8904fba1c1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -7,6 +7,7 @@ #include "dt-bindings/input/input.h" #include <dt-bindings/interrupt-controller/irq.h> +#include <dt-bindings/leds/common.h> #include "dt-bindings/pwm/pwm.h" #include "dt-bindings/usb/pd.h" #include "imx8mq.dtsi" @@ -64,7 +65,8 @@ leds { compatible = "pwm-leds"; led1 { - label = "LED 1"; + function = LED_FUNCTION_STATUS; + color = <LED_COLOR_ID_RED>; max-brightness = <248>; pwms = <&pwm2 0 50000 0>; }; -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-10-09 12:36 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-09 12:26 [PATCH v1 0/3] librem5-devkit: Let LED use PWM Guido Günther 2022-10-09 12:26 ` Guido Günther 2022-10-09 12:26 ` [PATCH v1 1/3] arm64: defconfig: Enable pattern LED trigger Guido Günther 2022-10-09 12:26 ` Guido Günther 2022-10-09 15:18 ` Krzysztof Kozlowski 2022-10-09 15:18 ` Krzysztof Kozlowski 2022-10-09 12:26 ` [PATCH v1 2/3] arm64: dts: librem5-devkit: Make LED use PWM Guido Günther 2022-10-09 12:26 ` Guido Günther 2022-10-29 1:15 ` Shawn Guo 2022-10-29 1:15 ` Shawn Guo 2022-10-09 12:26 ` Guido Günther [this message] 2022-10-09 12:26 ` [PATCH v1 3/3] arm64: dts: librem5-devkit: Use function and color rather than label Guido Günther 2022-10-29 1:18 ` Shawn Guo 2022-10-29 1:18 ` Shawn Guo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=2d249e5fbb3a77a6ca8eb6ecbbf97ac8ce3ef371.1665318256.git.agx@sigxcpu.org \ --to=agx@sigxcpu.org \ --cc=Markus.Niebel@ew.tq-group.com \ --cc=alexander.stein@ew.tq-group.com \ --cc=andersson@kernel.org \ --cc=arnd@arndb.de \ --cc=catalin.marinas@arm.com \ --cc=devicetree@vger.kernel.org \ --cc=dmitry.baryshkov@linaro.org \ --cc=festevam@gmail.com \ --cc=kernel@pengutronix.de \ --cc=kernel@puri.sm \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-imx@nxp.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-leds@vger.kernel.org \ --cc=marcel.ziswiler@toradex.com \ --cc=phone-devel@vger.kernel.org \ --cc=robh+dt@kernel.org \ --cc=s.hauer@pengutronix.de \ --cc=shawnguo@kernel.org \ --cc=vkoul@kernel.org \ --cc=will@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.