Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree file for Marvell Armada 370 evaluation board
0004  * (DB-88F6710-BP-DDR3)
0005  *
0006  *  Copyright (C) 2012 Marvell
0007  *
0008  * Lior Amsalem <alior@marvell.com>
0009  * Gregory CLEMENT <gregory.clement@free-electrons.com>
0010  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
0011  *
0012  * Note: this Device Tree assumes that the bootloader has remapped the
0013  * internal registers to 0xf1000000 (instead of the default
0014  * 0xd0000000). The 0xf1000000 is the default used by the recent,
0015  * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
0016  * boards were delivered with an older version of the bootloader that
0017  * left internal registers mapped at 0xd0000000. If you are in this
0018  * situation, you should either update your bootloader (preferred
0019  * solution) or the below Device Tree should be adjusted.
0020  */
0021 
0022 /dts-v1/;
0023 #include "armada-370.dtsi"
0024 
0025 / {
0026         model = "Marvell Armada 370 Evaluation Board";
0027         compatible = "marvell,a370-db", "marvell,armada370", "marvell,armada-370-xp";
0028 
0029         chosen {
0030                 stdout-path = "serial0:115200n8";
0031         };
0032 
0033         memory@0 {
0034                 device_type = "memory";
0035                 reg = <0x00000000 0x40000000>; /* 1 GB */
0036         };
0037 
0038         soc {
0039                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
0040                           MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
0041                           MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
0042 
0043                 internal-regs {
0044                         serial@12000 {
0045                                 status = "okay";
0046                         };
0047                         sata@a0000 {
0048                                 nr-ports = <2>;
0049                                 status = "okay";
0050                         };
0051 
0052                         ethernet@70000 {
0053                                 pinctrl-0 = <&ge0_rgmii_pins>;
0054                                 pinctrl-names = "default";
0055                                 status = "okay";
0056                                 phy = <&phy0>;
0057                                 phy-mode = "rgmii-id";
0058                         };
0059                         ethernet@74000 {
0060                                 pinctrl-0 = <&ge1_rgmii_pins>;
0061                                 pinctrl-names = "default";
0062                                 status = "okay";
0063                                 phy = <&phy1>;
0064                                 phy-mode = "rgmii-id";
0065                         };
0066 
0067                         i2c@11000 {
0068                                 pinctrl-0 = <&i2c0_pins>;
0069                                 pinctrl-names = "default";
0070                                 clock-frequency = <100000>;
0071                                 status = "okay";
0072                                 audio_codec: audio-codec@4a {
0073                                         #sound-dai-cells = <0>;
0074                                         compatible = "cirrus,cs42l51";
0075                                         reg = <0x4a>;
0076                                 };
0077                         };
0078 
0079                         audio-controller@30000 {
0080                                 pinctrl-0 = <&i2s_pins2>;
0081                                 pinctrl-names = "default";
0082                                 status = "okay";
0083                         };
0084 
0085                         mvsdio@d4000 {
0086                                 pinctrl-0 = <&sdio_pins1>;
0087                                 pinctrl-names = "default";
0088                                 /*
0089                                  * This device is disabled by default, because
0090                                  * using the SD card connector requires
0091                                  * changing the default CON40 connector
0092                                  * "DB-88F6710_MPP_2xRGMII_DEVICE_Jumper" to a
0093                                  * different connector
0094                                  * "DB-88F6710_MPP_RGMII_SD_Jumper".
0095                                  */
0096                                 status = "disabled";
0097                                 /* No CD or WP GPIOs */
0098                                 broken-cd;
0099                         };
0100 
0101                         usb@50000 {
0102                                 status = "okay";
0103                         };
0104 
0105                         usb@51000 {
0106                                 status = "okay";
0107                         };
0108                 };
0109         };
0110 
0111         sound {
0112                 compatible = "simple-audio-card";
0113                 simple-audio-card,name = "Armada 370 DB Audio";
0114                 simple-audio-card,mclk-fs = <256>;
0115                 simple-audio-card,widgets =
0116                         "Headphone", "Out Jack",
0117                         "Line", "In Jack";
0118                 simple-audio-card,routing =
0119                         "Out Jack", "HPL",
0120                         "Out Jack", "HPR",
0121                         "AIN1L", "In Jack",
0122                         "AIN1L", "In Jack";
0123                 status = "okay";
0124 
0125                 simple-audio-card,dai-link@0 {
0126                         format = "i2s";
0127                         cpu {
0128                                 sound-dai = <&audio_controller 0>;
0129                         };
0130 
0131                         codec {
0132                                 sound-dai = <&audio_codec>;
0133                         };
0134                 };
0135 
0136                 simple-audio-card,dai-link@1 {
0137                         format = "i2s";
0138                         cpu {
0139                                 sound-dai = <&audio_controller 1>;
0140                         };
0141 
0142                         codec {
0143                                 sound-dai = <&spdif_out>;
0144                         };
0145                 };
0146 
0147                 simple-audio-card,dai-link@2 {
0148                         format = "i2s";
0149                         cpu {
0150                                 sound-dai = <&audio_controller 1>;
0151                         };
0152 
0153                         codec {
0154                                 sound-dai = <&spdif_in>;
0155                         };
0156                 };
0157         };
0158 
0159         spdif_out: spdif-out {
0160                 #sound-dai-cells = <0>;
0161                 compatible = "linux,spdif-dit";
0162         };
0163 
0164         spdif_in: spdif-in {
0165                 #sound-dai-cells = <0>;
0166                 compatible = "linux,spdif-dir";
0167         };
0168 };
0169 
0170 &pciec {
0171         status = "okay";
0172         /*
0173          * The two PCIe units are accessible through
0174          * both standard PCIe slots and mini-PCIe
0175          * slots on the board.
0176          */
0177         pcie@1,0 {
0178                 /* Port 0, Lane 0 */
0179                 status = "okay";
0180         };
0181 
0182         pcie@2,0 {
0183                 /* Port 1, Lane 0 */
0184                 status = "okay";
0185         };
0186 };
0187 
0188 &mdio {
0189         pinctrl-0 = <&mdio_pins>;
0190         pinctrl-names = "default";
0191         phy0: ethernet-phy@0 {
0192                 reg = <0>;
0193         };
0194 
0195         phy1: ethernet-phy@1 {
0196                 reg = <1>;
0197         };
0198 };
0199 
0200 
0201 &spi0 {
0202         pinctrl-0 = <&spi0_pins2>;
0203         pinctrl-names = "default";
0204         status = "okay";
0205 
0206         flash@0 {
0207                 #address-cells = <1>;
0208                 #size-cells = <1>;
0209                 compatible = "mx25l25635e", "jedec,spi-nor";
0210                 reg = <0>; /* Chip select 0 */
0211                 spi-max-frequency = <50000000>;
0212         };
0213 };
0214 
0215 &nand_controller {
0216         status = "okay";
0217 
0218         nand@0 {
0219                 reg = <0>;
0220                 label = "pxa3xx_nand-0";
0221                 nand-rb = <0>;
0222                 marvell,nand-keep-config;
0223                 nand-on-flash-bbt;
0224 
0225                 partitions {
0226                         compatible = "fixed-partitions";
0227                         #address-cells = <1>;
0228                         #size-cells = <1>;
0229 
0230                         partition@0 {
0231                                 label = "U-Boot";
0232                                 reg = <0 0x800000>;
0233                         };
0234                         partition@800000 {
0235                                 label = "Linux";
0236                                 reg = <0x800000 0x800000>;
0237                         };
0238                         partition@1000000 {
0239                                 label = "Filesystem";
0240                                 reg = <0x1000000 0x3f000000>;
0241                         };
0242                 };
0243         };
0244 };