xref: /linux/scripts/dtc/include-prefixes/arm/rockchip/rockchip-radxa-dalang-carrier.dtsi (revision c34e9ab9a612ee8b18273398ef75c207b01f516d)
1724ba675SRob Herring// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2724ba675SRob Herring/*
3724ba675SRob Herring * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
4724ba675SRob Herring * Copyright (c) 2019 Radxa Limited
5724ba675SRob Herring * Copyright (c) 2019 Amarula Solutions(India)
6724ba675SRob Herring */
7724ba675SRob Herring
8724ba675SRob Herring#include <dt-bindings/pwm/pwm.h>
9724ba675SRob Herring
10724ba675SRob Herring/ {
11724ba675SRob Herring	clkin_gmac: external-gmac-clock {
12724ba675SRob Herring		compatible = "fixed-clock";
13724ba675SRob Herring		clock-frequency = <125000000>;
14724ba675SRob Herring		clock-output-names = "clkin_gmac";
15724ba675SRob Herring		#clock-cells = <0>;
16724ba675SRob Herring	};
17724ba675SRob Herring
18724ba675SRob Herring	sdio_pwrseq: sdio-pwrseq {
19724ba675SRob Herring		compatible = "mmc-pwrseq-simple";
20724ba675SRob Herring		clocks = <&hym8563>;
21724ba675SRob Herring		clock-names = "ext_clock";
22724ba675SRob Herring		pinctrl-names = "default";
23724ba675SRob Herring		pinctrl-0 = <&wifi_enable_h>;
24724ba675SRob Herring	};
25724ba675SRob Herring
26*2c3944d9SJohan Jonker	vcc12v_dcin: regulator-vcc12v-dcin {
27724ba675SRob Herring		compatible = "regulator-fixed";
28724ba675SRob Herring		regulator-name = "vcc12v_dcin";
29724ba675SRob Herring		regulator-always-on;
30724ba675SRob Herring		regulator-boot-on;
31724ba675SRob Herring		regulator-min-microvolt = <12000000>;
32724ba675SRob Herring		regulator-max-microvolt = <12000000>;
33724ba675SRob Herring	};
34724ba675SRob Herring
35*2c3944d9SJohan Jonker	vcc5v0_sys: regulator-vcc5v0-sys {
36724ba675SRob Herring		compatible = "regulator-fixed";
37724ba675SRob Herring		regulator-name = "vcc5v0_sys";
38724ba675SRob Herring		regulator-always-on;
39724ba675SRob Herring		regulator-boot-on;
40724ba675SRob Herring		regulator-min-microvolt = <5000000>;
41724ba675SRob Herring		regulator-max-microvolt = <5000000>;
42724ba675SRob Herring		vin-supply = <&vcc12v_dcin>;
43724ba675SRob Herring	};
44724ba675SRob Herring
45*2c3944d9SJohan Jonker	vbus_host: regulator-vbus-host {
46724ba675SRob Herring		compatible = "regulator-fixed";
47724ba675SRob Herring		pinctrl-names = "default";
48724ba675SRob Herring		pinctrl-0 = <&usb1_en_oc>;
49724ba675SRob Herring		regulator-name = "vbus_host"; /* HOST-5V */
50724ba675SRob Herring		regulator-always-on;
51724ba675SRob Herring		vin-supply = <&vcc5v0_sys>;
52724ba675SRob Herring	};
53724ba675SRob Herring
54*2c3944d9SJohan Jonker	vbus_typec: regulator-vbus-typec {
55724ba675SRob Herring		compatible = "regulator-fixed";
56724ba675SRob Herring		pinctrl-names = "default";
57724ba675SRob Herring		pinctrl-0 = <&usb0_en_oc>;
58724ba675SRob Herring		regulator-name = "vbus_typec";
59724ba675SRob Herring		regulator-always-on;
60724ba675SRob Herring		vin-supply = <&vcc5v0_sys>;
61724ba675SRob Herring	};
62724ba675SRob Herring};
63724ba675SRob Herring
64724ba675SRob Herring&gmac {
65724ba675SRob Herring	assigned-clock-parents = <&clkin_gmac>;
66724ba675SRob Herring	clock_in_out = "input";
67724ba675SRob Herring	phy-mode = "rgmii";
68724ba675SRob Herring	pinctrl-names = "default";
69724ba675SRob Herring	pinctrl-0 = <&rgmii_pins>;
70724ba675SRob Herring	snps,reset-active-low;
71724ba675SRob Herring	snps,reset-delays-us = <0 10000 50000>;
72724ba675SRob Herring	tx_delay = <0x28>;
73724ba675SRob Herring	rx_delay = <0x11>;
74724ba675SRob Herring	status = "okay";
75724ba675SRob Herring};
76724ba675SRob Herring
77724ba675SRob Herring&hdmi {
78724ba675SRob Herring	status = "okay";
79724ba675SRob Herring};
80724ba675SRob Herring
81724ba675SRob Herring&pwm0 {
82724ba675SRob Herring	status = "okay";
83724ba675SRob Herring};
84724ba675SRob Herring
85724ba675SRob Herring&pwm2 {
86724ba675SRob Herring	status = "okay";
87724ba675SRob Herring};
88724ba675SRob Herring
89724ba675SRob Herring&sdio0 {
90724ba675SRob Herring	bus-width = <4>;
91724ba675SRob Herring	cap-sd-highspeed;
92724ba675SRob Herring	cap-sdio-irq;
93724ba675SRob Herring	keep-power-in-suspend;
94724ba675SRob Herring	mmc-pwrseq = <&sdio_pwrseq>;
95724ba675SRob Herring	non-removable;
96724ba675SRob Herring	pinctrl-names = "default";
97724ba675SRob Herring	pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
98724ba675SRob Herring	sd-uhs-sdr104;
99724ba675SRob Herring	status = "okay";
100724ba675SRob Herring};
101724ba675SRob Herring
102724ba675SRob Herring&sdmmc {
103724ba675SRob Herring	bus-width = <4>;
104724ba675SRob Herring	cap-mmc-highspeed;
105724ba675SRob Herring	cap-sd-highspeed;
106724ba675SRob Herring	disable-wp;
107724ba675SRob Herring	vqmmc-supply = <&vccio_sd>;
108724ba675SRob Herring	pinctrl-names = "default";
109724ba675SRob Herring	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
110724ba675SRob Herring	status = "okay";
111724ba675SRob Herring};
112724ba675SRob Herring
113724ba675SRob Herring&uart0 {
114724ba675SRob Herring	pinctrl-names = "default";
115724ba675SRob Herring	pinctrl-0 = <&uart0_xfer &uart0_cts>;
116724ba675SRob Herring	status = "okay";
117724ba675SRob Herring};
118724ba675SRob Herring
119724ba675SRob Herring&uart2 {
120724ba675SRob Herring	status = "okay";
121724ba675SRob Herring};
122724ba675SRob Herring
123724ba675SRob Herring&vopb {
124724ba675SRob Herring	status = "okay";
125724ba675SRob Herring};
126724ba675SRob Herring
127724ba675SRob Herring&vopb_mmu {
128724ba675SRob Herring	status = "okay";
129724ba675SRob Herring};
130724ba675SRob Herring
131724ba675SRob Herring&vopl {
132724ba675SRob Herring	status = "okay";
133724ba675SRob Herring};
134724ba675SRob Herring
135724ba675SRob Herring&vopl_mmu {
136724ba675SRob Herring	status = "okay";
137724ba675SRob Herring};
138