1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for NETGEAR ReadyNAS 2120 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org> 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 = "NETGEAR ReadyNAS 2120"; 16*724ba675SRob Herring compatible = "netgear,readynas-2120", "marvell,armadaxp-mv78230", "marvell,armadaxp", "marvell,armada-370-xp"; 17*724ba675SRob Herring 18*724ba675SRob Herring chosen { 19*724ba675SRob Herring stdout-path = "serial0:115200n8"; 20*724ba675SRob Herring }; 21*724ba675SRob Herring 22*724ba675SRob Herring memory@0 { 23*724ba675SRob Herring device_type = "memory"; 24*724ba675SRob Herring reg = <0 0x00000000 0 0x80000000>; /* 2GB */ 25*724ba675SRob Herring }; 26*724ba675SRob Herring 27*724ba675SRob Herring soc { 28*724ba675SRob Herring ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000 29*724ba675SRob Herring MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 30*724ba675SRob Herring MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000 31*724ba675SRob Herring MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000>; 32*724ba675SRob Herring 33*724ba675SRob Herring internal-regs { 34*724ba675SRob Herring 35*724ba675SRob Herring /* RTC is provided by Intersil ISL12057 I2C RTC chip */ 36*724ba675SRob Herring rtc@10300 { 37*724ba675SRob Herring status = "disabled"; 38*724ba675SRob Herring }; 39*724ba675SRob Herring 40*724ba675SRob Herring i2c@11000 { 41*724ba675SRob Herring clock-frequency = <400000>; 42*724ba675SRob Herring status = "okay"; 43*724ba675SRob Herring 44*724ba675SRob Herring /* Controller for rear fan #1 of 3 (Protechnic 45*724ba675SRob Herring * MGT4012XB-O20, 8000RPM) near eSATA port */ 46*724ba675SRob Herring g762_fan1: g762@3e { 47*724ba675SRob Herring compatible = "gmt,g762"; 48*724ba675SRob Herring reg = <0x3e>; 49*724ba675SRob Herring clocks = <&g762_clk>; /* input clock */ 50*724ba675SRob Herring fan_gear_mode = <0>; 51*724ba675SRob Herring fan_startv = <1>; 52*724ba675SRob Herring pwm_polarity = <0>; 53*724ba675SRob Herring }; 54*724ba675SRob Herring 55*724ba675SRob Herring /* Controller for rear (center) fan #2 of 3 */ 56*724ba675SRob Herring g762_fan2: g762@48 { 57*724ba675SRob Herring compatible = "gmt,g762"; 58*724ba675SRob Herring reg = <0x48>; 59*724ba675SRob Herring clocks = <&g762_clk>; /* input clock */ 60*724ba675SRob Herring fan_gear_mode = <0>; 61*724ba675SRob Herring fan_startv = <1>; 62*724ba675SRob Herring pwm_polarity = <0>; 63*724ba675SRob Herring }; 64*724ba675SRob Herring 65*724ba675SRob Herring /* Controller for rear fan #3 of 3 */ 66*724ba675SRob Herring g762_fan3: g762@49 { 67*724ba675SRob Herring compatible = "gmt,g762"; 68*724ba675SRob Herring reg = <0x49>; 69*724ba675SRob Herring clocks = <&g762_clk>; /* input clock */ 70*724ba675SRob Herring fan_gear_mode = <0>; 71*724ba675SRob Herring fan_startv = <1>; 72*724ba675SRob Herring pwm_polarity = <0>; 73*724ba675SRob Herring }; 74*724ba675SRob Herring 75*724ba675SRob Herring /* Temperature sensor */ 76*724ba675SRob Herring g751: g751@4c { 77*724ba675SRob Herring compatible = "gmt,g751"; 78*724ba675SRob Herring reg = <0x4c>; 79*724ba675SRob Herring }; 80*724ba675SRob Herring 81*724ba675SRob Herring isl12057: rtc@68 { 82*724ba675SRob Herring compatible = "isil,isl12057"; 83*724ba675SRob Herring reg = <0x68>; 84*724ba675SRob Herring wakeup-source; 85*724ba675SRob Herring }; 86*724ba675SRob Herring }; 87*724ba675SRob Herring 88*724ba675SRob Herring serial@12000 { 89*724ba675SRob Herring status = "okay"; 90*724ba675SRob Herring }; 91*724ba675SRob Herring 92*724ba675SRob Herring /* Front USB 2.0 port */ 93*724ba675SRob Herring usb@50000 { 94*724ba675SRob Herring status = "okay"; 95*724ba675SRob Herring }; 96*724ba675SRob Herring 97*724ba675SRob Herring ethernet@70000 { 98*724ba675SRob Herring pinctrl-0 = <&ge0_rgmii_pins>; 99*724ba675SRob Herring pinctrl-names = "default"; 100*724ba675SRob Herring 101*724ba675SRob Herring status = "okay"; 102*724ba675SRob Herring phy = <&phy0>; 103*724ba675SRob Herring phy-mode = "rgmii-id"; 104*724ba675SRob Herring }; 105*724ba675SRob Herring 106*724ba675SRob Herring ethernet@74000 { 107*724ba675SRob Herring pinctrl-0 = <&ge1_rgmii_pins>; 108*724ba675SRob Herring pinctrl-names = "default"; 109*724ba675SRob Herring 110*724ba675SRob Herring status = "okay"; 111*724ba675SRob Herring phy = <&phy1>; 112*724ba675SRob Herring phy-mode = "rgmii-id"; 113*724ba675SRob Herring }; 114*724ba675SRob Herring 115*724ba675SRob Herring /* Two rear eSATA ports */ 116*724ba675SRob Herring sata@a0000 { 117*724ba675SRob Herring nr-ports = <2>; 118*724ba675SRob Herring status = "okay"; 119*724ba675SRob Herring }; 120*724ba675SRob Herring }; 121*724ba675SRob Herring }; 122*724ba675SRob Herring 123*724ba675SRob Herring clocks { 124*724ba675SRob Herring g762_clk: g762-oscillator { 125*724ba675SRob Herring compatible = "fixed-clock"; 126*724ba675SRob Herring #clock-cells = <0>; 127*724ba675SRob Herring clock-frequency = <32768>; 128*724ba675SRob Herring }; 129*724ba675SRob Herring }; 130*724ba675SRob Herring 131*724ba675SRob Herring gpio-leds { 132*724ba675SRob Herring compatible = "gpio-leds"; 133*724ba675SRob Herring pinctrl-0 = <&sata1_led_pin &sata2_led_pin &err_led_pin 134*724ba675SRob Herring &sata3_led_pin &sata4_led_pin>; 135*724ba675SRob Herring pinctrl-names = "default"; 136*724ba675SRob Herring 137*724ba675SRob Herring red-sata1-led { 138*724ba675SRob Herring label = "rn2120:red:sata1"; 139*724ba675SRob Herring gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; 140*724ba675SRob Herring default-state = "off"; 141*724ba675SRob Herring }; 142*724ba675SRob Herring 143*724ba675SRob Herring red-sata2-led { 144*724ba675SRob Herring label = "rn2120:red:sata2"; 145*724ba675SRob Herring gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; 146*724ba675SRob Herring default-state = "off"; 147*724ba675SRob Herring }; 148*724ba675SRob Herring 149*724ba675SRob Herring red-sata3-led { 150*724ba675SRob Herring label = "rn2120:red:sata3"; 151*724ba675SRob Herring gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>; 152*724ba675SRob Herring default-state = "off"; 153*724ba675SRob Herring }; 154*724ba675SRob Herring 155*724ba675SRob Herring red-sata4-led { 156*724ba675SRob Herring label = "rn2120:red:sata4"; 157*724ba675SRob Herring gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 158*724ba675SRob Herring default-state = "off"; 159*724ba675SRob Herring }; 160*724ba675SRob Herring 161*724ba675SRob Herring red-err-led { 162*724ba675SRob Herring label = "rn2120:red:err"; 163*724ba675SRob Herring gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; 164*724ba675SRob Herring default-state = "off"; 165*724ba675SRob Herring }; 166*724ba675SRob Herring }; 167*724ba675SRob Herring 168*724ba675SRob Herring gpio-keys { 169*724ba675SRob Herring compatible = "gpio-keys"; 170*724ba675SRob Herring pinctrl-0 = <&power_button_pin &reset_button_pin>; 171*724ba675SRob Herring pinctrl-names = "default"; 172*724ba675SRob Herring 173*724ba675SRob Herring power-button { 174*724ba675SRob Herring label = "Power Button"; 175*724ba675SRob Herring linux,code = <KEY_POWER>; 176*724ba675SRob Herring gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; 177*724ba675SRob Herring }; 178*724ba675SRob Herring 179*724ba675SRob Herring reset-button { 180*724ba675SRob Herring label = "Reset Button"; 181*724ba675SRob Herring linux,code = <KEY_RESTART>; 182*724ba675SRob Herring gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; 183*724ba675SRob Herring }; 184*724ba675SRob Herring }; 185*724ba675SRob Herring 186*724ba675SRob Herring gpio-poweroff { 187*724ba675SRob Herring compatible = "gpio-poweroff"; 188*724ba675SRob Herring pinctrl-0 = <&poweroff>; 189*724ba675SRob Herring pinctrl-names = "default"; 190*724ba675SRob Herring gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 191*724ba675SRob Herring }; 192*724ba675SRob Herring}; 193*724ba675SRob Herring 194*724ba675SRob Herring&pciec { 195*724ba675SRob Herring status = "okay"; 196*724ba675SRob Herring 197*724ba675SRob Herring /* Connected to first Marvell 88SE9170 SATA controller */ 198*724ba675SRob Herring pcie@1,0 { 199*724ba675SRob Herring /* Port 0, Lane 0 */ 200*724ba675SRob Herring status = "okay"; 201*724ba675SRob Herring }; 202*724ba675SRob Herring 203*724ba675SRob Herring /* Connected to second Marvell 88SE9170 SATA controller */ 204*724ba675SRob Herring pcie@2,0 { 205*724ba675SRob Herring /* Port 0, Lane 1 */ 206*724ba675SRob Herring status = "okay"; 207*724ba675SRob Herring }; 208*724ba675SRob Herring 209*724ba675SRob Herring /* Connected to Fresco Logic FL1009 USB 3.0 controller */ 210*724ba675SRob Herring pcie@5,0 { 211*724ba675SRob Herring /* Port 1, Lane 0 */ 212*724ba675SRob Herring status = "okay"; 213*724ba675SRob Herring }; 214*724ba675SRob Herring}; 215*724ba675SRob Herring 216*724ba675SRob Herring&mdio { 217*724ba675SRob Herring phy0: ethernet-phy@0 { /* Marvell 88E1318 */ 218*724ba675SRob Herring reg = <0>; 219*724ba675SRob Herring }; 220*724ba675SRob Herring 221*724ba675SRob Herring phy1: ethernet-phy@1 { /* Marvell 88E1318 */ 222*724ba675SRob Herring reg = <1>; 223*724ba675SRob Herring }; 224*724ba675SRob Herring}; 225*724ba675SRob Herring 226*724ba675SRob Herring 227*724ba675SRob Herring&pinctrl { 228*724ba675SRob Herring poweroff: poweroff { 229*724ba675SRob Herring marvell,pins = "mpp42"; 230*724ba675SRob Herring marvell,function = "gpio"; 231*724ba675SRob Herring }; 232*724ba675SRob Herring 233*724ba675SRob Herring power_button_pin: power-button-pin { 234*724ba675SRob Herring marvell,pins = "mpp27"; 235*724ba675SRob Herring marvell,function = "gpio"; 236*724ba675SRob Herring }; 237*724ba675SRob Herring 238*724ba675SRob Herring reset_button_pin: reset-button-pin { 239*724ba675SRob Herring marvell,pins = "mpp41"; 240*724ba675SRob Herring marvell,function = "gpio"; 241*724ba675SRob Herring }; 242*724ba675SRob Herring 243*724ba675SRob Herring sata1_led_pin: sata1-led-pin { 244*724ba675SRob Herring marvell,pins = "mpp31"; 245*724ba675SRob Herring marvell,function = "gpio"; 246*724ba675SRob Herring }; 247*724ba675SRob Herring 248*724ba675SRob Herring sata2_led_pin: sata2-led-pin { 249*724ba675SRob Herring marvell,pins = "mpp40"; 250*724ba675SRob Herring marvell,function = "gpio"; 251*724ba675SRob Herring }; 252*724ba675SRob Herring 253*724ba675SRob Herring sata3_led_pin: sata3-led-pin { 254*724ba675SRob Herring marvell,pins = "mpp44"; 255*724ba675SRob Herring marvell,function = "gpio"; 256*724ba675SRob Herring }; 257*724ba675SRob Herring 258*724ba675SRob Herring sata4_led_pin: sata4-led-pin { 259*724ba675SRob Herring marvell,pins = "mpp47"; 260*724ba675SRob Herring marvell,function = "gpio"; 261*724ba675SRob Herring }; 262*724ba675SRob Herring 263*724ba675SRob Herring sata1_power_pin: sata1-power-pin { 264*724ba675SRob Herring marvell,pins = "mpp24"; 265*724ba675SRob Herring marvell,function = "gpio"; 266*724ba675SRob Herring }; 267*724ba675SRob Herring 268*724ba675SRob Herring sata2_power_pin: sata2-power-pin { 269*724ba675SRob Herring marvell,pins = "mpp25"; 270*724ba675SRob Herring marvell,function = "gpio"; 271*724ba675SRob Herring }; 272*724ba675SRob Herring 273*724ba675SRob Herring sata3_power_pin: sata3-power-pin { 274*724ba675SRob Herring marvell,pins = "mpp26"; 275*724ba675SRob Herring marvell,function = "gpio"; 276*724ba675SRob Herring }; 277*724ba675SRob Herring 278*724ba675SRob Herring sata4_power_pin: sata4-power-pin { 279*724ba675SRob Herring marvell,pins = "mpp28"; 280*724ba675SRob Herring marvell,function = "gpio"; 281*724ba675SRob Herring }; 282*724ba675SRob Herring 283*724ba675SRob Herring sata1_pres_pin: sata1-pres-pin { 284*724ba675SRob Herring marvell,pins = "mpp32"; 285*724ba675SRob Herring marvell,function = "gpio"; 286*724ba675SRob Herring }; 287*724ba675SRob Herring 288*724ba675SRob Herring sata2_pres_pin: sata2-pres-pin { 289*724ba675SRob Herring marvell,pins = "mpp33"; 290*724ba675SRob Herring marvell,function = "gpio"; 291*724ba675SRob Herring }; 292*724ba675SRob Herring 293*724ba675SRob Herring sata3_pres_pin: sata3-pres-pin { 294*724ba675SRob Herring marvell,pins = "mpp34"; 295*724ba675SRob Herring marvell,function = "gpio"; 296*724ba675SRob Herring }; 297*724ba675SRob Herring 298*724ba675SRob Herring sata4_pres_pin: sata4-pres-pin { 299*724ba675SRob Herring marvell,pins = "mpp35"; 300*724ba675SRob Herring marvell,function = "gpio"; 301*724ba675SRob Herring }; 302*724ba675SRob Herring 303*724ba675SRob Herring err_led_pin: err-led-pin { 304*724ba675SRob Herring marvell,pins = "mpp45"; 305*724ba675SRob Herring marvell,function = "gpio"; 306*724ba675SRob Herring }; 307*724ba675SRob Herring}; 308*724ba675SRob Herring 309*724ba675SRob Herring&nand_controller { 310*724ba675SRob Herring status = "okay"; 311*724ba675SRob Herring 312*724ba675SRob Herring nand@0 { 313*724ba675SRob Herring reg = <0>; 314*724ba675SRob Herring label = "pxa3xx_nand-0"; 315*724ba675SRob Herring nand-rb = <0>; 316*724ba675SRob Herring marvell,nand-keep-config; 317*724ba675SRob Herring nand-on-flash-bbt; 318*724ba675SRob Herring 319*724ba675SRob Herring /* Use Hardware BCH ECC */ 320*724ba675SRob Herring nand-ecc-strength = <4>; 321*724ba675SRob Herring nand-ecc-step-size = <512>; 322*724ba675SRob Herring 323*724ba675SRob Herring partitions { 324*724ba675SRob Herring compatible = "fixed-partitions"; 325*724ba675SRob Herring #address-cells = <1>; 326*724ba675SRob Herring #size-cells = <1>; 327*724ba675SRob Herring 328*724ba675SRob Herring partition@0 { 329*724ba675SRob Herring label = "u-boot"; 330*724ba675SRob Herring reg = <0x0000000 0x180000>; /* 1.5MB */ 331*724ba675SRob Herring read-only; 332*724ba675SRob Herring }; 333*724ba675SRob Herring 334*724ba675SRob Herring partition@180000 { 335*724ba675SRob Herring label = "u-boot-env"; 336*724ba675SRob Herring reg = <0x180000 0x20000>; /* 128KB */ 337*724ba675SRob Herring read-only; 338*724ba675SRob Herring }; 339*724ba675SRob Herring 340*724ba675SRob Herring partition@200000 { 341*724ba675SRob Herring label = "uImage"; 342*724ba675SRob Herring reg = <0x0200000 0x600000>; /* 6MB */ 343*724ba675SRob Herring }; 344*724ba675SRob Herring 345*724ba675SRob Herring partition@800000 { 346*724ba675SRob Herring label = "minirootfs"; 347*724ba675SRob Herring reg = <0x0800000 0x400000>; /* 4MB */ 348*724ba675SRob Herring }; 349*724ba675SRob Herring 350*724ba675SRob Herring /* Last MB is for the BBT, i.e. not writable */ 351*724ba675SRob Herring partition@c00000 { 352*724ba675SRob Herring label = "ubifs"; 353*724ba675SRob Herring reg = <0x0c00000 0x7400000>; /* 116MB */ 354*724ba675SRob Herring }; 355*724ba675SRob Herring }; 356*724ba675SRob Herring }; 357*724ba675SRob Herring}; 358