1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2724ba675SRob Herring/* 3724ba675SRob Herring * am335x-sbc-t335.dts - Device Tree file for Compulab SBC-T335 4724ba675SRob Herring * 5*9f2967e4SNishanth Menon * Copyright (C) 2014 - 2015 CompuLab Ltd. - https://www.compulab.co.il/ 6724ba675SRob Herring */ 7724ba675SRob Herring 8724ba675SRob Herring#include "am335x-cm-t335.dts" 9724ba675SRob Herring 10724ba675SRob Herring/ { 11724ba675SRob Herring model = "CompuLab CM-T335 on SB-T335"; 12724ba675SRob Herring compatible = "compulab,sbc-t335", "compulab,cm-t335", "ti,am33xx"; 13724ba675SRob Herring 14724ba675SRob Herring /* DRM display driver */ 15724ba675SRob Herring panel { 16724ba675SRob Herring compatible = "ti,tilcdc,panel"; 17724ba675SRob Herring status = "okay"; 18724ba675SRob Herring pinctrl-names = "default", "sleep"; 19724ba675SRob Herring pinctrl-0 = <&lcd_pins_default>; 20724ba675SRob Herring pinctrl-1 = <&lcd_pins_sleep>; 21724ba675SRob Herring 22724ba675SRob Herring panel-info { 23724ba675SRob Herring ac-bias = <255>; 24724ba675SRob Herring ac-bias-intrpt = <0>; 25724ba675SRob Herring dma-burst-sz = <16>; 26724ba675SRob Herring bpp = <32>; 27724ba675SRob Herring fdd = <0x80>; 28724ba675SRob Herring sync-edge = <0>; 29724ba675SRob Herring sync-ctrl = <1>; 30724ba675SRob Herring raster-order = <0>; 31724ba675SRob Herring fifo-th = <0>; 32724ba675SRob Herring }; 33724ba675SRob Herring display-timings { 34724ba675SRob Herring /* Timing selection performed by U-Boot */ 35724ba675SRob Herring timing0: lcd {/* 800x480p62 */ 36724ba675SRob Herring clock-frequency = <30000000>; 37724ba675SRob Herring hactive = <800>; 38724ba675SRob Herring vactive = <480>; 39724ba675SRob Herring hfront-porch = <39>; 40724ba675SRob Herring hback-porch = <39>; 41724ba675SRob Herring hsync-len = <47>; 42724ba675SRob Herring vback-porch = <29>; 43724ba675SRob Herring vfront-porch = <13>; 44724ba675SRob Herring vsync-len = <2>; 45724ba675SRob Herring hsync-active = <1>; 46724ba675SRob Herring vsync-active = <1>; 47724ba675SRob Herring }; 48724ba675SRob Herring timing1: dvi { /* 1024x768p60 */ 49724ba675SRob Herring clock-frequency = <65000000>; 50724ba675SRob Herring hactive = <1024>; 51724ba675SRob Herring hfront-porch = <24>; 52724ba675SRob Herring hback-porch = <160>; 53724ba675SRob Herring hsync-len = <136>; 54724ba675SRob Herring vactive = <768>; 55724ba675SRob Herring vfront-porch = <3>; 56724ba675SRob Herring vback-porch = <29>; 57724ba675SRob Herring vsync-len = <6>; 58724ba675SRob Herring hsync-active = <0>; 59724ba675SRob Herring vsync-active = <0>; 60724ba675SRob Herring }; 61724ba675SRob Herring }; 62724ba675SRob Herring }; 63724ba675SRob Herring}; 64724ba675SRob Herring 65724ba675SRob Herring&am33xx_pinmux { 66724ba675SRob Herring /* Display */ 67724ba675SRob Herring lcd_pins_default: lcd-default-pins { 68724ba675SRob Herring pinctrl-single,pins = < 69724ba675SRob Herring /* gpmc_ad8.lcd_data23 */ 70724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD8, PIN_OUTPUT, MUX_MODE1) 71724ba675SRob Herring /* gpmc_ad9.lcd_data22 */ 72724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD9, PIN_OUTPUT, MUX_MODE1) 73724ba675SRob Herring /* gpmc_ad10.lcd_data21 */ 74724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_OUTPUT, MUX_MODE1) 75724ba675SRob Herring /* gpmc_ad11.lcd_data20 */ 76724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_OUTPUT, MUX_MODE1) 77724ba675SRob Herring /* gpmc_ad12.lcd_data19 */ 78724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_OUTPUT, MUX_MODE1) 79724ba675SRob Herring /* gpmc_ad13.lcd_data18 */ 80724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_OUTPUT, MUX_MODE1) 81724ba675SRob Herring /* gpmc_ad14.lcd_data17 */ 82724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_OUTPUT, MUX_MODE1) 83724ba675SRob Herring /* gpmc_ad15.lcd_data16 */ 84724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_OUTPUT, MUX_MODE1) 85724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PIN_OUTPUT, MUX_MODE0) 86724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PIN_OUTPUT, MUX_MODE0) 87724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PIN_OUTPUT, MUX_MODE0) 88724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PIN_OUTPUT, MUX_MODE0) 89724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PIN_OUTPUT, MUX_MODE0) 90724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PIN_OUTPUT, MUX_MODE0) 91724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PIN_OUTPUT, MUX_MODE0) 92724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA7, PIN_OUTPUT, MUX_MODE0) 93724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PIN_OUTPUT, MUX_MODE0) 94724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PIN_OUTPUT, MUX_MODE0) 95724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_OUTPUT, MUX_MODE0) 96724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE0) 97724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_OUTPUT, MUX_MODE0) 98724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE0) 99724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA14, PIN_OUTPUT, MUX_MODE0) 100724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PIN_OUTPUT, MUX_MODE0) 101724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT, MUX_MODE0) 102724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_OUTPUT, MUX_MODE0) 103724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_OUTPUT, MUX_MODE0) 104724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_OUTPUT, MUX_MODE0) 105724ba675SRob Herring >; 106724ba675SRob Herring }; 107724ba675SRob Herring 108724ba675SRob Herring lcd_pins_sleep: lcd-sleep-pins { 109724ba675SRob Herring pinctrl-single,pins = < 110724ba675SRob Herring /* gpmc_ad8.lcd_data23 */ 111724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD8, PIN_INPUT_PULLDOWN, MUX_MODE7) 112724ba675SRob Herring /* gpmc_ad9.lcd_data22 */ 113724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD9, PIN_INPUT_PULLDOWN, MUX_MODE7) 114724ba675SRob Herring /* gpmc_ad10.lcd_data21 */ 115724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_INPUT_PULLDOWN, MUX_MODE7) 116724ba675SRob Herring /* gpmc_ad11.lcd_data20 */ 117724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_INPUT_PULLDOWN, MUX_MODE7) 118724ba675SRob Herring /* gpmc_ad12.lcd_data19 */ 119724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT_PULLDOWN, MUX_MODE7) 120724ba675SRob Herring /* gpmc_ad13.lcd_data18 */ 121724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLDOWN, MUX_MODE7) 122724ba675SRob Herring /* gpmc_ad14.lcd_data17 */ 123724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLDOWN, MUX_MODE7) 124724ba675SRob Herring /* gpmc_ad15.lcd_data16 */ 125724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLDOWN, MUX_MODE7) 126724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PULL_DISABLE, MUX_MODE7) 127724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PULL_DISABLE, MUX_MODE7) 128724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PULL_DISABLE, MUX_MODE7) 129724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PULL_DISABLE, MUX_MODE7) 130724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PULL_DISABLE, MUX_MODE7) 131724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PULL_DISABLE, MUX_MODE7) 132724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PULL_DISABLE, MUX_MODE7) 133724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA7, PULL_DISABLE, MUX_MODE7) 134724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PULL_DISABLE, MUX_MODE7) 135724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PULL_DISABLE, MUX_MODE7) 136724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PULL_DISABLE, MUX_MODE7) 137724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PULL_DISABLE, MUX_MODE7) 138724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PULL_DISABLE, MUX_MODE7) 139724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PULL_DISABLE, MUX_MODE7) 140724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA14, PULL_DISABLE, MUX_MODE7) 141724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PULL_DISABLE, MUX_MODE7) 142724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_INPUT_PULLDOWN, MUX_MODE7) 143724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_INPUT_PULLDOWN, MUX_MODE7) 144724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_INPUT_PULLDOWN, MUX_MODE7) 145724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_INPUT_PULLDOWN, MUX_MODE7) 146724ba675SRob Herring >; 147724ba675SRob Herring }; 148724ba675SRob Herring}; 149724ba675SRob Herring 150724ba675SRob Herring&i2c0 { 151724ba675SRob Herring /* GPIO extender */ 152724ba675SRob Herring gpio_ext: pca9555@26 { 153724ba675SRob Herring compatible = "nxp,pca9555"; 154724ba675SRob Herring pinctrl-names = "default"; 155724ba675SRob Herring gpio-controller; 156724ba675SRob Herring #gpio-cells = <2>; 157724ba675SRob Herring reg = <0x26>; 158724ba675SRob Herring dvi-ena-hog { 159724ba675SRob Herring gpio-hog; 160724ba675SRob Herring gpios = <13 GPIO_ACTIVE_HIGH>; 161724ba675SRob Herring output-high; 162724ba675SRob Herring line-name = "dvi-enable"; 163724ba675SRob Herring }; 164724ba675SRob Herring lcd-ena-hog { 165724ba675SRob Herring gpio-hog; 166724ba675SRob Herring gpios = <11 GPIO_ACTIVE_HIGH>; 167724ba675SRob Herring output-high; 168724ba675SRob Herring line-name = "lcd-enable"; 169724ba675SRob Herring }; 170724ba675SRob Herring }; 171724ba675SRob Herring}; 172724ba675SRob Herring 173724ba675SRob Herring/* Display */ 174724ba675SRob Herring&lcdc { 175724ba675SRob Herring status = "okay"; 176724ba675SRob Herring}; 177