1*724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree common file for kirkwood-6282 based 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-6282.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 = "mpp8"; 18*724ba675SRob Herring marvell,function = "gpio"; 19*724ba675SRob Herring }; 20*724ba675SRob Herring pmx_usb_vbus: pmx-usb-vbus { 21*724ba675SRob Herring marvell,pins = "mpp12"; 22*724ba675SRob Herring marvell,function = "gpio"; 23*724ba675SRob Herring }; 24*724ba675SRob Herring pmx_fan_high: pmx-fan-high { 25*724ba675SRob Herring marvell,pins = "mpp16"; 26*724ba675SRob Herring marvell,function = "gpio"; 27*724ba675SRob Herring }; 28*724ba675SRob Herring pmx_fan_low: pmx-fan-low { 29*724ba675SRob Herring marvell,pins = "mpp17"; 30*724ba675SRob Herring marvell,function = "gpio"; 31*724ba675SRob Herring }; 32*724ba675SRob Herring pmx_led_alarm: pmx-led-alarm { 33*724ba675SRob Herring marvell,pins = "mpp36"; 34*724ba675SRob Herring marvell,function = "gpio"; 35*724ba675SRob Herring }; 36*724ba675SRob Herring pmx_led_function_red: pmx-led-function-red { 37*724ba675SRob Herring marvell,pins = "mpp37"; 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_function_blue: pmx-led-function-blue { 45*724ba675SRob Herring marvell,pins = "mpp39"; 46*724ba675SRob Herring marvell,function = "gpio"; 47*724ba675SRob Herring }; 48*724ba675SRob Herring pmx_led_power: pmx-led-power { 49*724ba675SRob Herring marvell,pins = "mpp40"; 50*724ba675SRob Herring marvell,function = "gpio"; 51*724ba675SRob Herring }; 52*724ba675SRob Herring pmx_fan_lock: pmx-fan-lock { 53*724ba675SRob Herring marvell,pins = "mpp43"; 54*724ba675SRob Herring marvell,function = "gpio"; 55*724ba675SRob Herring }; 56*724ba675SRob Herring pmx_button_function: pmx-button-function { 57*724ba675SRob Herring marvell,pins = "mpp45"; 58*724ba675SRob Herring marvell,function = "gpio"; 59*724ba675SRob Herring }; 60*724ba675SRob Herring pmx_power_switch: pmx-power-switch { 61*724ba675SRob Herring marvell,pins = "mpp46"; 62*724ba675SRob Herring marvell,function = "gpio"; 63*724ba675SRob Herring }; 64*724ba675SRob Herring pmx_power_auto_switch: pmx-power-auto-switch { 65*724ba675SRob Herring marvell,pins = "mpp47"; 66*724ba675SRob Herring marvell,function = "gpio"; 67*724ba675SRob Herring }; 68*724ba675SRob Herring }; 69*724ba675SRob Herring }; 70*724ba675SRob Herring 71*724ba675SRob Herring gpio_keys { 72*724ba675SRob Herring function-button { 73*724ba675SRob Herring gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; 74*724ba675SRob Herring }; 75*724ba675SRob Herring 76*724ba675SRob Herring power-on-switch { 77*724ba675SRob Herring gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; 78*724ba675SRob Herring }; 79*724ba675SRob Herring 80*724ba675SRob Herring power-auto-switch { 81*724ba675SRob Herring gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 82*724ba675SRob Herring }; 83*724ba675SRob Herring }; 84*724ba675SRob Herring 85*724ba675SRob Herring gpio_leds { 86*724ba675SRob Herring red-alarm-led { 87*724ba675SRob Herring label = "linkstation:red:alarm"; 88*724ba675SRob Herring gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; 89*724ba675SRob Herring }; 90*724ba675SRob Herring 91*724ba675SRob Herring red-function-led { 92*724ba675SRob Herring label = "linkstation:red:function"; 93*724ba675SRob Herring gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; 94*724ba675SRob Herring }; 95*724ba675SRob Herring 96*724ba675SRob Herring amber-info-led { 97*724ba675SRob Herring label = "linkstation:amber:info"; 98*724ba675SRob Herring gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; 99*724ba675SRob Herring }; 100*724ba675SRob Herring 101*724ba675SRob Herring blue-function-led { 102*724ba675SRob Herring label = "linkstation:blue:function"; 103*724ba675SRob Herring gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 104*724ba675SRob Herring }; 105*724ba675SRob Herring 106*724ba675SRob Herring blue-power-led { 107*724ba675SRob Herring label = "linkstation:blue:power"; 108*724ba675SRob Herring gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 109*724ba675SRob Herring default-state = "keep"; 110*724ba675SRob Herring }; 111*724ba675SRob Herring }; 112*724ba675SRob Herring 113*724ba675SRob Herring gpio_fan { 114*724ba675SRob Herring compatible = "gpio-fan"; 115*724ba675SRob Herring pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>; 116*724ba675SRob Herring pinctrl-names = "default"; 117*724ba675SRob Herring 118*724ba675SRob Herring gpios = <&gpio0 17 GPIO_ACTIVE_LOW 119*724ba675SRob Herring &gpio0 16 GPIO_ACTIVE_LOW>; 120*724ba675SRob Herring 121*724ba675SRob Herring gpio-fan,speed-map = <0 3 122*724ba675SRob Herring 1500 2 123*724ba675SRob Herring 3250 1 124*724ba675SRob Herring 5000 0>; 125*724ba675SRob Herring 126*724ba675SRob Herring alarm-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; 127*724ba675SRob Herring }; 128*724ba675SRob Herring 129*724ba675SRob Herring regulators { 130*724ba675SRob Herring usb_power: regulator@1 { 131*724ba675SRob Herring gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>; 132*724ba675SRob Herring }; 133*724ba675SRob Herring 134*724ba675SRob Herring hdd_power0: regulator@2 { 135*724ba675SRob Herring gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>; 136*724ba675SRob Herring }; 137*724ba675SRob Herring }; 138*724ba675SRob Herring}; 139*724ba675SRob Herring 140*724ba675SRob Herring&mdio { 141*724ba675SRob Herring status = "okay"; 142*724ba675SRob Herring 143*724ba675SRob Herring ethphy0: ethernet-phy@0 { 144*724ba675SRob Herring device_type = "ethernet-phy"; 145*724ba675SRob Herring reg = <0>; 146*724ba675SRob Herring }; 147*724ba675SRob Herring}; 148*724ba675SRob Herring 149*724ba675SRob Herringð0 { 150*724ba675SRob Herring status = "okay"; 151*724ba675SRob Herring 152*724ba675SRob Herring ethernet0-port@0 { 153*724ba675SRob Herring phy-handle = <ðphy0>; 154*724ba675SRob Herring }; 155*724ba675SRob Herring}; 156