colibri_t20: fix display configuration

Without this patch the following error will be shown:

stdio_add_devices: Video device failed (ret=-22)

As commit ec5507707a (video: tegra: Move
to using simple-panel and pwm-backlight) states the Colibri T20 needs
updating too which this patch finally attempts doing.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
Marcel Ziswiler 2016-09-28 11:24:08 +02:00 committed by Tom Warren
parent dc06f63f2a
commit 28f224a52f

View File

@ -21,12 +21,24 @@
}; };
host1x@50000000 { host1x@50000000 {
status = "okay";
dc@54200000 { dc@54200000 {
status = "okay";
rgb { rgb {
status = "okay"; status = "okay";
nvidia,panel = <&lcd_panel>; nvidia,panel = <&lcd_panel>;
display-timings {
timing@0 {
/* VESA VGA */
clock-frequency = <25175000>;
hactive = <640>;
vactive = <480>;
hback-porch = <48>;
hfront-porch = <16>;
hsync-len = <96>;
vback-porch = <31>;
vfront-porch = <11>;
vsync-len = <2>;
};
};
}; };
}; };
}; };
@ -61,6 +73,10 @@
}; };
}; };
pwm@7000a000 {
status = "okay";
};
/* /*
* GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier
* board) * board)
@ -92,6 +108,18 @@
cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>;
}; };
backlight: backlight {
compatible = "pwm-backlight";
brightness-levels = <255 128 64 32 16 8 4 0>;
default-brightness-level = <6>;
/* BL_ON */
enable-gpios = <&gpio TEGRA_GPIO(T, 4) GPIO_ACTIVE_HIGH>;
power-supply = <&reg_3v3>;
/* PWM<A> */
pwms = <&pwm 0 5000000>;
};
clocks { clocks {
compatible = "simple-bus"; compatible = "simple-bus";
#address-cells = <1>; #address-cells = <1>;
@ -105,25 +133,28 @@
}; };
}; };
pwm: pwm@7000a000 { lcd_panel: panel {
status = "okay"; /*
* edt,et057090dhu: EDT 5.7" LCD TFT
* edt,et070080dh6: EDT 7.0" LCD TFT
*/
compatible = "edt,et057090dhu", "simple-panel";
backlight = <&backlight>;
}; };
lcd_panel: panel { regulators {
clock = <25175000>; compatible = "simple-bus";
xres = <640>; #address-cells = <1>;
yres = <480>; #size-cells = <0>;
left-margin = <48>; /* horizontal back porch */
right-margin = <16>; /* horizontal front porch */ reg_3v3: regulator@0 {
hsync-len = <96>; compatible = "regulator-fixed";
lower-margin = <11>; /* vertical front porch */ reg = <0>;
upper-margin = <31>; /* vertical back porch */ regulator-name = "+V3.3";
vsync-len = <2>; regulator-min-microvolt = <3300000>;
hsync-active-high; regulator-max-microvolt = <3300000>;
vsync-active-high; regulator-always-on;
nvidia,bits-per-pixel = <16>; };
nvidia,pwm = <&pwm 0 0>;
nvidia,backlight-enable-gpios = <&gpio TEGRA_GPIO(T, 4) GPIO_ACTIVE_HIGH>;
nvidia,panel-timings = <0 0 0 0>;
}; };
}; };