summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/rockchip/px30-engicam-common.dtsi
blob: 08b0b9fbcbc9a3621e104429a8a42bf4dcad4c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright (c) 2020 Engicam srl
 * Copyright (c) 2020 Amarula Solutions
 * Copyright (c) 2020 Amarula Solutions(India)
 */

/ {
	vcc5v0_sys: vcc5v0-sys {
		compatible = "regulator-fixed";
		regulator-name = "vcc5v0_sys";	/* +5V */
		regulator-always-on;
		regulator-boot-on;
		regulator-min-microvolt = <5000000>;
		regulator-max-microvolt = <5000000>;
	};

	sdio_pwrseq: sdio-pwrseq {
		compatible = "mmc-pwrseq-simple";
		clocks = <&xin32k>;
		clock-names = "ext_clock";
		post-power-on-delay-ms = <80>;
		pinctrl-names = "default";
		pinctrl-0 = <&wifi_enable_h>;
	};

	vcc3v3_btreg: vcc3v3-btreg {
		compatible = "regulator-gpio";
		enable-active-high;
		pinctrl-names = "default";
		pinctrl-0 = <&bt_enable_h>;
		regulator-name = "btreg-gpio-supply";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
		states = <3300000 0x0>;
	};

	vcc3v3_rf_aux_mod: vcc3v3-rf-aux-mod {
		compatible = "regulator-fixed";
		regulator-name = "vcc3v3_rf_aux_mod";
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		regulator-always-on;
		regulator-boot-on;
		vin-supply = <&vcc5v0_sys>;
	};

	xin32k: xin32k {
		compatible = "fixed-clock";
		#clock-cells = <0>;
		clock-frequency = <32768>;
		clock-output-names = "xin32k";
	};
};

&sdio {
	#address-cells = <1>;
	#size-cells = <0>;
	bus-width = <4>;
	clock-frequency = <50000000>;
	cap-sdio-irq;
	cap-sd-highspeed;
	keep-power-in-suspend;
	mmc-pwrseq = <&sdio_pwrseq>;
	non-removable;
	sd-uhs-sdr104;
	status = "okay";

	brcmf: wifi@1 {
		compatible = "brcm,bcm4329-fmac";
		reg = <1>;
	};
};

&gmac {
	clock_in_out = "output";
	phy-supply = <&vcc_3v3>;	/* +3V3_SOM */
	snps,reset-active-low;
	snps,reset-delays-us = <0 50000 50000>;
	snps,reset-gpio = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
	status = "okay";
};

&pwm0 {
	status = "okay";
};

&sdmmc {
	cap-sd-highspeed;
	card-detect-delay = <800>;
	vmmc-supply = <&vcc_3v3>;	/* +3V3_SOM */
	vqmmc-supply = <&vcc_3v3>;
	status = "okay";
};

&u2phy {
	status = "okay";

	u2phy_host: host-port {
		status = "okay";
	};

	u2phy_otg: otg-port {
		status = "okay";
	};
};

&uart2 {
	pinctrl-0 = <&uart2m1_xfer>;
	status = "okay";
};

&usb20_otg {
	status = "okay";
};

&usb_host0_ehci {
	status = "okay";
};

&usb_host0_ohci {
	status = "okay";
};