Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree file for NETGEAR ReadyNAS 102
0004  *
0005  * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
0006  */
0007 
0008 /dts-v1/;
0009 
0010 #include <dt-bindings/input/input.h>
0011 #include <dt-bindings/gpio/gpio.h>
0012 #include "armada-370.dtsi"
0013 
0014 / {
0015         model = "NETGEAR ReadyNAS 102";
0016         compatible = "netgear,readynas-102", "marvell,armada370", "marvell,armada-370-xp";
0017 
0018         chosen {
0019                 stdout-path = "serial0:115200n8";
0020         };
0021 
0022         memory@0 {
0023                 device_type = "memory";
0024                 reg = <0x00000000 0x20000000>; /* 512 MB */
0025         };
0026 
0027         soc {
0028                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
0029                           MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
0030                           MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
0031 
0032                 internal-regs {
0033 
0034                         /* RTC is provided by Intersil ISL12057 I2C RTC chip */
0035                         rtc@10300 {
0036                                 status = "disabled";
0037                         };
0038 
0039                         serial@12000 {
0040                                 status = "okay";
0041                         };
0042 
0043                         /* eSATA interface */
0044                         sata@a0000 {
0045                                 nr-ports = <1>;
0046                                 status = "okay";
0047                         };
0048 
0049                         ethernet@74000 {
0050                                 pinctrl-0 = <&ge1_rgmii_pins>;
0051                                 pinctrl-names = "default";
0052                                 status = "okay";
0053                                 phy = <&phy0>;
0054                                 phy-mode = "rgmii-id";
0055                         };
0056 
0057                         usb@50000 {
0058                                 status = "okay";
0059                         };
0060 
0061                         i2c@11000 {
0062                                 clock-frequency = <100000>;
0063 
0064                                 pinctrl-0 = <&i2c0_pins>;
0065                                 pinctrl-names = "default";
0066 
0067                                 status = "okay";
0068 
0069                                 isl12057: rtc@68 {
0070                                         compatible = "isil,isl12057";
0071                                         reg = <0x68>;
0072                                         wakeup-source;
0073                                 };
0074 
0075                                 g762: g762@3e {
0076                                         compatible = "gmt,g762";
0077                                         reg = <0x3e>;
0078                                         clocks = <&g762_clk>; /* input clock */
0079                                         fan_gear_mode = <0>;
0080                                         fan_startv = <1>;
0081                                         pwm_polarity = <0>;
0082                                 };
0083                         };
0084                 };
0085         };
0086 
0087         clocks {
0088                g762_clk: g762-oscillator {
0089                          compatible = "fixed-clock";
0090                          #clock-cells = <0>;
0091                          clock-frequency = <8192>;
0092                };
0093         };
0094 
0095         gpio-leds {
0096                 compatible = "gpio-leds";
0097                 pinctrl-0 = <&power_led_pin
0098                              &sata1_led_pin
0099                              &sata2_led_pin
0100                              &backup_led_pin>;
0101                 pinctrl-names = "default";
0102 
0103                 blue-power-led {
0104                         label = "rn102:blue:pwr";
0105                         gpios = <&gpio1 25 GPIO_ACTIVE_LOW>;
0106                         default-state = "keep";
0107                 };
0108 
0109                 blue-sata1-led {
0110                         label = "rn102:blue:sata1";
0111                         gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
0112                         default-state = "on";
0113                 };
0114 
0115                 blue-sata2-led {
0116                         label = "rn102:blue:sata2";
0117                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
0118                         default-state = "on";
0119                 };
0120 
0121                 blue-backup-led {
0122                         label = "rn102:blue:backup";
0123                         gpios = <&gpio1 24 GPIO_ACTIVE_LOW>;
0124                         default-state = "on";
0125                 };
0126         };
0127 
0128         gpio-keys {
0129                 compatible = "gpio-keys";
0130                 pinctrl-0 = <&power_button_pin
0131                              &reset_button_pin
0132                              &backup_button_pin>;
0133                 pinctrl-names = "default";
0134 
0135                 power-button {
0136                         label = "Power Button";
0137                         linux,code = <KEY_POWER>;
0138                         gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
0139                 };
0140 
0141                 reset-button {
0142                         label = "Reset Button";
0143                         linux,code = <KEY_RESTART>;
0144                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
0145                 };
0146 
0147                 backup-button {
0148                         label = "Backup Button";
0149                         linux,code = <KEY_COPY>;
0150                         gpios = <&gpio1 26 GPIO_ACTIVE_LOW>;
0151                 };
0152         };
0153 
0154         gpio-poweroff {
0155                 compatible = "gpio-poweroff";
0156                 pinctrl-0 = <&poweroff>;
0157                 pinctrl-names = "default";
0158                 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
0159         };
0160 };
0161 
0162 &pciec {
0163         status = "okay";
0164 
0165         /* Connected to Marvell 88SE9170 SATA controller */
0166         pcie@1,0 {
0167                 /* Port 0, Lane 0 */
0168                 status = "okay";
0169         };
0170 
0171         /* Connected to FL1009 USB 3.0 controller */
0172         pcie@2,0 {
0173                 /* Port 1, Lane 0 */
0174                 status = "okay";
0175         };
0176 };
0177 
0178 &mdio {
0179         pinctrl-0 = <&mdio_pins>;
0180         pinctrl-names = "default";
0181         phy0: ethernet-phy@0 { /* Marvell 88E1318 */
0182                 reg = <0>;
0183         };
0184 };
0185 
0186 &pinctrl {
0187         power_led_pin: power-led-pin {
0188                 marvell,pins = "mpp57";
0189                 marvell,function = "gpio";
0190         };
0191 
0192         sata1_led_pin: sata1-led-pin {
0193                 marvell,pins = "mpp15";
0194                 marvell,function = "gpio";
0195         };
0196 
0197         sata2_led_pin: sata2-led-pin {
0198                 marvell,pins = "mpp14";
0199                 marvell,function = "gpio";
0200         };
0201 
0202         backup_led_pin: backup-led-pin {
0203                 marvell,pins = "mpp56";
0204                 marvell,function = "gpio";
0205         };
0206 
0207         backup_button_pin: backup-button-pin {
0208                 marvell,pins = "mpp58";
0209                 marvell,function = "gpio";
0210         };
0211 
0212         power_button_pin: power-button-pin {
0213                 marvell,pins = "mpp62";
0214                 marvell,function = "gpio";
0215         };
0216 
0217         reset_button_pin: reset-button-pin {
0218                 marvell,pins = "mpp6";
0219                 marvell,function = "gpio";
0220         };
0221 
0222         poweroff: poweroff {
0223                 marvell,pins = "mpp8";
0224                 marvell,function = "gpio";
0225         };
0226 };
0227 
0228 &nand_controller {
0229         status = "okay";
0230 
0231         nand@0 {
0232                 reg = <0>;
0233                 label = "pxa3xx_nand-0";
0234                 nand-rb = <0>;
0235                 marvell,nand-keep-config;
0236                 nand-on-flash-bbt;
0237 
0238                 /* Use Hardware BCH ECC */
0239                 nand-ecc-strength = <4>;
0240                 nand-ecc-step-size = <512>;
0241 
0242                 partitions {
0243                         compatible = "fixed-partitions";
0244                         #address-cells = <1>;
0245                         #size-cells = <1>;
0246 
0247                         partition@0 {
0248                                 label = "u-boot";
0249                                 reg = <0x0000000 0x180000>;  /* 1.5MB */
0250                                 read-only;
0251                         };
0252 
0253                         partition@180000 {
0254                                 label = "u-boot-env";
0255                                 reg = <0x180000 0x20000>;    /* 128KB */
0256                                 read-only;
0257                         };
0258 
0259                         partition@200000 {
0260                                 label = "uImage";
0261                                 reg = <0x0200000 0x600000>;    /* 6MB */
0262                         };
0263 
0264                         partition@800000 {
0265                                 label = "minirootfs";
0266                                 reg = <0x0800000 0x400000>;    /* 4MB */
0267                         };
0268 
0269                         /* Last MB is for the BBT, i.e. not writable */
0270                         partition@c00000 {
0271                                 label = "ubifs";
0272                                 reg = <0x0c00000 0x7400000>; /* 116MB */
0273                         };
0274                 };
0275         };
0276 };