ARM: dts: qcom: apq8026-samsung-matisse-wifi: Add display backlight
Subsystems (2)
PATCH v2 1/1 ARM: dts: qcom: apq8026-samsung-matisse-wifi: Add display backlight
Uses ti,lp8556 backlight with clk-pwm.
---
This patch was part of the series
https://lore.kernel.org/linux-arm-msm/[email protected]/
which already had the other patches applied.
Changes in v2:
- Add empty line between subnodes
- Move pwm node to correct place
- Reorder pinctrl properties
--- .../dts/qcom-apq8026-samsung-matisse-wifi.dts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+)
arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts +61 -0
@@ -80,6 +80,55 @@ 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-0 = <&backlight_i2c_default_state>; + pinctrl-names = "default"; + + 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>; + }; + + rom-a1h { + rom-addr = /bits/ 8 <0xa1>; + rom-val = /bits/ 8 <0x6c>; + }; + + rom-a5h { + rom-addr = /bits/ 8 <0xa5>; + rom-val = /bits/ 8 <0x24>; + }; + }; + }; + + backlight_pwm: pwm { + compatible = "clk-pwm"; + #pwm-cells = <2>; + clocks = <&mmcc CAMSS_GP0_CLK>; + pinctrl-0 = <&backlight_pwm_default_state>; + pinctrl-names = "default"; + }; + reg_tsp_1p8v: regulator-tsp-1p8v { compatible = "regulator-fixed"; regulator-name = "tsp_1p8v";
@@ -418,6 +467,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";
Signature · 1 line
2.34.1
Quoted 4 lines · Matti Lehtimäki
Uses ti,lp8556 backlight with clk-pwm.
Signed-off-by Matti Lehtimäki <[email protected]>---
Konrad
Quoted 91 lines
This patch was part of the series
https://lore.kernel.org/linux-arm-msm/[email protected]/
which already had the other patches applied.Changes in v2:
- Add empty line between subnodes
- Move pwm node to correct place
- Reorder pinctrl properties--- .../dts/qcom-apq8026-samsung-matisse-wifi.dts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+)arch/arm/boot/dts/qcom-apq8026-samsung-matisse-wifi.dts +61
-0@@ -80,6 +80,55 @@ 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-0 = <&backlight_i2c_default_state>; + pinctrl-names = "default"; + + 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>; + }; + + rom-a1h { + rom-addr = /bits/ 8 <0xa1>; + rom-val = /bits/ 8 <0x6c>; + }; + + rom-a5h { + rom-addr = /bits/ 8 <0xa5>; + rom-val = /bits/ 8 <0x24>; + }; + }; + }; + + backlight_pwm: pwm { + compatible = "clk-pwm"; + #pwm-cells = <2>; + clocks = <&mmcc CAMSS_GP0_CLK>; + pinctrl-0 = <&backlight_pwm_default_state>; + pinctrl-names = "default"; + }; + reg_tsp_1p8v: regulator-tsp-1p8v { compatible = "regulator-fixed"; regulator-name = "tsp_1p8v";@@ -418,6 +467,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";
Bjorn Andersson
AppliedQuoted 3 lines · Matti Lehtimäki
Uses ti,lp8556 backlight with clk-pwm.
Applied, thanks!
[1/1] ARM: dts: qcom: apq8026-samsung-matisse-wifi: Add display backlight
commit: 5fec7cb2e3e1d469312b2870e5545a5468a10f6b
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>