Merge tag 'locks-v4.15-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / r8a7745-iwg22m.dtsi
1 /*
2  * Device Tree Source for the iWave-RZG1E-G22M SODIMM 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 "r8a7745.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13
14 / {
15         compatible = "iwave,g22m", "renesas,r8a7745";
16
17         memory@40000000 {
18                 device_type = "memory";
19                 reg = <0 0x40000000 0 0x20000000>;
20         };
21
22         reg_3p3v: 3p3v {
23                 compatible = "regulator-fixed";
24                 regulator-name = "3P3V";
25                 regulator-min-microvolt = <3300000>;
26                 regulator-max-microvolt = <3300000>;
27                 regulator-always-on;
28                 regulator-boot-on;
29         };
30 };
31
32 &extal_clk {
33         clock-frequency = <20000000>;
34 };
35
36 &pfc {
37         mmcif0_pins: mmc {
38                 groups = "mmc_data8", "mmc_ctrl";
39                 function = "mmc";
40         };
41
42         qspi_pins: qspi {
43                 groups = "qspi_ctrl", "qspi_data2";
44                 function = "qspi";
45         };
46
47         sdhi1_pins: sd1 {
48                 groups = "sdhi1_data4", "sdhi1_ctrl";
49                 function = "sdhi1";
50                 power-source = <3300>;
51         };
52
53         i2c3_pins: i2c3 {
54                 groups = "i2c3_b";
55                 function = "i2c3";
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 &sdhi1 {
91         pinctrl-0 = <&sdhi1_pins>;
92         pinctrl-names = "default";
93
94         vmmc-supply = <&reg_3p3v>;
95         vqmmc-supply = <&reg_3p3v>;
96         cd-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>;
97         status = "okay";
98 };
99
100 &i2c3 {
101         pinctrl-0 = <&i2c3_pins>;
102         pinctrl-names = "default";
103
104         status = "okay";
105         clock-frequency = <400000>;
106
107         rtc@68 {
108                 compatible = "ti,bq32000";
109                 reg = <0x68>;
110         };
111 };