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