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