0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Device Tree Source for the iWave RZ/G1N Qseven SOM
0004 *
0005 * Copyright (C) 2018 Renesas Electronics Corp.
0006 */
0007
0008 #include "r8a7744.dtsi"
0009 #include <dt-bindings/gpio/gpio.h>
0010
0011 / {
0012 compatible = "iwave,g20m", "renesas,r8a7744";
0013
0014 memory@40000000 {
0015 device_type = "memory";
0016 reg = <0 0x40000000 0 0x40000000>;
0017 };
0018
0019 reg_3p3v: 3p3v {
0020 compatible = "regulator-fixed";
0021 regulator-name = "3P3V";
0022 regulator-min-microvolt = <3300000>;
0023 regulator-max-microvolt = <3300000>;
0024 regulator-always-on;
0025 regulator-boot-on;
0026 };
0027 };
0028
0029 &extal_clk {
0030 clock-frequency = <20000000>;
0031 };
0032
0033 &pfc {
0034 mmcif0_pins: mmc {
0035 groups = "mmc_data8_b", "mmc_ctrl";
0036 function = "mmc";
0037 };
0038
0039 qspi_pins: qspi {
0040 groups = "qspi_ctrl", "qspi_data2";
0041 function = "qspi";
0042 };
0043
0044 sdhi0_pins: sd0 {
0045 groups = "sdhi0_data4", "sdhi0_ctrl";
0046 function = "sdhi0";
0047 power-source = <3300>;
0048 };
0049 };
0050
0051 &mmcif0 {
0052 pinctrl-0 = <&mmcif0_pins>;
0053 pinctrl-names = "default";
0054
0055 vmmc-supply = <®_3p3v>;
0056 bus-width = <8>;
0057 non-removable;
0058 status = "okay";
0059 };
0060
0061 &qspi {
0062 pinctrl-0 = <&qspi_pins>;
0063 pinctrl-names = "default";
0064
0065 status = "okay";
0066
0067 /* WARNING - This device contains the bootloader. Handle with care. */
0068 flash: flash@0 {
0069 #address-cells = <1>;
0070 #size-cells = <1>;
0071 compatible = "jedec,spi-nor";
0072 reg = <0>;
0073 spi-max-frequency = <50000000>;
0074 spi-tx-bus-width = <2>;
0075 spi-rx-bus-width = <2>;
0076 m25p,fast-read;
0077 spi-cpol;
0078 spi-cpha;
0079 };
0080 };
0081
0082 &sdhi0 {
0083 pinctrl-0 = <&sdhi0_pins>;
0084 pinctrl-names = "default";
0085
0086 vmmc-supply = <®_3p3v>;
0087 vqmmc-supply = <®_3p3v>;
0088 cd-gpios = <&gpio7 11 GPIO_ACTIVE_LOW>;
0089 status = "okay";
0090 };