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