xref: /linux/arch/arm64/boot/dts/rockchip/rk3399-nanopi-m4b.dts (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * FriendlyElec NanoPi M4B board device tree source
4 *
5 * Copyright (c) 2020 Chen-Yu Tsai <wens@csie.org>
6 */
7
8/dts-v1/;
9
10#include "rk3399-nanopi-m4.dtsi"
11
12/ {
13	model = "FriendlyElec NanoPi M4B";
14	compatible = "friendlyarm,nanopi-m4b", "rockchip,rk3399";
15
16	adc-keys {
17		compatible = "adc-keys";
18		io-channels = <&saradc 1>;
19		io-channel-names = "buttons";
20		keyup-threshold-microvolt = <1500000>;
21		poll-interval = <100>;
22
23		button-recovery {
24			label = "Recovery";
25			linux,code = <KEY_VENDOR>;
26			press-threshold-microvolt = <18000>;
27		};
28	};
29};
30
31/* No USB type-C PD power manager */
32/delete-node/ &fusb0;
33
34&i2c4 {
35	status = "disabled";
36};
37
38&u2phy0_host {
39	phy-supply = <&vcc5v0_usb2>;
40};
41
42&u2phy0_otg {
43	phy-supply = <&vbus_typec>;
44};
45
46&u2phy1_otg {
47	phy-supply = <&vcc5v0_usb1>;
48};
49
50&vbus_typec {
51	enable-active-high;
52	gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
53};
54