1f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2f126890aSEmmanuel Vadot 3f126890aSEmmanuel Vadot/* 4f126890aSEmmanuel Vadot * Copyright (C) 2018 Zodiac Inflight Innovations 5f126890aSEmmanuel Vadot */ 6f126890aSEmmanuel Vadot 7f126890aSEmmanuel Vadot/dts-v1/; 8f126890aSEmmanuel Vadot#include "vf610.dtsi" 9f126890aSEmmanuel Vadot 10f126890aSEmmanuel Vadot/ { 11f126890aSEmmanuel Vadot model = "ZII VF610 CFU1 Board"; 12f126890aSEmmanuel Vadot compatible = "zii,vf610cfu1", "zii,vf610dev", "fsl,vf610"; 13f126890aSEmmanuel Vadot 14f126890aSEmmanuel Vadot chosen { 15f126890aSEmmanuel Vadot stdout-path = &uart0; 16f126890aSEmmanuel Vadot }; 17f126890aSEmmanuel Vadot 18f126890aSEmmanuel Vadot memory@80000000 { 19f126890aSEmmanuel Vadot device_type = "memory"; 20f126890aSEmmanuel Vadot reg = <0x80000000 0x20000000>; 21f126890aSEmmanuel Vadot }; 22f126890aSEmmanuel Vadot 23f126890aSEmmanuel Vadot gpio-leds { 24f126890aSEmmanuel Vadot compatible = "gpio-leds"; 25f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_leds_debug>; 26f126890aSEmmanuel Vadot pinctrl-names = "default"; 27f126890aSEmmanuel Vadot 28f126890aSEmmanuel Vadot led-debug { 29f126890aSEmmanuel Vadot label = "zii:green:debug1"; 30f126890aSEmmanuel Vadot gpios = <&gpio2 18 GPIO_ACTIVE_HIGH>; 31f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 32f126890aSEmmanuel Vadot }; 33f126890aSEmmanuel Vadot 34f126890aSEmmanuel Vadot led-fail { 35f126890aSEmmanuel Vadot label = "zii:red:fail"; 36f126890aSEmmanuel Vadot gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; 37f126890aSEmmanuel Vadot default-state = "off"; 38f126890aSEmmanuel Vadot }; 39f126890aSEmmanuel Vadot 40f126890aSEmmanuel Vadot led-status { 41f126890aSEmmanuel Vadot label = "zii:green:status"; 42f126890aSEmmanuel Vadot gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; 43f126890aSEmmanuel Vadot default-state = "off"; 44f126890aSEmmanuel Vadot }; 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot led-debug-a { 47f126890aSEmmanuel Vadot label = "zii:green:debug_a"; 48f126890aSEmmanuel Vadot gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; 49f126890aSEmmanuel Vadot default-state = "off"; 50f126890aSEmmanuel Vadot }; 51f126890aSEmmanuel Vadot 52f126890aSEmmanuel Vadot led-debug-b { 53f126890aSEmmanuel Vadot label = "zii:green:debug_b"; 54f126890aSEmmanuel Vadot gpios = <&gpio3 15 GPIO_ACTIVE_HIGH>; 55f126890aSEmmanuel Vadot default-state = "off"; 56f126890aSEmmanuel Vadot }; 57f126890aSEmmanuel Vadot }; 58f126890aSEmmanuel Vadot 59f126890aSEmmanuel Vadot reg_vcc_3v3_mcu: regulator-vcc-3v3-mcu { 60f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 61f126890aSEmmanuel Vadot regulator-name = "vcc_3v3_mcu"; 62f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 63f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 64f126890aSEmmanuel Vadot }; 65f126890aSEmmanuel Vadot 66f126890aSEmmanuel Vadot sff: sfp { 67f126890aSEmmanuel Vadot compatible = "sff,sff"; 68f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_optical>; 69f126890aSEmmanuel Vadot pinctrl-names = "default"; 70f126890aSEmmanuel Vadot i2c-bus = <&i2c0>; 71f126890aSEmmanuel Vadot los-gpio = <&gpio4 4 GPIO_ACTIVE_HIGH>; 72f126890aSEmmanuel Vadot tx-disable-gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>; 73f126890aSEmmanuel Vadot }; 74f126890aSEmmanuel Vadot 75f126890aSEmmanuel Vadot supply-voltage-monitor { 76f126890aSEmmanuel Vadot compatible = "iio-hwmon"; 77f126890aSEmmanuel Vadot io-channels = <&adc0 8>, /* 28VDC_IN */ 78f126890aSEmmanuel Vadot <&adc0 9>, /* +3.3V */ 79f126890aSEmmanuel Vadot <&adc1 8>, /* VCC_1V5 */ 80f126890aSEmmanuel Vadot <&adc1 9>; /* VCC_1V2 */ 81f126890aSEmmanuel Vadot }; 82f126890aSEmmanuel Vadot}; 83f126890aSEmmanuel Vadot 84f126890aSEmmanuel Vadot&adc0 { 85f126890aSEmmanuel Vadot vref-supply = <®_vcc_3v3_mcu>; 86f126890aSEmmanuel Vadot status = "okay"; 87f126890aSEmmanuel Vadot}; 88f126890aSEmmanuel Vadot 89f126890aSEmmanuel Vadot&adc1 { 90f126890aSEmmanuel Vadot vref-supply = <®_vcc_3v3_mcu>; 91f126890aSEmmanuel Vadot status = "okay"; 92f126890aSEmmanuel Vadot}; 93f126890aSEmmanuel Vadot 94f126890aSEmmanuel Vadot&dspi1 { 95f126890aSEmmanuel Vadot bus-num = <1>; 96f126890aSEmmanuel Vadot pinctrl-names = "default"; 97f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_dspi1>; 98f126890aSEmmanuel Vadot /* 99f126890aSEmmanuel Vadot * Some CFU1s come with SPI-NOR chip DNPed, so we leave this 100f126890aSEmmanuel Vadot * node disabled by default and rely on bootloader to enable 101f126890aSEmmanuel Vadot * it when appropriate. 102f126890aSEmmanuel Vadot */ 103f126890aSEmmanuel Vadot status = "disabled"; 104f126890aSEmmanuel Vadot 105f126890aSEmmanuel Vadot flash@0 { 106f126890aSEmmanuel Vadot #address-cells = <1>; 107f126890aSEmmanuel Vadot #size-cells = <1>; 108f126890aSEmmanuel Vadot compatible = "m25p128", "jedec,spi-nor"; 109f126890aSEmmanuel Vadot reg = <0>; 110f126890aSEmmanuel Vadot spi-max-frequency = <50000000>; 111f126890aSEmmanuel Vadot 112f126890aSEmmanuel Vadot partition@0 { 113f126890aSEmmanuel Vadot label = "m25p128-0"; 114f126890aSEmmanuel Vadot reg = <0x0 0x01000000>; 115f126890aSEmmanuel Vadot }; 116f126890aSEmmanuel Vadot }; 117f126890aSEmmanuel Vadot}; 118f126890aSEmmanuel Vadot 119f126890aSEmmanuel Vadot&edma0 { 120f126890aSEmmanuel Vadot status = "okay"; 121f126890aSEmmanuel Vadot}; 122f126890aSEmmanuel Vadot 123f126890aSEmmanuel Vadot&edma1 { 124f126890aSEmmanuel Vadot status = "okay"; 125f126890aSEmmanuel Vadot}; 126f126890aSEmmanuel Vadot 127f126890aSEmmanuel Vadot&esdhc0 { 128f126890aSEmmanuel Vadot pinctrl-names = "default"; 129f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_esdhc0>; 130f126890aSEmmanuel Vadot bus-width = <8>; 131f126890aSEmmanuel Vadot non-removable; 132f126890aSEmmanuel Vadot no-1-8-v; 133f126890aSEmmanuel Vadot keep-power-in-suspend; 134f126890aSEmmanuel Vadot no-sdio; 135f126890aSEmmanuel Vadot no-sd; 136f126890aSEmmanuel Vadot status = "okay"; 137f126890aSEmmanuel Vadot}; 138f126890aSEmmanuel Vadot 139f126890aSEmmanuel Vadot&esdhc1 { 140f126890aSEmmanuel Vadot pinctrl-names = "default"; 141f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_esdhc1>; 142f126890aSEmmanuel Vadot bus-width = <4>; 143f126890aSEmmanuel Vadot no-sdio; 144f126890aSEmmanuel Vadot status = "okay"; 145f126890aSEmmanuel Vadot}; 146f126890aSEmmanuel Vadot 147f126890aSEmmanuel Vadot&fec1 { 148f126890aSEmmanuel Vadot phy-mode = "rmii"; 149f126890aSEmmanuel Vadot pinctrl-names = "default"; 150f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_fec1>; 151f126890aSEmmanuel Vadot status = "okay"; 152f126890aSEmmanuel Vadot 153f126890aSEmmanuel Vadot fixed-link { 154f126890aSEmmanuel Vadot speed = <100>; 155f126890aSEmmanuel Vadot full-duplex; 156f126890aSEmmanuel Vadot }; 157f126890aSEmmanuel Vadot 158f126890aSEmmanuel Vadot mdio1: mdio { 159f126890aSEmmanuel Vadot #address-cells = <1>; 160f126890aSEmmanuel Vadot #size-cells = <0>; 161f126890aSEmmanuel Vadot clock-frequency = <12500000>; 162f126890aSEmmanuel Vadot suppress-preamble; 163f126890aSEmmanuel Vadot status = "okay"; 164f126890aSEmmanuel Vadot 165*8d13bc63SEmmanuel Vadot switch0: ethernet-switch@0 { 166f126890aSEmmanuel Vadot compatible = "marvell,mv88e6085"; 167f126890aSEmmanuel Vadot pinctrl-names = "default"; 168f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_switch>; 169f126890aSEmmanuel Vadot reg = <0>; 170f126890aSEmmanuel Vadot eeprom-length = <512>; 171f126890aSEmmanuel Vadot interrupt-parent = <&gpio3>; 172f126890aSEmmanuel Vadot interrupts = <2 IRQ_TYPE_LEVEL_LOW>; 173f126890aSEmmanuel Vadot interrupt-controller; 174f126890aSEmmanuel Vadot #interrupt-cells = <2>; 175f126890aSEmmanuel Vadot 176*8d13bc63SEmmanuel Vadot ethernet-ports { 177f126890aSEmmanuel Vadot #address-cells = <1>; 178f126890aSEmmanuel Vadot #size-cells = <0>; 179f126890aSEmmanuel Vadot 180*8d13bc63SEmmanuel Vadot ethernet-port@0 { 181f126890aSEmmanuel Vadot reg = <0>; 182f126890aSEmmanuel Vadot label = "eth_cu_1000_1"; 183f126890aSEmmanuel Vadot }; 184f126890aSEmmanuel Vadot 185*8d13bc63SEmmanuel Vadot ethernet-port@1 { 186f126890aSEmmanuel Vadot reg = <1>; 187f126890aSEmmanuel Vadot label = "eth_cu_1000_2"; 188f126890aSEmmanuel Vadot }; 189f126890aSEmmanuel Vadot 190*8d13bc63SEmmanuel Vadot ethernet-port@2 { 191f126890aSEmmanuel Vadot reg = <2>; 192f126890aSEmmanuel Vadot label = "eth_cu_1000_3"; 193f126890aSEmmanuel Vadot }; 194f126890aSEmmanuel Vadot 195*8d13bc63SEmmanuel Vadot ethernet-port@5 { 196f126890aSEmmanuel Vadot reg = <5>; 197f126890aSEmmanuel Vadot label = "eth_fc_1000_1"; 198f126890aSEmmanuel Vadot phy-mode = "1000base-x"; 199f126890aSEmmanuel Vadot managed = "in-band-status"; 200f126890aSEmmanuel Vadot sfp = <&sff>; 201f126890aSEmmanuel Vadot }; 202f126890aSEmmanuel Vadot 203*8d13bc63SEmmanuel Vadot ethernet-port@6 { 204f126890aSEmmanuel Vadot reg = <6>; 205f126890aSEmmanuel Vadot phy-mode = "rmii"; 206f126890aSEmmanuel Vadot ethernet = <&fec1>; 207f126890aSEmmanuel Vadot 208f126890aSEmmanuel Vadot fixed-link { 209f126890aSEmmanuel Vadot speed = <100>; 210f126890aSEmmanuel Vadot full-duplex; 211f126890aSEmmanuel Vadot }; 212f126890aSEmmanuel Vadot }; 213f126890aSEmmanuel Vadot }; 214f126890aSEmmanuel Vadot }; 215f126890aSEmmanuel Vadot }; 216f126890aSEmmanuel Vadot}; 217f126890aSEmmanuel Vadot 218f126890aSEmmanuel Vadot&i2c0 { 219f126890aSEmmanuel Vadot clock-frequency = <100000>; 220f126890aSEmmanuel Vadot pinctrl-names = "default"; 221f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_i2c0>; 222f126890aSEmmanuel Vadot status = "okay"; 223f126890aSEmmanuel Vadot 224f126890aSEmmanuel Vadot io-expander@22 { 225f126890aSEmmanuel Vadot compatible = "nxp,pca9554"; 226f126890aSEmmanuel Vadot reg = <0x22>; 227f126890aSEmmanuel Vadot gpio-controller; 228f126890aSEmmanuel Vadot #gpio-cells = <2>; 229f126890aSEmmanuel Vadot }; 230f126890aSEmmanuel Vadot 231f126890aSEmmanuel Vadot lm75@48 { 232f126890aSEmmanuel Vadot compatible = "national,lm75"; 233f126890aSEmmanuel Vadot reg = <0x48>; 234f126890aSEmmanuel Vadot }; 235f126890aSEmmanuel Vadot 236f126890aSEmmanuel Vadot eeprom@52 { 237f126890aSEmmanuel Vadot compatible = "atmel,24c04"; 238f126890aSEmmanuel Vadot reg = <0x52>; 239f126890aSEmmanuel Vadot label = "nvm"; 240f126890aSEmmanuel Vadot }; 241f126890aSEmmanuel Vadot 242f126890aSEmmanuel Vadot eeprom@54 { 243f126890aSEmmanuel Vadot compatible = "atmel,24c04"; 244f126890aSEmmanuel Vadot reg = <0x54>; 245f126890aSEmmanuel Vadot label = "nameplate"; 246f126890aSEmmanuel Vadot }; 247f126890aSEmmanuel Vadot}; 248f126890aSEmmanuel Vadot 249f126890aSEmmanuel Vadot&i2c1 { 250f126890aSEmmanuel Vadot clock-frequency = <100000>; 251f126890aSEmmanuel Vadot pinctrl-names = "default"; 252f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_i2c1>; 253f126890aSEmmanuel Vadot status = "okay"; 254f126890aSEmmanuel Vadot 255f126890aSEmmanuel Vadot watchdog@38 { 256f126890aSEmmanuel Vadot compatible = "zii,rave-wdt"; 257f126890aSEmmanuel Vadot reg = <0x38>; 258f126890aSEmmanuel Vadot }; 259f126890aSEmmanuel Vadot}; 260f126890aSEmmanuel Vadot 261f126890aSEmmanuel Vadot&snvsrtc { 262f126890aSEmmanuel Vadot status = "disabled"; 263f126890aSEmmanuel Vadot}; 264f126890aSEmmanuel Vadot 265f126890aSEmmanuel Vadot&uart0 { 266f126890aSEmmanuel Vadot pinctrl-names = "default"; 267f126890aSEmmanuel Vadot pinctrl-0 = <&pinctrl_uart0>; 268f126890aSEmmanuel Vadot status = "okay"; 269f126890aSEmmanuel Vadot}; 270f126890aSEmmanuel Vadot 271f126890aSEmmanuel Vadot&iomuxc { 272f126890aSEmmanuel Vadot pinctrl_dspi1: dspi1grp { 273f126890aSEmmanuel Vadot fsl,pins = < 274f126890aSEmmanuel Vadot VF610_PAD_PTD5__DSPI1_CS0 0x1182 275f126890aSEmmanuel Vadot VF610_PAD_PTC6__DSPI1_SIN 0x1181 276f126890aSEmmanuel Vadot VF610_PAD_PTC7__DSPI1_SOUT 0x1182 277f126890aSEmmanuel Vadot VF610_PAD_PTC8__DSPI1_SCK 0x1182 278f126890aSEmmanuel Vadot >; 279f126890aSEmmanuel Vadot }; 280f126890aSEmmanuel Vadot 281f126890aSEmmanuel Vadot pinctrl_esdhc0: esdhc0grp { 282f126890aSEmmanuel Vadot fsl,pins = < 283f126890aSEmmanuel Vadot VF610_PAD_PTC0__ESDHC0_CLK 0x31ef 284f126890aSEmmanuel Vadot VF610_PAD_PTC1__ESDHC0_CMD 0x31ef 285f126890aSEmmanuel Vadot VF610_PAD_PTC2__ESDHC0_DAT0 0x31ef 286f126890aSEmmanuel Vadot VF610_PAD_PTC3__ESDHC0_DAT1 0x31ef 287f126890aSEmmanuel Vadot VF610_PAD_PTC4__ESDHC0_DAT2 0x31ef 288f126890aSEmmanuel Vadot VF610_PAD_PTC5__ESDHC0_DAT3 0x31ef 289f126890aSEmmanuel Vadot VF610_PAD_PTD23__ESDHC0_DAT4 0x31ef 290f126890aSEmmanuel Vadot VF610_PAD_PTD22__ESDHC0_DAT5 0x31ef 291f126890aSEmmanuel Vadot VF610_PAD_PTD21__ESDHC0_DAT6 0x31ef 292f126890aSEmmanuel Vadot VF610_PAD_PTD20__ESDHC0_DAT7 0x31ef 293f126890aSEmmanuel Vadot >; 294f126890aSEmmanuel Vadot }; 295f126890aSEmmanuel Vadot 296f126890aSEmmanuel Vadot pinctrl_esdhc1: esdhc1grp { 297f126890aSEmmanuel Vadot fsl,pins = < 298f126890aSEmmanuel Vadot VF610_PAD_PTA24__ESDHC1_CLK 0x31ef 299f126890aSEmmanuel Vadot VF610_PAD_PTA25__ESDHC1_CMD 0x31ef 300f126890aSEmmanuel Vadot VF610_PAD_PTA26__ESDHC1_DAT0 0x31ef 301f126890aSEmmanuel Vadot VF610_PAD_PTA27__ESDHC1_DAT1 0x31ef 302f126890aSEmmanuel Vadot VF610_PAD_PTA28__ESDHC1_DATA2 0x31ef 303f126890aSEmmanuel Vadot VF610_PAD_PTA29__ESDHC1_DAT3 0x31ef 304f126890aSEmmanuel Vadot >; 305f126890aSEmmanuel Vadot }; 306f126890aSEmmanuel Vadot 307f126890aSEmmanuel Vadot pinctrl_fec1: fec1grp { 308f126890aSEmmanuel Vadot fsl,pins = < 309f126890aSEmmanuel Vadot VF610_PAD_PTA6__RMII_CLKIN 0x30d1 310f126890aSEmmanuel Vadot VF610_PAD_PTC9__ENET_RMII1_MDC 0x30fe 311f126890aSEmmanuel Vadot VF610_PAD_PTC10__ENET_RMII1_MDIO 0x30d3 312f126890aSEmmanuel Vadot VF610_PAD_PTC11__ENET_RMII1_CRS 0x30d1 313f126890aSEmmanuel Vadot VF610_PAD_PTC12__ENET_RMII1_RXD1 0x30d1 314f126890aSEmmanuel Vadot VF610_PAD_PTC13__ENET_RMII1_RXD0 0x30d1 315f126890aSEmmanuel Vadot VF610_PAD_PTC14__ENET_RMII1_RXER 0x30d1 316f126890aSEmmanuel Vadot VF610_PAD_PTC15__ENET_RMII1_TXD1 0x30d2 317f126890aSEmmanuel Vadot VF610_PAD_PTC16__ENET_RMII1_TXD0 0x30d2 318f126890aSEmmanuel Vadot VF610_PAD_PTC17__ENET_RMII1_TXEN 0x30d2 319f126890aSEmmanuel Vadot >; 320f126890aSEmmanuel Vadot }; 321f126890aSEmmanuel Vadot 322f126890aSEmmanuel Vadot pinctrl_i2c0: i2c0grp { 323f126890aSEmmanuel Vadot fsl,pins = < 324f126890aSEmmanuel Vadot VF610_PAD_PTB14__I2C0_SCL 0x37ff 325f126890aSEmmanuel Vadot VF610_PAD_PTB15__I2C0_SDA 0x37ff 326f126890aSEmmanuel Vadot >; 327f126890aSEmmanuel Vadot }; 328f126890aSEmmanuel Vadot 329f126890aSEmmanuel Vadot pinctrl_i2c1: i2c1grp { 330f126890aSEmmanuel Vadot fsl,pins = < 331f126890aSEmmanuel Vadot VF610_PAD_PTB16__I2C1_SCL 0x37ff 332f126890aSEmmanuel Vadot VF610_PAD_PTB17__I2C1_SDA 0x37ff 333f126890aSEmmanuel Vadot >; 334f126890aSEmmanuel Vadot }; 335f126890aSEmmanuel Vadot 336f126890aSEmmanuel Vadot pinctrl_leds_debug: pinctrl-leds-debug { 337f126890aSEmmanuel Vadot fsl,pins = < 338f126890aSEmmanuel Vadot VF610_PAD_PTD3__GPIO_82 0x31c2 339f126890aSEmmanuel Vadot VF610_PAD_PTE3__GPIO_108 0x31c2 340f126890aSEmmanuel Vadot VF610_PAD_PTE4__GPIO_109 0x31c2 341f126890aSEmmanuel Vadot VF610_PAD_PTE5__GPIO_110 0x31c2 342f126890aSEmmanuel Vadot VF610_PAD_PTE6__GPIO_111 0x31c2 343f126890aSEmmanuel Vadot >; 344f126890aSEmmanuel Vadot }; 345f126890aSEmmanuel Vadot 346f126890aSEmmanuel Vadot pinctrl_optical: optical-grp { 347f126890aSEmmanuel Vadot fsl,pins = < 348f126890aSEmmanuel Vadot /* SFF SD input */ 349f126890aSEmmanuel Vadot VF610_PAD_PTE27__GPIO_132 0x3061 350f126890aSEmmanuel Vadot 351f126890aSEmmanuel Vadot /* SFF Transmit disable output */ 352f126890aSEmmanuel Vadot VF610_PAD_PTE13__GPIO_118 0x3043 353f126890aSEmmanuel Vadot >; 354f126890aSEmmanuel Vadot }; 355f126890aSEmmanuel Vadot 356f126890aSEmmanuel Vadot pinctrl_switch: switch-grp { 357f126890aSEmmanuel Vadot fsl,pins = < 358f126890aSEmmanuel Vadot VF610_PAD_PTB28__GPIO_98 0x3061 359f126890aSEmmanuel Vadot >; 360f126890aSEmmanuel Vadot }; 361f126890aSEmmanuel Vadot 362f126890aSEmmanuel Vadot pinctrl_uart0: uart0grp { 363f126890aSEmmanuel Vadot fsl,pins = < 364f126890aSEmmanuel Vadot VF610_PAD_PTB10__UART0_TX 0x21a2 365f126890aSEmmanuel Vadot VF610_PAD_PTB11__UART0_RX 0x21a1 366f126890aSEmmanuel Vadot >; 367f126890aSEmmanuel Vadot }; 368f126890aSEmmanuel Vadot}; 369