Parthiban Nallathambi | 5e9147d | 2019-04-18 00:04:09 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2019 Parthiban Nallathambi <parthitce@gmail.com> |
| 4 | */ |
| 5 | |
| 6 | / { |
| 7 | model = "Variscite DART-6UL i.MX6 Ultra Low Lite SOM"; |
| 8 | compatible = "variscite,imx6ull-dart-6ul", "fsl,imx6ull"; |
| 9 | |
| 10 | memory { |
| 11 | reg = <0x80000000 0x20000000>; |
| 12 | }; |
| 13 | |
| 14 | chosen { |
| 15 | stdout-path = &uart1; |
| 16 | }; |
Marc Ferland | b17003f | 2020-12-22 14:24:11 -0500 | [diff] [blame] | 17 | |
| 18 | aliases { |
| 19 | eeprom0 = &eeprom_som; |
| 20 | }; |
Parthiban Nallathambi | 5e9147d | 2019-04-18 00:04:09 +0200 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | &fec1 { |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&pinctrl_enet1>; |
| 26 | phy-mode = "rmii"; |
| 27 | phy-handle = <ðphy0>; |
| 28 | status = "okay"; |
| 29 | |
| 30 | mdio1: mdio1 { |
| 31 | #address-cells = <1>; |
| 32 | #size-cells = <0>; |
| 33 | |
| 34 | ethphy0: ethernet-phy@1 { |
| 35 | reg = <1>; |
| 36 | micrel,led-mode = <1>; |
| 37 | }; |
| 38 | }; |
| 39 | }; |
| 40 | |
| 41 | &fec2 { |
| 42 | pinctrl-names = "default"; |
| 43 | pinctrl-0 = <&pinctrl_enet2>; |
| 44 | phy-mode = "rmii"; |
| 45 | phy-handle = <ðphy1>; |
| 46 | status = "okay"; |
| 47 | |
| 48 | mdio2: mdio2 { |
| 49 | #address-cells = <1>; |
| 50 | #size-cells = <0>; |
| 51 | |
| 52 | ethphy1: ethernet-phy@2 { |
| 53 | reg = <2>; |
| 54 | micrel,led-mode = <1>; |
| 55 | }; |
| 56 | }; |
| 57 | }; |
| 58 | |
Marc Ferland | 5612270 | 2020-12-22 14:24:12 -0500 | [diff] [blame^] | 59 | &gpio1 { |
| 60 | u-boot,dm-pre-reloc; |
| 61 | }; |
| 62 | |
Parthiban Nallathambi | 5e9147d | 2019-04-18 00:04:09 +0200 | [diff] [blame] | 63 | &gpmi { |
| 64 | pinctrl-names = "default"; |
| 65 | pinctrl-0 = <&pinctrl_gpmi_nand>; |
| 66 | nand-on-flash-bbt; |
| 67 | fsl,no-blockmark-swap; |
| 68 | status = "disabled"; |
| 69 | |
| 70 | #address-cells = <1>; |
| 71 | #size-cells = <1>; |
| 72 | |
| 73 | partition@0 { |
| 74 | label = "uboot"; |
| 75 | reg = <0x0 0x400000>; |
| 76 | }; |
| 77 | |
| 78 | partition@400000 { |
| 79 | label = "uboot-env"; |
| 80 | reg = <0x400000 0x100000>; |
| 81 | }; |
| 82 | |
| 83 | partition@500000 { |
| 84 | label = "root"; |
| 85 | reg = <0x500000 0x0>; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | &i2c1 { |
| 90 | clock-frequency = <100000>; |
| 91 | pinctrl-names = "default", "gpio"; |
| 92 | pinctrl-0 = <&pinctrl_i2c1>; |
| 93 | pinctrl-1 = <&pinctrl_i2c1_gpio>; |
| 94 | scl-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; |
| 95 | sda-gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>; |
| 96 | status = "okay"; |
| 97 | }; |
| 98 | |
| 99 | &i2c2 { |
| 100 | clock-frequency = <100000>; |
| 101 | pinctrl-names = "default", "gpio"; |
| 102 | pinctrl-0 = <&pinctrl_i2c2>; |
| 103 | pinctrl-1 = <&pinctrl_i2c2_gpio>; |
| 104 | scl-gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; |
| 105 | sda-gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; |
| 106 | status = "okay"; |
Marc Ferland | 5612270 | 2020-12-22 14:24:12 -0500 | [diff] [blame^] | 107 | u-boot,dm-pre-reloc; |
Parthiban Nallathambi | 5e9147d | 2019-04-18 00:04:09 +0200 | [diff] [blame] | 108 | |
Marc Ferland | b17003f | 2020-12-22 14:24:11 -0500 | [diff] [blame] | 109 | eeprom_som: eeprom@50 { |
Marc Ferland | 5612270 | 2020-12-22 14:24:12 -0500 | [diff] [blame^] | 110 | u-boot,dm-pre-reloc; |
Marc Ferland | b17003f | 2020-12-22 14:24:11 -0500 | [diff] [blame] | 111 | compatible = "atmel,24c04"; |
Parthiban Nallathambi | 5e9147d | 2019-04-18 00:04:09 +0200 | [diff] [blame] | 112 | reg = <0x50>; |
Marc Ferland | b17003f | 2020-12-22 14:24:11 -0500 | [diff] [blame] | 113 | status = "okay"; |
Parthiban Nallathambi | 5e9147d | 2019-04-18 00:04:09 +0200 | [diff] [blame] | 114 | }; |
| 115 | }; |
| 116 | |
| 117 | &pwm1 { |
| 118 | pinctrl-names = "default"; |
| 119 | pinctrl-0 = <&pinctrl_pwm1>; |
| 120 | #pwm-cells = <3>; |
| 121 | status = "okay"; |
| 122 | }; |
| 123 | |
| 124 | &uart1 { |
| 125 | pinctrl-names = "default"; |
| 126 | pinctrl-0 = <&pinctrl_uart1>; |
| 127 | status = "okay"; |
| 128 | }; |
| 129 | |
| 130 | &usdhc1 { |
| 131 | pinctrl-names = "default"; |
| 132 | pinctrl-0 = <&pinctrl_usdhc1>; |
| 133 | cd-gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; |
| 134 | bus-width = <0x4>; |
| 135 | no-1-8-v; |
| 136 | status = "okay"; |
| 137 | }; |
| 138 | |
| 139 | &usdhc2 { |
| 140 | pinctrl-names = "default"; |
| 141 | pinctrl-0 = <&pinctrl_usdhc2>; |
| 142 | bus-width = <8>; |
| 143 | no-1-8-v; |
| 144 | non-removable; |
| 145 | keep-power-in-suspend; |
| 146 | status = "disabled"; |
| 147 | }; |
| 148 | |
| 149 | &iomuxc { |
| 150 | pinctrl-names = "default"; |
| 151 | |
| 152 | pinctrl_enet1: enet1grp { |
| 153 | fsl,pins = < |
| 154 | MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x1b0b0 |
| 155 | MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0X1b0b0 |
| 156 | MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b0b0 |
| 157 | MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b0b0 |
| 158 | MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b0b0 |
| 159 | MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b0b0 |
| 160 | MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0b0 |
| 161 | MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b0b0 |
| 162 | MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b0b0 |
| 163 | MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031 |
| 164 | >; |
| 165 | }; |
| 166 | |
| 167 | pinctrl_enet2: enet2grp { |
| 168 | fsl,pins = < |
| 169 | MX6UL_PAD_GPIO1_IO06__ENET2_MDIO 0x1b0b0 |
| 170 | MX6UL_PAD_GPIO1_IO07__ENET2_MDC 0X1b0b0 |
| 171 | MX6UL_PAD_ENET2_RX_EN__ENET2_RX_EN 0x1b0b0 |
| 172 | MX6UL_PAD_ENET2_RX_ER__ENET2_RX_ER 0x1b0b0 |
| 173 | MX6UL_PAD_ENET2_RX_DATA0__ENET2_RDATA00 0x1b0b0 |
| 174 | MX6UL_PAD_ENET2_RX_DATA1__ENET2_RDATA01 0x1b0b0 |
| 175 | MX6UL_PAD_ENET2_TX_EN__ENET2_TX_EN 0x1b0b0 |
| 176 | MX6UL_PAD_ENET2_TX_DATA0__ENET2_TDATA00 0x1b0b0 |
| 177 | MX6UL_PAD_ENET2_TX_DATA1__ENET2_TDATA01 0x1b0b0 |
| 178 | MX6UL_PAD_ENET2_TX_CLK__ENET2_REF_CLK2 0x4001b031 |
| 179 | >; |
| 180 | }; |
| 181 | |
| 182 | pinctrl_gpmi_nand: gpminandgrp { |
| 183 | fsl,pins = < |
| 184 | MX6UL_PAD_NAND_DQS__RAWNAND_DQS 0x0b0b1 |
| 185 | MX6UL_PAD_NAND_CLE__RAWNAND_CLE 0x0b0b1 |
| 186 | MX6UL_PAD_NAND_ALE__RAWNAND_ALE 0x0b0b1 |
| 187 | MX6UL_PAD_NAND_WP_B__RAWNAND_WP_B 0x0b0b1 |
| 188 | MX6UL_PAD_NAND_READY_B__RAWNAND_READY_B 0x0b000 |
| 189 | MX6UL_PAD_NAND_CE0_B__RAWNAND_CE0_B 0x0b0b1 |
| 190 | MX6UL_PAD_NAND_CE1_B__RAWNAND_CE1_B 0x0b0b1 |
| 191 | MX6UL_PAD_NAND_RE_B__RAWNAND_RE_B 0x0b0b1 |
| 192 | MX6UL_PAD_NAND_WE_B__RAWNAND_WE_B 0x0b0b1 |
| 193 | MX6UL_PAD_NAND_DATA00__RAWNAND_DATA00 0x0b0b1 |
| 194 | MX6UL_PAD_NAND_DATA01__RAWNAND_DATA01 0x0b0b1 |
| 195 | MX6UL_PAD_NAND_DATA02__RAWNAND_DATA02 0x0b0b1 |
| 196 | MX6UL_PAD_NAND_DATA03__RAWNAND_DATA03 0x0b0b1 |
| 197 | MX6UL_PAD_NAND_DATA04__RAWNAND_DATA04 0x0b0b1 |
| 198 | MX6UL_PAD_NAND_DATA05__RAWNAND_DATA05 0x0b0b1 |
| 199 | MX6UL_PAD_NAND_DATA06__RAWNAND_DATA06 0x0b0b1 |
| 200 | MX6UL_PAD_NAND_DATA07__RAWNAND_DATA07 0x0b0b1 |
| 201 | >; |
| 202 | }; |
| 203 | |
| 204 | pinctrl_i2c1: i2cgrp { |
| 205 | fsl,pins = < |
| 206 | MX6UL_PAD_UART4_TX_DATA__I2C1_SCL 0x4001b8b0 |
| 207 | MX6UL_PAD_UART4_RX_DATA__I2C1_SDA 0x4001b8b0 |
| 208 | >; |
| 209 | }; |
| 210 | |
| 211 | pinctrl_i2c1_gpio: i2c1grp_gpio { |
| 212 | fsl,pins = < |
| 213 | MX6UL_PAD_UART4_TX_DATA__GPIO1_IO28 0x1b8b0 |
| 214 | MX6UL_PAD_UART4_RX_DATA__GPIO1_IO29 0x1b8b0 |
| 215 | >; |
| 216 | }; |
| 217 | |
| 218 | pinctrl_i2c2: i2cgrp { |
Marc Ferland | 5612270 | 2020-12-22 14:24:12 -0500 | [diff] [blame^] | 219 | u-boot,dm-pre-reloc; |
Parthiban Nallathambi | 5e9147d | 2019-04-18 00:04:09 +0200 | [diff] [blame] | 220 | fsl,pins = < |
| 221 | MX6UL_PAD_UART5_TX_DATA__I2C2_SCL 0x4001b8b0 |
| 222 | MX6UL_PAD_UART5_RX_DATA__I2C2_SDA 0x4001b8b0 |
| 223 | >; |
| 224 | }; |
| 225 | |
| 226 | pinctrl_i2c2_gpio: i2c2grp_gpio { |
Marc Ferland | 5612270 | 2020-12-22 14:24:12 -0500 | [diff] [blame^] | 227 | u-boot,dm-pre-reloc; |
Parthiban Nallathambi | 5e9147d | 2019-04-18 00:04:09 +0200 | [diff] [blame] | 228 | fsl,pins = < |
| 229 | MX6UL_PAD_UART5_TX_DATA__GPIO1_IO30 0x1b8b0 |
| 230 | MX6UL_PAD_UART5_RX_DATA__GPIO1_IO31 0x1b8b0 |
| 231 | >; |
| 232 | }; |
| 233 | |
| 234 | pinctrl_pwm1: pwm1grp { |
| 235 | fsl,pins = < |
| 236 | MX6UL_PAD_LCD_DATA00__GPIO3_IO05 0x1b0b1 |
| 237 | >; |
| 238 | }; |
| 239 | |
| 240 | pinctrl_uart1: uart1grp { |
| 241 | fsl,pins = < |
| 242 | MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b1 |
| 243 | MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b1 |
| 244 | >; |
| 245 | }; |
| 246 | |
| 247 | pinctrl_usdhc1: usdhc1grp { |
| 248 | fsl,pins = < |
| 249 | MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059 |
| 250 | MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10059 |
| 251 | MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059 |
| 252 | MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059 |
| 253 | MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059 |
| 254 | MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059 |
| 255 | MX6UL_PAD_UART1_RTS_B__GPIO1_IO19 0x17059 |
| 256 | |
| 257 | >; |
| 258 | }; |
| 259 | |
| 260 | pinctrl_usdhc2: usdhc2grp { |
| 261 | fsl,pins = < |
| 262 | MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x170f9 |
| 263 | MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x100f9 |
| 264 | MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x170f9 |
| 265 | MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x170f9 |
| 266 | MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x170f9 |
| 267 | MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x170f9 |
| 268 | MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x170f9 |
| 269 | MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x170f9 |
| 270 | MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x170f9 |
| 271 | MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x170f9 |
| 272 | >; |
| 273 | }; |
| 274 | }; |