1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ 2*724ba675SRob Herring/* Device tree file for the Zyxel NSA 325 NAS box. 3*724ba675SRob Herring * 4*724ba675SRob Herring * Copyright (c) 2015, Hans Ulli Kroll <ulli.kroll@googlemail.com> 5*724ba675SRob Herring * 6*724ba675SRob Herring * 7*724ba675SRob Herring * Based upon the board setup file created by Peter Schildmann 8*724ba675SRob Herring */ 9*724ba675SRob Herring 10*724ba675SRob Herring/dts-v1/; 11*724ba675SRob Herring 12*724ba675SRob Herring#include "kirkwood-nsa3x0-common.dtsi" 13*724ba675SRob Herring 14*724ba675SRob Herring/ { 15*724ba675SRob Herring model = "ZyXEL NSA325"; 16*724ba675SRob Herring compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood"; 17*724ba675SRob Herring 18*724ba675SRob Herring memory { 19*724ba675SRob Herring device_type = "memory"; 20*724ba675SRob Herring reg = <0x00000000 0x20000000>; 21*724ba675SRob Herring }; 22*724ba675SRob Herring 23*724ba675SRob Herring chosen { 24*724ba675SRob Herring bootargs = "console=ttyS0,115200"; 25*724ba675SRob Herring stdout-path = &uart0; 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring ocp@f1000000 { 29*724ba675SRob Herring pinctrl: pin-controller@10000 { 30*724ba675SRob Herring pinctrl-names = "default"; 31*724ba675SRob Herring 32*724ba675SRob Herring pmx_led_hdd2_green: pmx-led-hdd2-green { 33*724ba675SRob Herring marvell,pins = "mpp12"; 34*724ba675SRob Herring marvell,function = "gpio"; 35*724ba675SRob Herring }; 36*724ba675SRob Herring 37*724ba675SRob Herring pmx_led_hdd2_red: pmx-led-hdd2-red { 38*724ba675SRob Herring marvell,pins = "mpp13"; 39*724ba675SRob Herring marvell,function = "gpio"; 40*724ba675SRob Herring }; 41*724ba675SRob Herring 42*724ba675SRob Herring pmx_mcu_data: pmx-mcu-data { 43*724ba675SRob Herring marvell,pins = "mpp14"; 44*724ba675SRob Herring marvell,function = "gpio"; 45*724ba675SRob Herring }; 46*724ba675SRob Herring 47*724ba675SRob Herring pmx_led_usb_green: pmx-led-usb-green { 48*724ba675SRob Herring marvell,pins = "mpp15"; 49*724ba675SRob Herring marvell,function = "gpio"; 50*724ba675SRob Herring }; 51*724ba675SRob Herring 52*724ba675SRob Herring pmx_mcu_clk: pmx-mcu-clk { 53*724ba675SRob Herring marvell,pins = "mpp16"; 54*724ba675SRob Herring marvell,function = "gpio"; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring pmx_mcu_act: pmx-mcu-act { 58*724ba675SRob Herring marvell,pins = "mpp17"; 59*724ba675SRob Herring marvell,function = "gpio"; 60*724ba675SRob Herring }; 61*724ba675SRob Herring 62*724ba675SRob Herring pmx_led_sys_green: pmx-led-sys-green { 63*724ba675SRob Herring marvell,pins = "mpp28"; 64*724ba675SRob Herring marvell,function = "gpio"; 65*724ba675SRob Herring }; 66*724ba675SRob Herring 67*724ba675SRob Herring pmx_led_sys_orange: pmx-led-sys-orange { 68*724ba675SRob Herring marvell,pins = "mpp29"; 69*724ba675SRob Herring marvell,function = "gpio"; 70*724ba675SRob Herring }; 71*724ba675SRob Herring 72*724ba675SRob Herring pmx_led_hdd1_green: pmx-led-hdd1-green { 73*724ba675SRob Herring marvell,pins = "mpp41"; 74*724ba675SRob Herring marvell,function = "gpio"; 75*724ba675SRob Herring }; 76*724ba675SRob Herring 77*724ba675SRob Herring pmx_led_hdd1_red: pmx-led-hdd1-red { 78*724ba675SRob Herring marvell,pins = "mpp42"; 79*724ba675SRob Herring marvell,function = "gpio"; 80*724ba675SRob Herring }; 81*724ba675SRob Herring 82*724ba675SRob Herring pmx_htp: pmx-htp { 83*724ba675SRob Herring marvell,pins = "mpp43"; 84*724ba675SRob Herring marvell,function = "gpio"; 85*724ba675SRob Herring }; 86*724ba675SRob Herring 87*724ba675SRob Herring /* 88*724ba675SRob Herring * Buzzer needs to be switched at around 1kHz so is 89*724ba675SRob Herring * not compatible with the gpio-beeper driver. 90*724ba675SRob Herring */ 91*724ba675SRob Herring pmx_buzzer: pmx-buzzer { 92*724ba675SRob Herring marvell,pins = "mpp44"; 93*724ba675SRob Herring marvell,function = "gpio"; 94*724ba675SRob Herring }; 95*724ba675SRob Herring 96*724ba675SRob Herring pmx_vid_b1: pmx-vid-b1 { 97*724ba675SRob Herring marvell,pins = "mpp45"; 98*724ba675SRob Herring marvell,function = "gpio"; 99*724ba675SRob Herring }; 100*724ba675SRob Herring 101*724ba675SRob Herring pmx_power_resume_data: pmx-power-resume-data { 102*724ba675SRob Herring marvell,pins = "mpp47"; 103*724ba675SRob Herring marvell,function = "gpio"; 104*724ba675SRob Herring }; 105*724ba675SRob Herring 106*724ba675SRob Herring pmx_power_resume_clk: pmx-power-resume-clk { 107*724ba675SRob Herring marvell,pins = "mpp49"; 108*724ba675SRob Herring marvell,function = "gpio"; 109*724ba675SRob Herring }; 110*724ba675SRob Herring 111*724ba675SRob Herring pmx_pwr_sata1: pmx-pwr-sata1 { 112*724ba675SRob Herring marvell,pins = "mpp47"; 113*724ba675SRob Herring marvell,function = "gpio"; 114*724ba675SRob Herring }; 115*724ba675SRob Herring }; 116*724ba675SRob Herring 117*724ba675SRob Herring /* This board uses the pcf8563 RTC instead of the SoC RTC */ 118*724ba675SRob Herring rtc@10300 { 119*724ba675SRob Herring status = "disabled"; 120*724ba675SRob Herring }; 121*724ba675SRob Herring 122*724ba675SRob Herring i2c@11000 { 123*724ba675SRob Herring status = "okay"; 124*724ba675SRob Herring 125*724ba675SRob Herring pcf8563: pcf8563@51 { 126*724ba675SRob Herring compatible = "nxp,pcf8563"; 127*724ba675SRob Herring reg = <0x51>; 128*724ba675SRob Herring }; 129*724ba675SRob Herring }; 130*724ba675SRob Herring }; 131*724ba675SRob Herring 132*724ba675SRob Herring regulators { 133*724ba675SRob Herring compatible = "simple-bus"; 134*724ba675SRob Herring #address-cells = <1>; 135*724ba675SRob Herring #size-cells = <0>; 136*724ba675SRob Herring pinctrl-0 = <&pmx_pwr_sata1>; 137*724ba675SRob Herring pinctrl-names = "default"; 138*724ba675SRob Herring 139*724ba675SRob Herring usb0_power: regulator@1 { 140*724ba675SRob Herring enable-active-high; 141*724ba675SRob Herring }; 142*724ba675SRob Herring 143*724ba675SRob Herring sata1_power: regulator@2 { 144*724ba675SRob Herring compatible = "regulator-fixed"; 145*724ba675SRob Herring reg = <2>; 146*724ba675SRob Herring regulator-name = "SATA1 Power"; 147*724ba675SRob Herring regulator-min-microvolt = <5000000>; 148*724ba675SRob Herring regulator-max-microvolt = <5000000>; 149*724ba675SRob Herring regulator-always-on; 150*724ba675SRob Herring regulator-boot-on; 151*724ba675SRob Herring enable-active-high; 152*724ba675SRob Herring gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>; 153*724ba675SRob Herring }; 154*724ba675SRob Herring }; 155*724ba675SRob Herring 156*724ba675SRob Herring gpio-leds { 157*724ba675SRob Herring compatible = "gpio-leds"; 158*724ba675SRob Herring pinctrl-0 = <&pmx_led_hdd2_green &pmx_led_hdd2_red 159*724ba675SRob Herring &pmx_led_usb_green 160*724ba675SRob Herring &pmx_led_sys_green &pmx_led_sys_orange 161*724ba675SRob Herring &pmx_led_copy_green &pmx_led_copy_red 162*724ba675SRob Herring &pmx_led_hdd1_green &pmx_led_hdd1_red>; 163*724ba675SRob Herring pinctrl-names = "default"; 164*724ba675SRob Herring 165*724ba675SRob Herring green-sys { 166*724ba675SRob Herring label = "nsa325:green:sys"; 167*724ba675SRob Herring gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; 168*724ba675SRob Herring }; 169*724ba675SRob Herring orange-sys { 170*724ba675SRob Herring label = "nsa325:orange:sys"; 171*724ba675SRob Herring gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; 172*724ba675SRob Herring }; 173*724ba675SRob Herring green-hdd1 { 174*724ba675SRob Herring label = "nsa325:green:hdd1"; 175*724ba675SRob Herring gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; 176*724ba675SRob Herring }; 177*724ba675SRob Herring red-hdd1 { 178*724ba675SRob Herring label = "nsa325:red:hdd1"; 179*724ba675SRob Herring gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 180*724ba675SRob Herring }; 181*724ba675SRob Herring green-hdd2 { 182*724ba675SRob Herring label = "nsa325:green:hdd2"; 183*724ba675SRob Herring gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; 184*724ba675SRob Herring }; 185*724ba675SRob Herring red-hdd2 { 186*724ba675SRob Herring label = "nsa325:red:hdd2"; 187*724ba675SRob Herring gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; 188*724ba675SRob Herring }; 189*724ba675SRob Herring green-usb { 190*724ba675SRob Herring label = "nsa325:green:usb"; 191*724ba675SRob Herring gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; 192*724ba675SRob Herring }; 193*724ba675SRob Herring green-copy { 194*724ba675SRob Herring label = "nsa325:green:copy"; 195*724ba675SRob Herring gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 196*724ba675SRob Herring }; 197*724ba675SRob Herring red-copy { 198*724ba675SRob Herring label = "nsa325:red:copy"; 199*724ba675SRob Herring gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; 200*724ba675SRob Herring }; 201*724ba675SRob Herring 202*724ba675SRob Herring /* The following pins are currently not assigned to a driver, 203*724ba675SRob Herring some of them should be configured as inputs. 204*724ba675SRob Herring pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act 205*724ba675SRob Herring &pmx_htp &pmx_vid_b1 206*724ba675SRob Herring &pmx_power_resume_data &pmx_power_resume_clk>; */ 207*724ba675SRob Herring }; 208*724ba675SRob Herring 209*724ba675SRob Herring 210*724ba675SRob Herring}; 211*724ba675SRob Herring 212*724ba675SRob Herring&mdio { 213*724ba675SRob Herring status = "okay"; 214*724ba675SRob Herring ethphy0: ethernet-phy@1 { 215*724ba675SRob Herring reg = <1>; 216*724ba675SRob Herring }; 217*724ba675SRob Herring}; 218*724ba675SRob Herring 219*724ba675SRob Herringð0 { 220*724ba675SRob Herring status = "okay"; 221*724ba675SRob Herring ethernet0-port@0 { 222*724ba675SRob Herring phy-handle = <ðphy0>; 223*724ba675SRob Herring }; 224*724ba675SRob Herring}; 225*724ba675SRob Herring 226*724ba675SRob Herring&pciec { 227*724ba675SRob Herring status = "okay"; 228*724ba675SRob Herring}; 229*724ba675SRob Herring 230*724ba675SRob Herring&pcie0 { 231*724ba675SRob Herring status = "okay"; 232*724ba675SRob Herring}; 233