arm64: tegra: Add DSI panel on Jetson TX1
authorThierry Reding <treding@nvidia.com>
Mon, 23 Nov 2015 15:21:43 +0000 (16:21 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 14 Jul 2016 14:20:20 +0000 (16:20 +0200)
Some variants of the Jetson TX1 ship with a 8.0" WUXGA TFT LCD panel
connected via four DSI lanes.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi

index 683b339a980cf6a17159b20359404c96fcfb0993..983775e637a45578605dbc28435cf522485dc202 100644 (file)
@@ -6,4 +6,49 @@
 / {
        model = "NVIDIA Jetson TX1 Developer Kit";
        compatible = "nvidia,p2371-2180", "nvidia,tegra210";
+
+       host1x@50000000 {
+               dsi@54300000 {
+                       status = "okay";
+
+                       avdd-dsi-csi-supply = <&vdd_dsi_csi>;
+
+                       panel@0 {
+                               compatible = "auo,b080uan01";
+                               reg = <0>;
+
+                               enable-gpios = <&gpio TEGRA_GPIO(V, 2)
+                                               GPIO_ACTIVE_HIGH>;
+                               power-supply = <&vdd_5v0_io>;
+                               backlight = <&backlight>;
+                       };
+               };
+       };
+
+       i2c@7000c400 {
+               backlight: backlight@2c {
+                       compatible = "ti,lp8557";
+                       reg = <0x2c>;
+
+                       dev-ctrl = /bits/ 8 <0x80>;
+                       init-brt = /bits/ 8 <0xff>;
+
+                       pwm-period = <29334>;
+
+                       pwms = <&pwm 0 29334>;
+                       pwm-names = "lp8557";
+
+                       /* 3 LED string */
+                       rom_14h {
+                               rom-addr = /bits/ 8 <0x14>;
+                               rom-val = /bits/ 8 <0x87>;
+                       };
+
+                       /* boost frequency 1 MHz */
+                       rom_13h {
+                               rom-addr = /bits/ 8 <0x13>;
+                               rom-val = /bits/ 8 <0x01>;
+                       };
+               };
+       };
 };
index b28aff5e104d3b534654b7d8bc0d33c4bc8dba83..78a16a57fec7d4e4f5d1ef2b42c374b0d02ce41b 100644 (file)
                };
        };
 
+       pwm@7000a000 {
+               status = "okay";
+       };
+
+       i2c@7000c400 {
+               status = "okay";
+               clock-frequency = <100000>;
+
+               exp1: gpio@74 {
+                       compatible = "ti,tca9539";
+                       reg = <0x74>;
+
+                       #gpio-cells = <2>;
+                       gpio-controller;
+               };
+       };
+
        /* MMC/SD */
        sdhci@700b0000 {
                status = "okay";
                        regulator-enable-ramp-delay = <472>;
                        regulator-disable-ramp-delay = <4880>;
                };
+
+               vdd_dsi_csi: regulator@5 {
+                       compatible = "regulator-fixed";
+                       reg = <5>;
+                       regulator-name = "AVDD_DSI_CSI_1V2";
+                       regulator-min-microvolt = <1200000>;
+                       regulator-max-microvolt = <1200000>;
+                       vin-supply = <&vdd_sys_1v2>;
+               };
+
+               vdd_3v3_dis: regulator@6 {
+                       compatible = "regulator-fixed";
+                       reg = <6>;
+                       regulator-name = "VDD_DIS_3V3_LCD";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-always-on;
+                       gpio = <&exp1 3 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+                       vin-supply = <&vdd_3v3_sys>;
+               };
+
+               vdd_1v8_dis: regulator@7 {
+                       compatible = "regulator-fixed";
+                       reg = <7>;
+                       regulator-name = "VDD_LCD_1V8_DIS";
+                       regulator-min-microvolt = <1800000>;
+                       regulator-max-microvolt = <1800000>;
+                       regulator-always-on;
+                       gpio = <&exp1 14 GPIO_ACTIVE_HIGH>;
+                       enable-active-high;
+                       vin-supply = <&vdd_1v8>;
+               };
        };
 
        gpio-keys {