xref: /freebsd/sys/contrib/device-tree/src/arm64/mediatek/mt7622-rfb1.dts (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1c66ec88fSEmmanuel Vadot/*
2c66ec88fSEmmanuel Vadot * Copyright (c) 2017 MediaTek Inc.
3c66ec88fSEmmanuel Vadot * Author: Ming Huang <ming.huang@mediatek.com>
4c66ec88fSEmmanuel Vadot *	   Sean Wang <sean.wang@mediatek.com>
5c66ec88fSEmmanuel Vadot *
6c66ec88fSEmmanuel Vadot * SPDX-License-Identifier: (GPL-2.0 OR MIT)
7c66ec88fSEmmanuel Vadot */
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadot/dts-v1/;
10c66ec88fSEmmanuel Vadot#include <dt-bindings/input/input.h>
11c66ec88fSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
12c66ec88fSEmmanuel Vadot
13c66ec88fSEmmanuel Vadot#include "mt7622.dtsi"
14c66ec88fSEmmanuel Vadot#include "mt6380.dtsi"
15c66ec88fSEmmanuel Vadot
16c66ec88fSEmmanuel Vadot/ {
17c66ec88fSEmmanuel Vadot	model = "MediaTek MT7622 RFB1 board";
18f126890aSEmmanuel Vadot	chassis-type = "embedded";
19c66ec88fSEmmanuel Vadot	compatible = "mediatek,mt7622-rfb1", "mediatek,mt7622";
20c66ec88fSEmmanuel Vadot
21c66ec88fSEmmanuel Vadot	aliases {
22c66ec88fSEmmanuel Vadot		serial0 = &uart0;
23c66ec88fSEmmanuel Vadot	};
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot	chosen {
26c66ec88fSEmmanuel Vadot		stdout-path = "serial0:115200n8";
27c66ec88fSEmmanuel Vadot		bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512";
28c66ec88fSEmmanuel Vadot	};
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot	cpus {
31c66ec88fSEmmanuel Vadot		cpu@0 {
32c66ec88fSEmmanuel Vadot			proc-supply = <&mt6380_vcpu_reg>;
33c66ec88fSEmmanuel Vadot			sram-supply = <&mt6380_vm_reg>;
34c66ec88fSEmmanuel Vadot		};
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot		cpu@1 {
37c66ec88fSEmmanuel Vadot			proc-supply = <&mt6380_vcpu_reg>;
38c66ec88fSEmmanuel Vadot			sram-supply = <&mt6380_vm_reg>;
39c66ec88fSEmmanuel Vadot		};
40c66ec88fSEmmanuel Vadot	};
41c66ec88fSEmmanuel Vadot
42c66ec88fSEmmanuel Vadot	gpio-keys {
43c66ec88fSEmmanuel Vadot		compatible = "gpio-keys";
44c66ec88fSEmmanuel Vadot
45b97ee269SEmmanuel Vadot		key-factory {
46c66ec88fSEmmanuel Vadot			label = "factory";
47c66ec88fSEmmanuel Vadot			linux,code = <BTN_0>;
48c66ec88fSEmmanuel Vadot			gpios = <&pio 0 0>;
49c66ec88fSEmmanuel Vadot		};
50c66ec88fSEmmanuel Vadot
51b97ee269SEmmanuel Vadot		key-wps {
52c66ec88fSEmmanuel Vadot			label = "wps";
53c66ec88fSEmmanuel Vadot			linux,code = <KEY_WPS_BUTTON>;
54c66ec88fSEmmanuel Vadot			gpios = <&pio 102 0>;
55c66ec88fSEmmanuel Vadot		};
56c66ec88fSEmmanuel Vadot	};
57c66ec88fSEmmanuel Vadot
58*84943d6fSEmmanuel Vadot	memory@40000000 {
59c66ec88fSEmmanuel Vadot		reg = <0 0x40000000 0 0x20000000>;
60c66ec88fSEmmanuel Vadot	};
61c66ec88fSEmmanuel Vadot
62c66ec88fSEmmanuel Vadot	reg_1p8v: regulator-1p8v {
63c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
64c66ec88fSEmmanuel Vadot		regulator-name = "fixed-1.8V";
65c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
66c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
67c66ec88fSEmmanuel Vadot		regulator-always-on;
68c66ec88fSEmmanuel Vadot	};
69c66ec88fSEmmanuel Vadot
70c66ec88fSEmmanuel Vadot	reg_3p3v: regulator-3p3v {
71c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
72c66ec88fSEmmanuel Vadot		regulator-name = "fixed-3.3V";
73c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
74c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
75c66ec88fSEmmanuel Vadot		regulator-boot-on;
76c66ec88fSEmmanuel Vadot		regulator-always-on;
77c66ec88fSEmmanuel Vadot	};
78c66ec88fSEmmanuel Vadot
79c66ec88fSEmmanuel Vadot	reg_5v: regulator-5v {
80c66ec88fSEmmanuel Vadot		compatible = "regulator-fixed";
81c66ec88fSEmmanuel Vadot		regulator-name = "fixed-5V";
82c66ec88fSEmmanuel Vadot		regulator-min-microvolt = <5000000>;
83c66ec88fSEmmanuel Vadot		regulator-max-microvolt = <5000000>;
84c66ec88fSEmmanuel Vadot		regulator-boot-on;
85c66ec88fSEmmanuel Vadot		regulator-always-on;
86c66ec88fSEmmanuel Vadot	};
87c66ec88fSEmmanuel Vadot};
88c66ec88fSEmmanuel Vadot
89c66ec88fSEmmanuel Vadot&bch {
90c66ec88fSEmmanuel Vadot	status = "disabled";
91c66ec88fSEmmanuel Vadot};
92c66ec88fSEmmanuel Vadot
93c66ec88fSEmmanuel Vadot&btif {
94c66ec88fSEmmanuel Vadot	status = "okay";
95c66ec88fSEmmanuel Vadot};
96c66ec88fSEmmanuel Vadot
97c66ec88fSEmmanuel Vadot&cir {
98c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
99c66ec88fSEmmanuel Vadot	pinctrl-0 = <&irrx_pins>;
100c66ec88fSEmmanuel Vadot	status = "okay";
101c66ec88fSEmmanuel Vadot};
102c66ec88fSEmmanuel Vadot
103c66ec88fSEmmanuel Vadot&eth {
104c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
105c66ec88fSEmmanuel Vadot	pinctrl-0 = <&eth_pins>;
106c66ec88fSEmmanuel Vadot	status = "okay";
107c66ec88fSEmmanuel Vadot
1086be33864SEmmanuel Vadot	gmac0: mac@0 {
109c66ec88fSEmmanuel Vadot		compatible = "mediatek,eth-mac";
1106be33864SEmmanuel Vadot		reg = <0>;
1116be33864SEmmanuel Vadot		phy-mode = "2500base-x";
1126be33864SEmmanuel Vadot
1136be33864SEmmanuel Vadot		fixed-link {
1146be33864SEmmanuel Vadot			speed = <2500>;
1156be33864SEmmanuel Vadot			full-duplex;
1166be33864SEmmanuel Vadot			pause;
1176be33864SEmmanuel Vadot		};
118c66ec88fSEmmanuel Vadot	};
119c66ec88fSEmmanuel Vadot
120c66ec88fSEmmanuel Vadot	mdio-bus {
121c66ec88fSEmmanuel Vadot		#address-cells = <1>;
122c66ec88fSEmmanuel Vadot		#size-cells = <0>;
123c66ec88fSEmmanuel Vadot
1246be33864SEmmanuel Vadot		switch@0 {
1256be33864SEmmanuel Vadot			compatible = "mediatek,mt7531";
1266be33864SEmmanuel Vadot			reg = <0>;
1276be33864SEmmanuel Vadot			reset-gpios = <&pio 54 0>;
1286be33864SEmmanuel Vadot
1296be33864SEmmanuel Vadot			ports {
1306be33864SEmmanuel Vadot				#address-cells = <1>;
1316be33864SEmmanuel Vadot				#size-cells = <0>;
1326be33864SEmmanuel Vadot
1336be33864SEmmanuel Vadot				port@0 {
1346be33864SEmmanuel Vadot					reg = <0>;
1356be33864SEmmanuel Vadot					label = "lan0";
136c66ec88fSEmmanuel Vadot				};
1376be33864SEmmanuel Vadot
1386be33864SEmmanuel Vadot				port@1 {
1396be33864SEmmanuel Vadot					reg = <1>;
1406be33864SEmmanuel Vadot					label = "lan1";
1416be33864SEmmanuel Vadot				};
1426be33864SEmmanuel Vadot
1436be33864SEmmanuel Vadot				port@2 {
1446be33864SEmmanuel Vadot					reg = <2>;
1456be33864SEmmanuel Vadot					label = "lan2";
1466be33864SEmmanuel Vadot				};
1476be33864SEmmanuel Vadot
1486be33864SEmmanuel Vadot				port@3 {
1496be33864SEmmanuel Vadot					reg = <3>;
1506be33864SEmmanuel Vadot					label = "lan3";
1516be33864SEmmanuel Vadot				};
1526be33864SEmmanuel Vadot
1536be33864SEmmanuel Vadot				port@4 {
1546be33864SEmmanuel Vadot					reg = <4>;
1556be33864SEmmanuel Vadot					label = "wan";
1566be33864SEmmanuel Vadot				};
1576be33864SEmmanuel Vadot
1586be33864SEmmanuel Vadot				port@6 {
1596be33864SEmmanuel Vadot					reg = <6>;
1606be33864SEmmanuel Vadot					label = "cpu";
1616be33864SEmmanuel Vadot					ethernet = <&gmac0>;
1626be33864SEmmanuel Vadot					phy-mode = "2500base-x";
1636be33864SEmmanuel Vadot
1646be33864SEmmanuel Vadot					fixed-link {
1656be33864SEmmanuel Vadot						speed = <2500>;
1666be33864SEmmanuel Vadot						full-duplex;
1676be33864SEmmanuel Vadot						pause;
1686be33864SEmmanuel Vadot					};
1696be33864SEmmanuel Vadot				};
1706be33864SEmmanuel Vadot			};
1716be33864SEmmanuel Vadot		};
1726be33864SEmmanuel Vadot
173c66ec88fSEmmanuel Vadot	};
174c66ec88fSEmmanuel Vadot};
175c66ec88fSEmmanuel Vadot
176c66ec88fSEmmanuel Vadot&i2c1 {
177c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
178c66ec88fSEmmanuel Vadot	pinctrl-0 = <&i2c1_pins>;
179c66ec88fSEmmanuel Vadot	status = "okay";
180c66ec88fSEmmanuel Vadot};
181c66ec88fSEmmanuel Vadot
182c66ec88fSEmmanuel Vadot&i2c2 {
183c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
184c66ec88fSEmmanuel Vadot	pinctrl-0 = <&i2c2_pins>;
185c66ec88fSEmmanuel Vadot	status = "okay";
186c66ec88fSEmmanuel Vadot};
187c66ec88fSEmmanuel Vadot
188c66ec88fSEmmanuel Vadot&mmc0 {
189c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "state_uhs";
190c66ec88fSEmmanuel Vadot	pinctrl-0 = <&emmc_pins_default>;
191c66ec88fSEmmanuel Vadot	pinctrl-1 = <&emmc_pins_uhs>;
192c66ec88fSEmmanuel Vadot	status = "okay";
193c66ec88fSEmmanuel Vadot	bus-width = <8>;
194c66ec88fSEmmanuel Vadot	max-frequency = <50000000>;
195c66ec88fSEmmanuel Vadot	cap-mmc-highspeed;
196c66ec88fSEmmanuel Vadot	mmc-hs200-1_8v;
197c66ec88fSEmmanuel Vadot	vmmc-supply = <&reg_3p3v>;
198c66ec88fSEmmanuel Vadot	vqmmc-supply = <&reg_1p8v>;
199c66ec88fSEmmanuel Vadot	assigned-clocks = <&topckgen CLK_TOP_MSDC30_0_SEL>;
200c66ec88fSEmmanuel Vadot	assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
201c66ec88fSEmmanuel Vadot	non-removable;
202c66ec88fSEmmanuel Vadot};
203c66ec88fSEmmanuel Vadot
204c66ec88fSEmmanuel Vadot&mmc1 {
205c66ec88fSEmmanuel Vadot	pinctrl-names = "default", "state_uhs";
206c66ec88fSEmmanuel Vadot	pinctrl-0 = <&sd0_pins_default>;
207c66ec88fSEmmanuel Vadot	pinctrl-1 = <&sd0_pins_uhs>;
208c66ec88fSEmmanuel Vadot	status = "okay";
209c66ec88fSEmmanuel Vadot	bus-width = <4>;
210c66ec88fSEmmanuel Vadot	max-frequency = <50000000>;
211c66ec88fSEmmanuel Vadot	cap-sd-highspeed;
212c66ec88fSEmmanuel Vadot	cd-gpios = <&pio 81 GPIO_ACTIVE_LOW>;
213c66ec88fSEmmanuel Vadot	vmmc-supply = <&reg_3p3v>;
214c66ec88fSEmmanuel Vadot	vqmmc-supply = <&reg_3p3v>;
215c66ec88fSEmmanuel Vadot	assigned-clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>;
216c66ec88fSEmmanuel Vadot	assigned-clock-parents = <&topckgen CLK_TOP_UNIV48M>;
217c66ec88fSEmmanuel Vadot};
218c66ec88fSEmmanuel Vadot
219c66ec88fSEmmanuel Vadot&nandc {
220c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
221c66ec88fSEmmanuel Vadot	pinctrl-0 = <&parallel_nand_pins>;
222c66ec88fSEmmanuel Vadot	status = "disabled";
223c66ec88fSEmmanuel Vadot};
224c66ec88fSEmmanuel Vadot
225c66ec88fSEmmanuel Vadot&nor_flash {
226c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
227c66ec88fSEmmanuel Vadot	pinctrl-0 = <&spi_nor_pins>;
228c66ec88fSEmmanuel Vadot	status = "disabled";
229c66ec88fSEmmanuel Vadot
230c66ec88fSEmmanuel Vadot	flash@0 {
231c66ec88fSEmmanuel Vadot		compatible = "jedec,spi-nor";
232c66ec88fSEmmanuel Vadot		reg = <0>;
233c66ec88fSEmmanuel Vadot	};
234c66ec88fSEmmanuel Vadot};
235c66ec88fSEmmanuel Vadot
2368cc087a1SEmmanuel Vadot&pcie0 {
237c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
238c66ec88fSEmmanuel Vadot	pinctrl-0 = <&pcie0_pins>;
239c66ec88fSEmmanuel Vadot	status = "okay";
240c66ec88fSEmmanuel Vadot};
241c66ec88fSEmmanuel Vadot
242c66ec88fSEmmanuel Vadot&pio {
243c66ec88fSEmmanuel Vadot	/* eMMC is shared pin with parallel NAND */
244c66ec88fSEmmanuel Vadot	emmc_pins_default: emmc-pins-default {
245c66ec88fSEmmanuel Vadot		mux {
246c66ec88fSEmmanuel Vadot			function = "emmc", "emmc_rst";
247c66ec88fSEmmanuel Vadot			groups = "emmc";
248c66ec88fSEmmanuel Vadot		};
249c66ec88fSEmmanuel Vadot
250c66ec88fSEmmanuel Vadot		/* "NDL0","NDL1","NDL2","NDL3","NDL4","NDL5","NDL6","NDL7",
251c66ec88fSEmmanuel Vadot		 * "NRB","NCLE" pins are used as DAT0,DAT1,DAT2,DAT3,DAT4,
252c66ec88fSEmmanuel Vadot		 * DAT5,DAT6,DAT7,CMD,CLK for eMMC respectively
253c66ec88fSEmmanuel Vadot		 */
254c66ec88fSEmmanuel Vadot		conf-cmd-dat {
255c66ec88fSEmmanuel Vadot			pins = "NDL0", "NDL1", "NDL2",
256c66ec88fSEmmanuel Vadot			       "NDL3", "NDL4", "NDL5",
257c66ec88fSEmmanuel Vadot			       "NDL6", "NDL7", "NRB";
258c66ec88fSEmmanuel Vadot			input-enable;
259c66ec88fSEmmanuel Vadot			bias-pull-up;
260c66ec88fSEmmanuel Vadot		};
261c66ec88fSEmmanuel Vadot
262c66ec88fSEmmanuel Vadot		conf-clk {
263c66ec88fSEmmanuel Vadot			pins = "NCLE";
264c66ec88fSEmmanuel Vadot			bias-pull-down;
265c66ec88fSEmmanuel Vadot		};
266c66ec88fSEmmanuel Vadot	};
267c66ec88fSEmmanuel Vadot
268c66ec88fSEmmanuel Vadot	emmc_pins_uhs: emmc-pins-uhs {
269c66ec88fSEmmanuel Vadot		mux {
270c66ec88fSEmmanuel Vadot			function = "emmc";
271c66ec88fSEmmanuel Vadot			groups = "emmc";
272c66ec88fSEmmanuel Vadot		};
273c66ec88fSEmmanuel Vadot
274c66ec88fSEmmanuel Vadot		conf-cmd-dat {
275c66ec88fSEmmanuel Vadot			pins = "NDL0", "NDL1", "NDL2",
276c66ec88fSEmmanuel Vadot			       "NDL3", "NDL4", "NDL5",
277c66ec88fSEmmanuel Vadot			       "NDL6", "NDL7", "NRB";
278c66ec88fSEmmanuel Vadot			input-enable;
279c66ec88fSEmmanuel Vadot			drive-strength = <4>;
280c66ec88fSEmmanuel Vadot			bias-pull-up;
281c66ec88fSEmmanuel Vadot		};
282c66ec88fSEmmanuel Vadot
283c66ec88fSEmmanuel Vadot		conf-clk {
284c66ec88fSEmmanuel Vadot			pins = "NCLE";
285c66ec88fSEmmanuel Vadot			drive-strength = <4>;
286c66ec88fSEmmanuel Vadot			bias-pull-down;
287c66ec88fSEmmanuel Vadot		};
288c66ec88fSEmmanuel Vadot	};
289c66ec88fSEmmanuel Vadot
290c66ec88fSEmmanuel Vadot	eth_pins: eth-pins {
291c66ec88fSEmmanuel Vadot		mux {
292c66ec88fSEmmanuel Vadot			function = "eth";
293c66ec88fSEmmanuel Vadot			groups = "mdc_mdio", "rgmii_via_gmac2";
294c66ec88fSEmmanuel Vadot		};
295c66ec88fSEmmanuel Vadot	};
296c66ec88fSEmmanuel Vadot
297c66ec88fSEmmanuel Vadot	i2c1_pins: i2c1-pins {
298c66ec88fSEmmanuel Vadot		mux {
299c66ec88fSEmmanuel Vadot			function = "i2c";
300c66ec88fSEmmanuel Vadot			groups = "i2c1_0";
301c66ec88fSEmmanuel Vadot		};
302c66ec88fSEmmanuel Vadot	};
303c66ec88fSEmmanuel Vadot
304c66ec88fSEmmanuel Vadot	i2c2_pins: i2c2-pins {
305c66ec88fSEmmanuel Vadot		mux {
306c66ec88fSEmmanuel Vadot			function = "i2c";
307c66ec88fSEmmanuel Vadot			groups = "i2c2_0";
308c66ec88fSEmmanuel Vadot		};
309c66ec88fSEmmanuel Vadot	};
310c66ec88fSEmmanuel Vadot
311c66ec88fSEmmanuel Vadot	i2s1_pins: i2s1-pins {
312c66ec88fSEmmanuel Vadot		mux {
313c66ec88fSEmmanuel Vadot			function = "i2s";
314c66ec88fSEmmanuel Vadot			groups = "i2s_out_mclk_bclk_ws",
315c66ec88fSEmmanuel Vadot				 "i2s1_in_data",
316c66ec88fSEmmanuel Vadot				 "i2s1_out_data";
317c66ec88fSEmmanuel Vadot		};
318c66ec88fSEmmanuel Vadot
319c66ec88fSEmmanuel Vadot		conf {
320c66ec88fSEmmanuel Vadot			pins = "I2S1_IN", "I2S1_OUT", "I2S_BCLK",
321c66ec88fSEmmanuel Vadot			       "I2S_WS", "I2S_MCLK";
322c66ec88fSEmmanuel Vadot			drive-strength = <12>;
323c66ec88fSEmmanuel Vadot			bias-pull-down;
324c66ec88fSEmmanuel Vadot		};
325c66ec88fSEmmanuel Vadot	};
326c66ec88fSEmmanuel Vadot
327c66ec88fSEmmanuel Vadot	irrx_pins: irrx-pins {
328c66ec88fSEmmanuel Vadot		mux {
329c66ec88fSEmmanuel Vadot			function = "ir";
330c66ec88fSEmmanuel Vadot			groups = "ir_1_rx";
331c66ec88fSEmmanuel Vadot		};
332c66ec88fSEmmanuel Vadot	};
333c66ec88fSEmmanuel Vadot
334c66ec88fSEmmanuel Vadot	irtx_pins: irtx-pins {
335c66ec88fSEmmanuel Vadot		mux {
336c66ec88fSEmmanuel Vadot			function = "ir";
337c66ec88fSEmmanuel Vadot			groups = "ir_1_tx";
338c66ec88fSEmmanuel Vadot		};
339c66ec88fSEmmanuel Vadot	};
340c66ec88fSEmmanuel Vadot
341c66ec88fSEmmanuel Vadot	/* Parallel nand is shared pin with eMMC */
342c66ec88fSEmmanuel Vadot	parallel_nand_pins: parallel-nand-pins {
343c66ec88fSEmmanuel Vadot		mux {
344c66ec88fSEmmanuel Vadot			function = "flash";
345c66ec88fSEmmanuel Vadot			groups = "par_nand";
346c66ec88fSEmmanuel Vadot		};
347c66ec88fSEmmanuel Vadot	};
348c66ec88fSEmmanuel Vadot
349c66ec88fSEmmanuel Vadot	pcie0_pins: pcie0-pins {
350c66ec88fSEmmanuel Vadot		mux {
351c66ec88fSEmmanuel Vadot			function = "pcie";
352c66ec88fSEmmanuel Vadot			groups = "pcie0_pad_perst",
353c66ec88fSEmmanuel Vadot				 "pcie0_1_waken",
354c66ec88fSEmmanuel Vadot				 "pcie0_1_clkreq";
355c66ec88fSEmmanuel Vadot		};
356c66ec88fSEmmanuel Vadot	};
357c66ec88fSEmmanuel Vadot
358c66ec88fSEmmanuel Vadot	pcie1_pins: pcie1-pins {
359c66ec88fSEmmanuel Vadot		mux {
360c66ec88fSEmmanuel Vadot			function = "pcie";
361c66ec88fSEmmanuel Vadot			groups = "pcie1_pad_perst",
362c66ec88fSEmmanuel Vadot				 "pcie1_0_waken",
363c66ec88fSEmmanuel Vadot				 "pcie1_0_clkreq";
364c66ec88fSEmmanuel Vadot		};
365c66ec88fSEmmanuel Vadot	};
366c66ec88fSEmmanuel Vadot
367c66ec88fSEmmanuel Vadot	pmic_bus_pins: pmic-bus-pins {
368c66ec88fSEmmanuel Vadot		mux {
369c66ec88fSEmmanuel Vadot			function = "pmic";
370c66ec88fSEmmanuel Vadot			groups = "pmic_bus";
371c66ec88fSEmmanuel Vadot		};
372c66ec88fSEmmanuel Vadot	};
373c66ec88fSEmmanuel Vadot
374c66ec88fSEmmanuel Vadot	pwm7_pins: pwm1-2-pins {
375c66ec88fSEmmanuel Vadot		mux {
376c66ec88fSEmmanuel Vadot			function = "pwm";
377c66ec88fSEmmanuel Vadot			groups = "pwm_ch7_2";
378c66ec88fSEmmanuel Vadot		};
379c66ec88fSEmmanuel Vadot	};
380c66ec88fSEmmanuel Vadot
381c66ec88fSEmmanuel Vadot	wled_pins: wled-pins {
382c66ec88fSEmmanuel Vadot		mux {
383c66ec88fSEmmanuel Vadot			function = "led";
384c66ec88fSEmmanuel Vadot			groups = "wled";
385c66ec88fSEmmanuel Vadot		};
386c66ec88fSEmmanuel Vadot	};
387c66ec88fSEmmanuel Vadot
388c66ec88fSEmmanuel Vadot	sd0_pins_default: sd0-pins-default {
389c66ec88fSEmmanuel Vadot		mux {
390c66ec88fSEmmanuel Vadot			function = "sd";
391c66ec88fSEmmanuel Vadot			groups = "sd_0";
392c66ec88fSEmmanuel Vadot		};
393c66ec88fSEmmanuel Vadot
394c66ec88fSEmmanuel Vadot		/* "I2S2_OUT, "I2S4_IN"", "I2S3_IN", "I2S2_IN",
395c66ec88fSEmmanuel Vadot		 *  "I2S4_OUT", "I2S3_OUT" are used as DAT0, DAT1,
396c66ec88fSEmmanuel Vadot		 *  DAT2, DAT3, CMD, CLK for SD respectively.
397c66ec88fSEmmanuel Vadot		 */
398c66ec88fSEmmanuel Vadot		conf-cmd-data {
399c66ec88fSEmmanuel Vadot			pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
400c66ec88fSEmmanuel Vadot			       "I2S2_IN","I2S4_OUT";
401c66ec88fSEmmanuel Vadot			input-enable;
402c66ec88fSEmmanuel Vadot			drive-strength = <8>;
403c66ec88fSEmmanuel Vadot			bias-pull-up;
404c66ec88fSEmmanuel Vadot		};
405c66ec88fSEmmanuel Vadot		conf-clk {
406c66ec88fSEmmanuel Vadot			pins = "I2S3_OUT";
407c66ec88fSEmmanuel Vadot			drive-strength = <12>;
408c66ec88fSEmmanuel Vadot			bias-pull-down;
409c66ec88fSEmmanuel Vadot		};
410c66ec88fSEmmanuel Vadot		conf-cd {
411c66ec88fSEmmanuel Vadot			pins = "TXD3";
412c66ec88fSEmmanuel Vadot			bias-pull-up;
413c66ec88fSEmmanuel Vadot		};
414c66ec88fSEmmanuel Vadot	};
415c66ec88fSEmmanuel Vadot
416c66ec88fSEmmanuel Vadot	sd0_pins_uhs: sd0-pins-uhs {
417c66ec88fSEmmanuel Vadot		mux {
418c66ec88fSEmmanuel Vadot			function = "sd";
419c66ec88fSEmmanuel Vadot			groups = "sd_0";
420c66ec88fSEmmanuel Vadot		};
421c66ec88fSEmmanuel Vadot
422c66ec88fSEmmanuel Vadot		conf-cmd-data {
423c66ec88fSEmmanuel Vadot			pins = "I2S2_OUT", "I2S4_IN", "I2S3_IN",
424c66ec88fSEmmanuel Vadot			       "I2S2_IN","I2S4_OUT";
425c66ec88fSEmmanuel Vadot			input-enable;
426c66ec88fSEmmanuel Vadot			bias-pull-up;
427c66ec88fSEmmanuel Vadot		};
428c66ec88fSEmmanuel Vadot
429c66ec88fSEmmanuel Vadot		conf-clk {
430c66ec88fSEmmanuel Vadot			pins = "I2S3_OUT";
431c66ec88fSEmmanuel Vadot			bias-pull-down;
432c66ec88fSEmmanuel Vadot		};
433c66ec88fSEmmanuel Vadot	};
434c66ec88fSEmmanuel Vadot
435c66ec88fSEmmanuel Vadot	/* Serial NAND is shared pin with SPI-NOR */
436c66ec88fSEmmanuel Vadot	serial_nand_pins: serial-nand-pins {
437c66ec88fSEmmanuel Vadot		mux {
438c66ec88fSEmmanuel Vadot			function = "flash";
439c66ec88fSEmmanuel Vadot			groups = "snfi";
440c66ec88fSEmmanuel Vadot		};
441c66ec88fSEmmanuel Vadot	};
442c66ec88fSEmmanuel Vadot
443c66ec88fSEmmanuel Vadot	spic0_pins: spic0-pins {
444c66ec88fSEmmanuel Vadot		mux {
445c66ec88fSEmmanuel Vadot			function = "spi";
446c66ec88fSEmmanuel Vadot			groups = "spic0_0";
447c66ec88fSEmmanuel Vadot		};
448c66ec88fSEmmanuel Vadot	};
449c66ec88fSEmmanuel Vadot
450c66ec88fSEmmanuel Vadot	spic1_pins: spic1-pins {
451c66ec88fSEmmanuel Vadot		mux {
452c66ec88fSEmmanuel Vadot			function = "spi";
453c66ec88fSEmmanuel Vadot			groups = "spic1_0";
454c66ec88fSEmmanuel Vadot		};
455c66ec88fSEmmanuel Vadot	};
456c66ec88fSEmmanuel Vadot
457c66ec88fSEmmanuel Vadot	/* SPI-NOR is shared pin with serial NAND */
458c66ec88fSEmmanuel Vadot	spi_nor_pins: spi-nor-pins {
459c66ec88fSEmmanuel Vadot		mux {
460c66ec88fSEmmanuel Vadot			function = "flash";
461c66ec88fSEmmanuel Vadot			groups = "spi_nor";
462c66ec88fSEmmanuel Vadot		};
463c66ec88fSEmmanuel Vadot	};
464c66ec88fSEmmanuel Vadot
465c66ec88fSEmmanuel Vadot	/* serial NAND is shared pin with SPI-NOR */
466c66ec88fSEmmanuel Vadot	serial_nand_pins: serial-nand-pins {
467c66ec88fSEmmanuel Vadot		mux {
468c66ec88fSEmmanuel Vadot			function = "flash";
469c66ec88fSEmmanuel Vadot			groups = "snfi";
470c66ec88fSEmmanuel Vadot		};
471c66ec88fSEmmanuel Vadot	};
472c66ec88fSEmmanuel Vadot
473c66ec88fSEmmanuel Vadot	uart0_pins: uart0-pins {
474c66ec88fSEmmanuel Vadot		mux {
475c66ec88fSEmmanuel Vadot			function = "uart";
476c66ec88fSEmmanuel Vadot			groups = "uart0_0_tx_rx" ;
477c66ec88fSEmmanuel Vadot		};
478c66ec88fSEmmanuel Vadot	};
479c66ec88fSEmmanuel Vadot
480c66ec88fSEmmanuel Vadot	uart2_pins: uart2-pins {
481c66ec88fSEmmanuel Vadot		mux {
482c66ec88fSEmmanuel Vadot			function = "uart";
483c66ec88fSEmmanuel Vadot			groups = "uart2_1_tx_rx" ;
484c66ec88fSEmmanuel Vadot		};
485c66ec88fSEmmanuel Vadot	};
486c66ec88fSEmmanuel Vadot
487c66ec88fSEmmanuel Vadot	watchdog_pins: watchdog-pins {
488c66ec88fSEmmanuel Vadot		mux {
489c66ec88fSEmmanuel Vadot			function = "watchdog";
490c66ec88fSEmmanuel Vadot			groups = "watchdog";
491c66ec88fSEmmanuel Vadot		};
492c66ec88fSEmmanuel Vadot	};
4932eb4d8dcSEmmanuel Vadot
4942eb4d8dcSEmmanuel Vadot	wmac_pins: wmac-pins {
4952eb4d8dcSEmmanuel Vadot		mux {
4962eb4d8dcSEmmanuel Vadot			function = "antsel";
4972eb4d8dcSEmmanuel Vadot			groups = "antsel0", "antsel1", "antsel2", "antsel3",
4982eb4d8dcSEmmanuel Vadot				 "antsel4", "antsel5", "antsel6", "antsel7",
4992eb4d8dcSEmmanuel Vadot				 "antsel8", "antsel9", "antsel12", "antsel13",
5002eb4d8dcSEmmanuel Vadot				 "antsel14", "antsel15", "antsel16", "antsel17";
5012eb4d8dcSEmmanuel Vadot		};
5022eb4d8dcSEmmanuel Vadot	};
503c66ec88fSEmmanuel Vadot};
504c66ec88fSEmmanuel Vadot
505c66ec88fSEmmanuel Vadot&pwm {
506c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
507c66ec88fSEmmanuel Vadot	pinctrl-0 = <&pwm7_pins>;
508c66ec88fSEmmanuel Vadot	status = "okay";
509c66ec88fSEmmanuel Vadot};
510c66ec88fSEmmanuel Vadot
511c66ec88fSEmmanuel Vadot&pwrap {
512c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
513c66ec88fSEmmanuel Vadot	pinctrl-0 = <&pmic_bus_pins>;
514c66ec88fSEmmanuel Vadot
515c66ec88fSEmmanuel Vadot	status = "okay";
516c66ec88fSEmmanuel Vadot};
517c66ec88fSEmmanuel Vadot
518c66ec88fSEmmanuel Vadot&sata {
519c66ec88fSEmmanuel Vadot	status = "okay";
520c66ec88fSEmmanuel Vadot};
521c66ec88fSEmmanuel Vadot
522c66ec88fSEmmanuel Vadot&sata_phy {
523c66ec88fSEmmanuel Vadot	status = "okay";
524c66ec88fSEmmanuel Vadot};
525c66ec88fSEmmanuel Vadot
526c66ec88fSEmmanuel Vadot&spi0 {
527c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
528c66ec88fSEmmanuel Vadot	pinctrl-0 = <&spic0_pins>;
529c66ec88fSEmmanuel Vadot	status = "okay";
530c66ec88fSEmmanuel Vadot};
531c66ec88fSEmmanuel Vadot
532c66ec88fSEmmanuel Vadot&spi1 {
533c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
534c66ec88fSEmmanuel Vadot	pinctrl-0 = <&spic1_pins>;
535c66ec88fSEmmanuel Vadot	status = "okay";
536c66ec88fSEmmanuel Vadot};
537c66ec88fSEmmanuel Vadot
538c66ec88fSEmmanuel Vadot&ssusb {
539c66ec88fSEmmanuel Vadot	vusb33-supply = <&reg_3p3v>;
540c66ec88fSEmmanuel Vadot	vbus-supply = <&reg_5v>;
541c66ec88fSEmmanuel Vadot	status = "okay";
542c66ec88fSEmmanuel Vadot};
543c66ec88fSEmmanuel Vadot
544c66ec88fSEmmanuel Vadot&u3phy {
545c66ec88fSEmmanuel Vadot	status = "okay";
546c66ec88fSEmmanuel Vadot};
547c66ec88fSEmmanuel Vadot
548c66ec88fSEmmanuel Vadot&uart0 {
549c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
550c66ec88fSEmmanuel Vadot	pinctrl-0 = <&uart0_pins>;
551c66ec88fSEmmanuel Vadot	status = "okay";
552c66ec88fSEmmanuel Vadot};
553c66ec88fSEmmanuel Vadot
554c66ec88fSEmmanuel Vadot&uart2 {
555c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
556c66ec88fSEmmanuel Vadot	pinctrl-0 = <&uart2_pins>;
557c66ec88fSEmmanuel Vadot	status = "okay";
558c66ec88fSEmmanuel Vadot};
559c66ec88fSEmmanuel Vadot
560c66ec88fSEmmanuel Vadot&watchdog {
561c66ec88fSEmmanuel Vadot	pinctrl-names = "default";
562c66ec88fSEmmanuel Vadot	pinctrl-0 = <&watchdog_pins>;
563c66ec88fSEmmanuel Vadot	status = "okay";
564c66ec88fSEmmanuel Vadot};
565c66ec88fSEmmanuel Vadot
566c66ec88fSEmmanuel Vadot&wmac {
5672eb4d8dcSEmmanuel Vadot	pinctrl-names = "default";
5682eb4d8dcSEmmanuel Vadot	pinctrl-0 = <&wmac_pins>;
569c66ec88fSEmmanuel Vadot	status = "okay";
570c66ec88fSEmmanuel Vadot};
571