Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+
0002 /* Device tree file for the Zyxel NSA 325 NAS box.
0003  *
0004  * Copyright (c) 2015, Hans Ulli Kroll <ulli.kroll@googlemail.com>
0005  *
0006  *
0007  * Based upon the board setup file created by Peter Schildmann
0008  */
0009 
0010 /dts-v1/;
0011 
0012 #include "kirkwood-nsa3x0-common.dtsi"
0013 
0014 / {
0015         model = "ZyXEL NSA325";
0016         compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood";
0017 
0018         memory {
0019                 device_type = "memory";
0020                 reg = <0x00000000 0x20000000>;
0021         };
0022 
0023         chosen {
0024                 bootargs = "console=ttyS0,115200";
0025                 stdout-path = &uart0;
0026         };
0027 
0028         ocp@f1000000 {
0029                 pinctrl: pin-controller@10000 {
0030                         pinctrl-names = "default";
0031 
0032                         pmx_led_hdd2_green: pmx-led-hdd2-green {
0033                                 marvell,pins = "mpp12";
0034                                 marvell,function = "gpio";
0035                         };
0036 
0037                         pmx_led_hdd2_red: pmx-led-hdd2-red {
0038                                 marvell,pins = "mpp13";
0039                                 marvell,function = "gpio";
0040                         };
0041 
0042                         pmx_mcu_data: pmx-mcu-data {
0043                                 marvell,pins = "mpp14";
0044                                 marvell,function = "gpio";
0045                         };
0046 
0047                         pmx_led_usb_green: pmx-led-usb-green {
0048                                 marvell,pins = "mpp15";
0049                                 marvell,function = "gpio";
0050                         };
0051 
0052                         pmx_mcu_clk: pmx-mcu-clk {
0053                                 marvell,pins = "mpp16";
0054                                 marvell,function = "gpio";
0055                         };
0056 
0057                         pmx_mcu_act: pmx-mcu-act {
0058                                 marvell,pins = "mpp17";
0059                                 marvell,function = "gpio";
0060                         };
0061 
0062                         pmx_led_sys_green: pmx-led-sys-green {
0063                                 marvell,pins = "mpp28";
0064                                 marvell,function = "gpio";
0065                         };
0066 
0067                         pmx_led_sys_orange: pmx-led-sys-orange {
0068                                 marvell,pins = "mpp29";
0069                                 marvell,function = "gpio";
0070                         };
0071 
0072                         pmx_led_hdd1_green: pmx-led-hdd1-green {
0073                                 marvell,pins = "mpp41";
0074                                 marvell,function = "gpio";
0075                         };
0076 
0077                         pmx_led_hdd1_red: pmx-led-hdd1-red {
0078                                 marvell,pins = "mpp42";
0079                                 marvell,function = "gpio";
0080                         };
0081 
0082                         pmx_htp: pmx-htp {
0083                                 marvell,pins = "mpp43";
0084                                 marvell,function = "gpio";
0085                         };
0086 
0087                         /*
0088                          * Buzzer needs to be switched at around 1kHz so is
0089                          * not compatible with the gpio-beeper driver.
0090                          */
0091                         pmx_buzzer: pmx-buzzer {
0092                                 marvell,pins = "mpp44";
0093                                 marvell,function = "gpio";
0094                         };
0095 
0096                         pmx_vid_b1: pmx-vid-b1 {
0097                                 marvell,pins = "mpp45";
0098                                 marvell,function = "gpio";
0099                         };
0100 
0101                         pmx_power_resume_data: pmx-power-resume-data {
0102                                 marvell,pins = "mpp47";
0103                                 marvell,function = "gpio";
0104                         };
0105 
0106                         pmx_power_resume_clk: pmx-power-resume-clk {
0107                                 marvell,pins = "mpp49";
0108                                 marvell,function = "gpio";
0109                         };
0110 
0111                         pmx_pwr_sata1: pmx-pwr-sata1 {
0112                                 marvell,pins = "mpp47";
0113                                 marvell,function = "gpio";
0114                         };
0115                 };
0116 
0117                 /* This board uses the pcf8563 RTC instead of the SoC RTC */
0118                 rtc@10300 {
0119                         status = "disabled";
0120                 };
0121 
0122                 i2c@11000 {
0123                         status = "okay";
0124 
0125                         pcf8563: pcf8563@51 {
0126                                 compatible = "nxp,pcf8563";
0127                                 reg = <0x51>;
0128                         };
0129                 };
0130         };
0131 
0132         regulators {
0133                 compatible = "simple-bus";
0134                 #address-cells = <1>;
0135                 #size-cells = <0>;
0136                 pinctrl-0 = <&pmx_pwr_sata1>;
0137                 pinctrl-names = "default";
0138 
0139                 usb0_power: regulator@1 {
0140                         enable-active-high;
0141                 };
0142 
0143                 sata1_power: regulator@2 {
0144                         compatible = "regulator-fixed";
0145                         reg = <2>;
0146                         regulator-name = "SATA1 Power";
0147                         regulator-min-microvolt = <5000000>;
0148                         regulator-max-microvolt = <5000000>;
0149                         regulator-always-on;
0150                         regulator-boot-on;
0151                         enable-active-high;
0152                         gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>;
0153                 };
0154         };
0155 
0156         gpio-leds {
0157                 compatible = "gpio-leds";
0158                 pinctrl-0 = <&pmx_led_hdd2_green &pmx_led_hdd2_red
0159                              &pmx_led_usb_green
0160                              &pmx_led_sys_green &pmx_led_sys_orange
0161                              &pmx_led_copy_green &pmx_led_copy_red
0162                              &pmx_led_hdd1_green &pmx_led_hdd1_red>;
0163                 pinctrl-names = "default";
0164 
0165                 green-sys {
0166                         label = "nsa325:green:sys";
0167                         gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
0168                 };
0169                 orange-sys {
0170                         label = "nsa325:orange:sys";
0171                         gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
0172                 };
0173                 green-hdd1 {
0174                         label = "nsa325:green:hdd1";
0175                         gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
0176                 };
0177                 red-hdd1 {
0178                         label = "nsa325:red:hdd1";
0179                         gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
0180                 };
0181                 green-hdd2 {
0182                         label = "nsa325:green:hdd2";
0183                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
0184                 };
0185                 red-hdd2 {
0186                         label = "nsa325:red:hdd2";
0187                         gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
0188                 };
0189                 green-usb {
0190                         label = "nsa325:green:usb";
0191                         gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
0192                 };
0193                 green-copy {
0194                         label = "nsa325:green:copy";
0195                         gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
0196                 };
0197                 red-copy {
0198                         label = "nsa325:red:copy";
0199                         gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
0200                 };
0201 
0202         /* The following pins are currently not assigned to a driver,
0203            some of them should be configured as inputs.
0204         pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act
0205                      &pmx_htp &pmx_vid_b1
0206                      &pmx_power_resume_data &pmx_power_resume_clk>; */
0207         };
0208 
0209 
0210 };
0211 
0212 &mdio {
0213         status = "okay";
0214         ethphy0: ethernet-phy@1 {
0215                 reg = <1>;
0216         };
0217 };
0218 
0219 &eth0 {
0220         status = "okay";
0221         ethernet0-port@0 {
0222                 phy-handle = <&ethphy0>;
0223         };
0224 };
0225 
0226 &pciec {
0227         status = "okay";
0228 };
0229 
0230 &pcie0 {
0231         status = "okay";
0232 };