summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/mt2701-evb.dts
diff options
context:
space:
mode:
authorWeiqing Kong <weiqing.kong@mediatek.com>2017-09-26 10:02:53 +0800
committerMatthias Brugger <matthias.bgg@gmail.com>2017-10-19 18:33:58 +0200
commit4a8b03466cdadf8af4322f5d86ad64ee2fc1f7d1 (patch)
treed43e58efa8703844599051462781d55a81e36bee /arch/arm/boot/dts/mt2701-evb.dts
parent84f587ab59daab99330c4a4b3cc6e7ebd05ee095 (diff)
downloadlwn-4a8b03466cdadf8af4322f5d86ad64ee2fc1f7d1.tar.gz
lwn-4a8b03466cdadf8af4322f5d86ad64ee2fc1f7d1.zip
arm: dts: mt2701: enable display pwm backlight
This patch adds board related config for MT2701 pwm backlight. Signed-off-by: Weiqing Kong <weiqing.kong@mediatek.com> Signed-off-by: Erin Lo <erin.lo@mediatek.com> Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'arch/arm/boot/dts/mt2701-evb.dts')
-rw-r--r--arch/arm/boot/dts/mt2701-evb.dts23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts
index f48497354221..63af4b13a36f 100644
--- a/arch/arm/boot/dts/mt2701-evb.dts
+++ b/arch/arm/boot/dts/mt2701-evb.dts
@@ -56,12 +56,29 @@
bt_sco_codec:bt_sco_codec {
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 {
status = "okay";
};
+&bls {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm_bls_gpio>;
+};
+
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
@@ -111,6 +128,12 @@
};
};
+ pwm_bls_gpio: pwm_bls_gpio {
+ pins_cmd_dat {
+ pinmux = <MT2701_PIN_208_AUD_EXT_CK1__FUNC_DISP_PWM>;
+ };
+ };
+
spi_pins_a: spi0@0 {
pins_spi {
pinmux = <MT2701_PIN_53_SPI0_CSN__FUNC_SPI0_CS>,