1f126890aSEmmanuel Vadot/* 2f126890aSEmmanuel Vadot * Copyright 2015 Savoir-faire Linux 3f126890aSEmmanuel Vadot * 4f126890aSEmmanuel Vadot * This device tree is based on imx51-babbage.dts 5f126890aSEmmanuel Vadot * 6f126890aSEmmanuel Vadot * Licensed under the X11 license or the GPL v2 (or later) 7f126890aSEmmanuel Vadot */ 8f126890aSEmmanuel Vadot 9f126890aSEmmanuel Vadot/dts-v1/; 10f126890aSEmmanuel Vadot#include "imx51.dtsi" 11f126890aSEmmanuel Vadot 12f126890aSEmmanuel Vadot/ { 13f126890aSEmmanuel Vadot model = "Technologic Systems TS-4800"; 14f126890aSEmmanuel Vadot compatible = "technologic,imx51-ts4800", "fsl,imx51"; 15f126890aSEmmanuel Vadot 16f126890aSEmmanuel Vadot chosen { 17f126890aSEmmanuel Vadot stdout-path = &uart1; 18f126890aSEmmanuel Vadot }; 19f126890aSEmmanuel Vadot 20f126890aSEmmanuel Vadot memory@90000000 { 21f126890aSEmmanuel Vadot device_type = "memory"; 22f126890aSEmmanuel Vadot reg = <0x90000000 0x10000000>; 23f126890aSEmmanuel Vadot }; 24f126890aSEmmanuel Vadot 25f126890aSEmmanuel Vadot clocks { 26f126890aSEmmanuel Vadot ckih1 { 27f126890aSEmmanuel Vadot clock-frequency = <22579200>; 28f126890aSEmmanuel Vadot }; 29f126890aSEmmanuel Vadot 30f126890aSEmmanuel Vadot ckih2 { 31f126890aSEmmanuel Vadot clock-frequency = <24576000>; 32f126890aSEmmanuel Vadot }; 33f126890aSEmmanuel Vadot }; 34f126890aSEmmanuel Vadot 35f126890aSEmmanuel Vadot backlight_reg: regulator-backlight { 36f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 37f126890aSEmmanuel Vadot pinctrl-names = "default"; 38f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_enable_lcd>; 39f126890aSEmmanuel Vadot regulator-name = "enable_lcd_reg"; 40f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 41f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 42f126890aSEmmanuel Vadot gpio = <&gpio4 9 GPIO_ACTIVE_HIGH>; 43f126890aSEmmanuel Vadot enable-active-high; 44f126890aSEmmanuel Vadot }; 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot backlight: backlight { 47f126890aSEmmanuel Vadot compatible = "pwm-backlight"; 487d0873ebSEmmanuel Vadot pwms = <&pwm1 0 78770 0>; 49f126890aSEmmanuel Vadot brightness-levels = <0 150 200 255>; 50f126890aSEmmanuel Vadot default-brightness-level = <1>; 51f126890aSEmmanuel Vadot power-supply = <&backlight_reg>; 52f126890aSEmmanuel Vadot }; 53f126890aSEmmanuel Vadot 54f126890aSEmmanuel Vadot display1: disp1 { 55f126890aSEmmanuel Vadot compatible = "fsl,imx-parallel-display"; 56f126890aSEmmanuel Vadot interface-pix-fmt = "rgb24"; 57f126890aSEmmanuel Vadot pinctrl-names = "default"; 58f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_lcd>; 59f126890aSEmmanuel Vadot 60f126890aSEmmanuel Vadot display-timings { 61*0e8011faSEmmanuel Vadot native-mode = <&timing0>; 62*0e8011faSEmmanuel Vadot timing0: timing-800x480p60 { 63f126890aSEmmanuel Vadot clock-frequency = <30066000>; 64f126890aSEmmanuel Vadot hactive = <800>; 65f126890aSEmmanuel Vadot vactive = <480>; 66f126890aSEmmanuel Vadot hfront-porch = <50>; 67f126890aSEmmanuel Vadot hback-porch = <70>; 68f126890aSEmmanuel Vadot hsync-len = <50>; 69f126890aSEmmanuel Vadot vback-porch = <0>; 70f126890aSEmmanuel Vadot vfront-porch = <0>; 71f126890aSEmmanuel Vadot vsync-len = <50>; 72f126890aSEmmanuel Vadot }; 73f126890aSEmmanuel Vadot }; 74f126890aSEmmanuel Vadot 75f126890aSEmmanuel Vadot port { 76f126890aSEmmanuel Vadot display0_in: endpoint { 77f126890aSEmmanuel Vadot remote-endpoint = <&ipu_di0_disp1>; 78f126890aSEmmanuel Vadot }; 79f126890aSEmmanuel Vadot }; 80f126890aSEmmanuel Vadot }; 81f126890aSEmmanuel Vadot}; 82f126890aSEmmanuel Vadot 83f126890aSEmmanuel Vadot&esdhc1 { 84f126890aSEmmanuel Vadot pinctrl-names = "default"; 85f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_esdhc1>; 86f126890aSEmmanuel Vadot cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; 87f126890aSEmmanuel Vadot wp-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; 88f126890aSEmmanuel Vadot status = "okay"; 89f126890aSEmmanuel Vadot}; 90f126890aSEmmanuel Vadot 91f126890aSEmmanuel Vadot&fec { 92f126890aSEmmanuel Vadot pinctrl-names = "default"; 93f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_fec>; 94f126890aSEmmanuel Vadot phy-mode = "mii"; 95f126890aSEmmanuel Vadot phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; 96f126890aSEmmanuel Vadot phy-reset-duration = <1>; 97f126890aSEmmanuel Vadot status = "okay"; 98f126890aSEmmanuel Vadot}; 99f126890aSEmmanuel Vadot 100f126890aSEmmanuel Vadot&i2c2 { 101f126890aSEmmanuel Vadot pinctrl-names = "default"; 102f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_i2c2>; 103f126890aSEmmanuel Vadot status = "okay"; 104f126890aSEmmanuel Vadot 105f126890aSEmmanuel Vadot rtc: rtc@68 { 106f126890aSEmmanuel Vadot compatible = "st,m41t00"; 107f126890aSEmmanuel Vadot reg = <0x68>; 108f126890aSEmmanuel Vadot }; 109f126890aSEmmanuel Vadot}; 110f126890aSEmmanuel Vadot 111f126890aSEmmanuel Vadot&ipu_di0_disp1 { 112f126890aSEmmanuel Vadot remote-endpoint = <&display0_in>; 113f126890aSEmmanuel Vadot}; 114f126890aSEmmanuel Vadot 115f126890aSEmmanuel Vadot&pwm1 { 116f126890aSEmmanuel Vadot pinctrl-names = "default"; 117f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_pwm_backlight>; 118f126890aSEmmanuel Vadot status = "okay"; 119f126890aSEmmanuel Vadot}; 120f126890aSEmmanuel Vadot 121f126890aSEmmanuel Vadot&uart1 { 122f126890aSEmmanuel Vadot pinctrl-names = "default"; 123f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_uart1>; 124f126890aSEmmanuel Vadot status = "okay"; 125f126890aSEmmanuel Vadot}; 126f126890aSEmmanuel Vadot 127f126890aSEmmanuel Vadot&uart2 { 128f126890aSEmmanuel Vadot pinctrl-names = "default"; 129f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_uart2>; 130f126890aSEmmanuel Vadot status = "okay"; 131f126890aSEmmanuel Vadot}; 132f126890aSEmmanuel Vadot 133f126890aSEmmanuel Vadot&uart3 { 134f126890aSEmmanuel Vadot pinctrl-names = "default"; 135f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_uart3>; 136f126890aSEmmanuel Vadot status = "okay"; 137f126890aSEmmanuel Vadot}; 138f126890aSEmmanuel Vadot 139f126890aSEmmanuel Vadot&weim { 140f126890aSEmmanuel Vadot pinctrl-names = "default"; 141f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_weim>; 142f126890aSEmmanuel Vadot status = "okay"; 143f126890aSEmmanuel Vadot 144f126890aSEmmanuel Vadot fpga@0 { 145f126890aSEmmanuel Vadot compatible = "simple-bus"; 146f126890aSEmmanuel Vadot fsl,weim-cs-timing = <0x0061008F 0x00000002 0x1c022000 147f126890aSEmmanuel Vadot 0x00000000 0x1c092480 0x00000000>; 148f126890aSEmmanuel Vadot reg = <0 0x0000000 0x1d000>; 149f126890aSEmmanuel Vadot #address-cells = <1>; 150f126890aSEmmanuel Vadot #size-cells = <1>; 151f126890aSEmmanuel Vadot ranges = <0 0 0 0x1d000>; 152f126890aSEmmanuel Vadot 153f126890aSEmmanuel Vadot syscon: syscon@10000 { 154f126890aSEmmanuel Vadot compatible = "syscon", "simple-mfd"; 155f126890aSEmmanuel Vadot reg = <0x10000 0x3d>; 156f126890aSEmmanuel Vadot reg-io-width = <2>; 157f126890aSEmmanuel Vadot 158f126890aSEmmanuel Vadot wdt { 159f126890aSEmmanuel Vadot compatible = "technologic,ts4800-wdt"; 160f126890aSEmmanuel Vadot syscon = <&syscon 0xe>; 161f126890aSEmmanuel Vadot }; 162f126890aSEmmanuel Vadot }; 163f126890aSEmmanuel Vadot 164f126890aSEmmanuel Vadot touchscreen@12000 { 165f126890aSEmmanuel Vadot compatible = "technologic,ts4800-ts"; 166f126890aSEmmanuel Vadot reg = <0x12000 0x1000>; 167f126890aSEmmanuel Vadot syscon = <&syscon 0x10 6>; 168f126890aSEmmanuel Vadot }; 169f126890aSEmmanuel Vadot 170f126890aSEmmanuel Vadot fpga_irqc: fpga-irqc@15000 { 171f126890aSEmmanuel Vadot compatible = "technologic,ts4800-irqc"; 172f126890aSEmmanuel Vadot reg = <0x15000 0x1000>; 173f126890aSEmmanuel Vadot pinctrl-names = "default"; 174f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_interrupt_fpga>; 175f126890aSEmmanuel Vadot interrupt-parent = <&gpio2>; 176f126890aSEmmanuel Vadot interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; 177f126890aSEmmanuel Vadot interrupt-controller; 178f126890aSEmmanuel Vadot #interrupt-cells = <1>; 179f126890aSEmmanuel Vadot }; 180f126890aSEmmanuel Vadot 181f126890aSEmmanuel Vadot can@1a000 { 182f126890aSEmmanuel Vadot compatible = "technologic,sja1000"; 183f126890aSEmmanuel Vadot reg = <0x1a000 0x100>; 184f126890aSEmmanuel Vadot interrupt-parent = <&fpga_irqc>; 185f126890aSEmmanuel Vadot interrupts = <1>; 186f126890aSEmmanuel Vadot reg-io-width = <2>; 187f126890aSEmmanuel Vadot nxp,tx-output-config = <0x06>; 188f126890aSEmmanuel Vadot nxp,external-clock-frequency = <24000000>; 189f126890aSEmmanuel Vadot }; 190f126890aSEmmanuel Vadot }; 191f126890aSEmmanuel Vadot}; 192f126890aSEmmanuel Vadot 193f126890aSEmmanuel Vadot&iomuxc { 194f126890aSEmmanuel Vadot pinctrl_ecspi1: ecspi1grp { 195f126890aSEmmanuel Vadot fsl,pins = < 196f126890aSEmmanuel Vadot MX51_PAD_CSPI1_MISO__ECSPI1_MISO 0x185 197f126890aSEmmanuel Vadot MX51_PAD_CSPI1_MOSI__ECSPI1_MOSI 0x185 198f126890aSEmmanuel Vadot MX51_PAD_CSPI1_SCLK__ECSPI1_SCLK 0x185 199f126890aSEmmanuel Vadot MX51_PAD_CSPI1_SS0__GPIO4_24 0x85 /* CS0 */ 200f126890aSEmmanuel Vadot >; 201f126890aSEmmanuel Vadot }; 202f126890aSEmmanuel Vadot 203f126890aSEmmanuel Vadot pinctrl_enable_lcd: enablelcdgrp { 204f126890aSEmmanuel Vadot fsl,pins = < 205f126890aSEmmanuel Vadot MX51_PAD_CSI2_D12__GPIO4_9 0x1c5 206f126890aSEmmanuel Vadot >; 207f126890aSEmmanuel Vadot }; 208f126890aSEmmanuel Vadot 209f126890aSEmmanuel Vadot pinctrl_esdhc1: esdhc1grp { 210f126890aSEmmanuel Vadot fsl,pins = < 211f126890aSEmmanuel Vadot MX51_PAD_SD1_CMD__SD1_CMD 0x400020d5 212f126890aSEmmanuel Vadot MX51_PAD_SD1_CLK__SD1_CLK 0x20d5 213f126890aSEmmanuel Vadot MX51_PAD_SD1_DATA0__SD1_DATA0 0x20d5 214f126890aSEmmanuel Vadot MX51_PAD_SD1_DATA1__SD1_DATA1 0x20d5 215f126890aSEmmanuel Vadot MX51_PAD_SD1_DATA2__SD1_DATA2 0x20d5 216f126890aSEmmanuel Vadot MX51_PAD_SD1_DATA3__SD1_DATA3 0x20d5 217f126890aSEmmanuel Vadot MX51_PAD_GPIO1_0__GPIO1_0 0x100 218f126890aSEmmanuel Vadot MX51_PAD_GPIO1_1__GPIO1_1 0x100 219f126890aSEmmanuel Vadot >; 220f126890aSEmmanuel Vadot }; 221f126890aSEmmanuel Vadot 222f126890aSEmmanuel Vadot pinctrl_fec: fecgrp { 223f126890aSEmmanuel Vadot fsl,pins = < 224f126890aSEmmanuel Vadot MX51_PAD_EIM_EB2__FEC_MDIO 0x000001f5 225f126890aSEmmanuel Vadot MX51_PAD_EIM_EB3__FEC_RDATA1 0x00000085 226f126890aSEmmanuel Vadot MX51_PAD_EIM_CS2__FEC_RDATA2 0x00000085 227f126890aSEmmanuel Vadot MX51_PAD_EIM_CS3__FEC_RDATA3 0x00000085 228f126890aSEmmanuel Vadot MX51_PAD_EIM_CS4__FEC_RX_ER 0x00000180 229f126890aSEmmanuel Vadot MX51_PAD_EIM_CS5__FEC_CRS 0x00000180 230f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT10__FEC_COL 0x00000180 231f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT11__FEC_RX_CLK 0x00000180 232f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT14__FEC_RDATA0 0x00002180 233f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT15__FEC_TDATA0 0x00002004 234f126890aSEmmanuel Vadot MX51_PAD_NANDF_CS2__FEC_TX_ER 0x00002004 235f126890aSEmmanuel Vadot MX51_PAD_DI2_PIN2__FEC_MDC 0x00002004 236f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT6__FEC_TDATA1 0x00002004 237f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT7__FEC_TDATA2 0x00002004 238f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT8__FEC_TDATA3 0x00002004 239f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT9__FEC_TX_EN 0x00002004 240f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT13__FEC_TX_CLK 0x00002180 241f126890aSEmmanuel Vadot MX51_PAD_DISP2_DAT12__FEC_RX_DV 0x000020a4 242f126890aSEmmanuel Vadot MX51_PAD_EIM_A20__GPIO2_14 0x00000085 /* Phy Reset */ 243f126890aSEmmanuel Vadot >; 244f126890aSEmmanuel Vadot }; 245f126890aSEmmanuel Vadot 246f126890aSEmmanuel Vadot pinctrl_i2c2: i2c2grp { 247f126890aSEmmanuel Vadot fsl,pins = < 248f126890aSEmmanuel Vadot MX51_PAD_KEY_COL4__I2C2_SCL 0x400001ed 249f126890aSEmmanuel Vadot MX51_PAD_KEY_COL5__I2C2_SDA 0x400001ed 250f126890aSEmmanuel Vadot >; 251f126890aSEmmanuel Vadot }; 252f126890aSEmmanuel Vadot 253f126890aSEmmanuel Vadot pinctrl_interrupt_fpga: fpgaicgrp { 254f126890aSEmmanuel Vadot fsl,pins = < 255f126890aSEmmanuel Vadot MX51_PAD_EIM_D27__GPIO2_9 0xe5 256f126890aSEmmanuel Vadot >; 257f126890aSEmmanuel Vadot }; 258f126890aSEmmanuel Vadot 259f126890aSEmmanuel Vadot pinctrl_lcd: lcdgrp { 260f126890aSEmmanuel Vadot fsl,pins = < 261f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT0__DISP1_DAT0 0x5 262f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT1__DISP1_DAT1 0x5 263f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT2__DISP1_DAT2 0x5 264f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT3__DISP1_DAT3 0x5 265f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT4__DISP1_DAT4 0x5 266f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT5__DISP1_DAT5 0x5 267f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT6__DISP1_DAT6 0x5 268f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT7__DISP1_DAT7 0x5 269f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT8__DISP1_DAT8 0x5 270f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT9__DISP1_DAT9 0x5 271f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT10__DISP1_DAT10 0x5 272f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT11__DISP1_DAT11 0x5 273f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT12__DISP1_DAT12 0x5 274f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT13__DISP1_DAT13 0x5 275f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT14__DISP1_DAT14 0x5 276f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT15__DISP1_DAT15 0x5 277f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT16__DISP1_DAT16 0x5 278f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT17__DISP1_DAT17 0x5 279f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT18__DISP1_DAT18 0x5 280f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT19__DISP1_DAT19 0x5 281f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT20__DISP1_DAT20 0x5 282f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT21__DISP1_DAT21 0x5 283f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT22__DISP1_DAT22 0x5 284f126890aSEmmanuel Vadot MX51_PAD_DISP1_DAT23__DISP1_DAT23 0x5 285f126890aSEmmanuel Vadot MX51_PAD_DI1_PIN2__DI1_PIN2 0x5 286f126890aSEmmanuel Vadot MX51_PAD_DI1_PIN3__DI1_PIN3 0x5 287f126890aSEmmanuel Vadot MX51_PAD_DI2_DISP_CLK__DI2_DISP_CLK 0x5 288f126890aSEmmanuel Vadot MX51_PAD_DI_GP4__DI2_PIN15 0x5 289f126890aSEmmanuel Vadot >; 290f126890aSEmmanuel Vadot }; 291f126890aSEmmanuel Vadot 292f126890aSEmmanuel Vadot pinctrl_pwm_backlight: backlightgrp { 293f126890aSEmmanuel Vadot fsl,pins = < 294f126890aSEmmanuel Vadot MX51_PAD_GPIO1_2__PWM1_PWMO 0x80000000 295f126890aSEmmanuel Vadot >; 296f126890aSEmmanuel Vadot }; 297f126890aSEmmanuel Vadot 298f126890aSEmmanuel Vadot pinctrl_uart1: uart1grp { 299f126890aSEmmanuel Vadot fsl,pins = < 300f126890aSEmmanuel Vadot MX51_PAD_UART1_RXD__UART1_RXD 0x1c5 301f126890aSEmmanuel Vadot MX51_PAD_UART1_TXD__UART1_TXD 0x1c5 302f126890aSEmmanuel Vadot >; 303f126890aSEmmanuel Vadot }; 304f126890aSEmmanuel Vadot 305f126890aSEmmanuel Vadot pinctrl_uart2: uart2grp { 306f126890aSEmmanuel Vadot fsl,pins = < 307f126890aSEmmanuel Vadot MX51_PAD_UART2_RXD__UART2_RXD 0x1c5 308f126890aSEmmanuel Vadot MX51_PAD_UART2_TXD__UART2_TXD 0x1c5 309f126890aSEmmanuel Vadot >; 310f126890aSEmmanuel Vadot }; 311f126890aSEmmanuel Vadot 312f126890aSEmmanuel Vadot pinctrl_uart3: uart3grp { 313f126890aSEmmanuel Vadot fsl,pins = < 314f126890aSEmmanuel Vadot MX51_PAD_EIM_D25__UART3_RXD 0x1c5 315f126890aSEmmanuel Vadot MX51_PAD_EIM_D26__UART3_TXD 0x1c5 316f126890aSEmmanuel Vadot >; 317f126890aSEmmanuel Vadot }; 318f126890aSEmmanuel Vadot 319f126890aSEmmanuel Vadot pinctrl_weim: weimgrp { 320f126890aSEmmanuel Vadot fsl,pins = < 321f126890aSEmmanuel Vadot MX51_PAD_EIM_DTACK__EIM_DTACK 0x85 322f126890aSEmmanuel Vadot MX51_PAD_EIM_CS0__EIM_CS0 0x0 323f126890aSEmmanuel Vadot MX51_PAD_EIM_CS1__EIM_CS1 0x0 324f126890aSEmmanuel Vadot MX51_PAD_EIM_EB0__EIM_EB0 0x85 325f126890aSEmmanuel Vadot MX51_PAD_EIM_EB1__EIM_EB1 0x85 326f126890aSEmmanuel Vadot MX51_PAD_EIM_OE__EIM_OE 0x85 327f126890aSEmmanuel Vadot MX51_PAD_EIM_LBA__EIM_LBA 0x85 328f126890aSEmmanuel Vadot >; 329f126890aSEmmanuel Vadot }; 330f126890aSEmmanuel Vadot}; 331