Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003 
0004 #include "kirkwood.dtsi"
0005 #include "kirkwood-6281.dtsi"
0006 
0007 / {
0008         model = "RaidSonic ICY BOX IB-NAS62x0 (Rev B)";
0009         compatible = "raidsonic,ib-nas6210-b", "raidsonic,ib-nas6220-b", "raidsonic,ib-nas6210", "raidsonic,ib-nas6220", "raidsonic,ib-nas62x0", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0010 
0011         memory {
0012                 device_type = "memory";
0013                 reg = <0x00000000 0x10000000>;
0014         };
0015 
0016         chosen {
0017                 bootargs = "console=ttyS0,115200n8 earlyprintk";
0018                 stdout-path = &uart0;
0019         };
0020 
0021         ocp@f1000000 {
0022                 pinctrl: pin-controller@10000 {
0023                         pmx_led_os_red: pmx-led-os-red {
0024                                 marvell,pins = "mpp22";
0025                                 marvell,function = "gpio";
0026                         };
0027                         pmx_power_off: pmx-power-off {
0028                                 marvell,pins = "mpp24";
0029                                 marvell,function = "gpio";
0030                         };
0031                         pmx_led_os_green: pmx-led-os-green {
0032                                 marvell,pins = "mpp25";
0033                                 marvell,function = "gpio";
0034                         };
0035                         pmx_led_usb_transfer: pmx-led-usb-transfer {
0036                                 marvell,pins = "mpp27";
0037                                 marvell,function = "gpio";
0038                         };
0039                         pmx_button_reset: pmx-button-reset {
0040                                 marvell,pins = "mpp28";
0041                                 marvell,function = "gpio";
0042                         };
0043                         pmx_button_usb_copy: pmx-button-usb-copy {
0044                                 marvell,pins = "mpp29";
0045                                 marvell,function = "gpio";
0046                         };
0047                 };
0048 
0049                 serial@12000 {
0050                         status = "okay";
0051                 };
0052 
0053                 sata@80000 {
0054                         status = "okay";
0055                         nr-ports = <2>;
0056                 };
0057         };
0058 
0059         gpio_keys {
0060                 compatible = "gpio-keys";
0061                 #address-cells = <1>;
0062                 #size-cells = <0>;
0063                 pinctrl-0 = <&pmx_button_reset &pmx_button_usb_copy>;
0064                 pinctrl-names = "default";
0065 
0066                 copy {
0067                         label = "USB Copy";
0068                         linux,code = <KEY_COPY>;
0069                         gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
0070                 };
0071                 reset {
0072                         label = "Reset";
0073                         linux,code = <KEY_RESTART>;
0074                         gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
0075                 };
0076         };
0077 
0078         gpio-leds {
0079                 compatible = "gpio-leds";
0080                 pinctrl-0 = <&pmx_led_os_red &pmx_led_os_green
0081                              &pmx_led_usb_transfer>;
0082                 pinctrl-names = "default";
0083 
0084                 green-os {
0085                         label = "ib62x0:green:os";
0086                         gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
0087                         default-state = "keep";
0088                 };
0089                 red-os {
0090                         label = "ib62x0:red:os";
0091                         gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
0092                 };
0093                 usb-copy {
0094                         label = "ib62x0:red:usb_copy";
0095                         gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
0096                 };
0097         };
0098 
0099         gpio_poweroff {
0100                 compatible = "gpio-poweroff";
0101                 pinctrl-0 = <&pmx_power_off>;
0102                 pinctrl-names = "default";
0103                 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
0104         };
0105 };
0106 
0107 &nand {
0108         status = "okay";
0109 
0110         partition@0 {
0111                 label = "u-boot";
0112                 reg = <0x0000000 0xe0000>;
0113         };
0114 
0115         partition@e0000 {
0116                 label = "u-boot environment";
0117                 reg = <0xe0000 0x20000>;
0118         };
0119 
0120         partition@100000 {
0121                 label = "uImage";
0122                 reg = <0x0100000 0x600000>;
0123         };
0124 
0125         partition@700000 {
0126                 label = "root";
0127                 reg = <0x0700000 0xf900000>;
0128         };
0129 
0130 };
0131 
0132 &mdio {
0133         status = "okay";
0134 
0135         ethphy0: ethernet-phy@8 {
0136                 reg = <8>;
0137         };
0138 };
0139 
0140 &eth0 {
0141         status = "okay";
0142 
0143         ethernet0-port@0 {
0144                 phy-handle = <&ethphy0>;
0145         };
0146 };