1/*
2 * Copyright (c) 2021 IoT.bzh
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 */
7
8/dts-v1/;
9#include <arm/renesas/rcar/gen3/r8a77951.dtsi>
10#include "rcar_h3ulcb_r8a77951_r7-pinctrl.dtsi"
11#include <zephyr/dt-bindings/input/input-event-codes.h>
12
13/ {
14	model = "Renesas h3ulcb board";
15	compatible = "renesas,h3ulcb-cr7";
16
17	chosen {
18		zephyr,sram = &sram0;
19		zephyr,console = &scif1;
20		zephyr,shell-uart = &scif1;
21		zephyr,canbus = &can0;
22	};
23
24	leds {
25		compatible = "gpio-leds";
26		user_led: led_5 {
27			gpios = <&gpio6 12 GPIO_ACTIVE_HIGH>;
28			label = "User LED";
29		};
30	};
31
32	gpio_keys {
33		compatible = "gpio-keys";
34		user_button: sw3 {
35			gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
36			label = "User switch";
37			zephyr,code = <INPUT_KEY_0>;
38		};
39	};
40
41	aliases {
42		pwm-0 = &pwm0;
43		led0 = &user_led;
44		sw0 = &user_button;
45	};
46};
47
48&cmt0 {
49	status = "okay";
50	clock-frequency = <32000>;
51};
52
53&gpio6 {
54	status = "okay";
55};
56
57&pwm0 {
58	pinctrl-0 = <&pwm0_default>;
59	pinctrl-names = "default";
60};
61
62&can0 {
63	pinctrl-0 = <&can0_data_a_tx_default &can0_data_a_rx_default>;
64	pinctrl-names = "default";
65	status = "okay";
66
67	can-transceiver {
68		max-bitrate = <5000000>;
69	};
70};
71
72&scif1 {
73	pinctrl-0 = <&scif1_data_a_tx_default &scif1_data_a_rx_default>;
74	pinctrl-names = "default";
75	status = "okay";
76};
77
78&i2c2 {
79	status = "okay";
80};
81
82&i2c4 {
83	status = "okay";
84};
85