xref: /linux/arch/arm/boot/dts/renesas/r8a7742-iwg21m.dtsi (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the iWave RZ/G1H Qseven SOM
4 *
5 * Copyright (C) 2020 Renesas Electronics Corp.
6 */
7
8#include "r8a7742.dtsi"
9#include <dt-bindings/gpio/gpio.h>
10
11/ {
12	compatible = "iwave,g21m", "renesas,r8a7742";
13
14	memory@40000000 {
15		device_type = "memory";
16		reg = <0 0x40000000 0 0x40000000>;
17	};
18
19	memory@200000000 {
20		device_type = "memory";
21		reg = <2 0x00000000 0 0x40000000>;
22	};
23
24	reg_3p3v: 3p3v {
25		compatible = "regulator-fixed";
26		regulator-name = "3P3V";
27		regulator-min-microvolt = <3300000>;
28		regulator-max-microvolt = <3300000>;
29		regulator-always-on;
30		regulator-boot-on;
31	};
32};
33
34&extal_clk {
35	clock-frequency = <20000000>;
36};
37
38&gpio0 {
39	/* GP0_18 set low to select QSPI. Doing so will disable VIN2 */
40	qspi-en-hog {
41		gpio-hog;
42		gpios = <18 GPIO_ACTIVE_HIGH>;
43		output-low;
44		line-name = "QSPI_EN";
45	};
46};
47
48&i2c0 {
49	pinctrl-0 = <&i2c0_pins>;
50	pinctrl-names = "default";
51
52	status = "okay";
53	clock-frequency = <400000>;
54
55	rtc@68 {
56		compatible = "ti,bq32000";
57		reg = <0x68>;
58		interrupts-extended = <&gpio1 1 IRQ_TYPE_EDGE_FALLING>;
59	};
60};
61
62&mmcif1 {
63	pinctrl-0 = <&mmc1_pins>;
64	pinctrl-names = "default";
65
66	vmmc-supply = <&reg_3p3v>;
67	bus-width = <4>;
68	non-removable;
69	status = "okay";
70};
71
72&pfc {
73	i2c0_pins: i2c0 {
74		groups = "i2c0";
75		function = "i2c0";
76	};
77
78	mmc1_pins: mmc1 {
79		groups = "mmc1_data4", "mmc1_ctrl";
80		function = "mmc1";
81	};
82
83	qspi_pins: qspi {
84		groups = "qspi_ctrl", "qspi_data2";
85		function = "qspi";
86	};
87};
88
89&qspi {
90	pinctrl-0 = <&qspi_pins>;
91	pinctrl-names = "default";
92
93	status = "okay";
94
95	flash: flash@0 {
96		compatible = "sst,sst25vf016b", "jedec,spi-nor";
97		reg = <0>;
98		spi-max-frequency = <50000000>;
99		m25p,fast-read;
100		spi-cpol;
101		spi-cpha;
102
103		partitions {
104			compatible = "fixed-partitions";
105			#address-cells = <1>;
106			#size-cells = <1>;
107
108			partition@0 {
109				label = "bootloader";
110				reg = <0x00000000 0x000c0000>;
111				read-only;
112			};
113			partition@c0000 {
114				label = "env";
115				reg = <0x000c0000 0x00002000>;
116			};
117			partition@c2000 {
118				label = "user";
119				reg = <0x000c2000 0x0013e000>;
120			};
121		};
122	};
123};
124