Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree file for OpenBlocks AX3-4 board |
| 3 | * |
| 4 | * Copyright (C) 2012 Marvell |
| 5 | * |
| 6 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 7 | * |
| 8 | * This file is licensed under the terms of the GNU General Public |
| 9 | * License version 2. This program is licensed "as is" without any |
| 10 | * warranty of any kind, whether express or implied. |
| 11 | */ |
| 12 | |
| 13 | /dts-v1/; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 14 | #include <dt-bindings/gpio/gpio.h> |
Thomas Petazzoni | 5c0169d | 2014-02-11 18:07:13 +0100 | [diff] [blame] | 15 | #include <dt-bindings/input/input.h> |
Ezequiel Garcia | 3814988 | 2013-07-26 10:17:56 -0300 | [diff] [blame] | 16 | #include "armada-xp-mv78260.dtsi" |
Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "PlatHome OpenBlocks AX3-4 board"; |
| 20 | compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp"; |
| 21 | |
| 22 | chosen { |
| 23 | bootargs = "console=ttyS0,115200 earlyprintk"; |
| 24 | }; |
| 25 | |
| 26 | memory { |
| 27 | device_type = "memory"; |
Jason Cooper | e47043a | 2014-06-04 13:41:20 +0000 | [diff] [blame] | 28 | reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */ |
Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 29 | }; |
| 30 | |
| 31 | soc { |
Ezequiel Garcia | 0cd3754 | 2013-07-26 10:17:58 -0300 | [diff] [blame] | 32 | ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000 |
Ezequiel Garcia | de1af8d | 2013-07-26 10:17:59 -0300 | [diff] [blame] | 33 | MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000 |
| 34 | MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x8000000>; |
| 35 | |
| 36 | devbus-bootcs { |
| 37 | status = "okay"; |
| 38 | |
| 39 | /* Device Bus parameters are required */ |
| 40 | |
| 41 | /* Read parameters */ |
Thomas Petazzoni | 6e20bae | 2014-04-14 17:29:21 +0200 | [diff] [blame] | 42 | devbus,bus-width = <16>; |
Ezequiel Garcia | de1af8d | 2013-07-26 10:17:59 -0300 | [diff] [blame] | 43 | devbus,turn-off-ps = <60000>; |
| 44 | devbus,badr-skew-ps = <0>; |
| 45 | devbus,acc-first-ps = <124000>; |
| 46 | devbus,acc-next-ps = <248000>; |
| 47 | devbus,rd-setup-ps = <0>; |
| 48 | devbus,rd-hold-ps = <0>; |
| 49 | |
| 50 | /* Write parameters */ |
| 51 | devbus,sync-enable = <0>; |
| 52 | devbus,wr-high-ps = <60000>; |
| 53 | devbus,wr-low-ps = <60000>; |
| 54 | devbus,ale-wr-ps = <60000>; |
| 55 | |
| 56 | /* NOR 128 MiB */ |
| 57 | nor@0 { |
| 58 | compatible = "cfi-flash"; |
| 59 | reg = <0 0x8000000>; |
| 60 | bank-width = <2>; |
| 61 | }; |
| 62 | }; |
Ezequiel Garcia | 00ed4a0 | 2013-05-13 12:22:53 -0300 | [diff] [blame] | 63 | |
Ezequiel Garcia | 14fd8ed | 2013-07-26 10:18:00 -0300 | [diff] [blame] | 64 | pcie-controller { |
| 65 | status = "okay"; |
| 66 | /* Internal mini-PCIe connector */ |
| 67 | pcie@1,0 { |
| 68 | /* Port 0, Lane 0 */ |
| 69 | status = "okay"; |
| 70 | }; |
| 71 | }; |
| 72 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 73 | internal-regs { |
| 74 | serial@12000 { |
Thomas Petazzoni | 95999cf | 2013-04-09 23:06:35 +0200 | [diff] [blame] | 75 | status = "okay"; |
| 76 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 77 | serial@12100 { |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 78 | status = "okay"; |
| 79 | }; |
Sebastian Hesselbarth | 01c4342 | 2014-09-19 21:20:09 +0200 | [diff] [blame^] | 80 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 81 | leds { |
| 82 | compatible = "gpio-leds"; |
| 83 | pinctrl-names = "default"; |
| 84 | pinctrl-0 = <&led_pins>; |
| 85 | |
| 86 | red_led { |
| 87 | label = "red_led"; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 88 | gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 89 | default-state = "off"; |
| 90 | }; |
| 91 | |
| 92 | yellow_led { |
| 93 | label = "yellow_led"; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 94 | gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 95 | default-state = "off"; |
| 96 | }; |
| 97 | |
| 98 | green_led { |
| 99 | label = "green_led"; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 100 | gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; |
Jason Cooper | dcdf14c | 2013-10-14 17:37:55 +0000 | [diff] [blame] | 101 | default-state = "keep"; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 102 | }; |
| 103 | }; |
| 104 | |
| 105 | gpio_keys { |
| 106 | compatible = "gpio-keys"; |
| 107 | #address-cells = <1>; |
| 108 | #size-cells = <0>; |
| 109 | |
| 110 | button@1 { |
| 111 | label = "Init Button"; |
Thomas Petazzoni | 5c0169d | 2014-02-11 18:07:13 +0100 | [diff] [blame] | 112 | linux,code = <KEY_POWER>; |
Thomas Petazzoni | 29e74f8 | 2014-02-11 18:07:12 +0100 | [diff] [blame] | 113 | gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 114 | }; |
| 115 | }; |
| 116 | |
| 117 | mdio { |
| 118 | phy0: ethernet-phy@0 { |
| 119 | reg = <0>; |
| 120 | }; |
| 121 | |
| 122 | phy1: ethernet-phy@1 { |
| 123 | reg = <1>; |
| 124 | }; |
| 125 | |
| 126 | phy2: ethernet-phy@2 { |
| 127 | reg = <2>; |
| 128 | }; |
| 129 | |
| 130 | phy3: ethernet-phy@3 { |
| 131 | reg = <3>; |
| 132 | }; |
| 133 | }; |
| 134 | |
| 135 | ethernet@70000 { |
| 136 | status = "okay"; |
| 137 | phy = <&phy0>; |
| 138 | phy-mode = "sgmii"; |
| 139 | }; |
| 140 | ethernet@74000 { |
| 141 | status = "okay"; |
| 142 | phy = <&phy1>; |
| 143 | phy-mode = "sgmii"; |
| 144 | }; |
| 145 | ethernet@30000 { |
| 146 | status = "okay"; |
| 147 | phy = <&phy2>; |
| 148 | phy-mode = "sgmii"; |
| 149 | }; |
| 150 | ethernet@34000 { |
| 151 | status = "okay"; |
| 152 | phy = <&phy3>; |
| 153 | phy-mode = "sgmii"; |
| 154 | }; |
| 155 | i2c@11000 { |
| 156 | status = "okay"; |
| 157 | clock-frequency = <400000>; |
| 158 | }; |
| 159 | i2c@11100 { |
| 160 | status = "okay"; |
| 161 | clock-frequency = <400000>; |
| 162 | |
| 163 | s35390a: s35390a@30 { |
| 164 | compatible = "s35390a"; |
| 165 | reg = <0x30>; |
| 166 | }; |
| 167 | }; |
| 168 | sata@a0000 { |
| 169 | nr-ports = <2>; |
| 170 | status = "okay"; |
| 171 | }; |
Thomas Petazzoni | 8034891 | 2013-05-16 18:07:24 +0200 | [diff] [blame] | 172 | |
| 173 | /* Front side USB 0 */ |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 174 | usb@50000 { |
| 175 | status = "okay"; |
| 176 | }; |
Thomas Petazzoni | 8034891 | 2013-05-16 18:07:24 +0200 | [diff] [blame] | 177 | |
| 178 | /* Front side USB 1 */ |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 179 | usb@51000 { |
| 180 | status = "okay"; |
| 181 | }; |
Thomas Petazzoni | 95999cf | 2013-04-09 23:06:35 +0200 | [diff] [blame] | 182 | }; |
Thomas Petazzoni | 19b85c0 | 2012-10-23 08:17:20 +0200 | [diff] [blame] | 183 | }; |
| 184 | }; |
Sebastian Hesselbarth | 01c4342 | 2014-09-19 21:20:09 +0200 | [diff] [blame^] | 185 | |
| 186 | &pinctrl { |
| 187 | led_pins: led-pins-0 { |
| 188 | marvell,pins = "mpp49", "mpp51", "mpp53"; |
| 189 | marvell,function = "gpio"; |
| 190 | }; |
| 191 | }; |