1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree common file for kirkwood-6281 based 2-Bay Buffalo Linkstation 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2015, 2016 6*724ba675SRob Herring * Roger Shimizu <rogershimizu@gmail.com> 7*724ba675SRob Herring */ 8*724ba675SRob Herring 9*724ba675SRob Herring#include "kirkwood.dtsi" 10*724ba675SRob Herring#include "kirkwood-6281.dtsi" 11*724ba675SRob Herring#include "kirkwood-linkstation.dtsi" 12*724ba675SRob Herring 13*724ba675SRob Herring/ { 14*724ba675SRob Herring ocp@f1000000 { 15*724ba675SRob Herring pinctrl: pin-controller@10000 { 16*724ba675SRob Herring pmx_power_hdd0: pmx-power-hdd0 { 17*724ba675SRob Herring marvell,pins = "mpp28"; 18*724ba675SRob Herring marvell,function = "gpio"; 19*724ba675SRob Herring }; 20*724ba675SRob Herring pmx_power_hdd1: pmx-power-hdd1 { 21*724ba675SRob Herring marvell,pins = "mpp29"; 22*724ba675SRob Herring marvell,function = "gpio"; 23*724ba675SRob Herring }; 24*724ba675SRob Herring pmx_usb_vbus: pmx-usb-vbus { 25*724ba675SRob Herring marvell,pins = "mpp37"; 26*724ba675SRob Herring marvell,function = "gpio"; 27*724ba675SRob Herring }; 28*724ba675SRob Herring pmx_led_alarm: pmx-led-alarm { 29*724ba675SRob Herring marvell,pins = "mpp49"; 30*724ba675SRob Herring marvell,function = "gpio"; 31*724ba675SRob Herring }; 32*724ba675SRob Herring pmx_led_function_red: pmx-led-function-red { 33*724ba675SRob Herring marvell,pins = "mpp34"; 34*724ba675SRob Herring marvell,function = "gpio"; 35*724ba675SRob Herring }; 36*724ba675SRob Herring pmx_led_function_blue: pmx-led-function-blue { 37*724ba675SRob Herring marvell,pins = "mpp36"; 38*724ba675SRob Herring marvell,function = "gpio"; 39*724ba675SRob Herring }; 40*724ba675SRob Herring pmx_led_info: pmx-led-info { 41*724ba675SRob Herring marvell,pins = "mpp38"; 42*724ba675SRob Herring marvell,function = "gpio"; 43*724ba675SRob Herring }; 44*724ba675SRob Herring pmx_led_power: pmx-led-power { 45*724ba675SRob Herring marvell,pins = "mpp39"; 46*724ba675SRob Herring marvell,function = "gpio"; 47*724ba675SRob Herring }; 48*724ba675SRob Herring pmx_button_function: pmx-button-function { 49*724ba675SRob Herring marvell,pins = "mpp41"; 50*724ba675SRob Herring marvell,function = "gpio"; 51*724ba675SRob Herring }; 52*724ba675SRob Herring pmx_power_switch: pmx-power-switch { 53*724ba675SRob Herring marvell,pins = "mpp42"; 54*724ba675SRob Herring marvell,function = "gpio"; 55*724ba675SRob Herring }; 56*724ba675SRob Herring pmx_power_auto_switch: pmx-power-auto-switch { 57*724ba675SRob Herring marvell,pins = "mpp43"; 58*724ba675SRob Herring marvell,function = "gpio"; 59*724ba675SRob Herring }; 60*724ba675SRob Herring }; 61*724ba675SRob Herring 62*724ba675SRob Herring sata@80000 { 63*724ba675SRob Herring nr-ports = <2>; 64*724ba675SRob Herring }; 65*724ba675SRob Herring }; 66*724ba675SRob Herring 67*724ba675SRob Herring gpio_keys { 68*724ba675SRob Herring function-button { 69*724ba675SRob Herring gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; 70*724ba675SRob Herring }; 71*724ba675SRob Herring 72*724ba675SRob Herring power-on-switch { 73*724ba675SRob Herring gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 74*724ba675SRob Herring }; 75*724ba675SRob Herring 76*724ba675SRob Herring power-auto-switch { 77*724ba675SRob Herring gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 78*724ba675SRob Herring }; 79*724ba675SRob Herring }; 80*724ba675SRob Herring 81*724ba675SRob Herring gpio_leds { 82*724ba675SRob Herring red-alarm-led { 83*724ba675SRob Herring label = "linkstation:red:alarm"; 84*724ba675SRob Herring gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; 85*724ba675SRob Herring }; 86*724ba675SRob Herring 87*724ba675SRob Herring red-function-led { 88*724ba675SRob Herring label = "linkstation:red:function"; 89*724ba675SRob Herring gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; 90*724ba675SRob Herring }; 91*724ba675SRob Herring 92*724ba675SRob Herring amber-info-led { 93*724ba675SRob Herring label = "linkstation:amber:info"; 94*724ba675SRob Herring gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; 95*724ba675SRob Herring }; 96*724ba675SRob Herring 97*724ba675SRob Herring blue-function-led { 98*724ba675SRob Herring label = "linkstation:blue:function"; 99*724ba675SRob Herring gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; 100*724ba675SRob Herring }; 101*724ba675SRob Herring 102*724ba675SRob Herring blue-power-led { 103*724ba675SRob Herring label = "linkstation:blue:power"; 104*724ba675SRob Herring gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 105*724ba675SRob Herring default-state = "keep"; 106*724ba675SRob Herring }; 107*724ba675SRob Herring }; 108*724ba675SRob Herring 109*724ba675SRob Herring regulators { 110*724ba675SRob Herring pinctrl-0 = <&pmx_power_hdd0 &pmx_power_hdd1 &pmx_usb_vbus>; 111*724ba675SRob Herring 112*724ba675SRob Herring usb_power: regulator@1 { 113*724ba675SRob Herring gpio = <&gpio1 5 GPIO_ACTIVE_HIGH>; 114*724ba675SRob Herring }; 115*724ba675SRob Herring 116*724ba675SRob Herring hdd_power0: regulator@2 { 117*724ba675SRob Herring gpio = <&gpio0 28 GPIO_ACTIVE_HIGH>; 118*724ba675SRob Herring }; 119*724ba675SRob Herring 120*724ba675SRob Herring hdd_power1: regulator@3 { 121*724ba675SRob Herring compatible = "regulator-fixed"; 122*724ba675SRob Herring reg = <3>; 123*724ba675SRob Herring regulator-name = "HDD1 Power"; 124*724ba675SRob Herring regulator-min-microvolt = <5000000>; 125*724ba675SRob Herring regulator-max-microvolt = <5000000>; 126*724ba675SRob Herring enable-active-high; 127*724ba675SRob Herring regulator-always-on; 128*724ba675SRob Herring regulator-boot-on; 129*724ba675SRob Herring gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>; 130*724ba675SRob Herring }; 131*724ba675SRob Herring }; 132*724ba675SRob Herring}; 133*724ba675SRob Herring 134*724ba675SRob Herring&mdio { 135*724ba675SRob Herring status = "okay"; 136*724ba675SRob Herring 137*724ba675SRob Herring ethphy1: ethernet-phy@8 { 138*724ba675SRob Herring device_type = "ethernet-phy"; 139*724ba675SRob Herring reg = <8>; 140*724ba675SRob Herring }; 141*724ba675SRob Herring}; 142*724ba675SRob Herring 143*724ba675SRob Herringð1 { 144*724ba675SRob Herring status = "okay"; 145*724ba675SRob Herring 146*724ba675SRob Herring ethernet1-port@0 { 147*724ba675SRob Herring phy-handle = <ðphy1>; 148*724ba675SRob Herring }; 149*724ba675SRob Herring}; 150