xref: /freebsd-src/sys/contrib/device-tree/src/arm/renesas/r8a7744-iwg20m.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Device Tree Source for the iWave RZ/G1N Qseven SOM
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * Copyright (C) 2018 Renesas Electronics Corp.
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot#include "r8a7744.dtsi"
9*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot/ {
12*f126890aSEmmanuel Vadot	compatible = "iwave,g20m", "renesas,r8a7744";
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	memory@40000000 {
15*f126890aSEmmanuel Vadot		device_type = "memory";
16*f126890aSEmmanuel Vadot		reg = <0 0x40000000 0 0x40000000>;
17*f126890aSEmmanuel Vadot	};
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot	reg_3p3v: 3p3v {
20*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
21*f126890aSEmmanuel Vadot		regulator-name = "3P3V";
22*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
23*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
24*f126890aSEmmanuel Vadot		regulator-always-on;
25*f126890aSEmmanuel Vadot		regulator-boot-on;
26*f126890aSEmmanuel Vadot	};
27*f126890aSEmmanuel Vadot};
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot&extal_clk {
30*f126890aSEmmanuel Vadot	clock-frequency = <20000000>;
31*f126890aSEmmanuel Vadot};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot&pfc {
34*f126890aSEmmanuel Vadot	mmcif0_pins: mmc {
35*f126890aSEmmanuel Vadot		groups = "mmc_data8_b", "mmc_ctrl";
36*f126890aSEmmanuel Vadot		function = "mmc";
37*f126890aSEmmanuel Vadot	};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot	qspi_pins: qspi {
40*f126890aSEmmanuel Vadot		groups = "qspi_ctrl", "qspi_data2";
41*f126890aSEmmanuel Vadot		function = "qspi";
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	sdhi0_pins: sd0 {
45*f126890aSEmmanuel Vadot		groups = "sdhi0_data4", "sdhi0_ctrl";
46*f126890aSEmmanuel Vadot		function = "sdhi0";
47*f126890aSEmmanuel Vadot		power-source = <3300>;
48*f126890aSEmmanuel Vadot	};
49*f126890aSEmmanuel Vadot};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot&mmcif0 {
52*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmcif0_pins>;
53*f126890aSEmmanuel Vadot	pinctrl-names = "default";
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_3p3v>;
56*f126890aSEmmanuel Vadot	bus-width = <8>;
57*f126890aSEmmanuel Vadot	non-removable;
58*f126890aSEmmanuel Vadot	status = "okay";
59*f126890aSEmmanuel Vadot};
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot&qspi {
62*f126890aSEmmanuel Vadot	pinctrl-0 = <&qspi_pins>;
63*f126890aSEmmanuel Vadot	pinctrl-names = "default";
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot	status = "okay";
66*f126890aSEmmanuel Vadot
67*f126890aSEmmanuel Vadot	/* WARNING - This device contains the bootloader. Handle with care. */
68*f126890aSEmmanuel Vadot	flash: flash@0 {
69*f126890aSEmmanuel Vadot		#address-cells = <1>;
70*f126890aSEmmanuel Vadot		#size-cells = <1>;
71*f126890aSEmmanuel Vadot		compatible = "jedec,spi-nor";
72*f126890aSEmmanuel Vadot		reg = <0>;
73*f126890aSEmmanuel Vadot		spi-max-frequency = <50000000>;
74*f126890aSEmmanuel Vadot		spi-tx-bus-width = <2>;
75*f126890aSEmmanuel Vadot		spi-rx-bus-width = <2>;
76*f126890aSEmmanuel Vadot		m25p,fast-read;
77*f126890aSEmmanuel Vadot		spi-cpol;
78*f126890aSEmmanuel Vadot		spi-cpha;
79*f126890aSEmmanuel Vadot	};
80*f126890aSEmmanuel Vadot};
81*f126890aSEmmanuel Vadot
82*f126890aSEmmanuel Vadot&sdhi0 {
83*f126890aSEmmanuel Vadot	pinctrl-0 = <&sdhi0_pins>;
84*f126890aSEmmanuel Vadot	pinctrl-names = "default";
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_3p3v>;
87*f126890aSEmmanuel Vadot	vqmmc-supply = <&reg_3p3v>;
88*f126890aSEmmanuel Vadot	cd-gpios = <&gpio7 11 GPIO_ACTIVE_LOW>;
89*f126890aSEmmanuel Vadot	status = "okay";
90*f126890aSEmmanuel Vadot};
91