Advertisement
Guest User

udoo touchscreen dts

a guest
May 29th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.35 KB | None | 0 0
  1.     reg_lcd0_pwr: regulator@1 {
  2.       compatible = "regulator-fixed";
  3.       regulator-name = "lcd0 panel";
  4.       regulator-min-microvolt = <3300000>;
  5.       regulator-max-microvolt = <3300000>;
  6.       gpio = <&gpio1 2 0>;
  7.       enable-active-high;
  8.       regulator-boot-on;
  9.       regulator-always-on;
  10.     };
  11.  
  12.     reg_lcd0_backlight: regulator@2 {
  13.       compatible = "regulator-fixed";
  14.       regulator-name = "lcd0 backlight";
  15.       regulator-min-microvolt = <3300000>;
  16.       regulator-max-microvolt = <3300000>;
  17.       gpio = <&gpio1 4 0>;
  18.       enable-active-high;
  19.       regulator-boot-on;
  20.       regulator-always-on;
  21.     };
  22.  
  23. &ldb {
  24.   /* from kernel_unico_master/arch/arm/mach-mx6/board-mx6_seco_UDOO.c */
  25.   ipu_id = <1>;
  26.   disp_id = <0>;
  27.   ext_ref = <1>;
  28.   mode = "sep0";
  29.   sec_ipu_id = <1>;
  30.   sec_disp_id = <1>;
  31.   status = "okay";
  32.  
  33.   lvds0: lvds-channel@0 {
  34.     fsl,data-mapping = "spwg";
  35.     fsl,data-width = <18>;
  36.     status = "okay";
  37.  
  38.     display-timings {
  39.       native-mode = <&timing0>;
  40.       timing0: 800x480 {  /* 60 Hz */
  41.         /* from u-boot-unico/board/udoo/udoo.c */
  42.         /* Rif. 800x480 Panel UMSH-8596MD-20T  */
  43.         clock-frequency = <65000000>;
  44.         hactive = <800>;
  45.         vactive = <480>;
  46.         hback-porch = <220>;
  47.         hfront-porch = <40>;
  48.         vback-porch = <21>;
  49.         vfront-porch = <7>;
  50.         hsync-len = <60>;
  51.         vsync-len = <10>;
  52.         de-active = <0>;
  53.         pixelclk-active = <1>;
  54.         interlaced = <0>;
  55.       };
  56.  
  57.       timing1: 1024x768 { /* 60 Hz */
  58.         /* from u-boot-unico/board/udoo/udoo.c                */
  59.         /* Rif. Panel 1024x768 - UMSH-8596MD-15T - G156XW01V0 */
  60.         clock-frequency = <65000000>;
  61.         hactive = <1024>;
  62.         vactive = <768>;
  63.         hback-porch = <220>;
  64.         hfront-porch = <40>;
  65.         vback-porch = <21>;
  66.         vfront-porch = <7>;
  67.         hsync-len = <60>;
  68.         vsync-len = <10>;
  69.         de-active = <0>;
  70.         pixelclk-active = <1>;
  71.         interlaced = <0>;
  72.       };
  73.  
  74.       timing2: 1366x768 { /* 59 Hz */
  75.         /* from u-boot-unico/board/udoo/udoo.c   */
  76.         /* Rif. 1366x768 Panel CHIMEI M156B3-LA1 */
  77.         clock-frequency = <72000000>;
  78.         hactive = <1368>;
  79.         vactive = <768>;
  80.         hback-porch = <93>;
  81.         hfront-porch = <33>;
  82.         vback-porch = <22>;
  83.         vfront-porch = <7>;
  84.         hsync-len = <40>;
  85.         vsync-len = <4>;
  86.         de-active = <0>;
  87.         pixelclk-active = <1>;
  88.         interlaced = <0>;
  89.       };
  90.     };
  91.   };
  92. };
  93.  
  94. &i2c2 {
  95.   clock-frequency = <100000>;
  96.   pinctrl-names = "default";
  97.   pinctrl-0 = <&pinctrl_i2c2_2>;
  98.   status = "okay";
  99. };
  100.  
  101. &i2c3 {
  102.   pinctrl-names = "default";
  103.   pinctrl-0 = <&pinctrl_i2c3_5>;
  104.   status = "okay";
  105.  
  106.   touchscreen: st1232@55 {
  107.     compatible = "sitronix,st1232";
  108.     reg = <0x55>;
  109.       // MX6QDL_PAD_SD2_DAT2__GPIO1_IO13
  110.     interrupt-parent = <&gpio1>;    // need ?
  111.       /* Interrupts are specified by two parts:
  112.        * 1) GPIO pin number (0..15)
  113.        * 2) Triggering (1 - edge rising
  114.        *                2 - edge falling
  115.        *                4 - level active high
  116.        *                8 - level active low)
  117.        */
  118.     interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
  119.       // MX6QDL_PAD_SD2_DAT0__GPIO1_IO15   0x80000000  /* touch reset    */
  120.     gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  121.   };
  122. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement