summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/renesas/renesas-smarc2.dtsi
blob: 696a933af808a8eb13154db3f9773cfe3248172c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
 * Device Tree Source for the RZ SMARC Carrier-II Board.
 *
 * Copyright (C) 2024 Renesas Electronics Corp.
 */

/*
 * Please set the switch position SW_OPT_MUX.1 on the carrier board and the
 * corresponding macro SW_SDIO_M2E on the board DTS:
 *
 * SW_SDIO_M2E:
 *     0 - SMARC SDIO signal is connected to uSD1
 *     1 - SMARC SDIO signal is connected to M.2 Key E connector
 *
 * Please set the switch position SW_OPT_MUX.4 on the carrier board and the
 * corresponding macro SW_SER0_PMOD on the board DTS:
 *
 * SW_SER0_PMOD:
 *     0 - SER0 signals connect to M.2 Key-E, SER2 signals are unconnected
 *     1 - SER0 signals connect to PMOD, SER2 signals connect to M.2 Key-E
 *
 * Please set the switch position SW_GPIO_CAN_PMOD on the carrier board and the
 * corresponding macro SW_GPIO8_CAN0_STB/SW_GPIO8_CAN0_STB on the board DTS:
 *
 * SW_GPIO8_CAN0_STB:
 *	0 - Connect to GPIO8 PMOD (default)
 *	1 - Connect to CAN0 transceiver STB pin
 *
 * SW_GPIO9_CAN1_STB:
 *	0 - Connect to GPIO9 PMOD (default)
 *	1 - Connect to CAN1 transceiver STB pin
 *
 * GPIO keys are enabled by default. Use PMOD_GPIO macros to disable them
 * if needed.
 */

/ {
	model = "Renesas RZ SMARC Carrier-II Board";
	compatible = "renesas,smarc2-evk";

	chosen {
		bootargs = "ignore_loglevel";
		stdout-path = "serial3:115200n8";
	};

	can_transceiver0: can-phy0 {
		compatible = "ti,tcan1042";
		#phy-cells = <0>;
		max-bitrate = <8000000>;
		status = "disabled";
	};

	can_transceiver1: can-phy1 {
		compatible = "ti,tcan1042";
		#phy-cells = <0>;
		max-bitrate = <8000000>;
		status = "disabled";
	};

	keys: keys {
		compatible = "gpio-keys";

		key-1 {
			interrupts-extended = <&pinctrl KEY_1_GPIO IRQ_TYPE_EDGE_FALLING>;
			linux,code = <KEY_1>;
			label = "USER_SW1";
			wakeup-source;
			debounce-interval = <20>;
		};

		key-2 {
			interrupts-extended = <&pinctrl KEY_2_GPIO IRQ_TYPE_EDGE_FALLING>;
			linux,code = <KEY_2>;
			label = "USER_SW2";
			wakeup-source;
			debounce-interval = <20>;
		};

		key-3 {
			interrupts-extended = <&pinctrl KEY_3_GPIO IRQ_TYPE_EDGE_FALLING>;
			linux,code = <KEY_3>;
			label = "USER_SW3";
			wakeup-source;
			debounce-interval = <20>;
		};
	};
};

&canfd {
	status = "okay";
};

&i2c0 {
	status = "okay";
	clock-frequency = <400000>;
};

&pcie {
	status = "okay";
};

&scif0 {
	status = "okay";
};

&sdhi1 {
	bus-width = <4>;
	sd-uhs-sdr50;
	sd-uhs-sdr104;

	status = "okay";
};