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