Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Device Tree file for OpenBlocks A7 board
0004  *
0005  * Copyright (C) 2013 Free Electrons
0006  *
0007  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
0008  *
0009  */
0010 
0011 /dts-v1/;
0012 
0013 #include "kirkwood.dtsi"
0014 #include "kirkwood-6282.dtsi"
0015 
0016 / {
0017         model = "Plat'Home OpenBlocksA7";
0018         compatible = "plathome,openblocks-a7", "marvell,kirkwood-88f6283", "marvell,kirkwood";
0019 
0020         memory {
0021                 device_type = "memory";
0022                 reg = <0x00000000 0x40000000>; /* 1 GB */
0023         };
0024 
0025         chosen {
0026                 bootargs = "console=ttyS0,115200n8 earlyprintk";
0027                 stdout-path = &uart0;
0028         };
0029 
0030         ocp@f1000000 {
0031                 serial@12000 {
0032                         status = "okay";
0033                 };
0034 
0035                 serial@12100 {
0036                         status = "okay";
0037                 };
0038 
0039                 sata@80000 {
0040                         nr-ports = <1>;
0041                         status = "okay";
0042                 };
0043 
0044                 i2c@11100 {
0045                         status = "okay";
0046 
0047                         s24c02: s24c02@50 {
0048                                 compatible = "atmel,24c02";
0049                                 reg = <0x50>;
0050                         };
0051                 };
0052 
0053                 pinctrl: pin-controller@10000 {
0054                         pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header
0055                                      &pmx_gpio_header_gpo>;
0056                         pinctrl-names = "default";
0057 
0058                         pmx_uart0: pmx-uart0 {
0059                                 marvell,pins = "mpp10", "mpp11", "mpp15",
0060                                         "mpp16";
0061                                 marvell,function = "uart0";
0062                         };
0063 
0064                         pmx_uart1: pmx-uart1 {
0065                                 marvell,pins = "mpp13", "mpp14", "mpp8",
0066                                         "mpp9";
0067                                 marvell,function = "uart1";
0068                         };
0069 
0070                         pmx_sysrst: pmx-sysrst {
0071                                 marvell,pins = "mpp6";
0072                                 marvell,function = "sysrst";
0073                         };
0074 
0075                         pmx_dip_switches: pmx-dip-switches {
0076                                 marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47";
0077                                 marvell,function = "gpio";
0078                         };
0079 
0080                         /*
0081                          * Accessible on connector J202. The MPP
0082                          * listed below are pin 1-7, pin 8 is unused,
0083                          * pin 9 is external reset input and pin 10 is
0084                          * ground.
0085                          */
0086                         pmx_gpio_header: pmx-gpio-header {
0087                                 marvell,pins = "mpp17", "mpp29", "mpp28",
0088                                                "mpp35", "mpp34", "mpp40";
0089                                 marvell,function = "gpio";
0090                         };
0091 
0092                         pmx_gpio_header_gpo: pxm-gpio-header-gpo {
0093                                 marvell,pins = "mpp7";
0094                                 marvell,function = "gpo";
0095                         };
0096 
0097                         pmx_gpio_init: pmx-init {
0098                                 marvell,pins = "mpp38";
0099                                 marvell,function = "gpio";
0100                         };
0101 
0102                         pmx_usb_oc: pmx-usb-oc {
0103                                 marvell,pins = "mpp39";
0104                                 marvell,function = "gpio";
0105                         };
0106 
0107                         pmx_leds: pmx-leds {
0108                                 marvell,pins = "mpp41", "mpp42", "mpp43";
0109                                 marvell,function = "gpio";
0110                         };
0111                 };
0112         };
0113 
0114         gpio-leds {
0115                 compatible = "gpio-leds";
0116                 pinctrl-0 = <&pmx_leds>;
0117                 pinctrl-names = "default";
0118 
0119                 led-red {
0120                         label = "obsa7:red:stat";
0121                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
0122                 };
0123 
0124                 led-green {
0125                         label = "obsa7:green:stat";
0126                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
0127                 };
0128 
0129                 led-yellow {
0130                         label = "obsa7:yellow:stat";
0131                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
0132                 };
0133         };
0134 
0135         gpio_keys {
0136                 compatible = "gpio-keys";
0137                 pinctrl-0 = <&pmx_gpio_init>;
0138                 pinctrl-names = "default";
0139                 #address-cells = <1>;
0140                 #size-cells = <0>;
0141 
0142                 button {
0143                         label = "Init Button";
0144                         linux,code = <KEY_POWER>;
0145                         gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
0146                 };
0147         };
0148 };
0149 
0150 &nand {
0151         chip-delay = <25>;
0152         status = "okay";
0153 
0154         partition@0 {
0155                 label = "uboot";
0156                 reg = <0x0 0x1c0000>;
0157         };
0158 
0159         partition@1c0000 {
0160                 label = "env";
0161                 reg = <0x1c0000 0x2c0000>;
0162         };
0163 
0164         partition@480000 {
0165                 label = "test";
0166                 reg = <0x480000 0x160000>;
0167         };
0168 
0169         partition@5e0000 {
0170                 label = "conf";
0171                 reg = <0x5e0000 0x540000>;
0172         };
0173 
0174         partition@b20000 {
0175                 label = "linux";
0176                 reg = <0xb20000 0x3d40000>;
0177         };
0178 
0179         partition@4860000 {
0180                 label = "user";
0181                 reg = <0x4860000 0xb7a0000>;
0182         };
0183 };
0184 
0185 &mdio {
0186         status = "okay";
0187 
0188         ethphy0: ethernet-phy@0 {
0189                 reg = <0>;
0190         };
0191 
0192         ethphy1: ethernet-phy@1 {
0193                 reg = <1>;
0194         };
0195 };
0196 
0197 &eth0 {
0198         status = "okay";
0199         ethernet0-port@0 {
0200                 phy-handle = <&ethphy0>;
0201         };
0202 };
0203 
0204 &eth1 {
0205         status = "okay";
0206         ethernet1-port@0 {
0207                 phy-handle = <&ethphy1>;
0208         };
0209 };