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