From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: "Matti Lehtimäki" <matti.lehtimaki@gmail.com>,
linux-arm-msm@vger.kernel.org
Cc: ~postmarketos/upstreaming@lists.sr.ht,
phone-devel@vger.kernel.org, Andy Gross <agross@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/3] ARM: dts: qcom: apq8026-samsung-matisse-wifi: Add display backlight
Date: Sat, 7 Jan 2023 11:41:12 +0100 [thread overview]
Message-ID: <e82c70e1-5541-82c3-9c22-37ce1a43ee8c@linaro.org> (raw)
In-Reply-To: <20230106114403.275865-4-matti.lehtimaki@gmail.com>
On 6.01.2023 12:44, Matti Lehtimäki wrote:
> Uses ti,lp8556 backlight with clk-pwm.
>
> Signed-off-by: Matti Lehtimäki <matti.lehtimaki@gmail.com>
> ---
> .../dts/qcom-apq8026-samsung-matisse-wifi.dts | 59 +++++++++++++++++++
> 1 file changed, 59 insertions(+)
>
> diff --git a/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts
> index 15b9590ba07b..848cfda64e5a 100644
> --- a/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts
> +++ b/arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts
> @@ -23,6 +23,14 @@ aliases {
> display0 = &framebuffer0;
> };
>
> + backlight_pwm: pwm {
This should be sorted alphabetically.
> + compatible = "clk-pwm";
> + #pwm-cells = <2>;
> + clocks = <&mmcc CAMSS_GP0_CLK>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&backlight_pwm_default_state>;
> + };
> +
> chosen {
> #address-cells = <1>;
> #size-cells = <1>;
> @@ -80,6 +88,45 @@ key-volume-up {
> };
> };
>
> + i2c-backlight {
> + compatible = "i2c-gpio";
> + sda-gpios = <&tlmm 20 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
> + scl-gpios = <&tlmm 21 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&backlight_i2c_default_state>;
Please reorder these two properties.
> +
> + i2c-gpio,delay-us = <4>;
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + backlight@2c {
> + compatible = "ti,lp8556";
> + reg = <0x2c>;
> +
> + dev-ctrl = /bits/ 8 <0x80>;
> + init-brt = /bits/ 8 <0x3f>;
> + pwm-period = <100000>;
> +
> + pwms = <&backlight_pwm 0 100000>;
> + pwm-names = "lp8556";
> +
> + rom-a0h {
> + rom-addr = /bits/ 8 <0xa0>;
> + rom-val = /bits/ 8 <0x44>;
> + };
Please add a newline between each subnode.
Otherwise I think this looks good..
Konrad
> + rom-a1h {
> + rom-addr = /bits/ 8 <0xa1>;
> + rom-val = /bits/ 8 <0x6c>;
> + };
> + rom-a5h {
> + rom-addr = /bits/ 8 <0xa5>;
> + rom-val = /bits/ 8 <0x24>;
> + };
> + };
> + };
> +
> reg_tsp_1p8v: regulator-tsp-1p8v {
> compatible = "regulator-fixed";
> regulator-name = "tsp_1p8v";
> @@ -418,6 +465,18 @@ accel_int_default_state: accel-int-default-state {
> bias-disable;
> };
>
> + backlight_i2c_default_state: backlight-i2c-default-state {
> + pins = "gpio20", "gpio21";
> + function = "gpio";
> + drive-strength = <2>;
> + bias-disable;
> + };
> +
> + backlight_pwm_default_state: backlight-pwm-default-state {
> + pins = "gpio33";
> + function = "gp0_clk";
> + };
> +
> muic_int_default_state: muic-int-default-state {
> pins = "gpio67";
> function = "gpio";
prev parent reply other threads:[~2023-01-07 10:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-06 11:44 [PATCH 0/3] General Purpose clocks and matisse-wifi backlight Matti Lehtimäki
2023-01-06 11:44 ` [PATCH 1/3] dt-bindings: pinctrl: msm8226: Add General Purpose clocks Matti Lehtimäki
2023-01-06 12:32 ` Krzysztof Kozlowski
2023-01-06 12:41 ` Matti Lehtimäki
2023-01-06 13:00 ` Krzysztof Kozlowski
2023-01-06 13:00 ` Krzysztof Kozlowski
2023-01-10 7:57 ` Linus Walleij
2023-01-06 11:44 ` [PATCH 3/3] ARM: dts: qcom: apq8026-samsung-matisse-wifi: Add display backlight Matti Lehtimäki
2023-01-07 10:41 ` Konrad Dybcio [this message]
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=e82c70e1-5541-82c3-9c22-37ce1a43ee8c@linaro.org \
--to=konrad.dybcio@linaro.org \
--cc=agross@kernel.org \
--cc=andersson@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matti.lehtimaki@gmail.com \
--cc=phone-devel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).