| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (c) 2021 Rockchip Electronics Co., Ltd. |
| 4 |
* Copyright (c) 2023 Thomas McKahan |
| 5 |
* Copyright (c) 2024 Linaro Ltd. |
| 6 |
* |
| 7 |
*/ |
| 8 |
|
| 9 |
/dts-v1/; |
| 10 |
|
| 11 |
#include "rk3588-nanopc-t6.dtsi" |
| 12 |
|
| 13 |
/ { |
| 14 |
model = "FriendlyElec NanoPC-T6 LTS"; |
| 15 |
compatible = "friendlyarm,nanopc-t6-lts", "rockchip,rk3588"; |
| 16 |
|
| 17 |
/* provide power for on-board USB 2.0 hub */ |
| 18 |
vcc5v0_usb20_host: regulator-vcc5v0-usb20-host { |
| 19 |
compatible = "regulator-fixed"; |
| 20 |
enable-active-high; |
| 21 |
gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; |
| 22 |
pinctrl-0 = <&usb20_host_pwren>; |
| 23 |
pinctrl-names = "default"; |
| 24 |
regulator-always-on; |
| 25 |
regulator-boot-on; |
| 26 |
regulator-max-microvolt = <5000000>; |
| 27 |
regulator-min-microvolt = <5000000>; |
| 28 |
regulator-name = "vcc5v0_usb20_host"; |
| 29 |
vin-supply = <&vcc5v0_sys>; |
| 30 |
}; |
| 31 |
}; |
| 32 |
|
| 33 |
&pinctrl { |
| 34 |
usb { |
| 35 |
usb20_host_pwren: usb20-host-pwren { |
| 36 |
rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 37 |
}; |
| 38 |
}; |
| 39 |
}; |
| 40 |
|
| 41 |
&u2phy1 { |
| 42 |
status = "okay"; |
| 43 |
}; |
| 44 |
|
| 45 |
&u2phy1_otg { |
| 46 |
status = "okay"; |
| 47 |
}; |
| 48 |
|
| 49 |
&u2phy2_host { |
| 50 |
phy-supply = <&vcc5v0_usb20_host>; |
| 51 |
}; |
| 52 |
|
| 53 |
&usbdp_phy1 { |
| 54 |
status = "okay"; |
| 55 |
}; |
| 56 |
|
| 57 |
&usb_host1_xhci { |
| 58 |
dr_mode = "host"; |
| 59 |
status = "okay"; |
| 60 |
}; |