Merge tag 'usb-5.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
[linux/fpc-iii.git] / arch / arm / boot / dts / r8a7742-iwg21m.dtsi
blob5621c9ed698f0e4aa969ae85e29f6252c882d590
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the iWave RZ/G1H Qseven SOM
4  *
5  * Copyright (C) 2020 Renesas Electronics Corp.
6  */
8 #include "r8a7742.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
11 / {
12         compatible = "iwave,g21m", "renesas,r8a7742";
14         memory@40000000 {
15                 device_type = "memory";
16                 reg = <0 0x40000000 0 0x40000000>;
17         };
19         memory@200000000 {
20                 device_type = "memory";
21                 reg = <2 0x00000000 0 0x40000000>;
22         };
24         reg_3p3v: 3p3v {
25                 compatible = "regulator-fixed";
26                 regulator-name = "3P3V";
27                 regulator-min-microvolt = <3300000>;
28                 regulator-max-microvolt = <3300000>;
29                 regulator-always-on;
30                 regulator-boot-on;
31         };
34 &extal_clk {
35         clock-frequency = <20000000>;
38 &gpio0 {
39         /* GP0_18 set low to select QSPI. Doing so will disable VIN2 */
40         qspi_en {
41                 gpio-hog;
42                 gpios = <18 GPIO_ACTIVE_HIGH>;
43                 output-low;
44                 line-name = "QSPI_EN";
45         };
48 &i2c0 {
49         pinctrl-0 = <&i2c0_pins>;
50         pinctrl-names = "default";
52         status = "okay";
53         clock-frequency = <400000>;
55         rtc@68 {
56                 compatible = "ti,bq32000";
57                 reg = <0x68>;
58                 interrupt-parent = <&gpio1>;
59                 interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
60         };
63 &mmcif1 {
64         pinctrl-0 = <&mmc1_pins>;
65         pinctrl-names = "default";
67         vmmc-supply = <&reg_3p3v>;
68         bus-width = <4>;
69         non-removable;
70         status = "okay";
73 &pfc {
74         i2c0_pins: i2c0 {
75                 groups = "i2c0";
76                 function = "i2c0";
77         };
79         mmc1_pins: mmc1 {
80                 groups = "mmc1_data4", "mmc1_ctrl";
81                 function = "mmc1";
82         };
84         qspi_pins: qspi {
85                 groups = "qspi_ctrl", "qspi_data2";
86                 function = "qspi";
87         };
90 &qspi {
91         pinctrl-0 = <&qspi_pins>;
92         pinctrl-names = "default";
94         status = "okay";
96         flash: flash@0 {
97                 compatible = "sst,sst25vf016b", "jedec,spi-nor";
98                 reg = <0>;
99                 spi-max-frequency = <50000000>;
100                 m25p,fast-read;
101                 spi-cpol;
102                 spi-cpha;
104                 partitions {
105                         compatible = "fixed-partitions";
106                         #address-cells = <1>;
107                         #size-cells = <1>;
109                         partition@0 {
110                                 label = "bootloader";
111                                 reg = <0x00000000 0x000c0000>;
112                                 read-only;
113                         };
114                         partition@c0000 {
115                                 label = "env";
116                                 reg = <0x000c0000 0x00002000>;
117                         };
118                         partition@c2000 {
119                                 label = "user";
120                                 reg = <0x000c2000 0x0013e000>;
121                         };
122                 };
123         };