arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

0004-ARM-dts-n9-add-display-support.patch (2975B)


      1 From 3390d6d1009dc6cdd166638be4af242e4469bcd1 Mon Sep 17 00:00:00 2001
      2 From: =?UTF-8?q?Filip=20Matijevi=C4=87?= <filip.matijevic.pz@gmail.com>
      3 Date: Sat, 28 Oct 2017 14:32:54 +0200
      4 Subject: [PATCH 04/11] ARM: dts: n9: add display support
      5 MIME-Version: 1.0
      6 Content-Type: text/plain; charset=UTF-8
      7 Content-Transfer-Encoding: 8bit
      8 
      9 Add basic panel support for the Nokia N9.
     10 
     11 Signed-off-by: Filip Matijević <filip.matijevic.pz@gmail.com>
     12 ---
     13  arch/arm/boot/dts/omap3-n9.dts | 91 ++++++++++++++++++++++++++++++++++++++++++
     14  1 file changed, 91 insertions(+)
     15 
     16 diff --git a/arch/arm/boot/dts/omap3-n9.dts b/arch/arm/boot/dts/omap3-n9.dts
     17 index e44d93fc644c..613ada9a982a 100644
     18 --- a/arch/arm/boot/dts/omap3-n9.dts
     19 +++ b/arch/arm/boot/dts/omap3-n9.dts
     20 @@ -18,6 +18,26 @@
     21  	compatible = "nokia,omap3-n9", "ti,omap36xx", "ti,omap3";
     22  };
     23  
     24 +&omap3_pmx_core {
     25 +	dsi_pins: pinmux_dsi_pins {
     26 +		pinctrl-single,pins = <
     27 +			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE1) /* dsi_dx0 - data0+ */
     28 +			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE1) /* dsi_dy0 - data0- */
     29 +			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE1) /* dsi_dx1 - clk+   */
     30 +			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE1) /* dsi_dy1 - clk-   */
     31 +			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE1) /* dsi_dx2 - data1+ */
     32 +			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE1) /* dsi_dy2 - data1- */
     33 +		>;
     34 +	};
     35 +
     36 +	display_pins: pinmux_display_pins {
     37 +		pinctrl-single,pins = <
     38 +			OMAP3_CORE1_IOPAD(0x20ca, PIN_INPUT | MUX_MODE4) /* gpio 62 - display te */
     39 +			OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE4) /* gpio 87 - display reset */
     40 +		>;
     41 +	};
     42 +};
     43 +
     44  &i2c2 {
     45  	smia_1: camera@10 {
     46  		compatible = "nokia,smia";
     47 @@ -79,3 +99,74 @@
     48  			 MATRIX_KEY(7, 8, KEY_VOLUMEDOWN)
     49  			 >;
     50  };
     51 +
     52 +&dss {
     53 +	status = "ok";
     54 +
     55 +	vdda_video-supply = <&vdac>;
     56 +};
     57 +
     58 +&dss {
     59 +	status = "ok";
     60 +
     61 +	vdda_video-supply = <&vdac>;
     62 +};
     63 +
     64 +&dsi {
     65 +	status = "ok";
     66 +
     67 +	pinctrl-names = "default";
     68 +	pinctrl-0 = <&dsi_pins>;
     69 +
     70 +	vdd-supply = <&vpll2>;
     71 +
     72 +	port {
     73 +		dsi_out_ep: endpoint {
     74 +			remote-endpoint = <&lcd0_in>;
     75 +			lanes = <2 3 4 5 0 1>;
     76 +		};
     77 +	};
     78 +
     79 +	lcd0: display {
     80 +		compatible = "nokia,pyrenees", "panel-dsi-cm";
     81 +		label = "lcd0";
     82 +
     83 +		pinctrl-names = "default";
     84 +		pinctrl-0 = <&display_pins>;
     85 +
     86 +		vpnl-supply = <&vmmc2>;
     87 +		vddi-supply = <&vio>;
     88 +
     89 +		reset-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;	/* 87 */
     90 +		te-gpios = <&gpio2 30 GPIO_ACTIVE_HIGH>;	/* 62 */
     91 +
     92 +		width-mm = <48>; /* 48.240 mm */
     93 +		height-mm = <87>; /* 86.832 mm */
     94 +
     95 +		panel-timing {
     96 +			clock-frequency = <0>;          /* Calculated by dsi */
     97 +
     98 +			hback-porch = <2>;
     99 +			hactive = <480>;
    100 +			hfront-porch = <0>;
    101 +			hsync-len = <2>;
    102 +
    103 +			vback-porch = <1>;
    104 +			vactive = <864>;
    105 +			vfront-porch = <0>;
    106 +			vsync-len = <1>;
    107 +
    108 +			hsync-active = <0>;
    109 +			vsync-active = <0>;
    110 +			de-active = <1>;
    111 +			pixelclk-active = <1>;
    112 +
    113 +		};
    114 +
    115 +		port {
    116 +			lcd0_in: endpoint {
    117 +				remote-endpoint = <&dsi_out_ep>;
    118 +			};
    119 +		};
    120 +	};
    121 +};
    122 -- 
    123 2.14.1
    124