Damien Riegel | b446ff2 | 2015-12-11 12:08:14 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Savoir-faire Linux |
| 3 | * |
| 4 | * This device tree is based on imx51-babbage.dts |
| 5 | * |
| 6 | * Licensed under the X11 license or the GPL v2 (or later) |
| 7 | */ |
| 8 | |
| 9 | /dts-v1/; |
| 10 | #include "imx51.dtsi" |
| 11 | |
| 12 | / { |
| 13 | model = "Technologic Systems TS-4800"; |
| 14 | compatible = "technologic,imx51-ts4800", "fsl,imx51"; |
| 15 | |
| 16 | chosen { |
| 17 | stdout-path = &uart1; |
| 18 | }; |
| 19 | |
| 20 | memory { |
| 21 | reg = <0x90000000 0x10000000>; |
| 22 | }; |
| 23 | |
Damien Riegel | b446ff2 | 2015-12-11 12:08:14 -0500 | [diff] [blame] | 24 | clocks { |
| 25 | ckih1 { |
| 26 | clock-frequency = <22579200>; |
| 27 | }; |
| 28 | |
| 29 | ckih2 { |
| 30 | clock-frequency = <24576000>; |
| 31 | }; |
| 32 | }; |
| 33 | }; |
| 34 | |
| 35 | &esdhc1 { |
| 36 | pinctrl-names = "default"; |
| 37 | pinctrl-0 = <&pinctrl_esdhc1>; |
| 38 | cd-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
| 39 | wp-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>; |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | |
| 43 | &fec { |
| 44 | pinctrl-names = "default"; |
| 45 | pinctrl-0 = <&pinctrl_fec>; |
| 46 | phy-mode = "mii"; |
| 47 | phy-reset-gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; |
| 48 | phy-reset-duration = <1>; |
| 49 | status = "okay"; |
| 50 | }; |
| 51 | |
| 52 | &i2c2 { |
| 53 | pinctrl-names = "default"; |
| 54 | pinctrl-0 = <&pinctrl_i2c2>; |
| 55 | status = "okay"; |
| 56 | |
| 57 | rtc: m41t00@68 { |
| 58 | compatible = "stm,m41t00"; |
| 59 | reg = <0x68>; |
| 60 | }; |
| 61 | }; |
| 62 | |
| 63 | &uart1 { |
| 64 | pinctrl-names = "default"; |
| 65 | pinctrl-0 = <&pinctrl_uart1>; |
| 66 | status = "okay"; |
| 67 | }; |
| 68 | |
| 69 | &uart2 { |
| 70 | pinctrl-names = "default"; |
| 71 | pinctrl-0 = <&pinctrl_uart2>; |
| 72 | status = "okay"; |
| 73 | }; |
| 74 | |
| 75 | &uart3 { |
| 76 | pinctrl-names = "default"; |
| 77 | pinctrl-0 = <&pinctrl_uart3>; |
| 78 | status = "okay"; |
| 79 | }; |
| 80 | |
Damien Riegel | ef41e4c | 2015-12-17 16:16:53 -0500 | [diff] [blame^] | 81 | &weim { |
| 82 | pinctrl-names = "default"; |
| 83 | pinctrl-0 = <&pinctrl_weim>; |
| 84 | status = "okay"; |
| 85 | |
| 86 | fpga@0 { |
| 87 | compatible = "simple-bus"; |
| 88 | fsl,weim-cs-timing = <0x0061008F 0x00000002 0x1c022000 |
| 89 | 0x00000000 0x1c092480 0x00000000>; |
| 90 | reg = <0 0x0000000 0x1d000>; |
| 91 | #address-cells = <1>; |
| 92 | #size-cells = <1>; |
| 93 | ranges = <0 0 0 0x1d000>; |
| 94 | |
| 95 | syscon: syscon@b0010000 { |
| 96 | compatible = "syscon", "simple-mfd"; |
| 97 | reg = <0x10000 0x3d>; |
| 98 | reg-io-width = <2>; |
| 99 | |
| 100 | wdt@e { |
| 101 | compatible = "technologic,ts4800-wdt"; |
| 102 | syscon = <&syscon 0xe>; |
| 103 | }; |
| 104 | }; |
| 105 | }; |
| 106 | }; |
| 107 | |
Damien Riegel | b446ff2 | 2015-12-11 12:08:14 -0500 | [diff] [blame] | 108 | &iomuxc { |
| 109 | pinctrl_ecspi1: ecspi1grp { |
| 110 | fsl,pins = < |
| 111 | MX51_PAD_CSPI1_MISO__ECSPI1_MISO 0x185 |
| 112 | MX51_PAD_CSPI1_MOSI__ECSPI1_MOSI 0x185 |
| 113 | MX51_PAD_CSPI1_SCLK__ECSPI1_SCLK 0x185 |
| 114 | MX51_PAD_CSPI1_SS0__GPIO4_24 0x85 /* CS0 */ |
| 115 | >; |
| 116 | }; |
| 117 | |
| 118 | pinctrl_esdhc1: esdhc1grp { |
| 119 | fsl,pins = < |
| 120 | MX51_PAD_SD1_CMD__SD1_CMD 0x400020d5 |
| 121 | MX51_PAD_SD1_CLK__SD1_CLK 0x20d5 |
| 122 | MX51_PAD_SD1_DATA0__SD1_DATA0 0x20d5 |
| 123 | MX51_PAD_SD1_DATA1__SD1_DATA1 0x20d5 |
| 124 | MX51_PAD_SD1_DATA2__SD1_DATA2 0x20d5 |
| 125 | MX51_PAD_SD1_DATA3__SD1_DATA3 0x20d5 |
| 126 | MX51_PAD_GPIO1_0__GPIO1_0 0x100 |
| 127 | MX51_PAD_GPIO1_1__GPIO1_1 0x100 |
| 128 | >; |
| 129 | }; |
| 130 | |
| 131 | pinctrl_fec: fecgrp { |
| 132 | fsl,pins = < |
| 133 | MX51_PAD_EIM_EB2__FEC_MDIO 0x000001f5 |
| 134 | MX51_PAD_EIM_EB3__FEC_RDATA1 0x00000085 |
| 135 | MX51_PAD_EIM_CS2__FEC_RDATA2 0x00000085 |
| 136 | MX51_PAD_EIM_CS3__FEC_RDATA3 0x00000085 |
| 137 | MX51_PAD_EIM_CS4__FEC_RX_ER 0x00000180 |
| 138 | MX51_PAD_EIM_CS5__FEC_CRS 0x00000180 |
| 139 | MX51_PAD_DISP2_DAT10__FEC_COL 0x00000180 |
| 140 | MX51_PAD_DISP2_DAT11__FEC_RX_CLK 0x00000180 |
| 141 | MX51_PAD_DISP2_DAT14__FEC_RDATA0 0x00002180 |
| 142 | MX51_PAD_DISP2_DAT15__FEC_TDATA0 0x00002004 |
| 143 | MX51_PAD_NANDF_CS2__FEC_TX_ER 0x00002004 |
| 144 | MX51_PAD_DI2_PIN2__FEC_MDC 0x00002004 |
| 145 | MX51_PAD_DISP2_DAT6__FEC_TDATA1 0x00002004 |
| 146 | MX51_PAD_DISP2_DAT7__FEC_TDATA2 0x00002004 |
| 147 | MX51_PAD_DISP2_DAT8__FEC_TDATA3 0x00002004 |
| 148 | MX51_PAD_DISP2_DAT9__FEC_TX_EN 0x00002004 |
| 149 | MX51_PAD_DISP2_DAT13__FEC_TX_CLK 0x00002180 |
| 150 | MX51_PAD_DISP2_DAT12__FEC_RX_DV 0x000020a4 |
| 151 | MX51_PAD_EIM_A20__GPIO2_14 0x00000085 /* Phy Reset */ |
| 152 | >; |
| 153 | }; |
| 154 | |
| 155 | pinctrl_i2c2: i2c2grp { |
| 156 | fsl,pins = < |
| 157 | MX51_PAD_KEY_COL4__I2C2_SCL 0x400001ed |
| 158 | MX51_PAD_KEY_COL5__I2C2_SDA 0x400001ed |
| 159 | >; |
| 160 | }; |
| 161 | |
| 162 | pinctrl_uart1: uart1grp { |
| 163 | fsl,pins = < |
| 164 | MX51_PAD_UART1_RXD__UART1_RXD 0x1c5 |
| 165 | MX51_PAD_UART1_TXD__UART1_TXD 0x1c5 |
Damien Riegel | b446ff2 | 2015-12-11 12:08:14 -0500 | [diff] [blame] | 166 | >; |
| 167 | }; |
| 168 | |
| 169 | pinctrl_uart2: uart2grp { |
| 170 | fsl,pins = < |
| 171 | MX51_PAD_UART2_RXD__UART2_RXD 0x1c5 |
| 172 | MX51_PAD_UART2_TXD__UART2_TXD 0x1c5 |
| 173 | >; |
| 174 | }; |
| 175 | |
| 176 | pinctrl_uart3: uart3grp { |
| 177 | fsl,pins = < |
| 178 | MX51_PAD_EIM_D25__UART3_RXD 0x1c5 |
| 179 | MX51_PAD_EIM_D26__UART3_TXD 0x1c5 |
Damien Riegel | b446ff2 | 2015-12-11 12:08:14 -0500 | [diff] [blame] | 180 | >; |
| 181 | }; |
Damien Riegel | ef41e4c | 2015-12-17 16:16:53 -0500 | [diff] [blame^] | 182 | |
| 183 | pinctrl_weim: weimgrp { |
| 184 | fsl,pins = < |
| 185 | MX51_PAD_EIM_DTACK__EIM_DTACK 0x85 |
| 186 | MX51_PAD_EIM_CS0__EIM_CS0 0x0 |
| 187 | MX51_PAD_EIM_CS1__EIM_CS1 0x0 |
| 188 | MX51_PAD_EIM_EB0__EIM_EB0 0x85 |
| 189 | MX51_PAD_EIM_EB1__EIM_EB1 0x85 |
| 190 | MX51_PAD_EIM_OE__EIM_OE 0x85 |
| 191 | MX51_PAD_EIM_LBA__EIM_LBA 0x85 |
| 192 | >; |
| 193 | }; |
Damien Riegel | b446ff2 | 2015-12-11 12:08:14 -0500 | [diff] [blame] | 194 | }; |