~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 72182c58cc46aa17a644381aa7ab7890cb727541 (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
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * FriendlyElec NanoPi M4B board device tree source
 *
 * Copyright (c) 2020 Chen-Yu Tsai <wens@csie.org>
 */

/dts-v1/;
#include "rk3399-nanopi-m4.dts"

/ {
	model = "FriendlyElec NanoPi M4B";
	compatible = "friendlyarm,nanopi-m4b", "rockchip,rk3399";

	adc-keys {
		compatible = "adc-keys";
		io-channels = <&saradc 1>;
		io-channel-names = "buttons";
		keyup-threshold-microvolt = <1500000>;
		poll-interval = <100>;

		recovery {
			label = "Recovery";
			linux,code = <KEY_VENDOR>;
			press-threshold-microvolt = <18000>;
		};
	};
};

/* No USB type-C PD power manager */
/delete-node/ &fusb0;

&i2c4 {
	status = "disabled";
};

&u2phy0_host {
	phy-supply = <&vcc5v0_usb2>;
};

&u2phy0_otg {
	phy-supply = <&vbus_typec>;
};

&u2phy1_otg {
	phy-supply = <&vcc5v0_usb1>;
};

&vbus_typec {
	enable-active-high;
	gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
};