1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2724ba675SRob Herring/* 3724ba675SRob Herring * Device Tree common file for kirkwood-6282 based Buffalo Linkstation 4724ba675SRob Herring * 5724ba675SRob Herring * Copyright (C) 2015, 2016 6724ba675SRob Herring * Roger Shimizu <rogershimizu@gmail.com> 7724ba675SRob Herring */ 8724ba675SRob Herring 9724ba675SRob Herring#include "kirkwood.dtsi" 10724ba675SRob Herring#include "kirkwood-6282.dtsi" 11724ba675SRob Herring#include "kirkwood-linkstation.dtsi" 12724ba675SRob Herring 13724ba675SRob Herring/ { 14724ba675SRob Herring ocp@f1000000 { 15724ba675SRob Herring pinctrl: pin-controller@10000 { 16724ba675SRob Herring pmx_power_hdd0: pmx-power-hdd0 { 17724ba675SRob Herring marvell,pins = "mpp8"; 18724ba675SRob Herring marvell,function = "gpio"; 19724ba675SRob Herring }; 20724ba675SRob Herring pmx_usb_vbus: pmx-usb-vbus { 21724ba675SRob Herring marvell,pins = "mpp12"; 22724ba675SRob Herring marvell,function = "gpio"; 23724ba675SRob Herring }; 24724ba675SRob Herring pmx_fan_high: pmx-fan-high { 25724ba675SRob Herring marvell,pins = "mpp16"; 26724ba675SRob Herring marvell,function = "gpio"; 27724ba675SRob Herring }; 28724ba675SRob Herring pmx_fan_low: pmx-fan-low { 29724ba675SRob Herring marvell,pins = "mpp17"; 30724ba675SRob Herring marvell,function = "gpio"; 31724ba675SRob Herring }; 32724ba675SRob Herring pmx_led_alarm: pmx-led-alarm { 33724ba675SRob Herring marvell,pins = "mpp36"; 34724ba675SRob Herring marvell,function = "gpio"; 35724ba675SRob Herring }; 36724ba675SRob Herring pmx_led_function_red: pmx-led-function-red { 37724ba675SRob Herring marvell,pins = "mpp37"; 38724ba675SRob Herring marvell,function = "gpio"; 39724ba675SRob Herring }; 40724ba675SRob Herring pmx_led_info: pmx-led-info { 41724ba675SRob Herring marvell,pins = "mpp38"; 42724ba675SRob Herring marvell,function = "gpio"; 43724ba675SRob Herring }; 44724ba675SRob Herring pmx_led_function_blue: pmx-led-function-blue { 45724ba675SRob Herring marvell,pins = "mpp39"; 46724ba675SRob Herring marvell,function = "gpio"; 47724ba675SRob Herring }; 48724ba675SRob Herring pmx_led_power: pmx-led-power { 49724ba675SRob Herring marvell,pins = "mpp40"; 50724ba675SRob Herring marvell,function = "gpio"; 51724ba675SRob Herring }; 52724ba675SRob Herring pmx_fan_lock: pmx-fan-lock { 53724ba675SRob Herring marvell,pins = "mpp43"; 54724ba675SRob Herring marvell,function = "gpio"; 55724ba675SRob Herring }; 56724ba675SRob Herring pmx_button_function: pmx-button-function { 57724ba675SRob Herring marvell,pins = "mpp45"; 58724ba675SRob Herring marvell,function = "gpio"; 59724ba675SRob Herring }; 60724ba675SRob Herring pmx_power_switch: pmx-power-switch { 61724ba675SRob Herring marvell,pins = "mpp46"; 62724ba675SRob Herring marvell,function = "gpio"; 63724ba675SRob Herring }; 64724ba675SRob Herring pmx_power_auto_switch: pmx-power-auto-switch { 65724ba675SRob Herring marvell,pins = "mpp47"; 66724ba675SRob Herring marvell,function = "gpio"; 67724ba675SRob Herring }; 68724ba675SRob Herring }; 69724ba675SRob Herring }; 70724ba675SRob Herring 71724ba675SRob Herring gpio_keys { 72724ba675SRob Herring function-button { 73724ba675SRob Herring gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; 74724ba675SRob Herring }; 75724ba675SRob Herring 76724ba675SRob Herring power-on-switch { 77724ba675SRob Herring gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; 78724ba675SRob Herring }; 79724ba675SRob Herring 80724ba675SRob Herring power-auto-switch { 81724ba675SRob Herring gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 82724ba675SRob Herring }; 83724ba675SRob Herring }; 84724ba675SRob Herring 85724ba675SRob Herring gpio_leds { 86724ba675SRob Herring red-alarm-led { 87724ba675SRob Herring label = "linkstation:red:alarm"; 88724ba675SRob Herring gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; 89724ba675SRob Herring }; 90724ba675SRob Herring 91724ba675SRob Herring red-function-led { 92724ba675SRob Herring label = "linkstation:red:function"; 93724ba675SRob Herring gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; 94724ba675SRob Herring }; 95724ba675SRob Herring 96724ba675SRob Herring amber-info-led { 97724ba675SRob Herring label = "linkstation:amber:info"; 98724ba675SRob Herring gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; 99724ba675SRob Herring }; 100724ba675SRob Herring 101724ba675SRob Herring blue-function-led { 102724ba675SRob Herring label = "linkstation:blue:function"; 103724ba675SRob Herring gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 104724ba675SRob Herring }; 105724ba675SRob Herring 106724ba675SRob Herring blue-power-led { 107724ba675SRob Herring label = "linkstation:blue:power"; 108724ba675SRob Herring gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 109724ba675SRob Herring default-state = "keep"; 110724ba675SRob Herring }; 111724ba675SRob Herring }; 112724ba675SRob Herring 113724ba675SRob Herring gpio_fan { 114724ba675SRob Herring compatible = "gpio-fan"; 115724ba675SRob Herring pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>; 116724ba675SRob Herring pinctrl-names = "default"; 117724ba675SRob Herring 118724ba675SRob Herring gpios = <&gpio0 17 GPIO_ACTIVE_LOW 119724ba675SRob Herring &gpio0 16 GPIO_ACTIVE_LOW>; 120724ba675SRob Herring 121*62f34e3eSDavid Heidelberg gpio-fan,speed-map = 122*62f34e3eSDavid Heidelberg < 0 3>, 123*62f34e3eSDavid Heidelberg <1500 2>, 124*62f34e3eSDavid Heidelberg <3250 1>, 125*62f34e3eSDavid Heidelberg <5000 0>; 126724ba675SRob Herring 127724ba675SRob Herring alarm-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; 128724ba675SRob Herring }; 129724ba675SRob Herring 130724ba675SRob Herring regulators { 131724ba675SRob Herring usb_power: regulator@1 { 132724ba675SRob Herring gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>; 133724ba675SRob Herring }; 134724ba675SRob Herring 135724ba675SRob Herring hdd_power0: regulator@2 { 136724ba675SRob Herring gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>; 137724ba675SRob Herring }; 138724ba675SRob Herring }; 139724ba675SRob Herring}; 140724ba675SRob Herring 141724ba675SRob Herring&mdio { 142724ba675SRob Herring status = "okay"; 143724ba675SRob Herring 144724ba675SRob Herring ethphy0: ethernet-phy@0 { 145724ba675SRob Herring device_type = "ethernet-phy"; 146724ba675SRob Herring reg = <0>; 147724ba675SRob Herring }; 148724ba675SRob Herring}; 149724ba675SRob Herring 150724ba675SRob Herringð0 { 151724ba675SRob Herring status = "okay"; 152724ba675SRob Herring 153724ba675SRob Herring ethernet0-port@0 { 154724ba675SRob Herring phy-handle = <ðphy0>; 155724ba675SRob Herring }; 156724ba675SRob Herring}; 157