Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1700681 > unrolled thread
| Started by | Erin Lo <erin.lo@mediatek.com> |
|---|---|
| First post | 2017-08-01 09:10 +0200 |
| Last post | 2017-08-01 09:10 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 3/5] arm: dts: mt2701: Add display bls related nodes for MT2701 Erin Lo <erin.lo@mediatek.com> - 2017-08-01 09:10 +0200
| From | Erin Lo <erin.lo@mediatek.com> |
|---|---|
| Date | 2017-08-01 09:10 +0200 |
| Subject | [PATCH 3/5] arm: dts: mt2701: Add display bls related nodes for MT2701 |
| Message-ID | <u9ztv-9s-7@gated-at.bofh.it> |
From: Weiqing Kong <weiqing.kong@mediatek.com>
This patch adds board related config for backlight
Signed-off-by: Weiqing Kong <weiqing.kong@mediatek.com>
Signed-off-by: Erin Lo <erin.lo@mediatek.com>
---
arch/arm/boot/dts/mt2701-evb.dts | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts
index f484973..b96e34d 100644
--- a/arch/arm/boot/dts/mt2701-evb.dts
+++ b/arch/arm/boot/dts/mt2701-evb.dts
@@ -23,6 +23,19 @@
reg = <0 0x80000000 0 0x40000000>;
};
+ 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>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm_bls_gpio>;
+ };
+
sound:sound {
compatible = "mediatek,mt2701-cs42448-machine";
mediatek,platform = <&afe>;
@@ -62,6 +75,10 @@
status = "okay";
};
+&bls {
+ status = "okay";
+};
+
&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins_a>;
@@ -86,6 +103,10 @@
};
};
+&mmsys {
+ status = "okay";
+};
+
&pio {
i2c0_pins_a: i2c0@0 {
pins1 {
@@ -111,6 +132,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>,
--
1.9.1
Back to top | Article view | linux.kernel
csiph-web