1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0+ 2*724ba675SRob Herring/* 3*724ba675SRob Herring * Device Tree file for Excito Bubba B3 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2013, Andrew Lunn <andrew@lunn.ch> 6*724ba675SRob Herring * 7*724ba675SRob Herring * 8*724ba675SRob Herring * Note: This requires a new'ish version of u-boot, which disables the 9*724ba675SRob Herring * L2 cache. If your B3 silently fails to boot, u-boot is probably too 10*724ba675SRob Herring * old. Either upgrade, or consider the following email: 11*724ba675SRob Herring * 12*724ba675SRob Herring * https://lists.debian.org/debian-arm/2012/08/msg00128.html 13*724ba675SRob Herring */ 14*724ba675SRob Herring 15*724ba675SRob Herring/dts-v1/; 16*724ba675SRob Herring 17*724ba675SRob Herring#include "kirkwood.dtsi" 18*724ba675SRob Herring#include "kirkwood-6281.dtsi" 19*724ba675SRob Herring 20*724ba675SRob Herring/ { 21*724ba675SRob Herring model = "Excito B3"; 22*724ba675SRob Herring compatible = "excito,b3", "marvell,kirkwood-88f6281", "marvell,kirkwood"; 23*724ba675SRob Herring memory { /* 512 MB */ 24*724ba675SRob Herring device_type = "memory"; 25*724ba675SRob Herring reg = <0x00000000 0x20000000>; 26*724ba675SRob Herring }; 27*724ba675SRob Herring 28*724ba675SRob Herring chosen { 29*724ba675SRob Herring bootargs = "console=ttyS0,115200n8 earlyprintk"; 30*724ba675SRob Herring stdout-path = &uart0; 31*724ba675SRob Herring }; 32*724ba675SRob Herring 33*724ba675SRob Herring ocp@f1000000 { 34*724ba675SRob Herring pinctrl: pin-controller@10000 { 35*724ba675SRob Herring pmx_button_power: pmx-button-power { 36*724ba675SRob Herring marvell,pins = "mpp39"; 37*724ba675SRob Herring marvell,function = "gpio"; 38*724ba675SRob Herring }; 39*724ba675SRob Herring pmx_led_green: pmx-led-green { 40*724ba675SRob Herring marvell,pins = "mpp38"; 41*724ba675SRob Herring marvell,function = "gpio"; 42*724ba675SRob Herring }; 43*724ba675SRob Herring pmx_led_red: pmx-led-red { 44*724ba675SRob Herring marvell,pins = "mpp41"; 45*724ba675SRob Herring marvell,function = "gpio"; 46*724ba675SRob Herring }; 47*724ba675SRob Herring pmx_led_blue: pmx-led-blue { 48*724ba675SRob Herring marvell,pins = "mpp42"; 49*724ba675SRob Herring marvell,function = "gpio"; 50*724ba675SRob Herring }; 51*724ba675SRob Herring pmx_beeper: pmx-beeper { 52*724ba675SRob Herring marvell,pins = "mpp40"; 53*724ba675SRob Herring marvell,function = "gpio"; 54*724ba675SRob Herring }; 55*724ba675SRob Herring }; 56*724ba675SRob Herring 57*724ba675SRob Herring spi@10600 { 58*724ba675SRob Herring status = "okay"; 59*724ba675SRob Herring 60*724ba675SRob Herring m25p16@0 { 61*724ba675SRob Herring #address-cells = <1>; 62*724ba675SRob Herring #size-cells = <1>; 63*724ba675SRob Herring compatible = "st,m25p16", "jedec,spi-nor"; 64*724ba675SRob Herring reg = <0>; 65*724ba675SRob Herring spi-max-frequency = <40000000>; 66*724ba675SRob Herring mode = <0>; 67*724ba675SRob Herring 68*724ba675SRob Herring partition@0 { 69*724ba675SRob Herring reg = <0x0 0xc0000>; 70*724ba675SRob Herring label = "u-boot"; 71*724ba675SRob Herring }; 72*724ba675SRob Herring 73*724ba675SRob Herring partition@c0000 { 74*724ba675SRob Herring reg = <0xc0000 0x20000>; 75*724ba675SRob Herring label = "u-boot env"; 76*724ba675SRob Herring }; 77*724ba675SRob Herring 78*724ba675SRob Herring partition@e0000 { 79*724ba675SRob Herring reg = <0xe0000 0x120000>; 80*724ba675SRob Herring label = "data"; 81*724ba675SRob Herring }; 82*724ba675SRob Herring }; 83*724ba675SRob Herring }; 84*724ba675SRob Herring 85*724ba675SRob Herring i2c@11000 { 86*724ba675SRob Herring status = "okay"; 87*724ba675SRob Herring /* 88*724ba675SRob Herring * There is something on the bus at address 0x64. 89*724ba675SRob Herring * Not yet identified what it is, maybe the eeprom 90*724ba675SRob Herring * for the Atheros WiFi chip? 91*724ba675SRob Herring */ 92*724ba675SRob Herring }; 93*724ba675SRob Herring 94*724ba675SRob Herring 95*724ba675SRob Herring serial@12000 { 96*724ba675SRob Herring /* Internal on test pins, 3.3v TTL 97*724ba675SRob Herring * UART0_RX = Testpoint 65 98*724ba675SRob Herring * UART0_TX = Testpoint 66 99*724ba675SRob Herring * See the Excito Wiki for more details. 100*724ba675SRob Herring */ 101*724ba675SRob Herring status = "okay"; 102*724ba675SRob Herring }; 103*724ba675SRob Herring 104*724ba675SRob Herring sata@80000 { 105*724ba675SRob Herring /* One internal, the second as eSATA */ 106*724ba675SRob Herring status = "okay"; 107*724ba675SRob Herring nr-ports = <2>; 108*724ba675SRob Herring }; 109*724ba675SRob Herring }; 110*724ba675SRob Herring 111*724ba675SRob Herring gpio-leds { 112*724ba675SRob Herring /* 113*724ba675SRob Herring * There is one LED "port" on the front and the colours 114*724ba675SRob Herring * mix together giving some interesting combinations. 115*724ba675SRob Herring */ 116*724ba675SRob Herring compatible = "gpio-leds"; 117*724ba675SRob Herring pinctrl-0 = < &pmx_led_green &pmx_led_red 118*724ba675SRob Herring &pmx_led_blue >; 119*724ba675SRob Herring pinctrl-names = "default"; 120*724ba675SRob Herring 121*724ba675SRob Herring programming_led { 122*724ba675SRob Herring label = "bubba3:green:programming"; 123*724ba675SRob Herring gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; 124*724ba675SRob Herring default-state = "off"; 125*724ba675SRob Herring }; 126*724ba675SRob Herring 127*724ba675SRob Herring error_led { 128*724ba675SRob Herring label = "bubba3:red:error"; 129*724ba675SRob Herring gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>; 130*724ba675SRob Herring }; 131*724ba675SRob Herring 132*724ba675SRob Herring active_led { 133*724ba675SRob Herring label = "bubba3:blue:active"; 134*724ba675SRob Herring gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 135*724ba675SRob Herring }; 136*724ba675SRob Herring }; 137*724ba675SRob Herring 138*724ba675SRob Herring gpio-keys { 139*724ba675SRob Herring compatible = "gpio-keys"; 140*724ba675SRob Herring pinctrl-0 = <&pmx_button_power>; 141*724ba675SRob Herring pinctrl-names = "default"; 142*724ba675SRob Herring 143*724ba675SRob Herring power-button { 144*724ba675SRob Herring /* On the back */ 145*724ba675SRob Herring label = "Power Button"; 146*724ba675SRob Herring linux,code = <KEY_POWER>; 147*724ba675SRob Herring gpios = <&gpio1 7 GPIO_ACTIVE_LOW>; 148*724ba675SRob Herring }; 149*724ba675SRob Herring }; 150*724ba675SRob Herring 151*724ba675SRob Herring beeper: beeper { 152*724ba675SRob Herring /* 4KHz Piezoelectric buzzer */ 153*724ba675SRob Herring compatible = "gpio-beeper"; 154*724ba675SRob Herring pinctrl-0 = <&pmx_beeper>; 155*724ba675SRob Herring pinctrl-names = "default"; 156*724ba675SRob Herring gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; 157*724ba675SRob Herring }; 158*724ba675SRob Herring}; 159*724ba675SRob Herring 160*724ba675SRob Herring&mdio { 161*724ba675SRob Herring status = "okay"; 162*724ba675SRob Herring 163*724ba675SRob Herring ethphy0: ethernet-phy@8 { 164*724ba675SRob Herring device_type = "ethernet-phy"; 165*724ba675SRob Herring reg = <8>; 166*724ba675SRob Herring }; 167*724ba675SRob Herring 168*724ba675SRob Herring ethphy1: ethernet-phy@24 { 169*724ba675SRob Herring device_type = "ethernet-phy"; 170*724ba675SRob Herring reg = <24>; 171*724ba675SRob Herring }; 172*724ba675SRob Herring}; 173*724ba675SRob Herring 174*724ba675SRob Herringð0 { 175*724ba675SRob Herring status = "okay"; 176*724ba675SRob Herring ethernet0-port@0 { 177*724ba675SRob Herring phy-handle = <ðphy0>; 178*724ba675SRob Herring }; 179*724ba675SRob Herring}; 180*724ba675SRob Herring 181*724ba675SRob Herringð1 { 182*724ba675SRob Herring status = "okay"; 183*724ba675SRob Herring ethernet1-port@0 { 184*724ba675SRob Herring phy-handle = <ðphy1>; 185*724ba675SRob Herring }; 186*724ba675SRob Herring}; 187*724ba675SRob Herring 188*724ba675SRob Herring/* Wifi model has Atheros chipset on pcie port */ 189*724ba675SRob Herring&pciec { 190*724ba675SRob Herring status = "okay"; 191*724ba675SRob Herring}; 192*724ba675SRob Herring 193*724ba675SRob Herring&pcie0 { 194*724ba675SRob Herring status = "okay"; 195*724ba675SRob Herring}; 196