1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Device Tree common file for kirkwood-6282 b 3 * Device Tree common file for kirkwood-6282 based Buffalo Linkstation 4 * 4 * 5 * Copyright (C) 2015, 2016 5 * Copyright (C) 2015, 2016 6 * Roger Shimizu <rogershimizu@gmail.com> 6 * Roger Shimizu <rogershimizu@gmail.com> 7 */ 7 */ 8 8 9 #include "kirkwood.dtsi" 9 #include "kirkwood.dtsi" 10 #include "kirkwood-6282.dtsi" 10 #include "kirkwood-6282.dtsi" 11 #include "kirkwood-linkstation.dtsi" 11 #include "kirkwood-linkstation.dtsi" 12 12 13 / { 13 / { 14 ocp@f1000000 { 14 ocp@f1000000 { 15 pinctrl: pin-controller@10000 15 pinctrl: pin-controller@10000 { 16 pmx_power_hdd0: pmx-po 16 pmx_power_hdd0: pmx-power-hdd0 { 17 marvell,pins = 17 marvell,pins = "mpp8"; 18 marvell,functi 18 marvell,function = "gpio"; 19 }; 19 }; 20 pmx_usb_vbus: pmx-usb- 20 pmx_usb_vbus: pmx-usb-vbus { 21 marvell,pins = 21 marvell,pins = "mpp12"; 22 marvell,functi 22 marvell,function = "gpio"; 23 }; 23 }; 24 pmx_fan_high: pmx-fan- 24 pmx_fan_high: pmx-fan-high { 25 marvell,pins = 25 marvell,pins = "mpp16"; 26 marvell,functi 26 marvell,function = "gpio"; 27 }; 27 }; 28 pmx_fan_low: pmx-fan-l 28 pmx_fan_low: pmx-fan-low { 29 marvell,pins = 29 marvell,pins = "mpp17"; 30 marvell,functi 30 marvell,function = "gpio"; 31 }; 31 }; 32 pmx_led_alarm: pmx-led 32 pmx_led_alarm: pmx-led-alarm { 33 marvell,pins = 33 marvell,pins = "mpp36"; 34 marvell,functi 34 marvell,function = "gpio"; 35 }; 35 }; 36 pmx_led_function_red: 36 pmx_led_function_red: pmx-led-function-red { 37 marvell,pins = 37 marvell,pins = "mpp37"; 38 marvell,functi 38 marvell,function = "gpio"; 39 }; 39 }; 40 pmx_led_info: pmx-led- 40 pmx_led_info: pmx-led-info { 41 marvell,pins = 41 marvell,pins = "mpp38"; 42 marvell,functi 42 marvell,function = "gpio"; 43 }; 43 }; 44 pmx_led_function_blue: 44 pmx_led_function_blue: pmx-led-function-blue { 45 marvell,pins = 45 marvell,pins = "mpp39"; 46 marvell,functi 46 marvell,function = "gpio"; 47 }; 47 }; 48 pmx_led_power: pmx-led 48 pmx_led_power: pmx-led-power { 49 marvell,pins = 49 marvell,pins = "mpp40"; 50 marvell,functi 50 marvell,function = "gpio"; 51 }; 51 }; 52 pmx_fan_lock: pmx-fan- 52 pmx_fan_lock: pmx-fan-lock { 53 marvell,pins = 53 marvell,pins = "mpp43"; 54 marvell,functi 54 marvell,function = "gpio"; 55 }; 55 }; 56 pmx_button_function: p 56 pmx_button_function: pmx-button-function { 57 marvell,pins = 57 marvell,pins = "mpp45"; 58 marvell,functi 58 marvell,function = "gpio"; 59 }; 59 }; 60 pmx_power_switch: pmx- 60 pmx_power_switch: pmx-power-switch { 61 marvell,pins = 61 marvell,pins = "mpp46"; 62 marvell,functi 62 marvell,function = "gpio"; 63 }; 63 }; 64 pmx_power_auto_switch: 64 pmx_power_auto_switch: pmx-power-auto-switch { 65 marvell,pins = 65 marvell,pins = "mpp47"; 66 marvell,functi 66 marvell,function = "gpio"; 67 }; 67 }; 68 }; 68 }; 69 }; 69 }; 70 70 71 gpio_keys { 71 gpio_keys { 72 function-button { 72 function-button { 73 gpios = <&gpio1 13 GPI 73 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; 74 }; 74 }; 75 75 76 power-on-switch { 76 power-on-switch { 77 gpios = <&gpio1 14 GPI 77 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; 78 }; 78 }; 79 79 80 power-auto-switch { 80 power-auto-switch { 81 gpios = <&gpio1 15 GPI 81 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; 82 }; 82 }; 83 }; 83 }; 84 84 85 gpio_leds { 85 gpio_leds { 86 red-alarm-led { 86 red-alarm-led { 87 label = "linkstation:r 87 label = "linkstation:red:alarm"; 88 gpios = <&gpio1 4 GPIO 88 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; 89 }; 89 }; 90 90 91 red-function-led { 91 red-function-led { 92 label = "linkstation:r 92 label = "linkstation:red:function"; 93 gpios = <&gpio1 5 GPIO 93 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; 94 }; 94 }; 95 95 96 amber-info-led { 96 amber-info-led { 97 label = "linkstation:a 97 label = "linkstation:amber:info"; 98 gpios = <&gpio1 6 GPIO 98 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; 99 }; 99 }; 100 100 101 blue-function-led { 101 blue-function-led { 102 label = "linkstation:b 102 label = "linkstation:blue:function"; 103 gpios = <&gpio1 7 GPIO 103 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; 104 }; 104 }; 105 105 106 blue-power-led { 106 blue-power-led { 107 label = "linkstation:b 107 label = "linkstation:blue:power"; 108 gpios = <&gpio1 8 GPIO 108 gpios = <&gpio1 8 GPIO_ACTIVE_LOW>; 109 default-state = "keep" 109 default-state = "keep"; 110 }; 110 }; 111 }; 111 }; 112 112 113 gpio_fan { 113 gpio_fan { 114 compatible = "gpio-fan"; 114 compatible = "gpio-fan"; 115 pinctrl-0 = <&pmx_fan_low &pmx 115 pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>; 116 pinctrl-names = "default"; 116 pinctrl-names = "default"; 117 117 118 gpios = <&gpio0 17 GPIO_ACTIVE 118 gpios = <&gpio0 17 GPIO_ACTIVE_LOW 119 &gpio0 16 GPIO_ACTIVE 119 &gpio0 16 GPIO_ACTIVE_LOW>; 120 120 121 gpio-fan,speed-map = 121 gpio-fan,speed-map = 122 < 0 3>, 122 < 0 3>, 123 <1500 2>, 123 <1500 2>, 124 <3250 1>, 124 <3250 1>, 125 <5000 0>; 125 <5000 0>; 126 126 127 alarm-gpios = <&gpio1 11 GPIO_ 127 alarm-gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>; 128 }; 128 }; 129 129 130 regulators { 130 regulators { 131 usb_power: regulator@1 { 131 usb_power: regulator@1 { 132 gpio = <&gpio0 12 GPIO 132 gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>; 133 }; 133 }; 134 134 135 hdd_power0: regulator@2 { 135 hdd_power0: regulator@2 { 136 gpio = <&gpio0 8 GPIO_ 136 gpio = <&gpio0 8 GPIO_ACTIVE_HIGH>; 137 }; 137 }; 138 }; 138 }; 139 }; 139 }; 140 140 141 &mdio { 141 &mdio { 142 status = "okay"; 142 status = "okay"; 143 143 144 ethphy0: ethernet-phy@0 { 144 ethphy0: ethernet-phy@0 { 145 device_type = "ethernet-phy"; 145 device_type = "ethernet-phy"; 146 reg = <0>; 146 reg = <0>; 147 }; 147 }; 148 }; 148 }; 149 149 150 ð0 { 150 ð0 { 151 status = "okay"; 151 status = "okay"; 152 152 153 ethernet0-port@0 { 153 ethernet0-port@0 { 154 phy-handle = <ðphy0>; 154 phy-handle = <ðphy0>; 155 }; 155 }; 156 }; 156 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.