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