xref: /linux/arch/arm64/boot/dts/renesas/rz-smarc-common.dtsi (revision 3a39d672e7f48b8d6b91a09afa4b55352773b4b5)
1726fd781SBiju Das// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2726fd781SBiju Das/*
3726fd781SBiju Das * Device Tree Source for the RZ/{G2L,G2LC,V2L} SMARC EVK common parts
4726fd781SBiju Das *
5726fd781SBiju Das * Copyright (C) 2022 Renesas Electronics Corp.
6726fd781SBiju Das */
7726fd781SBiju Das
8726fd781SBiju Das#include <dt-bindings/gpio/gpio.h>
9726fd781SBiju Das#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
10726fd781SBiju Das
11726fd781SBiju Das/*
12726fd781SBiju Das * SSI-WM8978
13726fd781SBiju Das *
14726fd781SBiju Das * This command is required when Playback/Capture
15726fd781SBiju Das *
16726fd781SBiju Das *	amixer cset name='Left Input Mixer L2 Switch' on
17726fd781SBiju Das *	amixer cset name='Right Input Mixer R2 Switch' on
18726fd781SBiju Das *	amixer cset name='Headphone Playback Volume' 100
19726fd781SBiju Das *	amixer cset name='PCM Volume' 100%
20726fd781SBiju Das *	amixer cset name='Input PGA Volume' 25
21726fd781SBiju Das *
22726fd781SBiju Das */
23726fd781SBiju Das
24726fd781SBiju Das/ {
25726fd781SBiju Das	aliases {
26726fd781SBiju Das		serial0 = &scif0;
27726fd781SBiju Das		i2c0 = &i2c0;
28726fd781SBiju Das		i2c1 = &i2c1;
29726fd781SBiju Das	};
30726fd781SBiju Das
31726fd781SBiju Das	chosen {
32726fd781SBiju Das		stdout-path = "serial0:115200n8";
33726fd781SBiju Das	};
34726fd781SBiju Das
35726fd781SBiju Das	snd_rzg2l: sound {
36726fd781SBiju Das		compatible = "simple-audio-card";
37726fd781SBiju Das		simple-audio-card,format = "i2s";
38726fd781SBiju Das		simple-audio-card,bitclock-master = <&cpu_dai>;
39726fd781SBiju Das		simple-audio-card,frame-master = <&cpu_dai>;
40726fd781SBiju Das		simple-audio-card,mclk-fs = <256>;
41726fd781SBiju Das
42726fd781SBiju Das		simple-audio-card,widgets = "Microphone", "Microphone Jack";
43726fd781SBiju Das		simple-audio-card,routing =
44726fd781SBiju Das			    "L2", "Mic Bias",
45726fd781SBiju Das			    "R2", "Mic Bias",
46726fd781SBiju Das			    "Mic Bias", "Microphone Jack";
47726fd781SBiju Das
48726fd781SBiju Das		cpu_dai: simple-audio-card,cpu {
49726fd781SBiju Das		};
50726fd781SBiju Das
51726fd781SBiju Das		codec_dai: simple-audio-card,codec {
52*feab6a13SBiju Das			clocks = <&versa3 2>;
53726fd781SBiju Das			sound-dai = <&wm8978>;
54726fd781SBiju Das		};
55726fd781SBiju Das	};
56726fd781SBiju Das
57726fd781SBiju Das	vccq_sdhi1: regulator-vccq-sdhi1 {
58726fd781SBiju Das		compatible = "regulator-gpio";
59726fd781SBiju Das		regulator-name = "SDHI1 VccQ";
60726fd781SBiju Das		regulator-min-microvolt = <1800000>;
61726fd781SBiju Das		regulator-max-microvolt = <3300000>;
62726fd781SBiju Das		gpios-states = <1>;
63726fd781SBiju Das		states = <3300000 1>, <1800000 0>;
64726fd781SBiju Das	};
65*feab6a13SBiju Das
66*feab6a13SBiju Das	x1: x1-clock {
67*feab6a13SBiju Das		compatible = "fixed-clock";
68*feab6a13SBiju Das		#clock-cells = <0>;
69*feab6a13SBiju Das		clock-frequency = <24000000>;
70*feab6a13SBiju Das	};
71726fd781SBiju Das};
72726fd781SBiju Das
73726fd781SBiju Das&audio_clk1 {
74726fd781SBiju Das	clock-frequency = <11289600>;
75726fd781SBiju Das};
76726fd781SBiju Das
77726fd781SBiju Das&audio_clk2 {
78726fd781SBiju Das	clock-frequency = <12288000>;
79726fd781SBiju Das};
80726fd781SBiju Das
81726fd781SBiju Das&canfd {
82726fd781SBiju Das	pinctrl-0 = <&can0_pins &can1_pins>;
83726fd781SBiju Das	pinctrl-names = "default";
84726fd781SBiju Das	status = "okay";
85726fd781SBiju Das
86726fd781SBiju Das	channel0 {
87726fd781SBiju Das		status = "okay";
88726fd781SBiju Das	};
89726fd781SBiju Das
90726fd781SBiju Das	channel1 {
91726fd781SBiju Das		status = "okay";
92726fd781SBiju Das	};
93726fd781SBiju Das};
94726fd781SBiju Das
95726fd781SBiju Das&ehci0 {
96726fd781SBiju Das	dr_mode = "otg";
97726fd781SBiju Das	status = "okay";
98726fd781SBiju Das};
99726fd781SBiju Das
100726fd781SBiju Das&ehci1 {
101726fd781SBiju Das	status = "okay";
102726fd781SBiju Das};
103726fd781SBiju Das
104726fd781SBiju Das&hsusb {
105726fd781SBiju Das	dr_mode = "otg";
106726fd781SBiju Das	status = "okay";
107726fd781SBiju Das};
108726fd781SBiju Das
109726fd781SBiju Das&i2c0 {
110726fd781SBiju Das	pinctrl-0 = <&i2c0_pins>;
111726fd781SBiju Das	pinctrl-names = "default";
112726fd781SBiju Das
113726fd781SBiju Das	status = "okay";
114726fd781SBiju Das};
115726fd781SBiju Das
116726fd781SBiju Das&i2c1 {
117726fd781SBiju Das	pinctrl-0 = <&i2c1_pins>;
118726fd781SBiju Das	pinctrl-names = "default";
119726fd781SBiju Das
120726fd781SBiju Das	status = "okay";
121726fd781SBiju Das};
122726fd781SBiju Das
123726fd781SBiju Das&ohci0 {
124726fd781SBiju Das	dr_mode = "otg";
125726fd781SBiju Das	status = "okay";
126726fd781SBiju Das};
127726fd781SBiju Das
128726fd781SBiju Das&ohci1 {
129726fd781SBiju Das	status = "okay";
130726fd781SBiju Das};
131726fd781SBiju Das
132726fd781SBiju Das&phyrst {
133726fd781SBiju Das	status = "okay";
134726fd781SBiju Das};
135726fd781SBiju Das
136726fd781SBiju Das&scif0 {
137726fd781SBiju Das	pinctrl-0 = <&scif0_pins>;
138726fd781SBiju Das	pinctrl-names = "default";
139726fd781SBiju Das	status = "okay";
140726fd781SBiju Das};
141726fd781SBiju Das
142726fd781SBiju Das&sdhi1 {
143726fd781SBiju Das	pinctrl-0 = <&sdhi1_pins>;
144726fd781SBiju Das	pinctrl-1 = <&sdhi1_pins_uhs>;
145726fd781SBiju Das	pinctrl-names = "default", "state_uhs";
146726fd781SBiju Das
147726fd781SBiju Das	vmmc-supply = <&reg_3p3v>;
148726fd781SBiju Das	vqmmc-supply = <&vccq_sdhi1>;
149726fd781SBiju Das	bus-width = <4>;
150726fd781SBiju Das	sd-uhs-sdr50;
151726fd781SBiju Das	sd-uhs-sdr104;
152726fd781SBiju Das	status = "okay";
153726fd781SBiju Das};
154726fd781SBiju Das
155726fd781SBiju Das&spi1 {
156726fd781SBiju Das	pinctrl-0 = <&spi1_pins>;
157726fd781SBiju Das	pinctrl-names = "default";
158726fd781SBiju Das
159726fd781SBiju Das	status = "okay";
160726fd781SBiju Das};
161726fd781SBiju Das
162726fd781SBiju Das&usb2_phy0 {
163726fd781SBiju Das	pinctrl-0 = <&usb0_pins>;
164726fd781SBiju Das	pinctrl-names = "default";
165726fd781SBiju Das
166726fd781SBiju Das	vbus-supply = <&usb0_vbus_otg>;
167726fd781SBiju Das	status = "okay";
168726fd781SBiju Das};
169726fd781SBiju Das
170726fd781SBiju Das&usb2_phy1 {
171726fd781SBiju Das	pinctrl-0 = <&usb1_pins>;
172726fd781SBiju Das	pinctrl-names = "default";
173726fd781SBiju Das
174726fd781SBiju Das	status = "okay";
175726fd781SBiju Das};
176