Linux Audio

Check our new training course

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