0014-ARM-dts-n950-add-display-support.patch (3049B)
1 From e2e3c533158df1e24c6172a2d5f83d7a4b96db16 Mon Sep 17 00:00:00 2001 2 From: Sebastian Reichel <sebastian.reichel@collabora.co.uk> 3 Date: Mon, 24 Jul 2017 19:33:11 +0200 4 Subject: [PATCH 14/17] ARM: dts: n950: add display support 5 6 Add basic panel support for the Nokia N950. It must be tweaked a 7 little bit later, since the panel was built into the device 8 upside-down. Also the first 5 and the last 5 pixels are covered 9 by plastic. 10 11 Signed-off-By: Sebastian Reichel <sebastian.reichel@collabora.co.uk> 12 Acked-by: Pavel Machek <pavel@ucw.cz> 13 --- 14 arch/arm/boot/dts/omap3-n950.dts | 88 ++++++++++++++++++++++++++++++++++++++++ 15 1 file changed, 88 insertions(+) 16 17 diff --git a/arch/arm/boot/dts/omap3-n950.dts b/arch/arm/boot/dts/omap3-n950.dts 18 index 646601a..ef70aae 100644 19 --- a/arch/arm/boot/dts/omap3-n950.dts 20 +++ b/arch/arm/boot/dts/omap3-n950.dts 21 @@ -51,6 +51,26 @@ 22 }; 23 }; 24 25 +&omap3_pmx_core { 26 + dsi_pins: pinmux_dsi_pins { 27 + pinctrl-single,pins = < 28 + OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE1) /* dsi_dx0 - data0+ */ 29 + OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE1) /* dsi_dy0 - data0- */ 30 + OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE1) /* dsi_dx1 - clk+ */ 31 + OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE1) /* dsi_dy1 - clk- */ 32 + OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE1) /* dsi_dx2 - data1+ */ 33 + OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE1) /* dsi_dy2 - data1- */ 34 + >; 35 + }; 36 + 37 + display_pins: pinmux_display_pins { 38 + pinctrl-single,pins = < 39 + OMAP3_CORE1_IOPAD(0x20ca, PIN_INPUT | MUX_MODE4) /* gpio 62 - display te */ 40 + OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE4) /* gpio 87 - display reset */ 41 + >; 42 + }; 43 +}; 44 + 45 &i2c2 { 46 smia_1: camera@10 { 47 compatible = "nokia,smia"; 48 @@ -185,3 +205,71 @@ 49 st,max-limit-y = <32>; 50 st,max-limit-z = <32>; 51 }; 52 + 53 +&dss { 54 + status = "ok"; 55 + 56 + vdda_video-supply = <&vdac>; 57 +}; 58 + 59 +&dsi { 60 + status = "ok"; 61 + 62 + pinctrl-names = "default"; 63 + pinctrl-0 = <&dsi_pins>; 64 + 65 + vdd-supply = <&vpll2>; 66 + 67 + port { 68 + dsi_out_ep: endpoint { 69 + remote-endpoint = <&lcd0_in>; 70 + lanes = <2 3 0 1 4 5>; 71 + }; 72 + }; 73 + 74 + lcd0: display { 75 + compatible = "nokia,himalaya", "panel-dsi-cm"; 76 + label = "lcd0"; 77 + 78 + pinctrl-names = "default"; 79 + pinctrl-0 = <&display_pins>; 80 + 81 + vpnl-supply = <&vmmc2>; 82 + vddi-supply = <&vio>; 83 + 84 + reset-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */ 85 + te-gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>; /* 62 */ 86 + 87 + width-mm = <49>; /* 48.960 mm */ 88 + height-mm = <88>; /* 88.128 mm */ 89 + 90 + /* TODO: 91 + * - panel is upside-down 92 + * - top + bottom 5px are not visible 93 + */ 94 + panel-timing { 95 + clock-frequency = <0>; /* Calculated by dsi */ 96 + 97 + hback-porch = <2>; 98 + hactive = <480>; 99 + hfront-porch = <0>; 100 + hsync-len = <2>; 101 + 102 + vback-porch = <1>; 103 + vactive = <864>; 104 + vfront-porch = <0>; 105 + vsync-len = <1>; 106 + 107 + hsync-active = <0>; 108 + vsync-active = <0>; 109 + de-active = <1>; 110 + pixelclk-active = <1>; 111 + }; 112 + 113 + port { 114 + lcd0_in: endpoint { 115 + remote-endpoint = <&dsi_out_ep>; 116 + }; 117 + }; 118 + }; 119 +}; 120 -- 121 2.1.4 122