Linux Audio

Check our new training course

Loading...
v4.17
 
  1/*
  2 * Device Tree Source for the armadillo 800 eva board
  3 *
  4 * Copyright (C) 2012 Renesas Solutions Corp.
  5 *
  6 * This file is licensed under the terms of the GNU General Public License
  7 * version 2.  This program is licensed "as is" without any warranty of any
  8 * kind, whether express or implied.
  9 */
 10
 11/dts-v1/;
 12#include "r8a7740.dtsi"
 13#include <dt-bindings/gpio/gpio.h>
 14#include <dt-bindings/input/input.h>
 15#include <dt-bindings/interrupt-controller/irq.h>
 16#include <dt-bindings/pwm/pwm.h>
 17
 18/ {
 19	model = "armadillo 800 eva";
 20	compatible = "renesas,armadillo800eva", "renesas,r8a7740";
 21
 22	aliases {
 23		serial0 = &scifa1;
 24	};
 25
 26	chosen {
 27		bootargs = "earlyprintk ignore_loglevel root=/dev/nfs ip=dhcp rw";
 28		stdout-path = "serial0:115200n8";
 29	};
 30
 31	memory@40000000 {
 32		device_type = "memory";
 33		reg = <0x40000000 0x20000000>;
 34	};
 35
 36	reg_3p3v: regulator-3p3v {
 37		compatible = "regulator-fixed";
 38		regulator-name = "fixed-3.3V";
 39		regulator-min-microvolt = <3300000>;
 40		regulator-max-microvolt = <3300000>;
 41		regulator-always-on;
 42		regulator-boot-on;
 43	};
 44
 45	vcc_sdhi0: regulator-vcc-sdhi0 {
 46		compatible = "regulator-fixed";
 47
 48		regulator-name = "SDHI0 Vcc";
 49		regulator-min-microvolt = <3300000>;
 50		regulator-max-microvolt = <3300000>;
 51
 52		gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
 53		enable-active-high;
 54	};
 55
 56	vccq_sdhi0: regulator-vccq-sdhi0 {
 57		compatible = "regulator-gpio";
 58
 59		regulator-name = "SDHI0 VccQ";
 60		regulator-min-microvolt = <1800000>;
 61		regulator-max-microvolt = <3300000>;
 62		vin-supply = <&vcc_sdhi0>;
 63
 64		enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
 65		gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
 66		states = <3300000 0
 67			  1800000 1>;
 68
 69		enable-active-high;
 70	};
 71
 72	reg_5p0v: regulator-5p0v {
 73		compatible = "regulator-fixed";
 74		regulator-name = "fixed-5.0V";
 75		regulator-min-microvolt = <5000000>;
 76		regulator-max-microvolt = <5000000>;
 77		regulator-always-on;
 78		regulator-boot-on;
 79	};
 80
 81	keyboard {
 82		compatible = "gpio-keys";
 83
 84		power-key {
 85			gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
 86			linux,code = <KEY_POWER>;
 87			label = "SW3";
 88			wakeup-source;
 89		};
 90
 91		back-key {
 92			gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
 93			linux,code = <KEY_BACK>;
 94			label = "SW4";
 95		};
 96
 97		menu-key {
 98			gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
 99			linux,code = <KEY_MENU>;
100			label = "SW5";
101		};
102
103		home-key {
104			gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
105			linux,code = <KEY_HOME>;
106			label = "SW6";
107		};
108	};
109
110	leds {
111		compatible = "gpio-leds";
112		led3 {
113			gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
114			label = "LED3";
115		};
116		led4 {
117			gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
118			label = "LED4";
119		};
120		led5 {
121			gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
122			label = "LED5";
123		};
124		led6 {
125			gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
126			label = "LED6";
127		};
128	};
129
130	i2c2: i2c-2 {
131		#address-cells = <1>;
132		#size-cells = <0>;
133		compatible = "i2c-gpio";
134		sda-gpios = <&pfc 208 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
135		scl-gpios = <&pfc 91 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
136		i2c-gpio,delay-us = <5>;
137	};
138
139	backlight {
140		compatible = "pwm-backlight";
141		pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
142		brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
143		default-brightness-level = <9>;
144		pinctrl-0 = <&backlight_pins>;
145		pinctrl-names = "default";
146		power-supply = <&reg_5p0v>;
147		enable-gpios = <&pfc 61 GPIO_ACTIVE_HIGH>;
148	};
149
150	sound {
151		compatible = "simple-audio-card";
152
153		simple-audio-card,format = "i2s";
154
155		simple-audio-card,cpu {
156			sound-dai = <&sh_fsi2 0>;
157			bitclock-inversion;
158		};
159
160		simple-audio-card,codec {
161			sound-dai = <&wm8978>;
162			bitclock-master;
163			frame-master;
164			system-clock-frequency = <12288000>;
165		};
166	};
167};
168
169&ether {
170	pinctrl-0 = <&ether_pins>;
171	pinctrl-names = "default";
172
173	phy-handle = <&phy0>;
174	status = "okay";
175
176	phy0: ethernet-phy@0 {
177		reg = <0>;
178	};
179};
180
181&extal1_clk {
182	clock-frequency = <24000000>;
183};
184&extal2_clk {
185	clock-frequency = <48000000>;
186};
187&fsibck_clk {
188	clock-frequency = <12288000>;
189};
190&cpg_clocks {
191	renesas,mode = <0x05>; /* MD_CK0 | MD_CK2 */
192};
193
194&cmt1 {
195	status = "okay";
196};
197
198&i2c0 {
199	status = "okay";
200	touchscreen@55 {
201		compatible = "sitronix,st1232";
202		reg = <0x55>;
203		interrupt-parent = <&irqpin1>;
204		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
205		pinctrl-0 = <&st1232_pins>;
206		pinctrl-names = "default";
207		gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
208	};
209
210	wm8978: codec@1a {
211		#sound-dai-cells = <0>;
212		compatible = "wlf,wm8978";
213		reg = <0x1a>;
214	};
215};
216
217&i2c2 {
218	status = "okay";
219	rtc@30 {
220		compatible = "sii,s35390a";
221		reg = <0x30>;
222	};
223};
224
225&pfc {
226	pinctrl-0 = <&lcd0_pins>;
227	pinctrl-names = "default";
228
229	ether_pins: ether {
230		groups = "gether_mii", "gether_int";
231		function = "gether";
232	};
233
234	scifa1_pins: scifa1 {
235		groups = "scifa1_data";
236		function = "scifa1";
237	};
238
239	st1232_pins: touchscreen {
240		groups = "intc_irq10";
241		function = "intc";
242	};
243
244	backlight_pins: backlight {
245		groups = "tpu0_to2_1";
246		function = "tpu0";
247	};
248
249	mmc0_pins: mmc0 {
250		groups = "mmc0_data8_1", "mmc0_ctrl_1";
251		function = "mmc0";
252	};
253
254	sdhi0_pins: sd0 {
255		groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
256		function = "sdhi0";
257	};
258
259	fsia_pins: sounda {
260		groups = "fsia_sclk_in", "fsia_mclk_out",
261			 "fsia_data_in_1", "fsia_data_out_0";
262		function = "fsia";
263	};
264
265	lcd0_pins: lcd0 {
266		groups = "lcd0_data24_0", "lcd0_lclk_1", "lcd0_sync";
267		function = "lcd0";
268	};
269
270	lcd0_mux {
271		/* DBGMD/LCDC0/FSIA MUX */
272		gpio-hog;
273		gpios = <176 0>;
274		output-high;
275	};
276};
277
278&tpu {
279	status = "okay";
280};
281
282&mmcif0 {
283	pinctrl-0 = <&mmc0_pins>;
284	pinctrl-names = "default";
285
286	vmmc-supply = <&reg_3p3v>;
287	bus-width = <8>;
288	non-removable;
289	status = "okay";
290};
291
292&scifa1 {
293	pinctrl-0 = <&scifa1_pins>;
294	pinctrl-names = "default";
295
296	status = "okay";
297};
298
299&sdhi0 {
300	pinctrl-0 = <&sdhi0_pins>;
301	pinctrl-names = "default";
302
303	vmmc-supply = <&vcc_sdhi0>;
304	vqmmc-supply = <&vccq_sdhi0>;
305	bus-width = <4>;
306	cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
307	status = "okay";
308};
309
310&sh_fsi2 {
311	pinctrl-0 = <&fsia_pins>;
312	pinctrl-names = "default";
313
314	status = "okay";
315};
316
317&tmu0 {
318	status = "okay";
319};
v5.4
  1// SPDX-License-Identifier: GPL-2.0
  2/*
  3 * Device Tree Source for the armadillo 800 eva board
  4 *
  5 * Copyright (C) 2012 Renesas Solutions Corp.
 
 
 
 
  6 */
  7
  8/dts-v1/;
  9#include "r8a7740.dtsi"
 10#include <dt-bindings/gpio/gpio.h>
 11#include <dt-bindings/input/input.h>
 12#include <dt-bindings/interrupt-controller/irq.h>
 13#include <dt-bindings/pwm/pwm.h>
 14
 15/ {
 16	model = "armadillo 800 eva";
 17	compatible = "renesas,armadillo800eva", "renesas,r8a7740";
 18
 19	aliases {
 20		serial0 = &scifa1;
 21	};
 22
 23	chosen {
 24		bootargs = "earlyprintk ignore_loglevel root=/dev/nfs ip=on rw";
 25		stdout-path = "serial0:115200n8";
 26	};
 27
 28	memory@40000000 {
 29		device_type = "memory";
 30		reg = <0x40000000 0x20000000>;
 31	};
 32
 33	reg_3p3v: regulator-3p3v {
 34		compatible = "regulator-fixed";
 35		regulator-name = "fixed-3.3V";
 36		regulator-min-microvolt = <3300000>;
 37		regulator-max-microvolt = <3300000>;
 38		regulator-always-on;
 39		regulator-boot-on;
 40	};
 41
 42	vcc_sdhi0: regulator-vcc-sdhi0 {
 43		compatible = "regulator-fixed";
 44
 45		regulator-name = "SDHI0 Vcc";
 46		regulator-min-microvolt = <3300000>;
 47		regulator-max-microvolt = <3300000>;
 48
 49		gpio = <&pfc 75 GPIO_ACTIVE_HIGH>;
 50		enable-active-high;
 51	};
 52
 53	vccq_sdhi0: regulator-vccq-sdhi0 {
 54		compatible = "regulator-gpio";
 55
 56		regulator-name = "SDHI0 VccQ";
 57		regulator-min-microvolt = <1800000>;
 58		regulator-max-microvolt = <3300000>;
 59		vin-supply = <&vcc_sdhi0>;
 60
 61		enable-gpio = <&pfc 74 GPIO_ACTIVE_HIGH>;
 62		gpios = <&pfc 17 GPIO_ACTIVE_HIGH>;
 63		states = <3300000 0
 64			  1800000 1>;
 65
 66		enable-active-high;
 67	};
 68
 69	reg_5p0v: regulator-5p0v {
 70		compatible = "regulator-fixed";
 71		regulator-name = "fixed-5.0V";
 72		regulator-min-microvolt = <5000000>;
 73		regulator-max-microvolt = <5000000>;
 74		regulator-always-on;
 75		regulator-boot-on;
 76	};
 77
 78	keyboard {
 79		compatible = "gpio-keys";
 80
 81		power-key {
 82			gpios = <&pfc 99 GPIO_ACTIVE_LOW>;
 83			linux,code = <KEY_POWER>;
 84			label = "SW3";
 85			wakeup-source;
 86		};
 87
 88		back-key {
 89			gpios = <&pfc 100 GPIO_ACTIVE_LOW>;
 90			linux,code = <KEY_BACK>;
 91			label = "SW4";
 92		};
 93
 94		menu-key {
 95			gpios = <&pfc 97 GPIO_ACTIVE_LOW>;
 96			linux,code = <KEY_MENU>;
 97			label = "SW5";
 98		};
 99
100		home-key {
101			gpios = <&pfc 98 GPIO_ACTIVE_LOW>;
102			linux,code = <KEY_HOME>;
103			label = "SW6";
104		};
105	};
106
107	leds {
108		compatible = "gpio-leds";
109		led3 {
110			gpios = <&pfc 102 GPIO_ACTIVE_HIGH>;
111			label = "LED3";
112		};
113		led4 {
114			gpios = <&pfc 111 GPIO_ACTIVE_HIGH>;
115			label = "LED4";
116		};
117		led5 {
118			gpios = <&pfc 110 GPIO_ACTIVE_HIGH>;
119			label = "LED5";
120		};
121		led6 {
122			gpios = <&pfc 177 GPIO_ACTIVE_HIGH>;
123			label = "LED6";
124		};
125	};
126
127	i2c2: i2c-2 {
128		#address-cells = <1>;
129		#size-cells = <0>;
130		compatible = "i2c-gpio";
131		sda-gpios = <&pfc 208 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
132		scl-gpios = <&pfc 91 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
133		i2c-gpio,delay-us = <5>;
134	};
135
136	backlight {
137		compatible = "pwm-backlight";
138		pwms = <&tpu 2 33333 PWM_POLARITY_INVERTED>;
139		brightness-levels = <0 1 2 4 8 16 32 64 128 255>;
140		default-brightness-level = <9>;
141		pinctrl-0 = <&backlight_pins>;
142		pinctrl-names = "default";
143		power-supply = <&reg_5p0v>;
144		enable-gpios = <&pfc 61 GPIO_ACTIVE_HIGH>;
145	};
146
147	sound {
148		compatible = "simple-audio-card";
149
150		simple-audio-card,format = "i2s";
151
152		simple-audio-card,cpu {
153			sound-dai = <&sh_fsi2 0>;
154			bitclock-inversion;
155		};
156
157		simple-audio-card,codec {
158			sound-dai = <&wm8978>;
159			bitclock-master;
160			frame-master;
161			system-clock-frequency = <12288000>;
162		};
163	};
164};
165
166&ether {
167	pinctrl-0 = <&ether_pins>;
168	pinctrl-names = "default";
169
170	phy-handle = <&phy0>;
171	status = "okay";
172
173	phy0: ethernet-phy@0 {
174		reg = <0>;
175	};
176};
177
178&extal1_clk {
179	clock-frequency = <24000000>;
180};
181&extal2_clk {
182	clock-frequency = <48000000>;
183};
184&fsibck_clk {
185	clock-frequency = <12288000>;
186};
187&cpg_clocks {
188	renesas,mode = <0x05>; /* MD_CK0 | MD_CK2 */
189};
190
191&cmt1 {
192	status = "okay";
193};
194
195&i2c0 {
196	status = "okay";
197	touchscreen@55 {
198		compatible = "sitronix,st1232";
199		reg = <0x55>;
200		interrupt-parent = <&irqpin1>;
201		interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
202		pinctrl-0 = <&st1232_pins>;
203		pinctrl-names = "default";
204		gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
205	};
206
207	wm8978: codec@1a {
208		#sound-dai-cells = <0>;
209		compatible = "wlf,wm8978";
210		reg = <0x1a>;
211	};
212};
213
214&i2c2 {
215	status = "okay";
216	rtc@30 {
217		compatible = "sii,s35390a";
218		reg = <0x30>;
219	};
220};
221
222&pfc {
223	pinctrl-0 = <&lcd0_pins>;
224	pinctrl-names = "default";
225
226	ether_pins: ether {
227		groups = "gether_mii", "gether_int";
228		function = "gether";
229	};
230
231	scifa1_pins: scifa1 {
232		groups = "scifa1_data";
233		function = "scifa1";
234	};
235
236	st1232_pins: touchscreen {
237		groups = "intc_irq10";
238		function = "intc";
239	};
240
241	backlight_pins: backlight {
242		groups = "tpu0_to2_1";
243		function = "tpu0";
244	};
245
246	mmc0_pins: mmc0 {
247		groups = "mmc0_data8_1", "mmc0_ctrl_1";
248		function = "mmc0";
249	};
250
251	sdhi0_pins: sd0 {
252		groups = "sdhi0_data4", "sdhi0_ctrl", "sdhi0_wp";
253		function = "sdhi0";
254	};
255
256	fsia_pins: sounda {
257		groups = "fsia_sclk_in", "fsia_mclk_out",
258			 "fsia_data_in_1", "fsia_data_out_0";
259		function = "fsia";
260	};
261
262	lcd0_pins: lcd0 {
263		groups = "lcd0_data24_0", "lcd0_lclk_1", "lcd0_sync";
264		function = "lcd0";
265	};
266
267	lcd0_mux {
268		/* DBGMD/LCDC0/FSIA MUX */
269		gpio-hog;
270		gpios = <176 0>;
271		output-high;
272	};
273};
274
275&tpu {
276	status = "okay";
277};
278
279&mmcif0 {
280	pinctrl-0 = <&mmc0_pins>;
281	pinctrl-names = "default";
282
283	vmmc-supply = <&reg_3p3v>;
284	bus-width = <8>;
285	non-removable;
286	status = "okay";
287};
288
289&scifa1 {
290	pinctrl-0 = <&scifa1_pins>;
291	pinctrl-names = "default";
292
293	status = "okay";
294};
295
296&sdhi0 {
297	pinctrl-0 = <&sdhi0_pins>;
298	pinctrl-names = "default";
299
300	vmmc-supply = <&vcc_sdhi0>;
301	vqmmc-supply = <&vccq_sdhi0>;
302	bus-width = <4>;
303	cd-gpios = <&pfc 167 GPIO_ACTIVE_LOW>;
304	status = "okay";
305};
306
307&sh_fsi2 {
308	pinctrl-0 = <&fsia_pins>;
309	pinctrl-names = "default";
310
311	status = "okay";
312};
313
314&tmu0 {
315	status = "okay";
316};