Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree file for OpenBlocks AX3-4 board
0004  *
0005  * Copyright (C) 2012 Marvell
0006  *
0007  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
0008  */
0009 
0010 /dts-v1/;
0011 #include <dt-bindings/gpio/gpio.h>
0012 #include <dt-bindings/input/input.h>
0013 #include "armada-xp-mv78260.dtsi"
0014 
0015 / {
0016         model = "PlatHome OpenBlocks AX3-4 board";
0017         compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
0018 
0019         chosen {
0020                 stdout-path = "serial0:115200n8";
0021         };
0022 
0023         memory@0 {
0024                 device_type = "memory";
0025                 reg = <0 0x00000000 0 0x40000000>; /* 1 GB soldered on */
0026         };
0027 
0028         soc {
0029                 ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
0030                           MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
0031                           MBUS_ID(0x01, 0x2f) 0 0 0xe8000000 0x8000000
0032                           MBUS_ID(0x09, 0x09) 0 0 0xf1100000 0x10000
0033                           MBUS_ID(0x09, 0x05) 0 0 0xf1110000 0x10000
0034                           MBUS_ID(0x0c, 0x04) 0 0 0xd1200000 0x100000>;
0035 
0036                 devbus-bootcs {
0037                         status = "okay";
0038 
0039                         /* Device Bus parameters are required */
0040 
0041                         /* Read parameters */
0042                         devbus,bus-width    = <16>;
0043                         devbus,turn-off-ps  = <60000>;
0044                         devbus,badr-skew-ps = <0>;
0045                         devbus,acc-first-ps = <124000>;
0046                         devbus,acc-next-ps  = <248000>;
0047                         devbus,rd-setup-ps  = <0>;
0048                         devbus,rd-hold-ps   = <0>;
0049 
0050                         /* Write parameters */
0051                         devbus,sync-enable = <0>;
0052                         devbus,wr-high-ps  = <60000>;
0053                         devbus,wr-low-ps   = <60000>;
0054                         devbus,ale-wr-ps   = <60000>;
0055 
0056                         /* NOR 128 MiB */
0057                         nor@0 {
0058                                 compatible = "cfi-flash";
0059                                 reg = <0 0x8000000>;
0060                                 bank-width = <2>;
0061                         };
0062                 };
0063 
0064                 internal-regs {
0065                         rtc@10300 {
0066                                 /* No crystal connected to the internal RTC */
0067                                 status = "disabled";
0068                         };
0069                         serial@12000 {
0070                                 status = "okay";
0071                         };
0072                         serial@12100 {
0073                                 status = "okay";
0074                         };
0075 
0076                         leds {
0077                                 compatible = "gpio-leds";
0078                                 pinctrl-names = "default";
0079                                 pinctrl-0 = <&led_pins>;
0080 
0081                                 red_led {
0082                                         label = "red_led";
0083                                         gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
0084                                         default-state = "off";
0085                                 };
0086 
0087                                 yellow_led {
0088                                         label = "yellow_led";
0089                                         gpios = <&gpio1 19 GPIO_ACTIVE_LOW>;
0090                                         default-state = "off";
0091                                 };
0092 
0093                                 green_led {
0094                                         label = "green_led";
0095                                         gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
0096                                         default-state = "keep";
0097                                 };
0098                         };
0099 
0100                         gpio-keys {
0101                                 compatible = "gpio-keys";
0102 
0103                                 button-init {
0104                                         label = "Init Button";
0105                                         linux,code = <KEY_POWER>;
0106                                         gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
0107                                 };
0108                         };
0109 
0110                         ethernet@70000 {
0111                                 status = "okay";
0112                                 phy = <&phy0>;
0113                                 phy-mode = "sgmii";
0114                                 buffer-manager = <&bm>;
0115                                 bm,pool-long = <0>;
0116                         };
0117                         ethernet@74000 {
0118                                 status = "okay";
0119                                 phy = <&phy1>;
0120                                 phy-mode = "sgmii";
0121                                 buffer-manager = <&bm>;
0122                                 bm,pool-long = <1>;
0123                         };
0124                         ethernet@30000 {
0125                                 status = "okay";
0126                                 phy = <&phy2>;
0127                                 phy-mode = "sgmii";
0128                                 buffer-manager = <&bm>;
0129                                 bm,pool-long = <2>;
0130                         };
0131                         ethernet@34000 {
0132                                 status = "okay";
0133                                 phy = <&phy3>;
0134                                 phy-mode = "sgmii";
0135                                 buffer-manager = <&bm>;
0136                                 bm,pool-long = <3>;
0137                         };
0138                         i2c@11000 {
0139                                 status = "okay";
0140                                 clock-frequency = <400000>;
0141                         };
0142                         i2c@11100 {
0143                                 status = "okay";
0144                                 clock-frequency = <400000>;
0145 
0146                                 s35390a: s35390a@30 {
0147                                         compatible = "s35390a";
0148                                         reg = <0x30>;
0149                                 };
0150                         };
0151                         sata@a0000 {
0152                                 nr-ports = <2>;
0153                                 status = "okay";
0154                         };
0155 
0156                         /* Front side USB 0 */
0157                         usb@50000 {
0158                                 status = "okay";
0159                         };
0160 
0161                         /* Front side USB 1 */
0162                         usb@51000 {
0163                                 status = "okay";
0164                         };
0165 
0166                         bm@c0000 {
0167                                 status = "okay";
0168                         };
0169                 };
0170 
0171                 bm-bppi {
0172                         status = "okay";
0173                 };
0174         };
0175 };
0176 
0177 &pciec {
0178         status = "okay";
0179         /* Internal mini-PCIe connector */
0180         pcie@1,0 {
0181                 /* Port 0, Lane 0 */
0182                 status = "okay";
0183         };
0184 };
0185 
0186 &mdio {
0187         phy0: ethernet-phy@0 {
0188                 reg = <0>;
0189         };
0190 
0191         phy1: ethernet-phy@1 {
0192                 reg = <1>;
0193         };
0194 
0195         phy2: ethernet-phy@2 {
0196                 reg = <2>;
0197         };
0198 
0199         phy3: ethernet-phy@3 {
0200                 reg = <3>;
0201         };
0202 };
0203 
0204 &pinctrl {
0205         led_pins: led-pins-0 {
0206                 marvell,pins = "mpp49", "mpp51", "mpp53";
0207                 marvell,function = "gpio";
0208         };
0209 };