Ezequiel Garcia | 0ab6129 | 2013-07-26 10:18:02 -0300 | [diff] [blame] | 1 | #include "kirkwood.dtsi" |
| 2 | #include "kirkwood-6281.dtsi" |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 3 | |
| 4 | / { |
| 5 | chosen { |
| 6 | bootargs = "console=ttyS0,115200n8 earlyprintk"; |
| 7 | }; |
| 8 | |
| 9 | ocp@f1000000 { |
Andrew Lunn | 8d72b4a | 2012-11-17 17:00:53 +0100 | [diff] [blame] | 10 | pinctrl: pinctrl@10000 { |
Andrew Lunn | 8d72b4a | 2012-11-17 17:00:53 +0100 | [diff] [blame] | 11 | pmx_power_hdd: pmx-power-hdd { |
| 12 | marvell,pins = "mpp10"; |
| 13 | marvell,function = "gpo"; |
| 14 | }; |
| 15 | pmx_usb_vbus: pmx-usb-vbus { |
| 16 | marvell,pins = "mpp11"; |
| 17 | marvell,function = "gpio"; |
| 18 | }; |
| 19 | pmx_fan_high: pmx-fan-high { |
| 20 | marvell,pins = "mpp18"; |
| 21 | marvell,function = "gpo"; |
| 22 | }; |
| 23 | pmx_fan_low: pmx-fan-low { |
| 24 | marvell,pins = "mpp19"; |
| 25 | marvell,function = "gpo"; |
| 26 | }; |
| 27 | pmx_led_function_blue: pmx-led-function-blue { |
| 28 | marvell,pins = "mpp36"; |
| 29 | marvell,function = "gpio"; |
| 30 | }; |
| 31 | pmx_led_alarm: pmx-led-alarm { |
| 32 | marvell,pins = "mpp37"; |
| 33 | marvell,function = "gpio"; |
| 34 | }; |
| 35 | pmx_led_info: pmx-led-info { |
| 36 | marvell,pins = "mpp38"; |
| 37 | marvell,function = "gpio"; |
| 38 | }; |
| 39 | pmx_led_power: pmx-led-power { |
| 40 | marvell,pins = "mpp39"; |
| 41 | marvell,function = "gpio"; |
| 42 | }; |
| 43 | pmx_fan_lock: pmx-fan-lock { |
| 44 | marvell,pins = "mpp40"; |
| 45 | marvell,function = "gpio"; |
| 46 | }; |
| 47 | pmx_button_function: pmx-button-function { |
| 48 | marvell,pins = "mpp41"; |
| 49 | marvell,function = "gpio"; |
| 50 | }; |
| 51 | pmx_power_switch: pmx-power-switch { |
| 52 | marvell,pins = "mpp42"; |
| 53 | marvell,function = "gpio"; |
| 54 | }; |
| 55 | pmx_power_auto_switch: pmx-power-auto-switch { |
| 56 | marvell,pins = "mpp43"; |
| 57 | marvell,function = "gpio"; |
| 58 | }; |
| 59 | pmx_led_function_red: pmx-led-function_red { |
| 60 | marvell,pins = "mpp48"; |
| 61 | marvell,function = "gpio"; |
| 62 | }; |
| 63 | |
| 64 | }; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 65 | sata@80000 { |
| 66 | status = "okay"; |
| 67 | nr-ports = <1>; |
| 68 | }; |
| 69 | |
| 70 | spi@10600 { |
| 71 | status = "okay"; |
| 72 | |
| 73 | m25p40@0 { |
| 74 | #address-cells = <1>; |
| 75 | #size-cells = <1>; |
| 76 | compatible = "m25p40"; |
| 77 | reg = <0>; |
| 78 | spi-max-frequency = <25000000>; |
| 79 | mode = <0>; |
| 80 | |
| 81 | partition@0 { |
| 82 | reg = <0x0 0x60000>; |
| 83 | label = "uboot"; |
| 84 | read-only; |
| 85 | }; |
| 86 | |
| 87 | partition@60000 { |
| 88 | reg = <0x60000 0x10000>; |
| 89 | label = "dtb"; |
| 90 | read-only; |
| 91 | }; |
| 92 | |
| 93 | partition@70000 { |
| 94 | reg = <0x70000 0x10000>; |
| 95 | label = "uboot_env"; |
| 96 | }; |
| 97 | }; |
| 98 | }; |
| 99 | }; |
| 100 | |
| 101 | gpio_keys { |
| 102 | compatible = "gpio-keys"; |
| 103 | #address-cells = <1>; |
| 104 | #size-cells = <0>; |
Thomas Petazzoni | e5e68b7 | 2013-05-24 11:44:50 +0200 | [diff] [blame] | 105 | pinctrl-0 = <&pmx_button_function &pmx_power_switch |
| 106 | &pmx_power_auto_switch>; |
| 107 | pinctrl-names = "default"; |
| 108 | |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 109 | button@1 { |
| 110 | label = "Function Button"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 111 | linux,code = <KEY_OPTION>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 112 | gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 113 | }; |
| 114 | button@2 { |
| 115 | label = "Power-on Switch"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 116 | linux,code = <KEY_RESERVED>; |
Michael Walle | 1243163 | 2012-09-27 23:54:37 +0200 | [diff] [blame] | 117 | linux,input-type = <5>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 118 | gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 119 | }; |
| 120 | button@3 { |
| 121 | label = "Power-auto Switch"; |
Andrew Lunn | 2330119 | 2013-12-04 16:51:38 +0100 | [diff] [blame] | 122 | linux,code = <KEY_ESC>; |
Michael Walle | 1243163 | 2012-09-27 23:54:37 +0200 | [diff] [blame] | 123 | linux,input-type = <5>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 124 | gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 125 | }; |
| 126 | }; |
| 127 | |
| 128 | gpio_leds { |
| 129 | compatible = "gpio-leds"; |
Thomas Petazzoni | e5e68b7 | 2013-05-24 11:44:50 +0200 | [diff] [blame] | 130 | pinctrl-0 = <&pmx_led_function_red &pmx_led_alarm |
| 131 | &pmx_led_info &pmx_led_power |
| 132 | &pmx_led_function_blue>; |
| 133 | pinctrl-names = "default"; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 134 | |
| 135 | led@1 { |
Michael Walle | a54841e | 2012-09-24 22:49:02 +0200 | [diff] [blame] | 136 | label = "lsxl:blue:func"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 137 | gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 138 | }; |
| 139 | |
| 140 | led@2 { |
Michael Walle | a54841e | 2012-09-24 22:49:02 +0200 | [diff] [blame] | 141 | label = "lsxl:red:alarm"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 142 | gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 143 | }; |
| 144 | |
| 145 | led@3 { |
Michael Walle | a54841e | 2012-09-24 22:49:02 +0200 | [diff] [blame] | 146 | label = "lsxl:amber:info"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 147 | gpios = <&gpio1 6 GPIO_ACTIVE_LOW>; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 148 | }; |
| 149 | |
| 150 | led@4 { |
Michael Walle | a54841e | 2012-09-24 22:49:02 +0200 | [diff] [blame] | 151 | label = "lsxl:blue:power"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 152 | gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; |
Jason Cooper | dcdf14c | 2013-10-14 17:37:55 +0000 | [diff] [blame] | 153 | default-state = "keep"; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 154 | }; |
| 155 | |
| 156 | led@5 { |
Michael Walle | a54841e | 2012-09-24 22:49:02 +0200 | [diff] [blame] | 157 | label = "lsxl:red:func"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 158 | gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 159 | }; |
| 160 | }; |
Michael Walle | b046f56 | 2012-10-21 01:34:54 +0200 | [diff] [blame] | 161 | |
| 162 | gpio_fan { |
| 163 | compatible = "gpio-fan"; |
Thomas Petazzoni | e5e68b7 | 2013-05-24 11:44:50 +0200 | [diff] [blame] | 164 | pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>; |
| 165 | pinctrl-names = "default"; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 166 | gpios = <&gpio0 19 GPIO_ACTIVE_LOW |
| 167 | &gpio0 18 GPIO_ACTIVE_LOW>; |
Michael Walle | b046f56 | 2012-10-21 01:34:54 +0200 | [diff] [blame] | 168 | gpio-fan,speed-map = <0 3 |
| 169 | 1500 2 |
| 170 | 3250 1 |
| 171 | 5000 0>; |
Andrew Lunn | 3a31f2d7 | 2013-12-04 16:51:39 +0100 | [diff] [blame] | 172 | alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; |
Michael Walle | b046f56 | 2012-10-21 01:34:54 +0200 | [diff] [blame] | 173 | }; |
Andrew Lunn | 423b895 | 2012-11-17 15:46:14 +0100 | [diff] [blame] | 174 | |
Andrew Lunn | 391a16c | 2012-12-28 13:25:12 +0100 | [diff] [blame] | 175 | restart_poweroff { |
| 176 | compatible = "restart-poweroff"; |
| 177 | }; |
| 178 | |
Andrew Lunn | 423b895 | 2012-11-17 15:46:14 +0100 | [diff] [blame] | 179 | regulators { |
| 180 | compatible = "simple-bus"; |
| 181 | #address-cells = <1>; |
| 182 | #size-cells = <0>; |
Thomas Petazzoni | e5e68b7 | 2013-05-24 11:44:50 +0200 | [diff] [blame] | 183 | pinctrl-0 = <&pmx_power_hdd &pmx_usb_vbus>; |
| 184 | pinctrl-names = "default"; |
Andrew Lunn | 423b895 | 2012-11-17 15:46:14 +0100 | [diff] [blame] | 185 | |
| 186 | usb_power: regulator@1 { |
| 187 | compatible = "regulator-fixed"; |
| 188 | reg = <1>; |
| 189 | regulator-name = "USB Power"; |
| 190 | regulator-min-microvolt = <5000000>; |
| 191 | regulator-max-microvolt = <5000000>; |
| 192 | enable-active-high; |
| 193 | regulator-always-on; |
| 194 | regulator-boot-on; |
| 195 | gpio = <&gpio0 11 0>; |
| 196 | }; |
| 197 | hdd_power: regulator@2 { |
| 198 | compatible = "regulator-fixed"; |
| 199 | reg = <2>; |
| 200 | regulator-name = "HDD Power"; |
| 201 | regulator-min-microvolt = <5000000>; |
| 202 | regulator-max-microvolt = <5000000>; |
| 203 | enable-active-high; |
| 204 | regulator-always-on; |
| 205 | regulator-boot-on; |
| 206 | gpio = <&gpio0 10 0>; |
| 207 | }; |
| 208 | }; |
Michael Walle | 4aff38a | 2012-07-17 07:25:55 +0200 | [diff] [blame] | 209 | }; |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 210 | |
| 211 | &mdio { |
| 212 | status = "okay"; |
| 213 | |
| 214 | ethphy0: ethernet-phy@0 { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 215 | reg = <0>; |
| 216 | }; |
| 217 | |
| 218 | ethphy1: ethernet-phy@8 { |
Sebastian Hesselbarth | 876e233 | 2013-07-07 22:34:56 +0200 | [diff] [blame] | 219 | reg = <8>; |
| 220 | }; |
| 221 | }; |
| 222 | |
| 223 | ð0 { |
| 224 | status = "okay"; |
| 225 | ethernet0-port@0 { |
| 226 | phy-handle = <ðphy0>; |
| 227 | }; |
| 228 | }; |
| 229 | |
| 230 | ð1 { |
| 231 | status = "okay"; |
| 232 | ethernet1-port@0 { |
| 233 | phy-handle = <ðphy1>; |
| 234 | }; |
| 235 | }; |