mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-03 23:56:43 -04:00
arm64: dts: mediatek: cherry: Add configuration for display backlight
Configure the hardware PWM for the integrated display's backlight: all Cherry devices enable the backlight with GPIO82 and manage the PWM via MediaTek disp-pwm on GPIO97. Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Tested-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://lore.kernel.org/r/20230223145426.193590-5-angelogioacchino.delregno@collabora.com Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
committed by
Matthias Brugger
parent
b86b946446
commit
ee508454fd
@@ -22,6 +22,16 @@ aliases {
|
||||
serial0 = &uart0;
|
||||
};
|
||||
|
||||
backlight_lcd0: backlight-lcd0 {
|
||||
compatible = "pwm-backlight";
|
||||
brightness-levels = <0 1023>;
|
||||
default-brightness-level = <576>;
|
||||
enable-gpios = <&pio 82 GPIO_ACTIVE_HIGH>;
|
||||
num-interpolated-steps = <1023>;
|
||||
pwms = <&disp_pwm0 0 500000>;
|
||||
power-supply = <&ppvar_sys>;
|
||||
};
|
||||
|
||||
chosen {
|
||||
stdout-path = "serial0:115200n8";
|
||||
};
|
||||
@@ -212,6 +222,13 @@ edp_out: endpoint {
|
||||
};
|
||||
};
|
||||
|
||||
&disp_pwm0 {
|
||||
status = "okay";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&disp_pwm0_pin_default>;
|
||||
};
|
||||
|
||||
&dp_tx {
|
||||
status = "okay";
|
||||
|
||||
@@ -653,6 +670,13 @@ pins-cmd-dat {
|
||||
};
|
||||
};
|
||||
|
||||
disp_pwm0_pin_default: disp-pwm0-default-pins {
|
||||
pins-disp-pwm {
|
||||
pinmux = <PINMUX_GPIO82__FUNC_GPIO82>,
|
||||
<PINMUX_GPIO97__FUNC_DISP_PWM0>;
|
||||
};
|
||||
};
|
||||
|
||||
dptx_pin: dptx-default-pins {
|
||||
pins-cmd-dat {
|
||||
pinmux = <PINMUX_GPIO18__FUNC_DP_TX_HPD>;
|
||||
|
||||
Reference in New Issue
Block a user