0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003 * Device Tree file for Excito Bubba B3
0004 *
0005 * Copyright (C) 2013, Andrew Lunn <andrew@lunn.ch>
0006 *
0007 *
0008 * Note: This requires a new'ish version of u-boot, which disables the
0009 * L2 cache. If your B3 silently fails to boot, u-boot is probably too
0010 * old. Either upgrade, or consider the following email:
0011 *
0012 * https://lists.debian.org/debian-arm/2012/08/msg00128.html
0013 */
0014
0015 /dts-v1/;
0016
0017 #include "kirkwood.dtsi"
0018 #include "kirkwood-6281.dtsi"
0019
0020 / {
0021 model = "Excito B3";
0022 compatible = "excito,b3", "marvell,kirkwood-88f6281", "marvell,kirkwood";
0023 memory { /* 512 MB */
0024 device_type = "memory";
0025 reg = <0x00000000 0x20000000>;
0026 };
0027
0028 chosen {
0029 bootargs = "console=ttyS0,115200n8 earlyprintk";
0030 stdout-path = &uart0;
0031 };
0032
0033 ocp@f1000000 {
0034 pinctrl: pin-controller@10000 {
0035 pmx_button_power: pmx-button-power {
0036 marvell,pins = "mpp39";
0037 marvell,function = "gpio";
0038 };
0039 pmx_led_green: pmx-led-green {
0040 marvell,pins = "mpp38";
0041 marvell,function = "gpio";
0042 };
0043 pmx_led_red: pmx-led-red {
0044 marvell,pins = "mpp41";
0045 marvell,function = "gpio";
0046 };
0047 pmx_led_blue: pmx-led-blue {
0048 marvell,pins = "mpp42";
0049 marvell,function = "gpio";
0050 };
0051 pmx_beeper: pmx-beeper {
0052 marvell,pins = "mpp40";
0053 marvell,function = "gpio";
0054 };
0055 };
0056
0057 spi@10600 {
0058 status = "okay";
0059
0060 m25p16@0 {
0061 #address-cells = <1>;
0062 #size-cells = <1>;
0063 compatible = "st,m25p16", "jedec,spi-nor";
0064 reg = <0>;
0065 spi-max-frequency = <40000000>;
0066 mode = <0>;
0067
0068 partition@0 {
0069 reg = <0x0 0xc0000>;
0070 label = "u-boot";
0071 };
0072
0073 partition@c0000 {
0074 reg = <0xc0000 0x20000>;
0075 label = "u-boot env";
0076 };
0077
0078 partition@e0000 {
0079 reg = <0xe0000 0x120000>;
0080 label = "data";
0081 };
0082 };
0083 };
0084
0085 i2c@11000 {
0086 status = "okay";
0087 /*
0088 * There is something on the bus at address 0x64.
0089 * Not yet identified what it is, maybe the eeprom
0090 * for the Atheros WiFi chip?
0091 */
0092 };
0093
0094
0095 serial@12000 {
0096 /* Internal on test pins, 3.3v TTL
0097 * UART0_RX = Testpoint 65
0098 * UART0_TX = Testpoint 66
0099 * See the Excito Wiki for more details.
0100 */
0101 status = "okay";
0102 };
0103
0104 sata@80000 {
0105 /* One internal, the second as eSATA */
0106 status = "okay";
0107 nr-ports = <2>;
0108 };
0109 };
0110
0111 gpio-leds {
0112 /*
0113 * There is one LED "port" on the front and the colours
0114 * mix together giving some interesting combinations.
0115 */
0116 compatible = "gpio-leds";
0117 pinctrl-0 = < &pmx_led_green &pmx_led_red
0118 &pmx_led_blue >;
0119 pinctrl-names = "default";
0120
0121 programming_led {
0122 label = "bubba3:green:programming";
0123 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
0124 default-state = "off";
0125 };
0126
0127 error_led {
0128 label = "bubba3:red:error";
0129 gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
0130 };
0131
0132 active_led {
0133 label = "bubba3:blue:active";
0134 gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
0135 };
0136 };
0137
0138 gpio-keys {
0139 compatible = "gpio-keys";
0140 pinctrl-0 = <&pmx_button_power>;
0141 pinctrl-names = "default";
0142
0143 power-button {
0144 /* On the back */
0145 label = "Power Button";
0146 linux,code = <KEY_POWER>;
0147 gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
0148 };
0149 };
0150
0151 beeper: beeper {
0152 /* 4KHz Piezoelectric buzzer */
0153 compatible = "gpio-beeper";
0154 pinctrl-0 = <&pmx_beeper>;
0155 pinctrl-names = "default";
0156 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
0157 };
0158 };
0159
0160 &mdio {
0161 status = "okay";
0162
0163 ethphy0: ethernet-phy@8 {
0164 device_type = "ethernet-phy";
0165 reg = <8>;
0166 };
0167
0168 ethphy1: ethernet-phy@24 {
0169 device_type = "ethernet-phy";
0170 reg = <24>;
0171 };
0172 };
0173
0174 ð0 {
0175 status = "okay";
0176 ethernet0-port@0 {
0177 phy-handle = <ðphy0>;
0178 };
0179 };
0180
0181 ð1 {
0182 status = "okay";
0183 ethernet1-port@0 {
0184 phy-handle = <ðphy1>;
0185 };
0186 };
0187
0188 /* Wifi model has Atheros chipset on pcie port */
0189 &pciec {
0190 status = "okay";
0191 };
0192
0193 &pcie0 {
0194 status = "okay";
0195 };