1e4d755cfSYoshihiro Shimoda// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2e4d755cfSYoshihiro Shimoda/*
3e4d755cfSYoshihiro Shimoda * Device Tree Source for the White Hawk CPU board
4e4d755cfSYoshihiro Shimoda *
5e4d755cfSYoshihiro Shimoda * Copyright (C) 2022 Renesas Electronics Corp.
6e4d755cfSYoshihiro Shimoda */
7e4d755cfSYoshihiro Shimoda
8e4d755cfSYoshihiro Shimoda#include "r8a779g0.dtsi"
9e4d755cfSYoshihiro Shimoda
10*60dc0e87SGeert Uytterhoeven#include <dt-bindings/gpio/gpio.h>
11*60dc0e87SGeert Uytterhoeven#include <dt-bindings/leds/common.h>
12*60dc0e87SGeert Uytterhoeven
13e4d755cfSYoshihiro Shimoda/ {
14e4d755cfSYoshihiro Shimoda	model = "Renesas White Hawk CPU board";
15e4d755cfSYoshihiro Shimoda	compatible = "renesas,white-hawk-cpu", "renesas,r8a779g0";
16e4d755cfSYoshihiro Shimoda
17*60dc0e87SGeert Uytterhoeven	leds {
18*60dc0e87SGeert Uytterhoeven		compatible = "gpio-leds";
19*60dc0e87SGeert Uytterhoeven
20*60dc0e87SGeert Uytterhoeven		led-1 {
21*60dc0e87SGeert Uytterhoeven			gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
22*60dc0e87SGeert Uytterhoeven			color = <LED_COLOR_ID_GREEN>;
23*60dc0e87SGeert Uytterhoeven			function = LED_FUNCTION_INDICATOR;
24*60dc0e87SGeert Uytterhoeven			function-enumerator = <1>;
25*60dc0e87SGeert Uytterhoeven		};
26*60dc0e87SGeert Uytterhoeven
27*60dc0e87SGeert Uytterhoeven		led-2 {
28*60dc0e87SGeert Uytterhoeven			gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
29*60dc0e87SGeert Uytterhoeven			color = <LED_COLOR_ID_GREEN>;
30*60dc0e87SGeert Uytterhoeven			function = LED_FUNCTION_INDICATOR;
31*60dc0e87SGeert Uytterhoeven			function-enumerator = <2>;
32*60dc0e87SGeert Uytterhoeven		};
33*60dc0e87SGeert Uytterhoeven
34*60dc0e87SGeert Uytterhoeven		led-3 {
35*60dc0e87SGeert Uytterhoeven			gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
36*60dc0e87SGeert Uytterhoeven			color = <LED_COLOR_ID_GREEN>;
37*60dc0e87SGeert Uytterhoeven			function = LED_FUNCTION_INDICATOR;
38*60dc0e87SGeert Uytterhoeven			function-enumerator = <3>;
39*60dc0e87SGeert Uytterhoeven		};
40*60dc0e87SGeert Uytterhoeven	};
41*60dc0e87SGeert Uytterhoeven
42e4d755cfSYoshihiro Shimoda	memory@48000000 {
43e4d755cfSYoshihiro Shimoda		device_type = "memory";
44e4d755cfSYoshihiro Shimoda		/* first 128MB is reserved for secure area. */
45e4d755cfSYoshihiro Shimoda		reg = <0x0 0x48000000 0x0 0x78000000>;
46e4d755cfSYoshihiro Shimoda	};
47e4d755cfSYoshihiro Shimoda
48e4d755cfSYoshihiro Shimoda	memory@480000000 {
49e4d755cfSYoshihiro Shimoda		device_type = "memory";
50e4d755cfSYoshihiro Shimoda		reg = <0x4 0x80000000 0x0 0x80000000>;
51e4d755cfSYoshihiro Shimoda	};
52e4d755cfSYoshihiro Shimoda
53e4d755cfSYoshihiro Shimoda	memory@600000000 {
54e4d755cfSYoshihiro Shimoda		device_type = "memory";
55e4d755cfSYoshihiro Shimoda		reg = <0x6 0x00000000 0x1 0x00000000>;
56e4d755cfSYoshihiro Shimoda	};
57e4d755cfSYoshihiro Shimoda};
58e4d755cfSYoshihiro Shimoda
59e4d755cfSYoshihiro Shimoda&extal_clk {
60e4d755cfSYoshihiro Shimoda	clock-frequency = <16666666>;
61e4d755cfSYoshihiro Shimoda};
62e4d755cfSYoshihiro Shimoda
63e4d755cfSYoshihiro Shimoda&extalr_clk {
64e4d755cfSYoshihiro Shimoda	clock-frequency = <32768>;
65e4d755cfSYoshihiro Shimoda};
66e4d755cfSYoshihiro Shimoda
67e4d755cfSYoshihiro Shimoda&hscif0 {
68e4d755cfSYoshihiro Shimoda	status = "okay";
69e4d755cfSYoshihiro Shimoda};
70e4d755cfSYoshihiro Shimoda
7177643815SGeert Uytterhoeven&i2c0 {
7277643815SGeert Uytterhoeven	pinctrl-0 = <&i2c0_pins>;
7377643815SGeert Uytterhoeven	pinctrl-names = "default";
7477643815SGeert Uytterhoeven
7577643815SGeert Uytterhoeven	status = "okay";
7677643815SGeert Uytterhoeven	clock-frequency = <400000>;
7777643815SGeert Uytterhoeven
7877643815SGeert Uytterhoeven	eeprom@50 {
7977643815SGeert Uytterhoeven		compatible = "rohm,br24g01", "atmel,24c01";
8077643815SGeert Uytterhoeven		label = "cpu-board";
8177643815SGeert Uytterhoeven		reg = <0x50>;
8277643815SGeert Uytterhoeven		pagesize = <8>;
8377643815SGeert Uytterhoeven	};
8477643815SGeert Uytterhoeven};
8577643815SGeert Uytterhoeven
867a8d590dSGeert Uytterhoeven&pfc {
877a8d590dSGeert Uytterhoeven	pinctrl-0 = <&scif_clk_pins>;
887a8d590dSGeert Uytterhoeven	pinctrl-names = "default";
897a8d590dSGeert Uytterhoeven
907a8d590dSGeert Uytterhoeven	hscif0_pins: hscif0 {
917a8d590dSGeert Uytterhoeven		groups = "hscif0_data";
927a8d590dSGeert Uytterhoeven		function = "hscif0";
937a8d590dSGeert Uytterhoeven	};
947a8d590dSGeert Uytterhoeven
9577643815SGeert Uytterhoeven	i2c0_pins: i2c0 {
9677643815SGeert Uytterhoeven		groups = "i2c0";
9777643815SGeert Uytterhoeven		function = "i2c0";
9877643815SGeert Uytterhoeven	};
9977643815SGeert Uytterhoeven
1007a8d590dSGeert Uytterhoeven	scif_clk_pins: scif_clk {
1017a8d590dSGeert Uytterhoeven		groups = "scif_clk";
1027a8d590dSGeert Uytterhoeven		function = "scif_clk";
1037a8d590dSGeert Uytterhoeven	};
1047a8d590dSGeert Uytterhoeven};
1057a8d590dSGeert Uytterhoeven
106e4d755cfSYoshihiro Shimoda&scif_clk {
107e4d755cfSYoshihiro Shimoda	clock-frequency = <24000000>;
108e4d755cfSYoshihiro Shimoda};
109495e36c3SGeert Uytterhoeven
110495e36c3SGeert Uytterhoeven&rwdt {
111495e36c3SGeert Uytterhoeven	timeout-sec = <60>;
112495e36c3SGeert Uytterhoeven	status = "okay";
113495e36c3SGeert Uytterhoeven};
114