[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5eb40c7d-6663-68c1-d9f9-70a117cc3b26@linaro.org>
Date: Mon, 21 Nov 2022 12:24:07 +0100
From: Konrad Dybcio <konrad.dybcio@...aro.org>
To: "Lin, Meng-Bo" <linmengbo0689@...tonmail.com>,
linux-kernel@...r.kernel.org
Cc: Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Linus Walleij <linus.walleij@...aro.org>,
Stanislav Jakubek <stano.jakubek@...il.com>,
Shawn Guo <shawnguo@...nel.org>,
Stephan Gerhold <stephan@...hold.net>,
Nikita Travkin <nikita@...n.ru>, devicetree@...r.kernel.org,
linux-arm-msm@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht
Subject: Re: [PATCH 5/5] arm64: dts: qcom: msm8916-gplus-fl8005a: Add flash
LED
On 19.11.2022 21:28, Lin, Meng-Bo wrote:
> FL8005A uses SGM3140 Flash LED driver. Add it to the device tree.
>
> Signed-off-by: Lin, Meng-Bo <linmengbo0689@...tonmail.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@...aro.org>
Konrad
> .../boot/dts/qcom/msm8916-gplus-fl8005a.dts | 23 +++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts
> index cc81880f7c42..131e12ae510e 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts
> @@ -21,6 +21,21 @@ chosen {
> stdout-path = "serial0";
> };
>
> + flash-led-controller {
> + compatible = "sgmicro,sgm3140";
> + enable-gpios = <&msmgpio 31 GPIO_ACTIVE_HIGH>;
> + flash-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>;
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&camera_flash_default>;
> +
> + flash_led: led {
> + function = LED_FUNCTION_FLASH;
> + color = <LED_COLOR_ID_WHITE>;
> + flash-max-timeout-us = <250000>;
> + };
> + };
> +
> gpio-keys {
> compatible = "gpio-keys";
>
> @@ -239,6 +254,14 @@ l18 {
> };
>
> &msmgpio {
> + camera_flash_default: camera-flash-default-state {
> + pins = "gpio31", "gpio32";
> + function = "gpio";
> +
> + drive-strength = <2>;
> + bias-disable;
> + };
> +
> gpio_keys_default: gpio-keys-default-state {
> pins = "gpio107";
> function = "gpio";
Powered by blists - more mailing lists