Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec
[sfrench/cifs-2.6.git] / arch / arm64 / boot / dts / renesas / r8a77980-condor.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Device Tree Source for the Condor board
4  *
5  * Copyright (C) 2018 Renesas Electronics Corp.
6  * Copyright (C) 2018 Cogent Embedded, Inc.
7  */
8
9 /dts-v1/;
10 #include "r8a77980.dtsi"
11
12 / {
13         model = "Renesas Condor board based on r8a77980";
14         compatible = "renesas,condor", "renesas,r8a77980";
15
16         aliases {
17                 serial0 = &scif0;
18                 ethernet0 = &avb;
19         };
20
21         chosen {
22                 stdout-path = "serial0:115200n8";
23         };
24
25         memory@48000000 {
26                 device_type = "memory";
27                 /* first 128MB is reserved for secure area. */
28                 reg = <0 0x48000000 0 0x78000000>;
29         };
30
31         d3_3v: regulator-0 {
32                 compatible = "regulator-fixed";
33                 regulator-name = "D3.3V";
34                 regulator-min-microvolt = <3300000>;
35                 regulator-max-microvolt = <3300000>;
36                 regulator-boot-on;
37                 regulator-always-on;
38         };
39
40         vddq_vin01: regulator-1 {
41                 compatible = "regulator-fixed";
42                 regulator-name = "VDDQ_VIN01";
43                 regulator-min-microvolt = <1800000>;
44                 regulator-max-microvolt = <1800000>;
45                 regulator-boot-on;
46                 regulator-always-on;
47         };
48 };
49
50 &avb {
51         pinctrl-0 = <&avb_pins>;
52         pinctrl-names = "default";
53
54         phy-mode = "rgmii-id";
55         phy-handle = <&phy0>;
56         renesas,no-ether-link;
57         status = "okay";
58
59         phy0: ethernet-phy@0 {
60                 rxc-skew-ps = <1500>;
61                 reg = <0>;
62                 interrupt-parent = <&gpio1>;
63                 interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
64         };
65 };
66
67 &canfd {
68         pinctrl-0 = <&canfd0_pins>;
69         pinctrl-names = "default";
70         status = "okay";
71
72         channel0 {
73                 status = "okay";
74         };
75 };
76
77 &extal_clk {
78         clock-frequency = <16666666>;
79 };
80
81 &extalr_clk {
82         clock-frequency = <32768>;
83 };
84
85 &i2c0 {
86         pinctrl-0 = <&i2c0_pins>;
87         pinctrl-names = "default";
88
89         status = "okay";
90         clock-frequency = <400000>;
91
92         io_expander0: gpio@20 {
93                 compatible = "onnn,pca9654";
94                 reg = <0x20>;
95                 gpio-controller;
96                 #gpio-cells = <2>;
97         };
98
99         io_expander1: gpio@21 {
100                 compatible = "onnn,pca9654";
101                 reg = <0x21>;
102                 gpio-controller;
103                 #gpio-cells = <2>;
104         };
105 };
106
107 &mmc0 {
108         pinctrl-0 = <&mmc_pins>;
109         pinctrl-1 = <&mmc_pins_uhs>;
110         pinctrl-names = "default", "state_uhs";
111
112         vmmc-supply = <&d3_3v>;
113         vqmmc-supply = <&vddq_vin01>;
114         mmc-hs200-1_8v;
115         bus-width = <8>;
116         non-removable;
117         status = "okay";
118 };
119
120 &pfc {
121         avb_pins: avb {
122                 groups = "avb_mdio", "avb_rgmii";
123                 function = "avb";
124         };
125
126         canfd0_pins: canfd0 {
127                 groups = "canfd0_data_a";
128                 function = "canfd0";
129         };
130
131         i2c0_pins: i2c0 {
132                 groups = "i2c0";
133                 function = "i2c0";
134         };
135
136         mmc_pins: mmc {
137                 groups = "mmc_data8", "mmc_ctrl", "mmc_ds";
138                 function = "mmc";
139                 power-source = <3300>;
140         };
141
142         mmc_pins_uhs: mmc_uhs {
143                 groups = "mmc_data8", "mmc_ctrl", "mmc_ds";
144                 function = "mmc";
145                 power-source = <1800>;
146         };
147
148         scif0_pins: scif0 {
149                 groups = "scif0_data";
150                 function = "scif0";
151         };
152
153         scif_clk_pins: scif_clk {
154                 groups = "scif_clk_b";
155                 function = "scif_clk";
156         };
157 };
158
159 &scif0 {
160         pinctrl-0 = <&scif0_pins>, <&scif_clk_pins>;
161         pinctrl-names = "default";
162
163         status = "okay";
164 };
165
166 &scif_clk {
167         clock-frequency = <14745600>;
168 };