1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 2 /* 3 * am335x-sbc-t335.dts - Device Tree file for 3 * am335x-sbc-t335.dts - Device Tree file for Compulab SBC-T335 4 * 4 * 5 * Copyright (C) 2014 - 2015 CompuLab Ltd. - h 5 * Copyright (C) 2014 - 2015 CompuLab Ltd. - https://www.compulab.co.il/ 6 */ 6 */ 7 7 8 #include "am335x-cm-t335.dts" 8 #include "am335x-cm-t335.dts" 9 9 10 / { 10 / { 11 model = "CompuLab CM-T335 on SB-T335"; 11 model = "CompuLab CM-T335 on SB-T335"; 12 compatible = "compulab,sbc-t335", "com 12 compatible = "compulab,sbc-t335", "compulab,cm-t335", "ti,am33xx"; 13 13 14 /* DRM display driver */ 14 /* DRM display driver */ 15 panel { 15 panel { 16 compatible = "ti,tilcdc,panel" 16 compatible = "ti,tilcdc,panel"; 17 status = "okay"; 17 status = "okay"; 18 pinctrl-names = "default", "sl 18 pinctrl-names = "default", "sleep"; 19 pinctrl-0 = <&lcd_pins_default 19 pinctrl-0 = <&lcd_pins_default>; 20 pinctrl-1 = <&lcd_pins_sleep>; 20 pinctrl-1 = <&lcd_pins_sleep>; 21 21 22 panel-info { 22 panel-info { 23 ac-bias = <2 23 ac-bias = <255>; 24 ac-bias-intrpt = <0 24 ac-bias-intrpt = <0>; 25 dma-burst-sz = <1 25 dma-burst-sz = <16>; 26 bpp = <3 26 bpp = <32>; 27 fdd = <0 27 fdd = <0x80>; 28 sync-edge = <0 28 sync-edge = <0>; 29 sync-ctrl = <1 29 sync-ctrl = <1>; 30 raster-order = <0 30 raster-order = <0>; 31 fifo-th = <0 31 fifo-th = <0>; 32 }; 32 }; 33 display-timings { 33 display-timings { 34 /* Timing selection pe 34 /* Timing selection performed by U-Boot */ 35 timing0: lcd {/* 800x4 35 timing0: lcd {/* 800x480p62 */ 36 clock-frequenc 36 clock-frequency = <30000000>; 37 hactive = <800 37 hactive = <800>; 38 vactive = <480 38 vactive = <480>; 39 hfront-porch = 39 hfront-porch = <39>; 40 hback-porch = 40 hback-porch = <39>; 41 hsync-len = <4 41 hsync-len = <47>; 42 vback-porch = 42 vback-porch = <29>; 43 vfront-porch = 43 vfront-porch = <13>; 44 vsync-len = <2 44 vsync-len = <2>; 45 hsync-active = 45 hsync-active = <1>; 46 vsync-active = 46 vsync-active = <1>; 47 }; 47 }; 48 timing1: dvi { /* 1024 48 timing1: dvi { /* 1024x768p60 */ 49 clock-frequenc 49 clock-frequency = <65000000>; 50 hactive = <102 50 hactive = <1024>; 51 hfront-porch = 51 hfront-porch = <24>; 52 hback-porch = 52 hback-porch = <160>; 53 hsync-len = <1 53 hsync-len = <136>; 54 vactive = <768 54 vactive = <768>; 55 vfront-porch = 55 vfront-porch = <3>; 56 vback-porch = 56 vback-porch = <29>; 57 vsync-len = <6 57 vsync-len = <6>; 58 hsync-active = 58 hsync-active = <0>; 59 vsync-active = 59 vsync-active = <0>; 60 }; 60 }; 61 }; 61 }; 62 }; 62 }; 63 }; 63 }; 64 64 65 &am33xx_pinmux { 65 &am33xx_pinmux { 66 /* Display */ 66 /* Display */ 67 lcd_pins_default: lcd-default-pins { 67 lcd_pins_default: lcd-default-pins { 68 pinctrl-single,pins = < 68 pinctrl-single,pins = < 69 /* gpmc_ad8.lcd_data23 69 /* gpmc_ad8.lcd_data23 */ 70 AM33XX_PADCONF(AM335X_ 70 AM33XX_PADCONF(AM335X_PIN_GPMC_AD8, PIN_OUTPUT, MUX_MODE1) 71 /* gpmc_ad9.lcd_data22 71 /* gpmc_ad9.lcd_data22 */ 72 AM33XX_PADCONF(AM335X_ 72 AM33XX_PADCONF(AM335X_PIN_GPMC_AD9, PIN_OUTPUT, MUX_MODE1) 73 /* gpmc_ad10.lcd_data2 73 /* gpmc_ad10.lcd_data21 */ 74 AM33XX_PADCONF(AM335X_ 74 AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_OUTPUT, MUX_MODE1) 75 /* gpmc_ad11.lcd_data2 75 /* gpmc_ad11.lcd_data20 */ 76 AM33XX_PADCONF(AM335X_ 76 AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_OUTPUT, MUX_MODE1) 77 /* gpmc_ad12.lcd_data1 77 /* gpmc_ad12.lcd_data19 */ 78 AM33XX_PADCONF(AM335X_ 78 AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_OUTPUT, MUX_MODE1) 79 /* gpmc_ad13.lcd_data1 79 /* gpmc_ad13.lcd_data18 */ 80 AM33XX_PADCONF(AM335X_ 80 AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_OUTPUT, MUX_MODE1) 81 /* gpmc_ad14.lcd_data1 81 /* gpmc_ad14.lcd_data17 */ 82 AM33XX_PADCONF(AM335X_ 82 AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_OUTPUT, MUX_MODE1) 83 /* gpmc_ad15.lcd_data1 83 /* gpmc_ad15.lcd_data16 */ 84 AM33XX_PADCONF(AM335X_ 84 AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_OUTPUT, MUX_MODE1) 85 AM33XX_PADCONF(AM335X_ 85 AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PIN_OUTPUT, MUX_MODE0) 86 AM33XX_PADCONF(AM335X_ 86 AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PIN_OUTPUT, MUX_MODE0) 87 AM33XX_PADCONF(AM335X_ 87 AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PIN_OUTPUT, MUX_MODE0) 88 AM33XX_PADCONF(AM335X_ 88 AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PIN_OUTPUT, MUX_MODE0) 89 AM33XX_PADCONF(AM335X_ 89 AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PIN_OUTPUT, MUX_MODE0) 90 AM33XX_PADCONF(AM335X_ 90 AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PIN_OUTPUT, MUX_MODE0) 91 AM33XX_PADCONF(AM335X_ 91 AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PIN_OUTPUT, MUX_MODE0) 92 AM33XX_PADCONF(AM335X_ 92 AM33XX_PADCONF(AM335X_PIN_LCD_DATA7, PIN_OUTPUT, MUX_MODE0) 93 AM33XX_PADCONF(AM335X_ 93 AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PIN_OUTPUT, MUX_MODE0) 94 AM33XX_PADCONF(AM335X_ 94 AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PIN_OUTPUT, MUX_MODE0) 95 AM33XX_PADCONF(AM335X_ 95 AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_OUTPUT, MUX_MODE0) 96 AM33XX_PADCONF(AM335X_ 96 AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE0) 97 AM33XX_PADCONF(AM335X_ 97 AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_OUTPUT, MUX_MODE0) 98 AM33XX_PADCONF(AM335X_ 98 AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE0) 99 AM33XX_PADCONF(AM335X_ 99 AM33XX_PADCONF(AM335X_PIN_LCD_DATA14, PIN_OUTPUT, MUX_MODE0) 100 AM33XX_PADCONF(AM335X_ 100 AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PIN_OUTPUT, MUX_MODE0) 101 AM33XX_PADCONF(AM335X_ 101 AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT, MUX_MODE0) 102 AM33XX_PADCONF(AM335X_ 102 AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_OUTPUT, MUX_MODE0) 103 AM33XX_PADCONF(AM335X_ 103 AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_OUTPUT, MUX_MODE0) 104 AM33XX_PADCONF(AM335X_ 104 AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_OUTPUT, MUX_MODE0) 105 >; 105 >; 106 }; 106 }; 107 107 108 lcd_pins_sleep: lcd-sleep-pins { 108 lcd_pins_sleep: lcd-sleep-pins { 109 pinctrl-single,pins = < 109 pinctrl-single,pins = < 110 /* gpmc_ad8.lcd_data23 110 /* gpmc_ad8.lcd_data23 */ 111 AM33XX_PADCONF(AM335X_ 111 AM33XX_PADCONF(AM335X_PIN_GPMC_AD8, PIN_INPUT_PULLDOWN, MUX_MODE7) 112 /* gpmc_ad9.lcd_data22 112 /* gpmc_ad9.lcd_data22 */ 113 AM33XX_PADCONF(AM335X_ 113 AM33XX_PADCONF(AM335X_PIN_GPMC_AD9, PIN_INPUT_PULLDOWN, MUX_MODE7) 114 /* gpmc_ad10.lcd_data2 114 /* gpmc_ad10.lcd_data21 */ 115 AM33XX_PADCONF(AM335X_ 115 AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_INPUT_PULLDOWN, MUX_MODE7) 116 /* gpmc_ad11.lcd_data2 116 /* gpmc_ad11.lcd_data20 */ 117 AM33XX_PADCONF(AM335X_ 117 AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_INPUT_PULLDOWN, MUX_MODE7) 118 /* gpmc_ad12.lcd_data1 118 /* gpmc_ad12.lcd_data19 */ 119 AM33XX_PADCONF(AM335X_ 119 AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT_PULLDOWN, MUX_MODE7) 120 /* gpmc_ad13.lcd_data1 120 /* gpmc_ad13.lcd_data18 */ 121 AM33XX_PADCONF(AM335X_ 121 AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLDOWN, MUX_MODE7) 122 /* gpmc_ad14.lcd_data1 122 /* gpmc_ad14.lcd_data17 */ 123 AM33XX_PADCONF(AM335X_ 123 AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLDOWN, MUX_MODE7) 124 /* gpmc_ad15.lcd_data1 124 /* gpmc_ad15.lcd_data16 */ 125 AM33XX_PADCONF(AM335X_ 125 AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLDOWN, MUX_MODE7) 126 AM33XX_PADCONF(AM335X_ 126 AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PULL_DISABLE, MUX_MODE7) 127 AM33XX_PADCONF(AM335X_ 127 AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PULL_DISABLE, MUX_MODE7) 128 AM33XX_PADCONF(AM335X_ 128 AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PULL_DISABLE, MUX_MODE7) 129 AM33XX_PADCONF(AM335X_ 129 AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PULL_DISABLE, MUX_MODE7) 130 AM33XX_PADCONF(AM335X_ 130 AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PULL_DISABLE, MUX_MODE7) 131 AM33XX_PADCONF(AM335X_ 131 AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PULL_DISABLE, MUX_MODE7) 132 AM33XX_PADCONF(AM335X_ 132 AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PULL_DISABLE, MUX_MODE7) 133 AM33XX_PADCONF(AM335X_ 133 AM33XX_PADCONF(AM335X_PIN_LCD_DATA7, PULL_DISABLE, MUX_MODE7) 134 AM33XX_PADCONF(AM335X_ 134 AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PULL_DISABLE, MUX_MODE7) 135 AM33XX_PADCONF(AM335X_ 135 AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PULL_DISABLE, MUX_MODE7) 136 AM33XX_PADCONF(AM335X_ 136 AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PULL_DISABLE, MUX_MODE7) 137 AM33XX_PADCONF(AM335X_ 137 AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PULL_DISABLE, MUX_MODE7) 138 AM33XX_PADCONF(AM335X_ 138 AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PULL_DISABLE, MUX_MODE7) 139 AM33XX_PADCONF(AM335X_ 139 AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PULL_DISABLE, MUX_MODE7) 140 AM33XX_PADCONF(AM335X_ 140 AM33XX_PADCONF(AM335X_PIN_LCD_DATA14, PULL_DISABLE, MUX_MODE7) 141 AM33XX_PADCONF(AM335X_ 141 AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PULL_DISABLE, MUX_MODE7) 142 AM33XX_PADCONF(AM335X_ 142 AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_INPUT_PULLDOWN, MUX_MODE7) 143 AM33XX_PADCONF(AM335X_ 143 AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_INPUT_PULLDOWN, MUX_MODE7) 144 AM33XX_PADCONF(AM335X_ 144 AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_INPUT_PULLDOWN, MUX_MODE7) 145 AM33XX_PADCONF(AM335X_ 145 AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_INPUT_PULLDOWN, MUX_MODE7) 146 >; 146 >; 147 }; 147 }; 148 }; 148 }; 149 149 150 &i2c0 { 150 &i2c0 { 151 /* GPIO extender */ 151 /* GPIO extender */ 152 gpio_ext: pca9555@26 { 152 gpio_ext: pca9555@26 { 153 compatible = "nxp,pca9555"; 153 compatible = "nxp,pca9555"; 154 pinctrl-names = "default"; 154 pinctrl-names = "default"; 155 gpio-controller; 155 gpio-controller; 156 #gpio-cells = <2>; 156 #gpio-cells = <2>; 157 reg = <0x26>; 157 reg = <0x26>; 158 dvi-ena-hog { 158 dvi-ena-hog { 159 gpio-hog; 159 gpio-hog; 160 gpios = <13 GPIO_ACTIV 160 gpios = <13 GPIO_ACTIVE_HIGH>; 161 output-high; 161 output-high; 162 line-name = "dvi-enabl 162 line-name = "dvi-enable"; 163 }; 163 }; 164 lcd-ena-hog { 164 lcd-ena-hog { 165 gpio-hog; 165 gpio-hog; 166 gpios = <11 GPIO_ACTIV 166 gpios = <11 GPIO_ACTIVE_HIGH>; 167 output-high; 167 output-high; 168 line-name = "lcd-enabl 168 line-name = "lcd-enable"; 169 }; 169 }; 170 }; 170 }; 171 }; 171 }; 172 172 173 /* Display */ 173 /* Display */ 174 &lcdc { 174 &lcdc { 175 status = "okay"; 175 status = "okay"; 176 }; 176 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.