Commit 4a8b0346 authored by Weiqing Kong's avatar Weiqing Kong Committed by Matthias Brugger

arm: dts: mt2701: enable display pwm backlight

This patch adds board related config for MT2701 pwm backlight.
Signed-off-by: default avatarWeiqing Kong <weiqing.kong@mediatek.com>
Signed-off-by: default avatarErin Lo <erin.lo@mediatek.com>
Signed-off-by: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 84f587ab
...@@ -56,12 +56,29 @@ sound:sound { ...@@ -56,12 +56,29 @@ sound:sound {
bt_sco_codec:bt_sco_codec { bt_sco_codec:bt_sco_codec {
compatible = "linux,bt-sco"; compatible = "linux,bt-sco";
}; };
backlight_lcd: backlight_lcd {
compatible = "pwm-backlight";
pwms = <&bls 0 100000>;
brightness-levels = <
0 16 32 48 64 80 96 112
128 144 160 176 192 208 224 240
255
>;
default-brightness-level = <9>;
};
}; };
&auxadc { &auxadc {
status = "okay"; status = "okay";
}; };
&bls {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pwm_bls_gpio>;
};
&i2c0 { &i2c0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>; pinctrl-0 = <&i2c0_pins_a>;
...@@ -111,6 +128,12 @@ pins1 { ...@@ -111,6 +128,12 @@ pins1 {
}; };
}; };
pwm_bls_gpio: pwm_bls_gpio {
pins_cmd_dat {
pinmux = <MT2701_PIN_208_AUD_EXT_CK1__FUNC_DISP_PWM>;
};
};
spi_pins_a: spi0@0 { spi_pins_a: spi0@0 {
pins_spi { pins_spi {
pinmux = <MT2701_PIN_53_SPI0_CSN__FUNC_SPI0_CS>, pinmux = <MT2701_PIN_53_SPI0_CSN__FUNC_SPI0_CS>,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment