Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree file for Marvell Armada 370 evaluation board |
| 3 | * (DB-88F6710-BP-DDR3) |
| 4 | * |
| 5 | * Copyright (C) 2012 Marvell |
| 6 | * |
| 7 | * Lior Amsalem <alior@marvell.com> |
| 8 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 9 | * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
| 10 | * |
| 11 | * This file is licensed under the terms of the GNU General Public |
| 12 | * License version 2. This program is licensed "as is" without any |
| 13 | * warranty of any kind, whether express or implied. |
| 14 | */ |
| 15 | |
| 16 | /dts-v1/; |
Ezequiel Garcia | 3814988 | 2013-07-26 10:17:56 -0300 | [diff] [blame] | 17 | #include "armada-370.dtsi" |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 18 | |
| 19 | / { |
| 20 | model = "Marvell Armada 370 Evaluation Board"; |
| 21 | compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp"; |
| 22 | |
| 23 | chosen { |
| 24 | bootargs = "console=ttyS0,115200 earlyprintk"; |
| 25 | }; |
| 26 | |
| 27 | memory { |
| 28 | device_type = "memory"; |
Gregory CLEMENT | 11d5993 | 2013-01-10 13:15:14 +0100 | [diff] [blame] | 29 | reg = <0x00000000 0x40000000>; /* 1 GB */ |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | soc { |
Ezequiel Garcia | 0cd3754 | 2013-07-26 10:17:58 -0300 | [diff] [blame] | 33 | ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000 |
| 34 | MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>; |
Ezequiel Garcia | 5e12a61 | 2013-07-26 10:17:57 -0300 | [diff] [blame] | 35 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 36 | internal-regs { |
| 37 | serial@12000 { |
| 38 | clock-frequency = <200000000>; |
Thomas Petazzoni | 3b723ae | 2013-04-09 23:06:38 +0200 | [diff] [blame] | 39 | status = "okay"; |
| 40 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 41 | sata@a0000 { |
| 42 | nr-ports = <2>; |
Thomas Petazzoni | 3b723ae | 2013-04-09 23:06:38 +0200 | [diff] [blame] | 43 | status = "okay"; |
| 44 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 45 | |
| 46 | mdio { |
| 47 | phy0: ethernet-phy@0 { |
| 48 | reg = <0>; |
| 49 | }; |
| 50 | |
| 51 | phy1: ethernet-phy@1 { |
| 52 | reg = <1>; |
| 53 | }; |
| 54 | }; |
| 55 | |
| 56 | ethernet@70000 { |
| 57 | status = "okay"; |
| 58 | phy = <&phy0>; |
| 59 | phy-mode = "rgmii-id"; |
| 60 | }; |
| 61 | ethernet@74000 { |
| 62 | status = "okay"; |
| 63 | phy = <&phy1>; |
| 64 | phy-mode = "rgmii-id"; |
| 65 | }; |
| 66 | |
Thomas Petazzoni | 249f382 | 2014-02-12 18:21:00 +0100 | [diff] [blame] | 67 | i2c@11000 { |
| 68 | pinctrl-0 = <&i2c0_pins>; |
| 69 | pinctrl-names = "default"; |
| 70 | status = "okay"; |
| 71 | audio_codec: audio-codec@4a { |
| 72 | compatible = "cirrus,cs42l51"; |
| 73 | reg = <0x4a>; |
| 74 | }; |
| 75 | }; |
| 76 | |
| 77 | audio-controller@30000 { |
| 78 | pinctrl-0 = <&i2s_pins2>; |
| 79 | pinctrl-names = "default"; |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 83 | mvsdio@d4000 { |
| 84 | pinctrl-0 = <&sdio_pins1>; |
| 85 | pinctrl-names = "default"; |
| 86 | /* |
| 87 | * This device is disabled by default, because |
| 88 | * using the SD card connector requires |
| 89 | * changing the default CON40 connector |
| 90 | * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a |
| 91 | * different connector |
| 92 | * "DB-88F6710_MPP_RGMII_SD_Jumper". |
| 93 | */ |
| 94 | status = "disabled"; |
| 95 | /* No CD or WP GPIOs */ |
Simon Baatz | d87b5fb | 2013-05-13 23:18:58 +0200 | [diff] [blame] | 96 | broken-cd; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 97 | }; |
| 98 | |
Thomas Petazzoni | 249f382 | 2014-02-12 18:21:00 +0100 | [diff] [blame] | 99 | pinctrl { |
| 100 | /* |
| 101 | * These pins might be muxed as I2S by |
| 102 | * the bootloader, but it conflicts |
| 103 | * with the real I2S pins that are |
| 104 | * muxed using i2s_pins. We must mux |
| 105 | * those pins to a function other than |
| 106 | * I2S. |
| 107 | */ |
| 108 | pinctrl-0 = <&hog_pins1 &hog_pins2>; |
| 109 | pinctrl-names = "default"; |
| 110 | |
| 111 | hog_pins1: hog-pins1 { |
| 112 | marvell,pins = "mpp6", "mpp8", "mpp10", |
| 113 | "mpp12", "mpp13"; |
| 114 | marvell,function = "gpio"; |
| 115 | }; |
| 116 | |
| 117 | hog_pins2: hog-pins2 { |
| 118 | marvell,pins = "mpp5", "mpp7", "mpp9"; |
| 119 | marvell,function = "gpo"; |
| 120 | }; |
| 121 | }; |
| 122 | |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 123 | usb@50000 { |
| 124 | status = "okay"; |
| 125 | }; |
| 126 | |
| 127 | usb@51000 { |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | |
| 131 | spi0: spi@10600 { |
| 132 | status = "okay"; |
| 133 | |
| 134 | spi-flash@0 { |
| 135 | #address-cells = <1>; |
| 136 | #size-cells = <1>; |
| 137 | compatible = "mx25l25635e"; |
| 138 | reg = <0>; /* Chip select 0 */ |
| 139 | spi-max-frequency = <50000000>; |
| 140 | }; |
| 141 | }; |
Thomas Petazzoni | 96039f7 | 2013-11-25 17:26:47 +0100 | [diff] [blame] | 142 | }; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 143 | |
Thomas Petazzoni | 96039f7 | 2013-11-25 17:26:47 +0100 | [diff] [blame] | 144 | pcie-controller { |
| 145 | status = "okay"; |
| 146 | /* |
| 147 | * The two PCIe units are accessible through |
| 148 | * both standard PCIe slots and mini-PCIe |
| 149 | * slots on the board. |
| 150 | */ |
| 151 | pcie@1,0 { |
| 152 | /* Port 0, Lane 0 */ |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 153 | status = "okay"; |
Thomas Petazzoni | 96039f7 | 2013-11-25 17:26:47 +0100 | [diff] [blame] | 154 | }; |
Thomas Petazzoni | 249f382 | 2014-02-12 18:21:00 +0100 | [diff] [blame] | 155 | |
Thomas Petazzoni | 96039f7 | 2013-11-25 17:26:47 +0100 | [diff] [blame] | 156 | pcie@2,0 { |
| 157 | /* Port 1, Lane 0 */ |
| 158 | status = "okay"; |
Gregory CLEMENT | 467f54b | 2013-04-12 16:29:09 +0200 | [diff] [blame] | 159 | }; |
Thomas Petazzoni | 3b723ae | 2013-04-09 23:06:38 +0200 | [diff] [blame] | 160 | }; |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 161 | }; |
Thomas Petazzoni | 249f382 | 2014-02-12 18:21:00 +0100 | [diff] [blame] | 162 | |
| 163 | sound { |
| 164 | compatible = "marvell,a370db-audio"; |
| 165 | marvell,audio-controller = <&audio_controller>; |
Thomas Petazzoni | 5b26bd8 | 2014-02-12 18:21:01 +0100 | [diff] [blame] | 166 | marvell,audio-codec = <&audio_codec &spdif_out &spdif_in>; |
Thomas Petazzoni | 249f382 | 2014-02-12 18:21:00 +0100 | [diff] [blame] | 167 | status = "okay"; |
| 168 | }; |
Thomas Petazzoni | 5b26bd8 | 2014-02-12 18:21:01 +0100 | [diff] [blame] | 169 | |
| 170 | spdif_out: spdif-out { |
| 171 | compatible = "linux,spdif-dit"; |
| 172 | }; |
| 173 | |
| 174 | spdif_in: spdif-in { |
| 175 | compatible = "linux,spdif-dir"; |
| 176 | }; |
Thomas Petazzoni | 9ae6f74 | 2012-06-13 19:01:28 +0200 | [diff] [blame] | 177 | }; |