Merge tag 'pwm/for-5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry...
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / renesas / r8a779a0-falcon-cpu.dtsi
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the Falcon CPU board
4  *
5  * Copyright (C) 2020 Renesas Electronics Corp.
6  */
7
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/leds/common.h>
10
11 #include "r8a779a0.dtsi"
12
13 / {
14         model = "Renesas Falcon CPU board";
15         compatible = "renesas,falcon-cpu", "renesas,r8a779a0";
16
17         aliases {
18                 serial0 = &scif0;
19         };
20
21         chosen {
22                 stdout-path = "serial0:115200n8";
23         };
24
25         leds {
26                 compatible = "gpio-leds";
27
28                 led-1 {
29                         gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>;
30                         color = <LED_COLOR_ID_GREEN>;
31                         function = LED_FUNCTION_INDICATOR;
32                         function-enumerator = <1>;
33                 };
34                 led-2 {
35                         gpios = <&gpio4 19 GPIO_ACTIVE_HIGH>;
36                         color = <LED_COLOR_ID_GREEN>;
37                         function = LED_FUNCTION_INDICATOR;
38                         function-enumerator = <2>;
39                 };
40                 led-3 {
41                         gpios = <&gpio4 20 GPIO_ACTIVE_HIGH>;
42                         color = <LED_COLOR_ID_GREEN>;
43                         function = LED_FUNCTION_INDICATOR;
44                         function-enumerator = <3>;
45                 };
46         };
47
48         memory@48000000 {
49                 device_type = "memory";
50                 /* first 128MB is reserved for secure area. */
51                 reg = <0x0 0x48000000 0x0 0x78000000>;
52         };
53
54         memory@500000000 {
55                 device_type = "memory";
56                 reg = <0x5 0x00000000 0x0 0x80000000>;
57         };
58
59         memory@600000000 {
60                 device_type = "memory";
61                 reg = <0x6 0x00000000 0x0 0x80000000>;
62         };
63
64         memory@700000000 {
65                 device_type = "memory";
66                 reg = <0x7 0x00000000 0x0 0x80000000>;
67         };
68
69         reg_1p8v: regulator-1p8v {
70                 compatible = "regulator-fixed";
71                 regulator-name = "fixed-1.8V";
72                 regulator-min-microvolt = <1800000>;
73                 regulator-max-microvolt = <1800000>;
74                 regulator-boot-on;
75                 regulator-always-on;
76         };
77
78         reg_3p3v: regulator-3p3v {
79                 compatible = "regulator-fixed";
80                 regulator-name = "fixed-3.3V";
81                 regulator-min-microvolt = <3300000>;
82                 regulator-max-microvolt = <3300000>;
83                 regulator-boot-on;
84                 regulator-always-on;
85         };
86 };
87
88 &extal_clk {
89         clock-frequency = <16666666>;
90 };
91
92 &extalr_clk {
93         clock-frequency = <32768>;
94 };
95
96 &i2c0 {
97         pinctrl-0 = <&i2c0_pins>;
98         pinctrl-names = "default";
99
100         status = "okay";
101         clock-frequency = <400000>;
102
103         eeprom@50 {
104                 compatible = "rohm,br24g01", "atmel,24c01";
105                 label = "cpu-board";
106                 reg = <0x50>;
107                 pagesize = <8>;
108         };
109 };
110
111 &i2c1 {
112         pinctrl-0 = <&i2c1_pins>;
113         pinctrl-names = "default";
114
115         status = "okay";
116         clock-frequency = <400000>;
117 };
118
119 &i2c6 {
120         pinctrl-0 = <&i2c6_pins>;
121         pinctrl-names = "default";
122
123         status = "okay";
124         clock-frequency = <400000>;
125 };
126
127 &mmc0 {
128         pinctrl-0 = <&mmc_pins>;
129         pinctrl-1 = <&mmc_pins>;
130         pinctrl-names = "default", "state_uhs";
131
132         vmmc-supply = <&reg_3p3v>;
133         vqmmc-supply = <&reg_1p8v>;
134         mmc-hs200-1_8v;
135         mmc-hs400-1_8v;
136         bus-width = <8>;
137         no-sd;
138         no-sdio;
139         non-removable;
140         full-pwr-cycle-in-suspend;
141         status = "okay";
142 };
143
144 &pfc {
145         pinctrl-0 = <&scif_clk_pins>;
146         pinctrl-names = "default";
147
148         i2c0_pins: i2c0 {
149                 groups = "i2c0";
150                 function = "i2c0";
151         };
152
153         i2c1_pins: i2c1 {
154                 groups = "i2c1";
155                 function = "i2c1";
156         };
157
158         i2c6_pins: i2c6 {
159                 groups = "i2c6";
160                 function = "i2c6";
161         };
162
163         mmc_pins: mmc {
164                 groups = "mmc_data8", "mmc_ctrl", "mmc_ds";
165                 function = "mmc";
166                 power-source = <1800>;
167         };
168
169         scif0_pins: scif0 {
170                 groups = "scif0_data", "scif0_ctrl";
171                 function = "scif0";
172         };
173
174         scif_clk_pins: scif_clk {
175                 groups = "scif_clk";
176                 function = "scif_clk";
177         };
178 };
179
180 &rwdt {
181         timeout-sec = <60>;
182         status = "okay";
183 };
184
185 &scif0 {
186         pinctrl-0 = <&scif0_pins>;
187         pinctrl-names = "default";
188
189         uart-has-rtscts;
190         status = "okay";
191 };
192
193 &scif_clk {
194         clock-frequency = <24000000>;
195 };