Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003  * Device Tree file for NETGEAR ReadyNAS Duo v2
0004  *
0005  * Copyright (C) 2013, Arnaud EBALARD <arno@natisbad.org>
0006  */
0007 
0008 /dts-v1/;
0009 
0010 #include "kirkwood.dtsi"
0011 #include "kirkwood-6282.dtsi"
0012 
0013 / {
0014         model = "NETGEAR ReadyNAS Duo v2";
0015         compatible = "netgear,readynas-duo-v2", "netgear,readynas", "marvell,kirkwood-88f6282", "marvell,kirkwood";
0016 
0017         memory { /* 256 MB */
0018                 device_type = "memory";
0019                 reg = <0x00000000 0x10000000>;
0020         };
0021 
0022         chosen {
0023                 bootargs = "console=ttyS0,115200n8 earlyprintk";
0024                 stdout-path = &uart0;
0025         };
0026 
0027         ocp@f1000000 {
0028                 pinctrl: pin-controller@10000 {
0029                         pmx_button_power: pmx-button-power {
0030                                 marvell,pins = "mpp47";
0031                                 marvell,function = "gpio";
0032                         };
0033 
0034                         pmx_button_backup: pmx-button-backup {
0035                                 marvell,pins = "mpp45";
0036                                 marvell,function = "gpio";
0037                         };
0038 
0039                         pmx_button_reset: pmx-button-reset {
0040                                 marvell,pins = "mpp13";
0041                                 marvell,function = "gpio";
0042                         };
0043 
0044                         pmx_led_blue_power: pmx-led-blue-power {
0045                                 marvell,pins = "mpp31";
0046                                 marvell,function = "gpio";
0047                         };
0048 
0049                         pmx_led_blue_activity: pmx-led-blue-activity {
0050                                 marvell,pins = "mpp38";
0051                                 marvell,function = "gpio";
0052                         };
0053 
0054                         pmx_led_blue_disk1: pmx-led-blue-disk1 {
0055                                 marvell,pins = "mpp23";
0056                                 marvell,function = "gpio";
0057                         };
0058 
0059                         pmx_led_blue_disk2: pmx-led-blue-disk2 {
0060                                 marvell,pins = "mpp22";
0061                                 marvell,function = "gpio";
0062                         };
0063 
0064                         pmx_led_blue_backup: pmx-led-blue-backup {
0065                                 marvell,pins = "mpp29";
0066                                 marvell,function = "gpio";
0067                         };
0068 
0069                         pmx_poweroff: pmx-poweroff {
0070                                 marvell,pins = "mpp30";
0071                                 marvell,function = "gpio";
0072                         };
0073                 };
0074 
0075                 clocks {
0076                        g762_clk: g762-oscillator {
0077                                  compatible = "fixed-clock";
0078                                  #clock-cells = <0>;
0079                                  clock-frequency = <8192>;
0080                        };
0081                 };
0082 
0083                 i2c@11000 {
0084                         status = "okay";
0085 
0086                         rs5c372a: rs5c372a@32 {
0087                                 compatible = "ricoh,rs5c372a";
0088                                 reg = <0x32>;
0089                         };
0090 
0091                         g762: g762@3e {
0092                                 compatible = "gmt,g762";
0093                                 reg = <0x3e>;
0094                                 clocks = <&g762_clk>; /* input clock */
0095                                 fan_gear_mode = <0>;
0096                                 fan_startv = <1>;
0097                                 pwm_polarity = <0>;
0098                         };
0099                 };
0100 
0101                 serial@12000 {
0102                         status = "okay";
0103                 };
0104 
0105                 sata@80000 {
0106                         status = "okay";
0107                         nr-ports = <2>;
0108                 };
0109         };
0110 
0111         gpio-leds {
0112                 compatible = "gpio-leds";
0113                 pinctrl-0 = < &pmx_led_blue_power &pmx_led_blue_activity
0114                               &pmx_led_blue_disk1 &pmx_led_blue_disk2
0115                               &pmx_led_blue_backup >;
0116                 pinctrl-names = "default";
0117 
0118                 power_led {
0119                         label = "status:blue:power_led";
0120                         gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
0121                         default-state = "keep";
0122                 };
0123 
0124                 activity_led {
0125                         label = "status:blue:activity_led";
0126                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
0127                 };
0128 
0129                 disk1_led {
0130                         label = "status:blue:disk1_led";
0131                         gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
0132                 };
0133 
0134                 disk2_led {
0135                         label = "status:blue:disk2_led";
0136                         gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
0137                 };
0138 
0139                 backup_led {
0140                         label = "status:blue:backup_led";
0141                         gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
0142                 };
0143         };
0144 
0145         gpio-keys {
0146                 compatible = "gpio-keys";
0147                 pinctrl-0 = <&pmx_button_power &pmx_button_backup
0148                              &pmx_button_reset>;
0149                 pinctrl-names = "default";
0150 
0151                 power-button {
0152                         label = "Power Button";
0153                         linux,code = <KEY_POWER>;
0154                         gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
0155                 };
0156 
0157                 reset-button {
0158                         label = "Reset Button";
0159                         linux,code = <KEY_RESTART>;
0160                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
0161                 };
0162 
0163                 backup-button {
0164                         label = "Backup Button";
0165                         linux,code = <KEY_COPY>;
0166                         gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
0167                 };
0168         };
0169 
0170         gpio-poweroff {
0171                 compatible = "gpio-poweroff";
0172                 pinctrl-0 = <&pmx_poweroff>;
0173                 pinctrl-names = "default";
0174                 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
0175         };
0176 
0177         regulators {
0178                 compatible = "simple-bus";
0179                 #address-cells = <1>;
0180                 #size-cells = <0>;
0181 
0182                 usb3_regulator: usb3-regulator@1 {
0183                         compatible = "regulator-fixed";
0184                         reg = <1>;
0185                         regulator-name = "USB 3.0 Power";
0186                         regulator-min-microvolt = <5000000>;
0187                         regulator-max-microvolt = <5000000>;
0188                         enable-active-high;
0189                         regulator-always-on;
0190                         regulator-boot-on;
0191                         gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>;
0192                 };
0193         };
0194 };
0195 
0196 &nand {
0197         status = "okay";
0198 
0199         partition@0 {
0200                 label = "u-boot";
0201                 reg = <0x0000000 0x180000>;
0202                 read-only;
0203         };
0204 
0205         partition@180000 {
0206                 label = "u-boot-env";
0207                 reg = <0x180000 0x20000>;
0208         };
0209 
0210         partition@200000 {
0211                 label = "uImage";
0212                 reg = <0x0200000 0x600000>;
0213         };
0214 
0215         partition@800000 {
0216                 label = "minirootfs";
0217                 reg = <0x0800000 0x1000000>;
0218         };
0219 
0220         partition@1800000 {
0221                 label = "jffs2";
0222                 reg = <0x1800000 0x6800000>;
0223         };
0224 };
0225 
0226 &mdio {
0227         status = "okay";
0228 
0229         ethphy0: ethernet-phy@0 { /* Marvell 88E1318 */
0230                 reg = <0>;
0231         };
0232 };
0233 
0234 &eth0 {
0235         status = "okay";
0236         ethernet0-port@0 {
0237                 phy-handle = <&ethphy0>;
0238         };
0239 };
0240 
0241 &pciec {
0242         status = "okay";
0243 };
0244 
0245 &pcie0 {
0246         status = "okay";
0247 };