Skip to content

Commit 35f2d3f

Browse files
AngeloGioacchino Del Regnombgg
authored andcommitted
arm64: dts: mediatek: mt6795-xperia-m5: Add display backlight support
Add the relevant nodes for display backlight on Sony Xperia M5: this needs both the SoC PWM IP and MT6332 PMIC LED strings. Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230721082822.680010-3-angelogioacchino.delregno@collabora.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent bdfae71 commit 35f2d3f

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,23 @@
2222
serial1 = &uart1;
2323
};
2424

25+
backlight_lcd0: backlight {
26+
compatible = "led-backlight";
27+
leds = <&disp_led_pwm>, <&pmic_bl_led>;
28+
29+
default-brightness-level = <300>;
30+
};
31+
32+
led-controller-display {
33+
compatible = "pwm-leds";
34+
35+
disp_led_pwm: led-0 {
36+
label = "backlight-pwm";
37+
pwms = <&pwm0 0 500000>;
38+
max-brightness = <1024>;
39+
};
40+
};
41+
2542
memory@40000000 {
2643
device_type = "memory";
2744
reg = <0 0x40000000 0 0x1e800000>;
@@ -338,6 +355,21 @@
338355
* an interrupt on the companion, so we use the MT6332 IRQ GPIO.
339356
*/
340357
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>;
358+
359+
mt6332-led {
360+
compatible = "mediatek,mt6332-led";
361+
#address-cells = <1>;
362+
#size-cells = <0>;
363+
364+
pmic_bl_led: led@0 {
365+
reg = <0>;
366+
label = "backlight-pmic";
367+
};
368+
};
369+
};
370+
371+
&pwm0 {
372+
status = "okay";
341373
};
342374

343375
&uart0 {

0 commit comments

Comments
 (0)