ARM: tegra: enable LCD panel on Seaboard
Subsystems (2)
PATCH 1/2 ARM: tegra: enable LCD panel on Seaboard
From: Stephen Warren <[email protected]>
Seaboard uses a CLAA101WA01A LCD panel. Enable the relevant display controller, backlight, and regulators.
--- arch/arm/boot/dts/tegra20-seaboard.dts | 55 +++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-)
arch/arm/boot/dts/tegra20-seaboard.dts +54 -1
@@ -17,6 +17,14 @@ }; host1x at 50000000 { + dc at 54200000 { + rgb { + status = "okay"; + + nvidia,panel = <&panel>; + }; + }; + hdmi at 54280000 { status = "okay";
@@ -312,6 +320,10 @@ status = "okay"; }; + pwm: pwm at 7000a000 { + status = "okay"; + }; + i2c at 7000c000 { status = "okay"; clock-frequency = <400000>;
@@ -369,7 +381,7 @@ #size-cells = <0>; }; - i2c at 1 { + lvds_ddc: i2c at 1 { reg = <1>; #address-cells = <1>; #size-cells = <0>;
@@ -762,6 +774,17 @@ non-removable; }; + backlight: backlight { + compatible = "pwm-backlight"; + + enable-gpios = <&gpio TEGRA_GPIO(D, 4) GPIO_ACTIVE_HIGH>; + power-supply = <&vdd_bl_reg>; + pwms = <&pwm 0 5000000>; + + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + }; + clocks { compatible = "simple-bus"; #address-cells = <1>;
@@ -795,6 +818,16 @@ }; }; + panel: panel { + compatible = "chungwa,claa101wa01a", "simple-panel"; + + power-supply = <&vdd_pnl_reg>; + enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>; + + backlight = <&backlight>; + ddc-i2c-bus = <&lvds_ddc>; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>;
@@ -839,6 +872,26 @@ regulator-always-on; regulator-boot-on; }; + + vdd_pnl_reg: regulator at 4 { + compatible = "regulator-fixed"; + reg = <4>; + regulator-name = "vdd_pnl"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vdd_bl_reg: regulator at 5 { + compatible = "regulator-fixed"; + reg = <5>; + regulator-name = "vdd_bl"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + gpio = <&gpio TEGRA_GPIO(W, 0) GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; sound {
Signature · 1 line
1.8.1.5
PATCH 2/2 ARM: tegra: enable LCD panel on Ventana
From: Stephen Warren <[email protected]>
Ventana uses a CLAA101WA01A LCD panel. Enable the relevant display controller, backlight, and regulators.
--- arch/arm/boot/dts/tegra20-ventana.dts | 39 ++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-)
arch/arm/boot/dts/tegra20-ventana.dts +36 -3
@@ -17,6 +17,14 @@ }; host1x at 50000000 { + dc at 54200000 { + rgb { + status = "okay"; + + nvidia,panel = <&panel>; + }; + }; + hdmi at 54280000 { status = "okay";
@@ -309,6 +317,10 @@ status = "okay"; }; + pwm: pwm at 7000a000 { + status = "okay"; + }; + i2c at 7000c000 { status = "okay"; clock-frequency = <400000>;
@@ -359,7 +371,7 @@ #size-cells = <0>; }; - i2c at 1 { + lvds_ddc: i2c at 1 { reg = <1>; #address-cells = <1>; #size-cells = <0>;
@@ -557,6 +569,17 @@ non-removable; }; + backlight: backlight { + compatible = "pwm-backlight"; + + enable-gpios = <&gpio TEGRA_GPIO(D, 4) GPIO_ACTIVE_HIGH>; + power-supply = <&vdd_bl_reg>; + pwms = <&pwm 0 5000000>; + + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <6>; + }; + clocks { compatible = "simple-bus"; #address-cells = <1>;
@@ -581,6 +604,16 @@ }; }; + panel: panel { + compatible = "chungwa,claa101wa01a", "simple-panel"; + + power-supply = <&vdd_pnl_reg>; + enable-gpios = <&gpio TEGRA_GPIO(B, 2) GPIO_ACTIVE_HIGH>; + + backlight = <&backlight>; + ddc-i2c-bus = <&lvds_ddc>; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>;
@@ -614,7 +647,7 @@ enable-active-high; }; - regulator at 3 { + vdd_pnl_reg: regulator at 3 { compatible = "regulator-fixed"; reg = <3>; regulator-name = "vdd_pnl";
@@ -624,7 +657,7 @@ enable-active-high; }; - regulator at 4 { + vdd_bl_reg: regulator at 4 { compatible = "regulator-fixed"; reg = <4>; regulator-name = "vdd_bl";
Signature · 1 line
1.8.1.5
PATCH 2/2 ARM: tegra: enable LCD panel on Ventana
On Tue, Jan 07, 2014 at 04:47:17PM -0700, Stephen Warren wrote:
[...]
arch/arm/boot/dts/tegra20-ventana.dts line 608
Quoted 6 lines
arch/arm/boot/dts/tegra20-ventana.dts +2
-0@@ -581,6 +604,16 @@ }; }; + panel: panel { + compatible = "chungwa,claa101wa01a", "simple-panel";
This also needs "chunghwa" rather than "chungwa". With that fixed:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140108/606b9cf6/attachment.sig>
PATCH 1/2 ARM: tegra: enable LCD panel on Seaboard
In reply to Stephen WarrenQuoted 9 lines · Stephen Warren
From: Stephen Warren <[email protected]>
Seaboard uses a CLAA101WA01A LCD panel. Enable the relevant display controller, backlight, and regulators.
Signed-off-by Stephen Warren <[email protected]>--- arch/arm/boot/dts/tegra20-seaboard.dts | 55 +++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-)
I think this patch needs s/chungwa/chunghwa/, but other than that it looks good to me:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140108/5822c78c/attachment-0001.sig>