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