xref: /freebsd/sys/contrib/device-tree/src/arm64/renesas/renesas-smarc2.dtsi (revision 833e5d42ab135b0238e61c5b3c19b8619677cbfa)
12846c905SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
22846c905SEmmanuel Vadot/*
32846c905SEmmanuel Vadot * Device Tree Source for the RZ SMARC Carrier-II Board.
42846c905SEmmanuel Vadot *
52846c905SEmmanuel Vadot * Copyright (C) 2024 Renesas Electronics Corp.
62846c905SEmmanuel Vadot */
72846c905SEmmanuel Vadot
8ae5de77eSEmmanuel Vadot/*
9ae5de77eSEmmanuel Vadot * Please set the switch position SW_OPT_MUX.1 on the carrier board and the
10ae5de77eSEmmanuel Vadot * corresponding macro SW_SDIO_M2E on the board DTS:
11ae5de77eSEmmanuel Vadot *
12ae5de77eSEmmanuel Vadot * SW_SDIO_M2E:
13ae5de77eSEmmanuel Vadot *     0 - SMARC SDIO signal is connected to uSD1
14ae5de77eSEmmanuel Vadot *     1 - SMARC SDIO signal is connected to M.2 Key E connector
15ae5de77eSEmmanuel Vadot *
16ae5de77eSEmmanuel Vadot * Please set the switch position SW_GPIO_CAN_PMOD on the carrier board and the
17ae5de77eSEmmanuel Vadot * corresponding macro SW_GPIO8_CAN0_STB/SW_GPIO8_CAN0_STB on the board DTS:
18ae5de77eSEmmanuel Vadot *
19ae5de77eSEmmanuel Vadot * SW_GPIO8_CAN0_STB:
20ae5de77eSEmmanuel Vadot *	0 - Connect to GPIO8 PMOD (default)
21ae5de77eSEmmanuel Vadot *	1 - Connect to CAN0 transceiver STB pin
22ae5de77eSEmmanuel Vadot *
23ae5de77eSEmmanuel Vadot * SW_GPIO9_CAN1_STB:
24ae5de77eSEmmanuel Vadot *	0 - Connect to GPIO9 PMOD (default)
25ae5de77eSEmmanuel Vadot *	1 - Connect to CAN1 transceiver STB pin
26*833e5d42SEmmanuel Vadot *
27*833e5d42SEmmanuel Vadot * GPIO keys are enabled by default. Use PMOD_GPIO macros to disable them
28*833e5d42SEmmanuel Vadot * if needed.
29ae5de77eSEmmanuel Vadot */
30ae5de77eSEmmanuel Vadot
312846c905SEmmanuel Vadot/ {
322846c905SEmmanuel Vadot	model = "Renesas RZ SMARC Carrier-II Board";
332846c905SEmmanuel Vadot	compatible = "renesas,smarc2-evk";
342846c905SEmmanuel Vadot
352846c905SEmmanuel Vadot	chosen {
362846c905SEmmanuel Vadot		bootargs = "ignore_loglevel";
372846c905SEmmanuel Vadot		stdout-path = "serial3:115200n8";
382846c905SEmmanuel Vadot	};
392846c905SEmmanuel Vadot
402846c905SEmmanuel Vadot	aliases {
41*833e5d42SEmmanuel Vadot		i2c0 = &i2c0;
422846c905SEmmanuel Vadot		serial3 = &scif0;
43ae5de77eSEmmanuel Vadot		mmc1 = &sdhi1;
44ae5de77eSEmmanuel Vadot	};
45ae5de77eSEmmanuel Vadot
46ae5de77eSEmmanuel Vadot	can_transceiver0: can-phy0 {
47ae5de77eSEmmanuel Vadot		compatible = "ti,tcan1042";
48ae5de77eSEmmanuel Vadot		#phy-cells = <0>;
49ae5de77eSEmmanuel Vadot		max-bitrate = <8000000>;
50ae5de77eSEmmanuel Vadot		status = "disabled";
51ae5de77eSEmmanuel Vadot	};
52ae5de77eSEmmanuel Vadot
53ae5de77eSEmmanuel Vadot	can_transceiver1: can-phy1 {
54ae5de77eSEmmanuel Vadot		compatible = "ti,tcan1042";
55ae5de77eSEmmanuel Vadot		#phy-cells = <0>;
56ae5de77eSEmmanuel Vadot		max-bitrate = <8000000>;
57ae5de77eSEmmanuel Vadot		status = "disabled";
582846c905SEmmanuel Vadot	};
59*833e5d42SEmmanuel Vadot
60*833e5d42SEmmanuel Vadot	keys: keys {
61*833e5d42SEmmanuel Vadot		compatible = "gpio-keys";
62*833e5d42SEmmanuel Vadot
63*833e5d42SEmmanuel Vadot		key-1 {
64*833e5d42SEmmanuel Vadot			interrupts-extended = <&pinctrl KEY_1_GPIO IRQ_TYPE_EDGE_FALLING>;
65*833e5d42SEmmanuel Vadot			linux,code = <KEY_1>;
66*833e5d42SEmmanuel Vadot			label = "USER_SW1";
67*833e5d42SEmmanuel Vadot			wakeup-source;
68*833e5d42SEmmanuel Vadot			debounce-interval = <20>;
69*833e5d42SEmmanuel Vadot		};
70*833e5d42SEmmanuel Vadot
71*833e5d42SEmmanuel Vadot		key-2 {
72*833e5d42SEmmanuel Vadot			interrupts-extended = <&pinctrl KEY_2_GPIO IRQ_TYPE_EDGE_FALLING>;
73*833e5d42SEmmanuel Vadot			linux,code = <KEY_2>;
74*833e5d42SEmmanuel Vadot			label = "USER_SW2";
75*833e5d42SEmmanuel Vadot			wakeup-source;
76*833e5d42SEmmanuel Vadot			debounce-interval = <20>;
77*833e5d42SEmmanuel Vadot		};
78*833e5d42SEmmanuel Vadot
79*833e5d42SEmmanuel Vadot		key-3 {
80*833e5d42SEmmanuel Vadot			interrupts-extended = <&pinctrl KEY_3_GPIO IRQ_TYPE_EDGE_FALLING>;
81*833e5d42SEmmanuel Vadot			linux,code = <KEY_3>;
82*833e5d42SEmmanuel Vadot			label = "USER_SW3";
83*833e5d42SEmmanuel Vadot			wakeup-source;
84*833e5d42SEmmanuel Vadot			debounce-interval = <20>;
85*833e5d42SEmmanuel Vadot		};
86*833e5d42SEmmanuel Vadot	};
872846c905SEmmanuel Vadot};
882846c905SEmmanuel Vadot
89ae5de77eSEmmanuel Vadot&canfd {
90ae5de77eSEmmanuel Vadot	status = "okay";
91ae5de77eSEmmanuel Vadot};
92ae5de77eSEmmanuel Vadot
93*833e5d42SEmmanuel Vadot&i2c0 {
94*833e5d42SEmmanuel Vadot	status = "okay";
95*833e5d42SEmmanuel Vadot	clock-frequency = <400000>;
96*833e5d42SEmmanuel Vadot};
97*833e5d42SEmmanuel Vadot
982846c905SEmmanuel Vadot&scif0 {
992846c905SEmmanuel Vadot	status = "okay";
1002846c905SEmmanuel Vadot};
101ae5de77eSEmmanuel Vadot
102ae5de77eSEmmanuel Vadot&sdhi1 {
103ae5de77eSEmmanuel Vadot	bus-width = <4>;
104ae5de77eSEmmanuel Vadot	sd-uhs-sdr50;
105ae5de77eSEmmanuel Vadot	sd-uhs-sdr104;
106ae5de77eSEmmanuel Vadot
107ae5de77eSEmmanuel Vadot	status = "okay";
108ae5de77eSEmmanuel Vadot};
109