1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for OpenBlocks A7 board 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2013 Free Electrons 6*724ba675SRob Herring * 7*724ba675SRob Herring * Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 8*724ba675SRob Herring * 9*724ba675SRob Herring */ 10*724ba675SRob Herring 11*724ba675SRob Herring/dts-v1/; 12*724ba675SRob Herring 13*724ba675SRob Herring#include "kirkwood.dtsi" 14*724ba675SRob Herring#include "kirkwood-6282.dtsi" 15*724ba675SRob Herring 16*724ba675SRob Herring/ { 17*724ba675SRob Herring model = "Plat'Home OpenBlocksA7"; 18*724ba675SRob Herring compatible = "plathome,openblocks-a7", "marvell,kirkwood-88f6283", "marvell,kirkwood"; 19*724ba675SRob Herring 20*724ba675SRob Herring memory { 21*724ba675SRob Herring device_type = "memory"; 22*724ba675SRob Herring reg = <0x00000000 0x40000000>; /* 1 GB */ 23*724ba675SRob Herring }; 24*724ba675SRob Herring 25*724ba675SRob Herring chosen { 26*724ba675SRob Herring bootargs = "console=ttyS0,115200n8 earlyprintk"; 27*724ba675SRob Herring stdout-path = &uart0; 28*724ba675SRob Herring }; 29*724ba675SRob Herring 30*724ba675SRob Herring ocp@f1000000 { 31*724ba675SRob Herring serial@12000 { 32*724ba675SRob Herring status = "okay"; 33*724ba675SRob Herring }; 34*724ba675SRob Herring 35*724ba675SRob Herring serial@12100 { 36*724ba675SRob Herring status = "okay"; 37*724ba675SRob Herring }; 38*724ba675SRob Herring 39*724ba675SRob Herring sata@80000 { 40*724ba675SRob Herring nr-ports = <1>; 41*724ba675SRob Herring status = "okay"; 42*724ba675SRob Herring }; 43*724ba675SRob Herring 44*724ba675SRob Herring i2c@11100 { 45*724ba675SRob Herring status = "okay"; 46*724ba675SRob Herring 47*724ba675SRob Herring s24c02: s24c02@50 { 48*724ba675SRob Herring compatible = "atmel,24c02"; 49*724ba675SRob Herring reg = <0x50>; 50*724ba675SRob Herring }; 51*724ba675SRob Herring }; 52*724ba675SRob Herring 53*724ba675SRob Herring pinctrl: pin-controller@10000 { 54*724ba675SRob Herring pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header 55*724ba675SRob Herring &pmx_gpio_header_gpo>; 56*724ba675SRob Herring pinctrl-names = "default"; 57*724ba675SRob Herring 58*724ba675SRob Herring pmx_uart0: pmx-uart0 { 59*724ba675SRob Herring marvell,pins = "mpp10", "mpp11", "mpp15", 60*724ba675SRob Herring "mpp16"; 61*724ba675SRob Herring marvell,function = "uart0"; 62*724ba675SRob Herring }; 63*724ba675SRob Herring 64*724ba675SRob Herring pmx_uart1: pmx-uart1 { 65*724ba675SRob Herring marvell,pins = "mpp13", "mpp14", "mpp8", 66*724ba675SRob Herring "mpp9"; 67*724ba675SRob Herring marvell,function = "uart1"; 68*724ba675SRob Herring }; 69*724ba675SRob Herring 70*724ba675SRob Herring pmx_sysrst: pmx-sysrst { 71*724ba675SRob Herring marvell,pins = "mpp6"; 72*724ba675SRob Herring marvell,function = "sysrst"; 73*724ba675SRob Herring }; 74*724ba675SRob Herring 75*724ba675SRob Herring pmx_dip_switches: pmx-dip-switches { 76*724ba675SRob Herring marvell,pins = "mpp44", "mpp45", "mpp46", "mpp47"; 77*724ba675SRob Herring marvell,function = "gpio"; 78*724ba675SRob Herring }; 79*724ba675SRob Herring 80*724ba675SRob Herring /* 81*724ba675SRob Herring * Accessible on connector J202. The MPP 82*724ba675SRob Herring * listed below are pin 1-7, pin 8 is unused, 83*724ba675SRob Herring * pin 9 is external reset input and pin 10 is 84*724ba675SRob Herring * ground. 85*724ba675SRob Herring */ 86*724ba675SRob Herring pmx_gpio_header: pmx-gpio-header { 87*724ba675SRob Herring marvell,pins = "mpp17", "mpp29", "mpp28", 88*724ba675SRob Herring "mpp35", "mpp34", "mpp40"; 89*724ba675SRob Herring marvell,function = "gpio"; 90*724ba675SRob Herring }; 91*724ba675SRob Herring 92*724ba675SRob Herring pmx_gpio_header_gpo: pxm-gpio-header-gpo { 93*724ba675SRob Herring marvell,pins = "mpp7"; 94*724ba675SRob Herring marvell,function = "gpo"; 95*724ba675SRob Herring }; 96*724ba675SRob Herring 97*724ba675SRob Herring pmx_gpio_init: pmx-init { 98*724ba675SRob Herring marvell,pins = "mpp38"; 99*724ba675SRob Herring marvell,function = "gpio"; 100*724ba675SRob Herring }; 101*724ba675SRob Herring 102*724ba675SRob Herring pmx_usb_oc: pmx-usb-oc { 103*724ba675SRob Herring marvell,pins = "mpp39"; 104*724ba675SRob Herring marvell,function = "gpio"; 105*724ba675SRob Herring }; 106*724ba675SRob Herring 107*724ba675SRob Herring pmx_leds: pmx-leds { 108*724ba675SRob Herring marvell,pins = "mpp41", "mpp42", "mpp43"; 109*724ba675SRob Herring marvell,function = "gpio"; 110*724ba675SRob Herring }; 111*724ba675SRob Herring }; 112*724ba675SRob Herring }; 113*724ba675SRob Herring 114*724ba675SRob Herring gpio-leds { 115*724ba675SRob Herring compatible = "gpio-leds"; 116*724ba675SRob Herring pinctrl-0 = <&pmx_leds>; 117*724ba675SRob Herring pinctrl-names = "default"; 118*724ba675SRob Herring 119*724ba675SRob Herring led-red { 120*724ba675SRob Herring label = "obsa7:red:stat"; 121*724ba675SRob Herring gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; 122*724ba675SRob Herring }; 123*724ba675SRob Herring 124*724ba675SRob Herring led-green { 125*724ba675SRob Herring label = "obsa7:green:stat"; 126*724ba675SRob Herring gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; 127*724ba675SRob Herring }; 128*724ba675SRob Herring 129*724ba675SRob Herring led-yellow { 130*724ba675SRob Herring label = "obsa7:yellow:stat"; 131*724ba675SRob Herring gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; 132*724ba675SRob Herring }; 133*724ba675SRob Herring }; 134*724ba675SRob Herring 135*724ba675SRob Herring gpio_keys { 136*724ba675SRob Herring compatible = "gpio-keys"; 137*724ba675SRob Herring pinctrl-0 = <&pmx_gpio_init>; 138*724ba675SRob Herring pinctrl-names = "default"; 139*724ba675SRob Herring #address-cells = <1>; 140*724ba675SRob Herring #size-cells = <0>; 141*724ba675SRob Herring 142*724ba675SRob Herring button { 143*724ba675SRob Herring label = "Init Button"; 144*724ba675SRob Herring linux,code = <KEY_POWER>; 145*724ba675SRob Herring gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; 146*724ba675SRob Herring }; 147*724ba675SRob Herring }; 148*724ba675SRob Herring}; 149*724ba675SRob Herring 150*724ba675SRob Herring&nand { 151*724ba675SRob Herring chip-delay = <25>; 152*724ba675SRob Herring status = "okay"; 153*724ba675SRob Herring 154*724ba675SRob Herring partition@0 { 155*724ba675SRob Herring label = "uboot"; 156*724ba675SRob Herring reg = <0x0 0x1c0000>; 157*724ba675SRob Herring }; 158*724ba675SRob Herring 159*724ba675SRob Herring partition@1c0000 { 160*724ba675SRob Herring label = "env"; 161*724ba675SRob Herring reg = <0x1c0000 0x2c0000>; 162*724ba675SRob Herring }; 163*724ba675SRob Herring 164*724ba675SRob Herring partition@480000 { 165*724ba675SRob Herring label = "test"; 166*724ba675SRob Herring reg = <0x480000 0x160000>; 167*724ba675SRob Herring }; 168*724ba675SRob Herring 169*724ba675SRob Herring partition@5e0000 { 170*724ba675SRob Herring label = "conf"; 171*724ba675SRob Herring reg = <0x5e0000 0x540000>; 172*724ba675SRob Herring }; 173*724ba675SRob Herring 174*724ba675SRob Herring partition@b20000 { 175*724ba675SRob Herring label = "linux"; 176*724ba675SRob Herring reg = <0xb20000 0x3d40000>; 177*724ba675SRob Herring }; 178*724ba675SRob Herring 179*724ba675SRob Herring partition@4860000 { 180*724ba675SRob Herring label = "user"; 181*724ba675SRob Herring reg = <0x4860000 0xb7a0000>; 182*724ba675SRob Herring }; 183*724ba675SRob Herring}; 184*724ba675SRob Herring 185*724ba675SRob Herring&mdio { 186*724ba675SRob Herring status = "okay"; 187*724ba675SRob Herring 188*724ba675SRob Herring ethphy0: ethernet-phy@0 { 189*724ba675SRob Herring reg = <0>; 190*724ba675SRob Herring }; 191*724ba675SRob Herring 192*724ba675SRob Herring ethphy1: ethernet-phy@1 { 193*724ba675SRob Herring reg = <1>; 194*724ba675SRob Herring }; 195*724ba675SRob Herring}; 196*724ba675SRob Herring 197*724ba675SRob Herringð0 { 198*724ba675SRob Herring status = "okay"; 199*724ba675SRob Herring ethernet0-port@0 { 200*724ba675SRob Herring phy-handle = <ðphy0>; 201*724ba675SRob Herring }; 202*724ba675SRob Herring}; 203*724ba675SRob Herring 204*724ba675SRob Herringð1 { 205*724ba675SRob Herring status = "okay"; 206*724ba675SRob Herring ethernet1-port@0 { 207*724ba675SRob Herring phy-handle = <ðphy1>; 208*724ba675SRob Herring }; 209*724ba675SRob Herring}; 210