Debian Codegraph @

arch/arm64/boot/dts/renesas/renesas-smarc2.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /*
3 * Device Tree Source for the RZ SMARC Carrier-II Board.
4 *
5 * Copyright (C) 2024 Renesas Electronics Corp.
6 */
7
8 /*
9 * Please set the switch position SW_OPT_MUX.1 on the carrier board and the
10 * corresponding macro SW_SDIO_M2E on the board DTS:
11 *
12 * SW_SDIO_M2E:
13 * 0 - SMARC SDIO signal is connected to uSD1
14 * 1 - SMARC SDIO signal is connected to M.2 Key E connector
15 *
16 * Please set the switch position SW_OPT_MUX.4 on the carrier board and the
17 * corresponding macro SW_SER0_PMOD on the board DTS:
18 *
19 * SW_SER0_PMOD:
20 * 0 - SER0 signals connect to M.2 Key-E, SER2 signals are unconnected
21 * 1 - SER0 signals connect to PMOD, SER2 signals connect to M.2 Key-E
22 *
23 * Please set the switch position SW_GPIO_CAN_PMOD on the carrier board and the
24 * corresponding macro SW_GPIO8_CAN0_STB/SW_GPIO8_CAN0_STB on the board DTS:
25 *
26 * SW_GPIO8_CAN0_STB:
27 * 0 - Connect to GPIO8 PMOD (default)
28 * 1 - Connect to CAN0 transceiver STB pin
29 *
30 * SW_GPIO9_CAN1_STB:
31 * 0 - Connect to GPIO9 PMOD (default)
32 * 1 - Connect to CAN1 transceiver STB pin
33 *
34 * GPIO keys are enabled by default. Use PMOD_GPIO macros to disable them
35 * if needed.
36 */
37
38 / {
39 model = "Renesas RZ SMARC Carrier-II Board";
40 compatible = "renesas,smarc2-evk";
41
42 chosen {
43 bootargs = "ignore_loglevel";
44 stdout-path = "serial3:115200n8";
45 };
46
47 can_transceiver0: can-phy0 {
48 compatible = "ti,tcan1042";
49 #phy-cells = <0>;
50 max-bitrate = <8000000>;
51 status = "disabled";
52 };
53
54 can_transceiver1: can-phy1 {
55 compatible = "ti,tcan1042";
56 #phy-cells = <0>;
57 max-bitrate = <8000000>;
58 status = "disabled";
59 };
60
61 keys: keys {
62 compatible = "gpio-keys";
63
64 key-1 {
65 interrupts-extended = <&pinctrl KEY_1_GPIO IRQ_TYPE_EDGE_FALLING>;
66 linux,code = <KEY_1>;
67 label = "USER_SW1";
68 wakeup-source;
69 debounce-interval = <20>;
70 };
71
72 key-2 {
73 interrupts-extended = <&pinctrl KEY_2_GPIO IRQ_TYPE_EDGE_FALLING>;
74 linux,code = <KEY_2>;
75 label = "USER_SW2";
76 wakeup-source;
77 debounce-interval = <20>;
78 };
79
80 key-3 {
81 interrupts-extended = <&pinctrl KEY_3_GPIO IRQ_TYPE_EDGE_FALLING>;
82 linux,code = <KEY_3>;
83 label = "USER_SW3";
84 wakeup-source;
85 debounce-interval = <20>;
86 };
87 };
88 };
89
90 &canfd {
91 status = "okay";
92 };
93
94 &i2c0 {
95 status = "okay";
96 clock-frequency = <400000>;
97 };
98
99 &scif0 {
100 status = "okay";
101 };
102
103 &sdhi1 {
104 bus-width = <4>;
105 sd-uhs-sdr50;
106 sd-uhs-sdr104;
107
108 status = "okay";
109 };
110
111 &usb3_phy {
112 status = "okay";
113 };
114
115 &xhci {
116 status = "okay";
117 };