15def4c47SEmmanuel Vadot// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 25def4c47SEmmanuel Vadot/* 35def4c47SEmmanuel Vadot * FriendlyElec NanoPi M4B board device tree source 45def4c47SEmmanuel Vadot * 55def4c47SEmmanuel Vadot * Copyright (c) 2020 Chen-Yu Tsai <wens@csie.org> 65def4c47SEmmanuel Vadot */ 75def4c47SEmmanuel Vadot 85def4c47SEmmanuel Vadot/dts-v1/; 95def4c47SEmmanuel Vadot#include "rk3399-nanopi-m4.dts" 105def4c47SEmmanuel Vadot 115def4c47SEmmanuel Vadot/ { 125def4c47SEmmanuel Vadot model = "FriendlyElec NanoPi M4B"; 135def4c47SEmmanuel Vadot compatible = "friendlyarm,nanopi-m4b", "rockchip,rk3399"; 145def4c47SEmmanuel Vadot 155def4c47SEmmanuel Vadot adc-keys { 165def4c47SEmmanuel Vadot compatible = "adc-keys"; 175def4c47SEmmanuel Vadot io-channels = <&saradc 1>; 185def4c47SEmmanuel Vadot io-channel-names = "buttons"; 195def4c47SEmmanuel Vadot keyup-threshold-microvolt = <1500000>; 205def4c47SEmmanuel Vadot poll-interval = <100>; 215def4c47SEmmanuel Vadot 22*7ef62cebSEmmanuel Vadot button-recovery { 235def4c47SEmmanuel Vadot label = "Recovery"; 245def4c47SEmmanuel Vadot linux,code = <KEY_VENDOR>; 255def4c47SEmmanuel Vadot press-threshold-microvolt = <18000>; 265def4c47SEmmanuel Vadot }; 275def4c47SEmmanuel Vadot }; 285def4c47SEmmanuel Vadot}; 295def4c47SEmmanuel Vadot 305def4c47SEmmanuel Vadot/* No USB type-C PD power manager */ 315def4c47SEmmanuel Vadot/delete-node/ &fusb0; 325def4c47SEmmanuel Vadot 335def4c47SEmmanuel Vadot&i2c4 { 345def4c47SEmmanuel Vadot status = "disabled"; 355def4c47SEmmanuel Vadot}; 365def4c47SEmmanuel Vadot 375def4c47SEmmanuel Vadot&u2phy0_host { 385def4c47SEmmanuel Vadot phy-supply = <&vcc5v0_usb2>; 395def4c47SEmmanuel Vadot}; 405def4c47SEmmanuel Vadot 415def4c47SEmmanuel Vadot&u2phy0_otg { 425def4c47SEmmanuel Vadot phy-supply = <&vbus_typec>; 435def4c47SEmmanuel Vadot}; 445def4c47SEmmanuel Vadot 455def4c47SEmmanuel Vadot&u2phy1_otg { 465def4c47SEmmanuel Vadot phy-supply = <&vcc5v0_usb1>; 475def4c47SEmmanuel Vadot}; 485def4c47SEmmanuel Vadot 495def4c47SEmmanuel Vadot&vbus_typec { 505def4c47SEmmanuel Vadot enable-active-high; 515def4c47SEmmanuel Vadot gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; 525def4c47SEmmanuel Vadot}; 53