xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r8a779a0-falcon-cpu.dtsi (revision 5e8c83b395a3148146f5f3d116c8da33ba6eb70e)
163070d7cSYoshihiro Shimoda// SPDX-License-Identifier: GPL-2.0
263070d7cSYoshihiro Shimoda/*
363070d7cSYoshihiro Shimoda * Device Tree Source for the Falcon CPU board
463070d7cSYoshihiro Shimoda *
563070d7cSYoshihiro Shimoda * Copyright (C) 2020 Renesas Electronics Corp.
663070d7cSYoshihiro Shimoda */
763070d7cSYoshihiro Shimoda
8e8ac55a5SWolfram Sang#include <dt-bindings/gpio/gpio.h>
9*5e8c83b3SKieran Bingham#include <dt-bindings/input/input.h>
109d68a386SKieran Bingham#include <dt-bindings/leds/common.h>
119d68a386SKieran Bingham
1263070d7cSYoshihiro Shimoda#include "r8a779a0.dtsi"
1363070d7cSYoshihiro Shimoda
1463070d7cSYoshihiro Shimoda/ {
1563070d7cSYoshihiro Shimoda	model = "Renesas Falcon CPU board";
1663070d7cSYoshihiro Shimoda	compatible = "renesas,falcon-cpu", "renesas,r8a779a0";
1763070d7cSYoshihiro Shimoda
18e86ff34cSGeert Uytterhoeven	aliases {
19e86ff34cSGeert Uytterhoeven		serial0 = &scif0;
20e86ff34cSGeert Uytterhoeven	};
21e86ff34cSGeert Uytterhoeven
22e86ff34cSGeert Uytterhoeven	chosen {
23e86ff34cSGeert Uytterhoeven		stdout-path = "serial0:115200n8";
24e86ff34cSGeert Uytterhoeven	};
25e86ff34cSGeert Uytterhoeven
26*5e8c83b3SKieran Bingham	keys {
27*5e8c83b3SKieran Bingham		compatible = "gpio-keys";
28*5e8c83b3SKieran Bingham
29*5e8c83b3SKieran Bingham		pinctrl-0 = <&keys_pins>;
30*5e8c83b3SKieran Bingham		pinctrl-names = "default";
31*5e8c83b3SKieran Bingham
32*5e8c83b3SKieran Bingham		key-1 {
33*5e8c83b3SKieran Bingham			gpios = <&gpio6 18 GPIO_ACTIVE_LOW>;
34*5e8c83b3SKieran Bingham			linux,code = <KEY_1>;
35*5e8c83b3SKieran Bingham			label = "SW47";
36*5e8c83b3SKieran Bingham			wakeup-source;
37*5e8c83b3SKieran Bingham			debounce-interval = <20>;
38*5e8c83b3SKieran Bingham		};
39*5e8c83b3SKieran Bingham
40*5e8c83b3SKieran Bingham		key-2 {
41*5e8c83b3SKieran Bingham			gpios = <&gpio6 19 GPIO_ACTIVE_LOW>;
42*5e8c83b3SKieran Bingham			linux,code = <KEY_2>;
43*5e8c83b3SKieran Bingham			label = "SW48";
44*5e8c83b3SKieran Bingham			wakeup-source;
45*5e8c83b3SKieran Bingham			debounce-interval = <20>;
46*5e8c83b3SKieran Bingham		};
47*5e8c83b3SKieran Bingham
48*5e8c83b3SKieran Bingham		key-3 {
49*5e8c83b3SKieran Bingham			gpios = <&gpio6 20 GPIO_ACTIVE_LOW>;
50*5e8c83b3SKieran Bingham			linux,code = <KEY_3>;
51*5e8c83b3SKieran Bingham			label = "SW49";
52*5e8c83b3SKieran Bingham			wakeup-source;
53*5e8c83b3SKieran Bingham			debounce-interval = <20>;
54*5e8c83b3SKieran Bingham		};
55*5e8c83b3SKieran Bingham	};
56*5e8c83b3SKieran Bingham
579d68a386SKieran Bingham	leds {
589d68a386SKieran Bingham		compatible = "gpio-leds";
599d68a386SKieran Bingham
609d68a386SKieran Bingham		led-1 {
619d68a386SKieran Bingham			gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>;
629d68a386SKieran Bingham			color = <LED_COLOR_ID_GREEN>;
639d68a386SKieran Bingham			function = LED_FUNCTION_INDICATOR;
649d68a386SKieran Bingham			function-enumerator = <1>;
659d68a386SKieran Bingham		};
669d68a386SKieran Bingham		led-2 {
679d68a386SKieran Bingham			gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>;
689d68a386SKieran Bingham			color = <LED_COLOR_ID_GREEN>;
699d68a386SKieran Bingham			function = LED_FUNCTION_INDICATOR;
709d68a386SKieran Bingham			function-enumerator = <2>;
719d68a386SKieran Bingham		};
729d68a386SKieran Bingham		led-3 {
739d68a386SKieran Bingham			gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;
749d68a386SKieran Bingham			color = <LED_COLOR_ID_GREEN>;
759d68a386SKieran Bingham			function = LED_FUNCTION_INDICATOR;
769d68a386SKieran Bingham			function-enumerator = <3>;
779d68a386SKieran Bingham		};
789d68a386SKieran Bingham	};
799d68a386SKieran Bingham
8063070d7cSYoshihiro Shimoda	memory@48000000 {
8163070d7cSYoshihiro Shimoda		device_type = "memory";
8263070d7cSYoshihiro Shimoda		/* first 128MB is reserved for secure area. */
8363070d7cSYoshihiro Shimoda		reg = <0x0 0x48000000 0x0 0x78000000>;
8463070d7cSYoshihiro Shimoda	};
8563070d7cSYoshihiro Shimoda
8663070d7cSYoshihiro Shimoda	memory@500000000 {
8763070d7cSYoshihiro Shimoda		device_type = "memory";
8863070d7cSYoshihiro Shimoda		reg = <0x5 0x00000000 0x0 0x80000000>;
8963070d7cSYoshihiro Shimoda	};
9063070d7cSYoshihiro Shimoda
9163070d7cSYoshihiro Shimoda	memory@600000000 {
9263070d7cSYoshihiro Shimoda		device_type = "memory";
9363070d7cSYoshihiro Shimoda		reg = <0x6 0x00000000 0x0 0x80000000>;
9463070d7cSYoshihiro Shimoda	};
9563070d7cSYoshihiro Shimoda
9663070d7cSYoshihiro Shimoda	memory@700000000 {
9763070d7cSYoshihiro Shimoda		device_type = "memory";
9863070d7cSYoshihiro Shimoda		reg = <0x7 0x00000000 0x0 0x80000000>;
9963070d7cSYoshihiro Shimoda	};
100ee33cd69STakeshi Saito
101ee33cd69STakeshi Saito	reg_1p8v: regulator-1p8v {
102ee33cd69STakeshi Saito		compatible = "regulator-fixed";
103ee33cd69STakeshi Saito		regulator-name = "fixed-1.8V";
104ee33cd69STakeshi Saito		regulator-min-microvolt = <1800000>;
105ee33cd69STakeshi Saito		regulator-max-microvolt = <1800000>;
106ee33cd69STakeshi Saito		regulator-boot-on;
107ee33cd69STakeshi Saito		regulator-always-on;
108ee33cd69STakeshi Saito	};
109ee33cd69STakeshi Saito
110ee33cd69STakeshi Saito	reg_3p3v: regulator-3p3v {
111ee33cd69STakeshi Saito		compatible = "regulator-fixed";
112ee33cd69STakeshi Saito		regulator-name = "fixed-3.3V";
113ee33cd69STakeshi Saito		regulator-min-microvolt = <3300000>;
114ee33cd69STakeshi Saito		regulator-max-microvolt = <3300000>;
115ee33cd69STakeshi Saito		regulator-boot-on;
116ee33cd69STakeshi Saito		regulator-always-on;
117ee33cd69STakeshi Saito	};
11863070d7cSYoshihiro Shimoda};
11963070d7cSYoshihiro Shimoda
12063070d7cSYoshihiro Shimoda&extal_clk {
12163070d7cSYoshihiro Shimoda	clock-frequency = <16666666>;
12263070d7cSYoshihiro Shimoda};
12363070d7cSYoshihiro Shimoda
12463070d7cSYoshihiro Shimoda&extalr_clk {
12563070d7cSYoshihiro Shimoda	clock-frequency = <32768>;
12663070d7cSYoshihiro Shimoda};
12763070d7cSYoshihiro Shimoda
1280e6fb83eSWolfram Sang&i2c0 {
1290e6fb83eSWolfram Sang	pinctrl-0 = <&i2c0_pins>;
1300e6fb83eSWolfram Sang	pinctrl-names = "default";
1310e6fb83eSWolfram Sang
1320e6fb83eSWolfram Sang	status = "okay";
1330e6fb83eSWolfram Sang	clock-frequency = <400000>;
134405daa39SGeert Uytterhoeven
135405daa39SGeert Uytterhoeven	eeprom@50 {
136405daa39SGeert Uytterhoeven		compatible = "rohm,br24g01", "atmel,24c01";
137405daa39SGeert Uytterhoeven		label = "cpu-board";
138405daa39SGeert Uytterhoeven		reg = <0x50>;
139405daa39SGeert Uytterhoeven		pagesize = <8>;
140405daa39SGeert Uytterhoeven	};
1410e6fb83eSWolfram Sang};
1420e6fb83eSWolfram Sang
1430e6fb83eSWolfram Sang&i2c1 {
1440e6fb83eSWolfram Sang	pinctrl-0 = <&i2c1_pins>;
1450e6fb83eSWolfram Sang	pinctrl-names = "default";
1460e6fb83eSWolfram Sang
1470e6fb83eSWolfram Sang	status = "okay";
1480e6fb83eSWolfram Sang	clock-frequency = <400000>;
1490e6fb83eSWolfram Sang};
1500e6fb83eSWolfram Sang
1510e6fb83eSWolfram Sang&i2c6 {
1520e6fb83eSWolfram Sang	pinctrl-0 = <&i2c6_pins>;
1530e6fb83eSWolfram Sang	pinctrl-names = "default";
1540e6fb83eSWolfram Sang
1550e6fb83eSWolfram Sang	status = "okay";
1560e6fb83eSWolfram Sang	clock-frequency = <400000>;
1570e6fb83eSWolfram Sang};
1580e6fb83eSWolfram Sang
159ee33cd69STakeshi Saito&mmc0 {
160ee33cd69STakeshi Saito	pinctrl-0 = <&mmc_pins>;
161ee33cd69STakeshi Saito	pinctrl-1 = <&mmc_pins>;
162ee33cd69STakeshi Saito	pinctrl-names = "default", "state_uhs";
163ee33cd69STakeshi Saito
164ee33cd69STakeshi Saito	vmmc-supply = <&reg_3p3v>;
165ee33cd69STakeshi Saito	vqmmc-supply = <&reg_1p8v>;
166ee33cd69STakeshi Saito	mmc-hs200-1_8v;
167ee33cd69STakeshi Saito	mmc-hs400-1_8v;
168ee33cd69STakeshi Saito	bus-width = <8>;
169ee33cd69STakeshi Saito	no-sd;
170ee33cd69STakeshi Saito	no-sdio;
171ee33cd69STakeshi Saito	non-removable;
172ee33cd69STakeshi Saito	full-pwr-cycle-in-suspend;
173ee33cd69STakeshi Saito	status = "okay";
174ee33cd69STakeshi Saito};
175ee33cd69STakeshi Saito
1760e6fb83eSWolfram Sang&pfc {
1779e921faaSWolfram Sang	pinctrl-0 = <&scif_clk_pins>;
1789e921faaSWolfram Sang	pinctrl-names = "default";
1799e921faaSWolfram Sang
1800e6fb83eSWolfram Sang	i2c0_pins: i2c0 {
1810e6fb83eSWolfram Sang		groups = "i2c0";
1820e6fb83eSWolfram Sang		function = "i2c0";
1830e6fb83eSWolfram Sang	};
1840e6fb83eSWolfram Sang
1850e6fb83eSWolfram Sang	i2c1_pins: i2c1 {
1860e6fb83eSWolfram Sang		groups = "i2c1";
1870e6fb83eSWolfram Sang		function = "i2c1";
1880e6fb83eSWolfram Sang	};
1890e6fb83eSWolfram Sang
1900e6fb83eSWolfram Sang	i2c6_pins: i2c6 {
1910e6fb83eSWolfram Sang		groups = "i2c6";
1920e6fb83eSWolfram Sang		function = "i2c6";
1930e6fb83eSWolfram Sang	};
1949e921faaSWolfram Sang
195*5e8c83b3SKieran Bingham	keys_pins: keys {
196*5e8c83b3SKieran Bingham		pins = "GP_6_18", "GP_6_19", "GP_6_20";
197*5e8c83b3SKieran Bingham		bias-pull-up;
198*5e8c83b3SKieran Bingham	};
199*5e8c83b3SKieran Bingham
200ee33cd69STakeshi Saito	mmc_pins: mmc {
201ee33cd69STakeshi Saito		groups = "mmc_data8", "mmc_ctrl", "mmc_ds";
202ee33cd69STakeshi Saito		function = "mmc";
203ee33cd69STakeshi Saito		power-source = <1800>;
204ee33cd69STakeshi Saito	};
205ee33cd69STakeshi Saito
2069e921faaSWolfram Sang	scif0_pins: scif0 {
2079e921faaSWolfram Sang		groups = "scif0_data", "scif0_ctrl";
2089e921faaSWolfram Sang		function = "scif0";
2099e921faaSWolfram Sang	};
2109e921faaSWolfram Sang
2119e921faaSWolfram Sang	scif_clk_pins: scif_clk {
2129e921faaSWolfram Sang		groups = "scif_clk";
2139e921faaSWolfram Sang		function = "scif_clk";
2149e921faaSWolfram Sang	};
2150e6fb83eSWolfram Sang};
2160e6fb83eSWolfram Sang
2170fc129baSGeert Uytterhoeven&rwdt {
2180fc129baSGeert Uytterhoeven	timeout-sec = <60>;
2190fc129baSGeert Uytterhoeven	status = "okay";
2200fc129baSGeert Uytterhoeven};
2210fc129baSGeert Uytterhoeven
22263070d7cSYoshihiro Shimoda&scif0 {
2239e921faaSWolfram Sang	pinctrl-0 = <&scif0_pins>;
2249e921faaSWolfram Sang	pinctrl-names = "default";
2259e921faaSWolfram Sang
2269e921faaSWolfram Sang	uart-has-rtscts;
22763070d7cSYoshihiro Shimoda	status = "okay";
22863070d7cSYoshihiro Shimoda};
2299e921faaSWolfram Sang
2309e921faaSWolfram Sang&scif_clk {
2319e921faaSWolfram Sang	clock-frequency = <24000000>;
2329e921faaSWolfram Sang};
233