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