1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Device Tree file for NETGEAR ReadyNAS 102 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 102"; 16*f126890aSEmmanuel Vadot compatible = "netgear,readynas-102", "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 /* eSATA interface */ 44*f126890aSEmmanuel Vadot sata@a0000 { 45*f126890aSEmmanuel Vadot nr-ports = <1>; 46*f126890aSEmmanuel Vadot status = "okay"; 47*f126890aSEmmanuel Vadot }; 48*f126890aSEmmanuel Vadot 49*f126890aSEmmanuel Vadot ethernet@74000 { 50*f126890aSEmmanuel Vadot pinctrl-0 = <&ge1_rgmii_pins>; 51*f126890aSEmmanuel Vadot pinctrl-names = "default"; 52*f126890aSEmmanuel Vadot status = "okay"; 53*f126890aSEmmanuel Vadot phy = <&phy0>; 54*f126890aSEmmanuel Vadot phy-mode = "rgmii-id"; 55*f126890aSEmmanuel Vadot }; 56*f126890aSEmmanuel Vadot 57*f126890aSEmmanuel Vadot usb@50000 { 58*f126890aSEmmanuel Vadot status = "okay"; 59*f126890aSEmmanuel Vadot }; 60*f126890aSEmmanuel Vadot 61*f126890aSEmmanuel Vadot i2c@11000 { 62*f126890aSEmmanuel Vadot clock-frequency = <100000>; 63*f126890aSEmmanuel Vadot 64*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c0_pins>; 65*f126890aSEmmanuel Vadot pinctrl-names = "default"; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot status = "okay"; 68*f126890aSEmmanuel Vadot 69*f126890aSEmmanuel Vadot isl12057: rtc@68 { 70*f126890aSEmmanuel Vadot compatible = "isil,isl12057"; 71*f126890aSEmmanuel Vadot reg = <0x68>; 72*f126890aSEmmanuel Vadot wakeup-source; 73*f126890aSEmmanuel Vadot }; 74*f126890aSEmmanuel Vadot 75*f126890aSEmmanuel Vadot g762: g762@3e { 76*f126890aSEmmanuel Vadot compatible = "gmt,g762"; 77*f126890aSEmmanuel Vadot reg = <0x3e>; 78*f126890aSEmmanuel Vadot clocks = <&g762_clk>; /* input clock */ 79*f126890aSEmmanuel Vadot fan_gear_mode = <0>; 80*f126890aSEmmanuel Vadot fan_startv = <1>; 81*f126890aSEmmanuel Vadot pwm_polarity = <0>; 82*f126890aSEmmanuel Vadot }; 83*f126890aSEmmanuel Vadot }; 84*f126890aSEmmanuel Vadot }; 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot 87*f126890aSEmmanuel Vadot clocks { 88*f126890aSEmmanuel Vadot g762_clk: g762-oscillator { 89*f126890aSEmmanuel Vadot compatible = "fixed-clock"; 90*f126890aSEmmanuel Vadot #clock-cells = <0>; 91*f126890aSEmmanuel Vadot clock-frequency = <8192>; 92*f126890aSEmmanuel Vadot }; 93*f126890aSEmmanuel Vadot }; 94*f126890aSEmmanuel Vadot 95*f126890aSEmmanuel Vadot gpio-leds { 96*f126890aSEmmanuel Vadot compatible = "gpio-leds"; 97*f126890aSEmmanuel Vadot pinctrl-0 = <&power_led_pin 98*f126890aSEmmanuel Vadot &sata1_led_pin 99*f126890aSEmmanuel Vadot &sata2_led_pin 100*f126890aSEmmanuel Vadot &backup_led_pin>; 101*f126890aSEmmanuel Vadot pinctrl-names = "default"; 102*f126890aSEmmanuel Vadot 103*f126890aSEmmanuel Vadot blue-power-led { 104*f126890aSEmmanuel Vadot label = "rn102:blue:pwr"; 105*f126890aSEmmanuel Vadot gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; 106*f126890aSEmmanuel Vadot default-state = "keep"; 107*f126890aSEmmanuel Vadot }; 108*f126890aSEmmanuel Vadot 109*f126890aSEmmanuel Vadot blue-sata1-led { 110*f126890aSEmmanuel Vadot label = "rn102:blue:sata1"; 111*f126890aSEmmanuel Vadot gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; 112*f126890aSEmmanuel Vadot default-state = "on"; 113*f126890aSEmmanuel Vadot }; 114*f126890aSEmmanuel Vadot 115*f126890aSEmmanuel Vadot blue-sata2-led { 116*f126890aSEmmanuel Vadot label = "rn102:blue:sata2"; 117*f126890aSEmmanuel Vadot gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 118*f126890aSEmmanuel Vadot default-state = "on"; 119*f126890aSEmmanuel Vadot }; 120*f126890aSEmmanuel Vadot 121*f126890aSEmmanuel Vadot blue-backup-led { 122*f126890aSEmmanuel Vadot label = "rn102:blue:backup"; 123*f126890aSEmmanuel Vadot gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; 124*f126890aSEmmanuel Vadot default-state = "on"; 125*f126890aSEmmanuel Vadot }; 126*f126890aSEmmanuel Vadot }; 127*f126890aSEmmanuel Vadot 128*f126890aSEmmanuel Vadot gpio-keys { 129*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 130*f126890aSEmmanuel Vadot pinctrl-0 = <&power_button_pin 131*f126890aSEmmanuel Vadot &reset_button_pin 132*f126890aSEmmanuel Vadot &backup_button_pin>; 133*f126890aSEmmanuel Vadot pinctrl-names = "default"; 134*f126890aSEmmanuel Vadot 135*f126890aSEmmanuel Vadot power-button { 136*f126890aSEmmanuel Vadot label = "Power Button"; 137*f126890aSEmmanuel Vadot linux,code = <KEY_POWER>; 138*f126890aSEmmanuel Vadot gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; 139*f126890aSEmmanuel Vadot }; 140*f126890aSEmmanuel Vadot 141*f126890aSEmmanuel Vadot reset-button { 142*f126890aSEmmanuel Vadot label = "Reset Button"; 143*f126890aSEmmanuel Vadot linux,code = <KEY_RESTART>; 144*f126890aSEmmanuel Vadot gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 145*f126890aSEmmanuel Vadot }; 146*f126890aSEmmanuel Vadot 147*f126890aSEmmanuel Vadot backup-button { 148*f126890aSEmmanuel Vadot label = "Backup Button"; 149*f126890aSEmmanuel Vadot linux,code = <KEY_COPY>; 150*f126890aSEmmanuel Vadot gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; 151*f126890aSEmmanuel Vadot }; 152*f126890aSEmmanuel Vadot }; 153*f126890aSEmmanuel Vadot 154*f126890aSEmmanuel Vadot gpio-poweroff { 155*f126890aSEmmanuel Vadot compatible = "gpio-poweroff"; 156*f126890aSEmmanuel Vadot pinctrl-0 = <&poweroff>; 157*f126890aSEmmanuel Vadot pinctrl-names = "default"; 158*f126890aSEmmanuel Vadot gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; 159*f126890aSEmmanuel Vadot }; 160*f126890aSEmmanuel Vadot}; 161*f126890aSEmmanuel Vadot 162*f126890aSEmmanuel Vadot&pciec { 163*f126890aSEmmanuel Vadot status = "okay"; 164*f126890aSEmmanuel Vadot 165*f126890aSEmmanuel Vadot /* Connected to Marvell 88SE9170 SATA controller */ 166*f126890aSEmmanuel Vadot pcie@1,0 { 167*f126890aSEmmanuel Vadot /* Port 0, Lane 0 */ 168*f126890aSEmmanuel Vadot status = "okay"; 169*f126890aSEmmanuel Vadot }; 170*f126890aSEmmanuel Vadot 171*f126890aSEmmanuel Vadot /* Connected to FL1009 USB 3.0 controller */ 172*f126890aSEmmanuel Vadot pcie@2,0 { 173*f126890aSEmmanuel Vadot /* Port 1, Lane 0 */ 174*f126890aSEmmanuel Vadot status = "okay"; 175*f126890aSEmmanuel Vadot }; 176*f126890aSEmmanuel Vadot}; 177*f126890aSEmmanuel Vadot 178*f126890aSEmmanuel Vadot&mdio { 179*f126890aSEmmanuel Vadot pinctrl-0 = <&mdio_pins>; 180*f126890aSEmmanuel Vadot pinctrl-names = "default"; 181*f126890aSEmmanuel Vadot phy0: ethernet-phy@0 { /* Marvell 88E1318 */ 182*f126890aSEmmanuel Vadot reg = <0>; 183*f126890aSEmmanuel Vadot }; 184*f126890aSEmmanuel Vadot}; 185*f126890aSEmmanuel Vadot 186*f126890aSEmmanuel Vadot&pinctrl { 187*f126890aSEmmanuel Vadot power_led_pin: power-led-pin { 188*f126890aSEmmanuel Vadot marvell,pins = "mpp57"; 189*f126890aSEmmanuel Vadot marvell,function = "gpio"; 190*f126890aSEmmanuel Vadot }; 191*f126890aSEmmanuel Vadot 192*f126890aSEmmanuel Vadot sata1_led_pin: sata1-led-pin { 193*f126890aSEmmanuel Vadot marvell,pins = "mpp15"; 194*f126890aSEmmanuel Vadot marvell,function = "gpio"; 195*f126890aSEmmanuel Vadot }; 196*f126890aSEmmanuel Vadot 197*f126890aSEmmanuel Vadot sata2_led_pin: sata2-led-pin { 198*f126890aSEmmanuel Vadot marvell,pins = "mpp14"; 199*f126890aSEmmanuel Vadot marvell,function = "gpio"; 200*f126890aSEmmanuel Vadot }; 201*f126890aSEmmanuel Vadot 202*f126890aSEmmanuel Vadot backup_led_pin: backup-led-pin { 203*f126890aSEmmanuel Vadot marvell,pins = "mpp56"; 204*f126890aSEmmanuel Vadot marvell,function = "gpio"; 205*f126890aSEmmanuel Vadot }; 206*f126890aSEmmanuel Vadot 207*f126890aSEmmanuel Vadot backup_button_pin: backup-button-pin { 208*f126890aSEmmanuel Vadot marvell,pins = "mpp58"; 209*f126890aSEmmanuel Vadot marvell,function = "gpio"; 210*f126890aSEmmanuel Vadot }; 211*f126890aSEmmanuel Vadot 212*f126890aSEmmanuel Vadot power_button_pin: power-button-pin { 213*f126890aSEmmanuel Vadot marvell,pins = "mpp62"; 214*f126890aSEmmanuel Vadot marvell,function = "gpio"; 215*f126890aSEmmanuel Vadot }; 216*f126890aSEmmanuel Vadot 217*f126890aSEmmanuel Vadot reset_button_pin: reset-button-pin { 218*f126890aSEmmanuel Vadot marvell,pins = "mpp6"; 219*f126890aSEmmanuel Vadot marvell,function = "gpio"; 220*f126890aSEmmanuel Vadot }; 221*f126890aSEmmanuel Vadot 222*f126890aSEmmanuel Vadot poweroff: poweroff { 223*f126890aSEmmanuel Vadot marvell,pins = "mpp8"; 224*f126890aSEmmanuel Vadot marvell,function = "gpio"; 225*f126890aSEmmanuel Vadot }; 226*f126890aSEmmanuel Vadot}; 227*f126890aSEmmanuel Vadot 228*f126890aSEmmanuel Vadot&nand_controller { 229*f126890aSEmmanuel Vadot status = "okay"; 230*f126890aSEmmanuel Vadot 231*f126890aSEmmanuel Vadot nand@0 { 232*f126890aSEmmanuel Vadot reg = <0>; 233*f126890aSEmmanuel Vadot label = "pxa3xx_nand-0"; 234*f126890aSEmmanuel Vadot nand-rb = <0>; 235*f126890aSEmmanuel Vadot marvell,nand-keep-config; 236*f126890aSEmmanuel Vadot nand-on-flash-bbt; 237*f126890aSEmmanuel Vadot 238*f126890aSEmmanuel Vadot /* Use Hardware BCH ECC */ 239*f126890aSEmmanuel Vadot nand-ecc-strength = <4>; 240*f126890aSEmmanuel Vadot nand-ecc-step-size = <512>; 241*f126890aSEmmanuel Vadot 242*f126890aSEmmanuel Vadot partitions { 243*f126890aSEmmanuel Vadot compatible = "fixed-partitions"; 244*f126890aSEmmanuel Vadot #address-cells = <1>; 245*f126890aSEmmanuel Vadot #size-cells = <1>; 246*f126890aSEmmanuel Vadot 247*f126890aSEmmanuel Vadot partition@0 { 248*f126890aSEmmanuel Vadot label = "u-boot"; 249*f126890aSEmmanuel Vadot reg = <0x0000000 0x180000>; /* 1.5MB */ 250*f126890aSEmmanuel Vadot read-only; 251*f126890aSEmmanuel Vadot }; 252*f126890aSEmmanuel Vadot 253*f126890aSEmmanuel Vadot partition@180000 { 254*f126890aSEmmanuel Vadot label = "u-boot-env"; 255*f126890aSEmmanuel Vadot reg = <0x180000 0x20000>; /* 128KB */ 256*f126890aSEmmanuel Vadot read-only; 257*f126890aSEmmanuel Vadot }; 258*f126890aSEmmanuel Vadot 259*f126890aSEmmanuel Vadot partition@200000 { 260*f126890aSEmmanuel Vadot label = "uImage"; 261*f126890aSEmmanuel Vadot reg = <0x0200000 0x600000>; /* 6MB */ 262*f126890aSEmmanuel Vadot }; 263*f126890aSEmmanuel Vadot 264*f126890aSEmmanuel Vadot partition@800000 { 265*f126890aSEmmanuel Vadot label = "minirootfs"; 266*f126890aSEmmanuel Vadot reg = <0x0800000 0x400000>; /* 4MB */ 267*f126890aSEmmanuel Vadot }; 268*f126890aSEmmanuel Vadot 269*f126890aSEmmanuel Vadot /* Last MB is for the BBT, i.e. not writable */ 270*f126890aSEmmanuel Vadot partition@c00000 { 271*f126890aSEmmanuel Vadot label = "ubifs"; 272*f126890aSEmmanuel Vadot reg = <0x0c00000 0x7400000>; /* 116MB */ 273*f126890aSEmmanuel Vadot }; 274*f126890aSEmmanuel Vadot }; 275*f126890aSEmmanuel Vadot }; 276*f126890aSEmmanuel Vadot}; 277