1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ 2724ba675SRob Herring/* Device tree file for the Zyxel NSA 325 NAS box. 3724ba675SRob Herring * 4724ba675SRob Herring * Copyright (c) 2015, Hans Ulli Kroll <ulli.kroll@googlemail.com> 5724ba675SRob Herring * 6724ba675SRob Herring * 7724ba675SRob Herring * Based upon the board setup file created by Peter Schildmann 8724ba675SRob Herring */ 9724ba675SRob Herring 10724ba675SRob Herring/dts-v1/; 11724ba675SRob Herring 12724ba675SRob Herring#include "kirkwood-nsa3x0-common.dtsi" 13724ba675SRob Herring 14724ba675SRob Herring/ { 15724ba675SRob Herring model = "ZyXEL NSA325"; 16724ba675SRob Herring compatible = "zyxel,nsa325", "marvell,kirkwood-88f6282", "marvell,kirkwood"; 17724ba675SRob Herring 18724ba675SRob Herring memory { 19724ba675SRob Herring device_type = "memory"; 20724ba675SRob Herring reg = <0x00000000 0x20000000>; 21724ba675SRob Herring }; 22724ba675SRob Herring 23724ba675SRob Herring chosen { 24724ba675SRob Herring bootargs = "console=ttyS0,115200"; 25724ba675SRob Herring stdout-path = &uart0; 26724ba675SRob Herring }; 27724ba675SRob Herring 28724ba675SRob Herring ocp@f1000000 { 29724ba675SRob Herring pinctrl: pin-controller@10000 { 30724ba675SRob Herring pinctrl-names = "default"; 31724ba675SRob Herring 32724ba675SRob Herring pmx_led_hdd2_green: pmx-led-hdd2-green { 33724ba675SRob Herring marvell,pins = "mpp12"; 34724ba675SRob Herring marvell,function = "gpio"; 35724ba675SRob Herring }; 36724ba675SRob Herring 37724ba675SRob Herring pmx_led_hdd2_red: pmx-led-hdd2-red { 38724ba675SRob Herring marvell,pins = "mpp13"; 39724ba675SRob Herring marvell,function = "gpio"; 40724ba675SRob Herring }; 41724ba675SRob Herring 42724ba675SRob Herring pmx_mcu_data: pmx-mcu-data { 43724ba675SRob Herring marvell,pins = "mpp14"; 44724ba675SRob Herring marvell,function = "gpio"; 45724ba675SRob Herring }; 46724ba675SRob Herring 47724ba675SRob Herring pmx_led_usb_green: pmx-led-usb-green { 48724ba675SRob Herring marvell,pins = "mpp15"; 49724ba675SRob Herring marvell,function = "gpio"; 50724ba675SRob Herring }; 51724ba675SRob Herring 52724ba675SRob Herring pmx_mcu_clk: pmx-mcu-clk { 53724ba675SRob Herring marvell,pins = "mpp16"; 54724ba675SRob Herring marvell,function = "gpio"; 55724ba675SRob Herring }; 56724ba675SRob Herring 57724ba675SRob Herring pmx_mcu_act: pmx-mcu-act { 58724ba675SRob Herring marvell,pins = "mpp17"; 59724ba675SRob Herring marvell,function = "gpio"; 60724ba675SRob Herring }; 61724ba675SRob Herring 62724ba675SRob Herring pmx_led_sys_green: pmx-led-sys-green { 63724ba675SRob Herring marvell,pins = "mpp28"; 64724ba675SRob Herring marvell,function = "gpio"; 65724ba675SRob Herring }; 66724ba675SRob Herring 67724ba675SRob Herring pmx_led_sys_orange: pmx-led-sys-orange { 68724ba675SRob Herring marvell,pins = "mpp29"; 69724ba675SRob Herring marvell,function = "gpio"; 70724ba675SRob Herring }; 71724ba675SRob Herring 72724ba675SRob Herring pmx_led_hdd1_green: pmx-led-hdd1-green { 73724ba675SRob Herring marvell,pins = "mpp41"; 74724ba675SRob Herring marvell,function = "gpio"; 75724ba675SRob Herring }; 76724ba675SRob Herring 77724ba675SRob Herring pmx_led_hdd1_red: pmx-led-hdd1-red { 78724ba675SRob Herring marvell,pins = "mpp42"; 79724ba675SRob Herring marvell,function = "gpio"; 80724ba675SRob Herring }; 81724ba675SRob Herring 82724ba675SRob Herring pmx_htp: pmx-htp { 83724ba675SRob Herring marvell,pins = "mpp43"; 84724ba675SRob Herring marvell,function = "gpio"; 85724ba675SRob Herring }; 86724ba675SRob Herring 87724ba675SRob Herring /* 88724ba675SRob Herring * Buzzer needs to be switched at around 1kHz so is 89724ba675SRob Herring * not compatible with the gpio-beeper driver. 90724ba675SRob Herring */ 91724ba675SRob Herring pmx_buzzer: pmx-buzzer { 92724ba675SRob Herring marvell,pins = "mpp44"; 93724ba675SRob Herring marvell,function = "gpio"; 94724ba675SRob Herring }; 95724ba675SRob Herring 96724ba675SRob Herring pmx_vid_b1: pmx-vid-b1 { 97724ba675SRob Herring marvell,pins = "mpp45"; 98724ba675SRob Herring marvell,function = "gpio"; 99724ba675SRob Herring }; 100724ba675SRob Herring 101724ba675SRob Herring pmx_power_resume_data: pmx-power-resume-data { 102724ba675SRob Herring marvell,pins = "mpp47"; 103724ba675SRob Herring marvell,function = "gpio"; 104724ba675SRob Herring }; 105724ba675SRob Herring 106724ba675SRob Herring pmx_power_resume_clk: pmx-power-resume-clk { 107724ba675SRob Herring marvell,pins = "mpp49"; 108724ba675SRob Herring marvell,function = "gpio"; 109724ba675SRob Herring }; 110724ba675SRob Herring 111724ba675SRob Herring pmx_pwr_sata1: pmx-pwr-sata1 { 112724ba675SRob Herring marvell,pins = "mpp47"; 113724ba675SRob Herring marvell,function = "gpio"; 114724ba675SRob Herring }; 115724ba675SRob Herring }; 116724ba675SRob Herring 117724ba675SRob Herring /* This board uses the pcf8563 RTC instead of the SoC RTC */ 118724ba675SRob Herring rtc@10300 { 119724ba675SRob Herring status = "disabled"; 120724ba675SRob Herring }; 121724ba675SRob Herring 122724ba675SRob Herring i2c@11000 { 123724ba675SRob Herring status = "okay"; 124724ba675SRob Herring 125724ba675SRob Herring pcf8563: pcf8563@51 { 126724ba675SRob Herring compatible = "nxp,pcf8563"; 127724ba675SRob Herring reg = <0x51>; 128724ba675SRob Herring }; 129724ba675SRob Herring }; 130724ba675SRob Herring }; 131724ba675SRob Herring 132724ba675SRob Herring regulators { 133724ba675SRob Herring compatible = "simple-bus"; 134724ba675SRob Herring #address-cells = <1>; 135724ba675SRob Herring #size-cells = <0>; 136724ba675SRob Herring pinctrl-0 = <&pmx_pwr_sata1>; 137724ba675SRob Herring pinctrl-names = "default"; 138724ba675SRob Herring 139724ba675SRob Herring usb0_power: regulator@1 { 140724ba675SRob Herring enable-active-high; 141724ba675SRob Herring }; 142724ba675SRob Herring 143724ba675SRob Herring sata1_power: regulator@2 { 144724ba675SRob Herring compatible = "regulator-fixed"; 145724ba675SRob Herring reg = <2>; 146724ba675SRob Herring regulator-name = "SATA1 Power"; 147724ba675SRob Herring regulator-min-microvolt = <5000000>; 148724ba675SRob Herring regulator-max-microvolt = <5000000>; 149724ba675SRob Herring regulator-always-on; 150724ba675SRob Herring regulator-boot-on; 151724ba675SRob Herring enable-active-high; 152724ba675SRob Herring gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>; 153724ba675SRob Herring }; 154724ba675SRob Herring }; 155724ba675SRob Herring 156724ba675SRob Herring gpio-leds { 157724ba675SRob Herring compatible = "gpio-leds"; 158724ba675SRob Herring pinctrl-0 = <&pmx_led_hdd2_green &pmx_led_hdd2_red 159724ba675SRob Herring &pmx_led_usb_green 160724ba675SRob Herring &pmx_led_sys_green &pmx_led_sys_orange 161724ba675SRob Herring &pmx_led_copy_green &pmx_led_copy_red 162724ba675SRob Herring &pmx_led_hdd1_green &pmx_led_hdd1_red>; 163724ba675SRob Herring pinctrl-names = "default"; 164724ba675SRob Herring 165*9d0120b7SKrzysztof Kozlowski led-green-sys { 166724ba675SRob Herring label = "nsa325:green:sys"; 167724ba675SRob Herring gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; 168724ba675SRob Herring }; 169*9d0120b7SKrzysztof Kozlowski led-orange-sys { 170724ba675SRob Herring label = "nsa325:orange:sys"; 171724ba675SRob Herring gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>; 172724ba675SRob Herring }; 173*9d0120b7SKrzysztof Kozlowski led-green-hdd1 { 174724ba675SRob Herring label = "nsa325:green:hdd1"; 175724ba675SRob Herring gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; 176724ba675SRob Herring }; 177*9d0120b7SKrzysztof Kozlowski led-red-hdd1 { 178724ba675SRob Herring label = "nsa325:red:hdd1"; 179724ba675SRob Herring gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 180724ba675SRob Herring }; 181*9d0120b7SKrzysztof Kozlowski led-green-hdd2 { 182724ba675SRob Herring label = "nsa325:green:hdd2"; 183724ba675SRob Herring gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; 184724ba675SRob Herring }; 185*9d0120b7SKrzysztof Kozlowski led-red-hdd2 { 186724ba675SRob Herring label = "nsa325:red:hdd2"; 187724ba675SRob Herring gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; 188724ba675SRob Herring }; 189*9d0120b7SKrzysztof Kozlowski led-green-usb { 190724ba675SRob Herring label = "nsa325:green:usb"; 191724ba675SRob Herring gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>; 192724ba675SRob Herring }; 193*9d0120b7SKrzysztof Kozlowski led-green-copy { 194724ba675SRob Herring label = "nsa325:green:copy"; 195724ba675SRob Herring gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 196724ba675SRob Herring }; 197*9d0120b7SKrzysztof Kozlowski led-red-copy { 198724ba675SRob Herring label = "nsa325:red:copy"; 199724ba675SRob Herring gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; 200724ba675SRob Herring }; 201724ba675SRob Herring 202724ba675SRob Herring /* The following pins are currently not assigned to a driver, 203724ba675SRob Herring some of them should be configured as inputs. 204724ba675SRob Herring pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act 205724ba675SRob Herring &pmx_htp &pmx_vid_b1 206724ba675SRob Herring &pmx_power_resume_data &pmx_power_resume_clk>; */ 207724ba675SRob Herring }; 208724ba675SRob Herring 209724ba675SRob Herring 210724ba675SRob Herring}; 211724ba675SRob Herring 212724ba675SRob Herring&mdio { 213724ba675SRob Herring status = "okay"; 214724ba675SRob Herring ethphy0: ethernet-phy@1 { 215724ba675SRob Herring reg = <1>; 216724ba675SRob Herring }; 217724ba675SRob Herring}; 218724ba675SRob Herring 219724ba675SRob Herringð0 { 220724ba675SRob Herring status = "okay"; 221724ba675SRob Herring ethernet0-port@0 { 222724ba675SRob Herring phy-handle = <ðphy0>; 223724ba675SRob Herring }; 224724ba675SRob Herring}; 225724ba675SRob Herring 226724ba675SRob Herring&pciec { 227724ba675SRob Herring status = "okay"; 228724ba675SRob Herring}; 229724ba675SRob Herring 230724ba675SRob Herring&pcie0 { 231724ba675SRob Herring status = "okay"; 232724ba675SRob Herring}; 233