~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm64/boot/dts/rockchip/rk3368-orion-r68-meta.dts

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2 /*
  3  * Copyright (c) 2016 Matthias Brugger <mbrugger@suse.com>
  4  */
  5 
  6 /dts-v1/;
  7 #include <dt-bindings/input/input.h>
  8 #include "rk3368.dtsi"
  9 
 10 / {
 11         model = "Rockchip Orion R68";
 12         compatible = "tronsmart,orion-r68-meta", "rockchip,rk3368";
 13 
 14         aliases {
 15                 ethernet0 = &gmac;
 16                 mmc0 = &sdmmc;
 17                 mmc1 = &emmc;
 18         };
 19 
 20         chosen {
 21                 stdout-path = "serial2:115200n8";
 22         };
 23 
 24         memory@0 {
 25                 device_type = "memory";
 26                 reg = <0x0 0x0 0x0 0x80000000>;
 27         };
 28 
 29         emmc_pwrseq: emmc-pwrseq {
 30                 compatible = "mmc-pwrseq-emmc";
 31                 pinctrl-0 = <&emmc_reset>;
 32                 pinctrl-names = "default";
 33                 reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
 34         };
 35 
 36         ext_gmac: external-gmac-clock {
 37                 compatible = "fixed-clock";
 38                 #clock-cells = <0>;
 39                 clock-frequency = <125000000>;
 40                 clock-output-names = "ext_gmac";
 41         };
 42 
 43         keys: gpio-keys {
 44                 compatible = "gpio-keys";
 45                 pinctrl-names = "default";
 46                 pinctrl-0 = <&pwr_key>;
 47 
 48                 key-power {
 49                         wakeup-source;
 50                         gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
 51                         label = "GPIO Power";
 52                         linux,code = <KEY_POWER>;
 53                 };
 54         };
 55 
 56         leds: gpio-leds {
 57                 compatible = "gpio-leds";
 58 
 59                 red_led: led-0 {
 60                         gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
 61                         label = "orion:red:led";
 62                         pinctrl-names = "default";
 63                         pinctrl-0 = <&led_ctl>;
 64                         default-state = "on";
 65                 };
 66 
 67                 blue_led: led-1 {
 68                         gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
 69                         label = "orion:blue:led";
 70                         pinctrl-names = "default";
 71                         pinctrl-0 = <&stby_pwren>;
 72                         default-state = "off";
 73                 };
 74         };
 75 
 76         vcc_18: vcc18-regulator {
 77                 compatible = "regulator-fixed";
 78                 regulator-name = "vcc_18";
 79                 regulator-min-microvolt = <1800000>;
 80                 regulator-max-microvolt = <1800000>;
 81                 regulator-always-on;
 82                 regulator-boot-on;
 83                 vin-supply = <&vcc_sys>;
 84         };
 85 
 86         /* supplies both host and otg */
 87         vcc_host: vcc-host-regulator {
 88                 compatible = "regulator-fixed";
 89                 gpio = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
 90                 pinctrl-names = "default";
 91                 pinctrl-0 = <&host_vbus_drv>;
 92                 regulator-name = "vcc_host";
 93                 regulator-always-on;
 94                 regulator-boot-on;
 95                 vin-supply = <&vcc_sys>;
 96         };
 97 
 98         vcc_io: vcc-io-regulator {
 99                 compatible = "regulator-fixed";
100                 regulator-name = "vcc_io";
101                 regulator-min-microvolt = <3300000>;
102                 regulator-max-microvolt = <3300000>;
103                 regulator-always-on;
104                 regulator-boot-on;
105                 vin-supply = <&vcc_sys>;
106         };
107 
108         vcc_lan: vcc-lan-regulator {
109                 compatible = "regulator-fixed";
110                 regulator-name = "vcc_lan";
111                 regulator-min-microvolt = <3300000>;
112                 regulator-max-microvolt = <3300000>;
113                 regulator-always-on;
114                 regulator-boot-on;
115                 vin-supply = <&vcc_io>;
116         };
117 
118         vcc_sd: vcc-sd-regulator {
119                 compatible = "regulator-fixed";
120                 regulator-name = "vcc_sd";
121                 gpio = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>;
122                 regulator-min-microvolt = <1800000>;
123                 regulator-max-microvolt = <3300000>;
124                 vin-supply = <&vcc_io>;
125         };
126 
127         vcc_sys: vcc-sys-regulator {
128                 compatible = "regulator-fixed";
129                 regulator-name = "vcc_sys";
130                 regulator-min-microvolt = <5000000>;
131                 regulator-max-microvolt = <5000000>;
132                 regulator-always-on;
133                 regulator-boot-on;
134         };
135 
136         vccio_sd: vcc-io-sd-regulator {
137                 compatible = "regulator-fixed";
138                 regulator-name = "vccio_sd";
139                 regulator-min-microvolt = <1800000>;
140                 regulator-max-microvolt = <3300000>;
141                 regulator-always-on;
142                 regulator-boot-on;
143                 vin-supply = <&vcc_io>;
144         };
145 
146         vccio_wl: vccio-wl-regulator {
147                 compatible = "regulator-fixed";
148                 regulator-name = "vccio_wl";
149                 regulator-min-microvolt = <3300000>;
150                 regulator-max-microvolt = <3300000>;
151                 regulator-always-on;
152                 regulator-boot-on;
153                 vin-supply = <&vcc_io>;
154         };
155 
156         vdd_10: vdd-10-regulator {
157                 compatible = "regulator-fixed";
158                 regulator-name = "vdd_10";
159                 regulator-min-microvolt = <1000000>;
160                 regulator-max-microvolt = <1000000>;
161                 regulator-always-on;
162                 regulator-boot-on;
163                 vin-supply = <&vcc_sys>;
164         };
165 };
166 
167 &emmc {
168         bus-width = <8>;
169         cap-mmc-highspeed;
170         mmc-pwrseq = <&emmc_pwrseq>;
171         mmc-hs200-1_2v;
172         mmc-hs200-1_8v;
173         non-removable;
174         pinctrl-names = "default";
175         pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
176         status = "okay";
177 };
178 
179 &gmac {
180         assigned-clocks = <&cru SCLK_MAC>;
181         assigned-clock-parents = <&ext_gmac>;
182         clock_in_out = "input";
183         phy-supply = <&vcc_lan>;
184         phy-mode = "rgmii";
185         pinctrl-names = "default";
186         pinctrl-0 = <&rgmii_pins>;
187         snps,reset-gpio = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>;
188         snps,reset-active-low;
189         snps,reset-delays-us = <0 10000 1000000>;
190         tx_delay = <0x30>;
191         rx_delay = <0x10>;
192         status = "okay";
193 };
194 
195 &i2c0 {
196         status = "okay";
197 
198         vdd_cpu: syr827@40 {
199                 compatible = "silergy,syr827";
200                 reg = <0x40>;
201                 fcs,suspend-voltage-selector = <1>;
202                 regulator-name = "vdd_cpu";
203                 regulator-enable-ramp-delay = <300>;
204                 regulator-min-microvolt = <712500>;
205                 regulator-max-microvolt = <1500000>;
206                 regulator-ramp-delay = <8000>;
207                 regulator-always-on;
208                 regulator-boot-on;
209                 vin-supply = <&vcc_sys>;
210         };
211 
212         hym8563: rtc@51 {
213                 compatible = "haoyu,hym8563";
214                 reg = <0x51>;
215                 #clock-cells = <0>;
216                 clock-output-names = "xin32k";
217                 /* rtc_int is not connected */
218         };
219 };
220 
221 &pinctrl {
222         pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
223                 bias-disable;
224                 drive-strength = <8>;
225         };
226 
227         pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
228                 bias-pull-up;
229                 drive-strength = <8>;
230         };
231 
232         emmc {
233                 emmc_bus8: emmc-bus8 {
234                         rockchip,pins = <1 RK_PC2 2 &pcfg_pull_up_drv_8ma>,
235                                         <1 RK_PC3 2 &pcfg_pull_up_drv_8ma>,
236                                         <1 RK_PC4 2 &pcfg_pull_up_drv_8ma>,
237                                         <1 RK_PC5 2 &pcfg_pull_up_drv_8ma>,
238                                         <1 RK_PC6 2 &pcfg_pull_up_drv_8ma>,
239                                         <1 RK_PC7 2 &pcfg_pull_up_drv_8ma>,
240                                         <1 RK_PD0 2 &pcfg_pull_up_drv_8ma>,
241                                         <1 RK_PD1 2 &pcfg_pull_up_drv_8ma>;
242                 };
243 
244                 emmc-clk {
245                         rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none_drv_8ma>;
246                 };
247 
248                 emmc-cmd {
249                         rockchip,pins = <1 RK_PD2 2 &pcfg_pull_up_drv_8ma>;
250                 };
251 
252                 emmc_reset: emmc-reset {
253                         rockchip,pins = <2 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
254                 };
255         };
256 
257         keys {
258                 pwr_key: pwr-key {
259                         rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_down>;
260                 };
261         };
262 
263         leds {
264                 stby_pwren: stby-pwren {
265                         rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
266                 };
267 
268                 led_ctl: led-ctl {
269                         rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
270                 };
271         };
272 
273         sdmmc {
274                 sdmmc_clk: sdmmc-clk {
275                         rockchip,pins = <2 RK_PB1 1 &pcfg_pull_none_drv_8ma>;
276                 };
277 
278                 sdmmc_cmd: sdmmc-cmd {
279                         rockchip,pins = <2 RK_PB2 1 &pcfg_pull_up_drv_8ma>;
280                 };
281 
282                 sdmmc_cd: sdmmc-cd {
283                         rockchip,pins = <2 RK_PB3 1 &pcfg_pull_up_drv_8ma>;
284                 };
285 
286                 sdmmc_bus1: sdmmc-bus1 {
287                         rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up_drv_8ma>;
288                 };
289 
290                 sdmmc_bus4: sdmmc-bus4 {
291                         rockchip,pins = <2 RK_PA5 1 &pcfg_pull_up_drv_8ma>,
292                                         <2 RK_PA6 1 &pcfg_pull_up_drv_8ma>,
293                                         <2 RK_PA7 1 &pcfg_pull_up_drv_8ma>,
294                                         <2 RK_PB0 1 &pcfg_pull_up_drv_8ma>;
295                 };
296         };
297 
298         usb {
299                 host_vbus_drv: host-vbus-drv {
300                         rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
301                 };
302         };
303 };
304 
305 &saradc {
306         vref-supply = <&vcc_18>;
307         status = "okay";
308 };
309 
310 &sdmmc {
311         bus-width = <4>;
312         clock-frequency = <50000000>;
313         max-frequency = <50000000>;
314         cap-sd-highspeed;
315         card-detect-delay = <200>;
316         pinctrl-names = "default";
317         pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
318         vmmc-supply = <&vcc_sd>;
319         vqmmc-supply = <&vccio_sd>;
320         status = "okay";
321 };
322 
323 &uart2 {
324         status = "okay";
325 };
326 
327 &uart4 {
328         pinctrl-names = "default";
329         pinctrl-0 = <&uart4_xfer>;
330         status = "okay";
331 };
332 
333 &usb_host0_ehci {
334         status = "okay";
335 };
336 
337 &usb_otg {
338         status = "okay";
339 };
340 
341 &wdt {
342         status = "okay";
343 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php