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