1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Device Tree file for NETGEAR ReadyNAS 104 4*f126890aSEmmanuel Vadot * 5*f126890aSEmmanuel Vadot * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org> 6*f126890aSEmmanuel Vadot */ 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot/dts-v1/; 9*f126890aSEmmanuel Vadot 10*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 11*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 12*f126890aSEmmanuel Vadot#include "armada-370.dtsi" 13*f126890aSEmmanuel Vadot 14*f126890aSEmmanuel Vadot/ { 15*f126890aSEmmanuel Vadot model = "NETGEAR ReadyNAS 104"; 16*f126890aSEmmanuel Vadot compatible = "netgear,readynas-104", "marvell,armada370", "marvell,armada-370-xp"; 17*f126890aSEmmanuel Vadot 18*f126890aSEmmanuel Vadot chosen { 19*f126890aSEmmanuel Vadot stdout-path = "serial0:115200n8"; 20*f126890aSEmmanuel Vadot }; 21*f126890aSEmmanuel Vadot 22*f126890aSEmmanuel Vadot memory@0 { 23*f126890aSEmmanuel Vadot device_type = "memory"; 24*f126890aSEmmanuel Vadot reg = <0x00000000 0x20000000>; /* 512 MB */ 25*f126890aSEmmanuel Vadot }; 26*f126890aSEmmanuel Vadot 27*f126890aSEmmanuel Vadot soc { 28*f126890aSEmmanuel Vadot ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000 29*f126890aSEmmanuel Vadot MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000 30*f126890aSEmmanuel Vadot MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>; 31*f126890aSEmmanuel Vadot 32*f126890aSEmmanuel Vadot internal-regs { 33*f126890aSEmmanuel Vadot 34*f126890aSEmmanuel Vadot /* RTC is provided by Intersil ISL12057 I2C RTC chip */ 35*f126890aSEmmanuel Vadot rtc@10300 { 36*f126890aSEmmanuel Vadot status = "disabled"; 37*f126890aSEmmanuel Vadot }; 38*f126890aSEmmanuel Vadot 39*f126890aSEmmanuel Vadot serial@12000 { 40*f126890aSEmmanuel Vadot status = "okay"; 41*f126890aSEmmanuel Vadot }; 42*f126890aSEmmanuel Vadot 43*f126890aSEmmanuel Vadot ethernet@70000 { 44*f126890aSEmmanuel Vadot pinctrl-0 = <&ge0_rgmii_pins>; 45*f126890aSEmmanuel Vadot pinctrl-names = "default"; 46*f126890aSEmmanuel Vadot status = "okay"; 47*f126890aSEmmanuel Vadot phy = <&phy0>; 48*f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 49*f126890aSEmmanuel Vadot }; 50*f126890aSEmmanuel Vadot 51*f126890aSEmmanuel Vadot ethernet@74000 { 52*f126890aSEmmanuel Vadot pinctrl-0 = <&ge1_rgmii_pins>; 53*f126890aSEmmanuel Vadot pinctrl-names = "default"; 54*f126890aSEmmanuel Vadot status = "okay"; 55*f126890aSEmmanuel Vadot phy = <&phy1>; 56*f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 57*f126890aSEmmanuel Vadot }; 58*f126890aSEmmanuel Vadot 59*f126890aSEmmanuel Vadot usb@50000 { 60*f126890aSEmmanuel Vadot status = "okay"; 61*f126890aSEmmanuel Vadot }; 62*f126890aSEmmanuel Vadot 63*f126890aSEmmanuel Vadot i2c@11000 { 64*f126890aSEmmanuel Vadot clock-frequency = <100000>; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c0_pins>; 67*f126890aSEmmanuel Vadot pinctrl-names = "default"; 68*f126890aSEmmanuel Vadot 69*f126890aSEmmanuel Vadot status = "okay"; 70*f126890aSEmmanuel Vadot 71*f126890aSEmmanuel Vadot isl12057: rtc@68 { 72*f126890aSEmmanuel Vadot compatible = "isil,isl12057"; 73*f126890aSEmmanuel Vadot reg = <0x68>; 74*f126890aSEmmanuel Vadot wakeup-source; 75*f126890aSEmmanuel Vadot }; 76*f126890aSEmmanuel Vadot 77*f126890aSEmmanuel Vadot g762: g762@3e { 78*f126890aSEmmanuel Vadot compatible = "gmt,g762"; 79*f126890aSEmmanuel Vadot reg = <0x3e>; 80*f126890aSEmmanuel Vadot clocks = <&g762_clk>; /* input clock */ 81*f126890aSEmmanuel Vadot fan_gear_mode = <0>; 82*f126890aSEmmanuel Vadot fan_startv = <1>; 83*f126890aSEmmanuel Vadot pwm_polarity = <0>; 84*f126890aSEmmanuel Vadot }; 85*f126890aSEmmanuel Vadot 86*f126890aSEmmanuel Vadot pca9554: pca9554@23 { 87*f126890aSEmmanuel Vadot compatible = "nxp,pca9554"; 88*f126890aSEmmanuel Vadot gpio-controller; 89*f126890aSEmmanuel Vadot #gpio-cells = <2>; 90*f126890aSEmmanuel Vadot reg = <0x23>; 91*f126890aSEmmanuel Vadot }; 92*f126890aSEmmanuel Vadot }; 93*f126890aSEmmanuel Vadot }; 94*f126890aSEmmanuel Vadot }; 95*f126890aSEmmanuel Vadot 96*f126890aSEmmanuel Vadot clocks { 97*f126890aSEmmanuel Vadot g762_clk: g762-oscillator { 98*f126890aSEmmanuel Vadot compatible = "fixed-clock"; 99*f126890aSEmmanuel Vadot #clock-cells = <0>; 100*f126890aSEmmanuel Vadot clock-frequency = <8192>; 101*f126890aSEmmanuel Vadot }; 102*f126890aSEmmanuel Vadot }; 103*f126890aSEmmanuel Vadot 104*f126890aSEmmanuel Vadot gpio-leds { 105*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 106*f126890aSEmmanuel Vadot pinctrl-0 = <&backup_led_pin &power_led_pin>; 107*f126890aSEmmanuel Vadot pinctrl-names = "default"; 108*f126890aSEmmanuel Vadot 109*f126890aSEmmanuel Vadot blue-backup-led { 110*f126890aSEmmanuel Vadot label = "rn104:blue:backup"; 111*f126890aSEmmanuel Vadot gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; 112*f126890aSEmmanuel Vadot default-state = "off"; 113*f126890aSEmmanuel Vadot }; 114*f126890aSEmmanuel Vadot 115*f126890aSEmmanuel Vadot blue-power-led { 116*f126890aSEmmanuel Vadot label = "rn104:blue:pwr"; 117*f126890aSEmmanuel Vadot gpios = <&gpio2 0 GPIO_ACTIVE_LOW>; 118*f126890aSEmmanuel Vadot linux,default-trigger = "keep"; 119*f126890aSEmmanuel Vadot }; 120*f126890aSEmmanuel Vadot 121*f126890aSEmmanuel Vadot blue-sata1-led { 122*f126890aSEmmanuel Vadot label = "rn104:blue:sata1"; 123*f126890aSEmmanuel Vadot gpios = <&pca9554 0 GPIO_ACTIVE_LOW>; 124*f126890aSEmmanuel Vadot default-state = "off"; 125*f126890aSEmmanuel Vadot }; 126*f126890aSEmmanuel Vadot 127*f126890aSEmmanuel Vadot blue-sata2-led { 128*f126890aSEmmanuel Vadot label = "rn104:blue:sata2"; 129*f126890aSEmmanuel Vadot gpios = <&pca9554 1 GPIO_ACTIVE_LOW>; 130*f126890aSEmmanuel Vadot default-state = "off"; 131*f126890aSEmmanuel Vadot }; 132*f126890aSEmmanuel Vadot 133*f126890aSEmmanuel Vadot blue-sata3-led { 134*f126890aSEmmanuel Vadot label = "rn104:blue:sata3"; 135*f126890aSEmmanuel Vadot gpios = <&pca9554 2 GPIO_ACTIVE_LOW>; 136*f126890aSEmmanuel Vadot default-state = "off"; 137*f126890aSEmmanuel Vadot }; 138*f126890aSEmmanuel Vadot 139*f126890aSEmmanuel Vadot blue-sata4-led { 140*f126890aSEmmanuel Vadot label = "rn104:blue:sata4"; 141*f126890aSEmmanuel Vadot gpios = <&pca9554 3 GPIO_ACTIVE_LOW>; 142*f126890aSEmmanuel Vadot default-state = "off"; 143*f126890aSEmmanuel Vadot }; 144*f126890aSEmmanuel Vadot }; 145*f126890aSEmmanuel Vadot 146*f126890aSEmmanuel Vadot auxdisplay { 147*f126890aSEmmanuel Vadot compatible = "hit,hd44780"; 148*f126890aSEmmanuel Vadot data-gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>, 149*f126890aSEmmanuel Vadot <&gpio1 26 GPIO_ACTIVE_HIGH>, 150*f126890aSEmmanuel Vadot <&gpio1 27 GPIO_ACTIVE_HIGH>, 151*f126890aSEmmanuel Vadot <&gpio1 29 GPIO_ACTIVE_HIGH>; 152*f126890aSEmmanuel Vadot enable-gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; 153*f126890aSEmmanuel Vadot rs-gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; 154*f126890aSEmmanuel Vadot rw-gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; 155*f126890aSEmmanuel Vadot backlight-gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; 156*f126890aSEmmanuel Vadot display-height-chars = <2>; 157*f126890aSEmmanuel Vadot display-width-chars = <16>; 158*f126890aSEmmanuel Vadot }; 159*f126890aSEmmanuel Vadot 160*f126890aSEmmanuel Vadot gpio-keys { 161*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 162*f126890aSEmmanuel Vadot pinctrl-0 = <&backup_button_pin 163*f126890aSEmmanuel Vadot &power_button_pin 164*f126890aSEmmanuel Vadot &reset_button_pin>; 165*f126890aSEmmanuel Vadot pinctrl-names = "default"; 166*f126890aSEmmanuel Vadot 167*f126890aSEmmanuel Vadot backup-button { 168*f126890aSEmmanuel Vadot label = "Backup Button"; 169*f126890aSEmmanuel Vadot linux,code = <KEY_COPY>; 170*f126890aSEmmanuel Vadot gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; 171*f126890aSEmmanuel Vadot }; 172*f126890aSEmmanuel Vadot 173*f126890aSEmmanuel Vadot power-button { 174*f126890aSEmmanuel Vadot label = "Power Button"; 175*f126890aSEmmanuel Vadot linux,code = <KEY_POWER>; 176*f126890aSEmmanuel Vadot gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; 177*f126890aSEmmanuel Vadot }; 178*f126890aSEmmanuel Vadot 179*f126890aSEmmanuel Vadot reset-button { 180*f126890aSEmmanuel Vadot label = "Reset Button"; 181*f126890aSEmmanuel Vadot linux,code = <KEY_RESTART>; 182*f126890aSEmmanuel Vadot gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; 183*f126890aSEmmanuel Vadot }; 184*f126890aSEmmanuel Vadot }; 185*f126890aSEmmanuel Vadot 186*f126890aSEmmanuel Vadot gpio-poweroff { 187*f126890aSEmmanuel Vadot compatible = "gpio-poweroff"; 188*f126890aSEmmanuel Vadot pinctrl-0 = <&poweroff>; 189*f126890aSEmmanuel Vadot pinctrl-names = "default"; 190*f126890aSEmmanuel Vadot gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; 191*f126890aSEmmanuel Vadot }; 192*f126890aSEmmanuel Vadot}; 193*f126890aSEmmanuel Vadot 194*f126890aSEmmanuel Vadot&pciec { 195*f126890aSEmmanuel Vadot status = "okay"; 196*f126890aSEmmanuel Vadot 197*f126890aSEmmanuel Vadot /* Connected to FL1009 USB 3.0 controller */ 198*f126890aSEmmanuel Vadot pcie@1,0 { 199*f126890aSEmmanuel Vadot /* Port 0, Lane 0 */ 200*f126890aSEmmanuel Vadot status = "okay"; 201*f126890aSEmmanuel Vadot }; 202*f126890aSEmmanuel Vadot 203*f126890aSEmmanuel Vadot /* Connected to Marvell 88SE9215 SATA controller */ 204*f126890aSEmmanuel Vadot pcie@2,0 { 205*f126890aSEmmanuel Vadot /* Port 1, Lane 0 */ 206*f126890aSEmmanuel Vadot status = "okay"; 207*f126890aSEmmanuel Vadot }; 208*f126890aSEmmanuel Vadot}; 209*f126890aSEmmanuel Vadot 210*f126890aSEmmanuel Vadot&mdio { 211*f126890aSEmmanuel Vadot pinctrl-0 = <&mdio_pins>; 212*f126890aSEmmanuel Vadot pinctrl-names = "default"; 213*f126890aSEmmanuel Vadot phy0: ethernet-phy@0 { /* Marvell 88E1318 */ 214*f126890aSEmmanuel Vadot reg = <0>; 215*f126890aSEmmanuel Vadot }; 216*f126890aSEmmanuel Vadot 217*f126890aSEmmanuel Vadot phy1: ethernet-phy@1 { /* Marvell 88E1318 */ 218*f126890aSEmmanuel Vadot reg = <1>; 219*f126890aSEmmanuel Vadot }; 220*f126890aSEmmanuel Vadot}; 221*f126890aSEmmanuel Vadot 222*f126890aSEmmanuel Vadot&pinctrl { 223*f126890aSEmmanuel Vadot poweroff: poweroff { 224*f126890aSEmmanuel Vadot marvell,pins = "mpp60"; 225*f126890aSEmmanuel Vadot marvell,function = "gpio"; 226*f126890aSEmmanuel Vadot }; 227*f126890aSEmmanuel Vadot 228*f126890aSEmmanuel Vadot backup_button_pin: backup-button-pin { 229*f126890aSEmmanuel Vadot marvell,pins = "mpp52"; 230*f126890aSEmmanuel Vadot marvell,function = "gpio"; 231*f126890aSEmmanuel Vadot }; 232*f126890aSEmmanuel Vadot 233*f126890aSEmmanuel Vadot power_button_pin: power-button-pin { 234*f126890aSEmmanuel Vadot marvell,pins = "mpp62"; 235*f126890aSEmmanuel Vadot marvell,function = "gpio"; 236*f126890aSEmmanuel Vadot }; 237*f126890aSEmmanuel Vadot 238*f126890aSEmmanuel Vadot backup_led_pin: backup-led-pin { 239*f126890aSEmmanuel Vadot marvell,pins = "mpp63"; 240*f126890aSEmmanuel Vadot marvell,function = "gpio"; 241*f126890aSEmmanuel Vadot }; 242*f126890aSEmmanuel Vadot 243*f126890aSEmmanuel Vadot power_led_pin: power-led-pin { 244*f126890aSEmmanuel Vadot marvell,pins = "mpp64"; 245*f126890aSEmmanuel Vadot marvell,function = "gpio"; 246*f126890aSEmmanuel Vadot }; 247*f126890aSEmmanuel Vadot 248*f126890aSEmmanuel Vadot reset_button_pin: reset-button-pin { 249*f126890aSEmmanuel Vadot marvell,pins = "mpp65"; 250*f126890aSEmmanuel Vadot marvell,function = "gpio"; 251*f126890aSEmmanuel Vadot }; 252*f126890aSEmmanuel Vadot}; 253*f126890aSEmmanuel Vadot 254*f126890aSEmmanuel Vadot&nand_controller { 255*f126890aSEmmanuel Vadot status = "okay"; 256*f126890aSEmmanuel Vadot 257*f126890aSEmmanuel Vadot nand@0 { 258*f126890aSEmmanuel Vadot reg = <0>; 259*f126890aSEmmanuel Vadot label = "pxa3xx_nand-0"; 260*f126890aSEmmanuel Vadot nand-rb = <0>; 261*f126890aSEmmanuel Vadot marvell,nand-keep-config; 262*f126890aSEmmanuel Vadot nand-on-flash-bbt; 263*f126890aSEmmanuel Vadot 264*f126890aSEmmanuel Vadot /* Use Hardware BCH ECC */ 265*f126890aSEmmanuel Vadot nand-ecc-strength = <4>; 266*f126890aSEmmanuel Vadot nand-ecc-step-size = <512>; 267*f126890aSEmmanuel Vadot 268*f126890aSEmmanuel Vadot partitions { 269*f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 270*f126890aSEmmanuel Vadot #address-cells = <1>; 271*f126890aSEmmanuel Vadot #size-cells = <1>; 272*f126890aSEmmanuel Vadot 273*f126890aSEmmanuel Vadot partition@0 { 274*f126890aSEmmanuel Vadot label = "u-boot"; 275*f126890aSEmmanuel Vadot reg = <0x0000000 0x180000>; /* 1.5MB */ 276*f126890aSEmmanuel Vadot read-only; 277*f126890aSEmmanuel Vadot }; 278*f126890aSEmmanuel Vadot 279*f126890aSEmmanuel Vadot partition@180000 { 280*f126890aSEmmanuel Vadot label = "u-boot-env"; 281*f126890aSEmmanuel Vadot reg = <0x180000 0x20000>; /* 128KB */ 282*f126890aSEmmanuel Vadot read-only; 283*f126890aSEmmanuel Vadot }; 284*f126890aSEmmanuel Vadot 285*f126890aSEmmanuel Vadot partition@200000 { 286*f126890aSEmmanuel Vadot label = "uImage"; 287*f126890aSEmmanuel Vadot reg = <0x0200000 0x600000>; /* 6MB */ 288*f126890aSEmmanuel Vadot }; 289*f126890aSEmmanuel Vadot 290*f126890aSEmmanuel Vadot partition@800000 { 291*f126890aSEmmanuel Vadot label = "minirootfs"; 292*f126890aSEmmanuel Vadot reg = <0x0800000 0x400000>; /* 4MB */ 293*f126890aSEmmanuel Vadot }; 294*f126890aSEmmanuel Vadot 295*f126890aSEmmanuel Vadot /* Last MB is for the BBT, i.e. not writable */ 296*f126890aSEmmanuel Vadot partition@c00000 { 297*f126890aSEmmanuel Vadot label = "ubifs"; 298*f126890aSEmmanuel Vadot reg = <0x0c00000 0x7400000>; /* 116MB */ 299*f126890aSEmmanuel Vadot }; 300*f126890aSEmmanuel Vadot }; 301*f126890aSEmmanuel Vadot }; 302*f126890aSEmmanuel Vadot}; 303