mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 07:31:29 +00:00
f2bd2e76d6
Fix adc-keys sub node names on Rockchip boards, so that they match with regex: '^button-' Signed-off-by: Johan Jonker <jbx6244@gmail.com> Link: https://lore.kernel.org/r/6a6a3603-5540-cacc-2672-c015af1ec684@gmail.com Signed-off-by: Heiko Stuebner <heiko@sntech.de>
53 lines
915 B
Plaintext
53 lines
915 B
Plaintext
// 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>;
|
|
|
|
button-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>;
|
|
};
|