1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for Lenovo Iomega ix4-300d 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2014, Benoit Masson <yahoo@perenite.com> 6*724ba675SRob Herring */ 7*724ba675SRob Herring 8*724ba675SRob Herring/dts-v1/; 9*724ba675SRob Herring 10*724ba675SRob Herring#include <dt-bindings/input/input.h> 11*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 12*724ba675SRob Herring#include "armada-xp-mv78230.dtsi" 13*724ba675SRob Herring 14*724ba675SRob Herring/ { 15*724ba675SRob Herring model = "Lenovo Iomega ix4-300d"; 16*724ba675SRob Herring compatible = "lenovo,ix4-300d", "marvell,armadaxp-mv78230", 17*724ba675SRob Herring "marvell,armadaxp", "marvell,armada-370-xp"; 18*724ba675SRob Herring 19*724ba675SRob Herring chosen { 20*724ba675SRob Herring stdout-path = "serial0:115200n8"; 21*724ba675SRob Herring }; 22*724ba675SRob Herring 23*724ba675SRob Herring memory@0 { 24*724ba675SRob Herring device_type = "memory"; 25*724ba675SRob Herring reg = <0 0x00000000 0 0x20000000>; /* 512MB */ 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring soc { 29*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000 30*724ba675SRob Herring MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 31*724ba675SRob Herring MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000 32*724ba675SRob Herring MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000>; 33*724ba675SRob Herring 34*724ba675SRob Herring internal-regs { 35*724ba675SRob Herring serial@12000 { 36*724ba675SRob Herring status = "okay"; 37*724ba675SRob Herring }; 38*724ba675SRob Herring 39*724ba675SRob Herring ethernet@70000 { 40*724ba675SRob Herring pinctrl-0 = <&ge0_rgmii_pins>; 41*724ba675SRob Herring pinctrl-names = "default"; 42*724ba675SRob Herring status = "okay"; 43*724ba675SRob Herring phy = <&phy0>; 44*724ba675SRob Herring phy-mode = "rgmii-id"; 45*724ba675SRob Herring }; 46*724ba675SRob Herring 47*724ba675SRob Herring ethernet@74000 { 48*724ba675SRob Herring pinctrl-0 = <&ge1_rgmii_pins>; 49*724ba675SRob Herring pinctrl-names = "default"; 50*724ba675SRob Herring status = "okay"; 51*724ba675SRob Herring phy = <&phy1>; 52*724ba675SRob Herring phy-mode = "rgmii-id"; 53*724ba675SRob Herring }; 54*724ba675SRob Herring 55*724ba675SRob Herring usb@50000 { 56*724ba675SRob Herring status = "okay"; 57*724ba675SRob Herring }; 58*724ba675SRob Herring 59*724ba675SRob Herring usb@51000 { 60*724ba675SRob Herring status = "okay"; 61*724ba675SRob Herring }; 62*724ba675SRob Herring 63*724ba675SRob Herring i2c@11000 { 64*724ba675SRob Herring clock-frequency = <400000>; 65*724ba675SRob Herring status = "okay"; 66*724ba675SRob Herring 67*724ba675SRob Herring adt7473@2e { 68*724ba675SRob Herring compatible = "adi,adt7473"; 69*724ba675SRob Herring reg = <0x2e>; 70*724ba675SRob Herring }; 71*724ba675SRob Herring 72*724ba675SRob Herring eeprom@50 { 73*724ba675SRob Herring compatible = "atmel,24c64"; 74*724ba675SRob Herring reg = <0x50>; 75*724ba675SRob Herring }; 76*724ba675SRob Herring 77*724ba675SRob Herring pcf8563@51 { 78*724ba675SRob Herring compatible = "nxp,pcf8563"; 79*724ba675SRob Herring reg = <0x51>; 80*724ba675SRob Herring }; 81*724ba675SRob Herring 82*724ba675SRob Herring }; 83*724ba675SRob Herring 84*724ba675SRob Herring nand-controller@d0000 { 85*724ba675SRob Herring status = "okay"; 86*724ba675SRob Herring 87*724ba675SRob Herring nand@0 { 88*724ba675SRob Herring reg = <0>; 89*724ba675SRob Herring label = "pxa3xx_nand-0"; 90*724ba675SRob Herring nand-rb = <0>; 91*724ba675SRob Herring nand-on-flash-bbt; 92*724ba675SRob Herring 93*724ba675SRob Herring partitions { 94*724ba675SRob Herring compatible = "fixed-partitions"; 95*724ba675SRob Herring #address-cells = <1>; 96*724ba675SRob Herring #size-cells = <1>; 97*724ba675SRob Herring 98*724ba675SRob Herring partition@0 { 99*724ba675SRob Herring label = "u-boot"; 100*724ba675SRob Herring reg = <0x00000000 0x000e0000>; 101*724ba675SRob Herring read-only; 102*724ba675SRob Herring }; 103*724ba675SRob Herring 104*724ba675SRob Herring partition@e0000 { 105*724ba675SRob Herring label = "u-boot-env"; 106*724ba675SRob Herring reg = <0x000e0000 0x00020000>; 107*724ba675SRob Herring read-only; 108*724ba675SRob Herring }; 109*724ba675SRob Herring 110*724ba675SRob Herring partition@100000 { 111*724ba675SRob Herring label = "u-boot-env2"; 112*724ba675SRob Herring reg = <0x00100000 0x00020000>; 113*724ba675SRob Herring read-only; 114*724ba675SRob Herring }; 115*724ba675SRob Herring 116*724ba675SRob Herring partition@120000 { 117*724ba675SRob Herring label = "zImage"; 118*724ba675SRob Herring reg = <0x00120000 0x00400000>; 119*724ba675SRob Herring }; 120*724ba675SRob Herring 121*724ba675SRob Herring partition@520000 { 122*724ba675SRob Herring label = "initrd"; 123*724ba675SRob Herring reg = <0x00520000 0x00400000>; 124*724ba675SRob Herring }; 125*724ba675SRob Herring 126*724ba675SRob Herring partition@e00000 { 127*724ba675SRob Herring label = "boot"; 128*724ba675SRob Herring reg = <0x00e00000 0x3f200000>; 129*724ba675SRob Herring }; 130*724ba675SRob Herring }; 131*724ba675SRob Herring }; 132*724ba675SRob Herring }; 133*724ba675SRob Herring }; 134*724ba675SRob Herring }; 135*724ba675SRob Herring 136*724ba675SRob Herring gpio-keys { 137*724ba675SRob Herring compatible = "gpio-keys"; 138*724ba675SRob Herring pinctrl-0 = <&power_button_pin &reset_button_pin 139*724ba675SRob Herring &select_button_pin &scroll_button_pin>; 140*724ba675SRob Herring pinctrl-names = "default"; 141*724ba675SRob Herring 142*724ba675SRob Herring power-button { 143*724ba675SRob Herring label = "Power Button"; 144*724ba675SRob Herring linux,code = <KEY_POWER>; 145*724ba675SRob Herring gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; 146*724ba675SRob Herring }; 147*724ba675SRob Herring 148*724ba675SRob Herring reset-button { 149*724ba675SRob Herring label = "Reset Button"; 150*724ba675SRob Herring linux,code = <KEY_RESTART>; 151*724ba675SRob Herring gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; 152*724ba675SRob Herring }; 153*724ba675SRob Herring 154*724ba675SRob Herring select-button { 155*724ba675SRob Herring label = "Select Button"; 156*724ba675SRob Herring linux,code = <BTN_SELECT>; 157*724ba675SRob Herring gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; 158*724ba675SRob Herring }; 159*724ba675SRob Herring 160*724ba675SRob Herring scroll-button { 161*724ba675SRob Herring label = "Scroll Button"; 162*724ba675SRob Herring linux,code = <KEY_SCROLLDOWN>; 163*724ba675SRob Herring gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 164*724ba675SRob Herring }; 165*724ba675SRob Herring }; 166*724ba675SRob Herring 167*724ba675SRob Herring spi-3 { 168*724ba675SRob Herring compatible = "spi-gpio"; 169*724ba675SRob Herring status = "okay"; 170*724ba675SRob Herring sck-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>; 171*724ba675SRob Herring mosi-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; /*gpio 47*/ 172*724ba675SRob Herring cs-gpios = <&gpio0 27 GPIO_ACTIVE_LOW>; 173*724ba675SRob Herring num-chipselects = <1>; 174*724ba675SRob Herring #address-cells = <1>; 175*724ba675SRob Herring #size-cells = <0>; 176*724ba675SRob Herring 177*724ba675SRob Herring gpio_spi: gpio_spi@0 { 178*724ba675SRob Herring compatible = "fairchild,74hc595"; 179*724ba675SRob Herring gpio-controller; 180*724ba675SRob Herring #gpio-cells = <2>; 181*724ba675SRob Herring reg = <0>; 182*724ba675SRob Herring registers-number = <1>; 183*724ba675SRob Herring spi-max-frequency = <100000>; 184*724ba675SRob Herring }; 185*724ba675SRob Herring }; 186*724ba675SRob Herring 187*724ba675SRob Herring gpio-leds { 188*724ba675SRob Herring compatible = "gpio-leds"; 189*724ba675SRob Herring pinctrl-0 = <&hdd_led_pin>; 190*724ba675SRob Herring pinctrl-names = "default"; 191*724ba675SRob Herring 192*724ba675SRob Herring hdd-led { 193*724ba675SRob Herring label = "ix4-300d:hdd:blue"; 194*724ba675SRob Herring gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; 195*724ba675SRob Herring default-state = "off"; 196*724ba675SRob Herring }; 197*724ba675SRob Herring 198*724ba675SRob Herring power-led { 199*724ba675SRob Herring label = "ix4-300d:power:white"; 200*724ba675SRob Herring gpios = <&gpio_spi 1 GPIO_ACTIVE_LOW>; 201*724ba675SRob Herring /* init blinking while booting */ 202*724ba675SRob Herring linux,default-trigger = "timer"; 203*724ba675SRob Herring default-state = "on"; 204*724ba675SRob Herring }; 205*724ba675SRob Herring 206*724ba675SRob Herring sysfail-led { 207*724ba675SRob Herring label = "ix4-300d:sysfail:red"; 208*724ba675SRob Herring gpios = <&gpio_spi 2 GPIO_ACTIVE_HIGH>; 209*724ba675SRob Herring default-state = "off"; 210*724ba675SRob Herring }; 211*724ba675SRob Herring 212*724ba675SRob Herring sys-led { 213*724ba675SRob Herring label = "ix4-300d:sys:blue"; 214*724ba675SRob Herring gpios = <&gpio_spi 3 GPIO_ACTIVE_HIGH>; 215*724ba675SRob Herring default-state = "off"; 216*724ba675SRob Herring }; 217*724ba675SRob Herring 218*724ba675SRob Herring hddfail-led { 219*724ba675SRob Herring label = "ix4-300d:hddfail:red"; 220*724ba675SRob Herring gpios = <&gpio_spi 4 GPIO_ACTIVE_HIGH>; 221*724ba675SRob Herring default-state = "off"; 222*724ba675SRob Herring }; 223*724ba675SRob Herring 224*724ba675SRob Herring }; 225*724ba675SRob Herring 226*724ba675SRob Herring /* 227*724ba675SRob Herring * Warning: you need both eth1 & 0 PHY initialized (i.e having 228*724ba675SRob Herring * them up does the tweak) for poweroff to shutdown otherwise it 229*724ba675SRob Herring * reboots 230*724ba675SRob Herring */ 231*724ba675SRob Herring gpio-poweroff { 232*724ba675SRob Herring compatible = "gpio-poweroff"; 233*724ba675SRob Herring pinctrl-0 = <&poweroff_pin>; 234*724ba675SRob Herring pinctrl-names = "default"; 235*724ba675SRob Herring gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; 236*724ba675SRob Herring }; 237*724ba675SRob Herring}; 238*724ba675SRob Herring&pciec { 239*724ba675SRob Herring status = "okay"; 240*724ba675SRob Herring 241*724ba675SRob Herring /* Quad port sata: Marvell 88SX7042 */ 242*724ba675SRob Herring pcie@1,0 { 243*724ba675SRob Herring /* Port 0, Lane 0 */ 244*724ba675SRob Herring status = "okay"; 245*724ba675SRob Herring }; 246*724ba675SRob Herring 247*724ba675SRob Herring /* USB 3.0 xHCI controller: NEC D720200F1 */ 248*724ba675SRob Herring pcie@5,0 { 249*724ba675SRob Herring /* Port 1, Lane 0 */ 250*724ba675SRob Herring status = "okay"; 251*724ba675SRob Herring }; 252*724ba675SRob Herring}; 253*724ba675SRob Herring 254*724ba675SRob Herring&mdio { 255*724ba675SRob Herring phy0: ethernet-phy@0 { /* Marvell 88E1318 */ 256*724ba675SRob Herring reg = <0>; 257*724ba675SRob Herring }; 258*724ba675SRob Herring 259*724ba675SRob Herring phy1: ethernet-phy@1 { /* Marvell 88E1318 */ 260*724ba675SRob Herring reg = <1>; 261*724ba675SRob Herring }; 262*724ba675SRob Herring}; 263*724ba675SRob Herring 264*724ba675SRob Herring&pinctrl { 265*724ba675SRob Herring poweroff_pin: poweroff-pin { 266*724ba675SRob Herring marvell,pins = "mpp24"; 267*724ba675SRob Herring marvell,function = "gpio"; 268*724ba675SRob Herring }; 269*724ba675SRob Herring 270*724ba675SRob Herring power_button_pin: power-button-pin { 271*724ba675SRob Herring marvell,pins = "mpp44"; 272*724ba675SRob Herring marvell,function = "gpio"; 273*724ba675SRob Herring }; 274*724ba675SRob Herring 275*724ba675SRob Herring reset_button_pin: reset-button-pin { 276*724ba675SRob Herring marvell,pins = "mpp45"; 277*724ba675SRob Herring marvell,function = "gpio"; 278*724ba675SRob Herring }; 279*724ba675SRob Herring select_button_pin: select-button-pin { 280*724ba675SRob Herring marvell,pins = "mpp41"; 281*724ba675SRob Herring marvell,function = "gpio"; 282*724ba675SRob Herring }; 283*724ba675SRob Herring 284*724ba675SRob Herring scroll_button_pin: scroll-button-pin { 285*724ba675SRob Herring marvell,pins = "mpp42"; 286*724ba675SRob Herring marvell,function = "gpio"; 287*724ba675SRob Herring }; 288*724ba675SRob Herring 289*724ba675SRob Herring hdd_led_pin: hdd-led-pin { 290*724ba675SRob Herring marvell,pins = "mpp26"; 291*724ba675SRob Herring marvell,function = "gpio"; 292*724ba675SRob Herring }; 293*724ba675SRob Herring}; 294