mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-31 22:23:05 +00:00

The preferred nodename for fixed-regulators has changed to pattern: '^regulator(-[0-9]+v[0-9]+|-[0-9a-z-]+)?$' Fix all Rockchip DT regulator nodenames. Signed-off-by: Johan Jonker <jbx6244@gmail.com> Link: https://lore.kernel.org/r/cfc3cfe1-086b-48f1-9b89-f17c9391d3cc@gmail.com [Also include the backlight-regulator and panel-regulator from rk3288-veyron-edp, and adapt the Pinky device accordingly] Signed-off-by: Heiko Stuebner <heiko@sntech.de>
105 lines
1.7 KiB
Plaintext
105 lines
1.7 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rk3128.dtsi"
|
|
|
|
/ {
|
|
model = "Rockchip RK3128 Evaluation board";
|
|
compatible = "rockchip,rk3128-evb", "rockchip,rk3128";
|
|
|
|
aliases {
|
|
mmc0 = &emmc;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = &uart2;
|
|
};
|
|
|
|
memory@60000000 {
|
|
device_type = "memory";
|
|
reg = <0x60000000 0x40000000>;
|
|
};
|
|
|
|
vcc5v0_otg: regulator-vcc5v0-otg {
|
|
compatible = "regulator-fixed";
|
|
gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&otg_vbus_drv>;
|
|
regulator-name = "vcc5v0_otg";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
};
|
|
|
|
vcc5v0_host: regulator-vcc5v0-host {
|
|
compatible = "regulator-fixed";
|
|
gpio = <&gpio2 23 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&host_vbus_drv>;
|
|
regulator-name = "vcc5v0_host";
|
|
regulator-always-on;
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
};
|
|
};
|
|
|
|
&emmc {
|
|
bus-width = <8>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "okay";
|
|
|
|
hym8563: rtc@51 {
|
|
compatible = "haoyu,hym8563";
|
|
reg = <0x51>;
|
|
#clock-cells = <0>;
|
|
clock-output-names = "xin32k";
|
|
};
|
|
};
|
|
|
|
&usb2phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb2phy_host {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb2phy_otg {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host_ehci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_host_ohci {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_otg {
|
|
vbus-supply = <&vcc5v0_otg>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pinctrl {
|
|
usb-host {
|
|
host_vbus_drv: host-vbus-drv {
|
|
rockchip,pins = <2 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
|
|
usb-otg {
|
|
otg_vbus_drv: otg-vbus-drv {
|
|
rockchip,pins = <0 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|