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