zhang / rpms / kernel

Forked from rpms/kernel 5 years ago
Clone
e336be
From patchwork Wed Sep 26 06:24:57 2018
e336be
Content-Type: text/plain; charset="utf-8"
e336be
MIME-Version: 1.0
e336be
Content-Transfer-Encoding: 7bit
e336be
X-Patchwork-Submitter: Akash Gajjar <Akash_Gajjar@mentor.com>
e336be
X-Patchwork-Id: 10615319
e336be
Return-Path: 
e336be
 <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org>
e336be
Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org
e336be
 [172.30.200.125])
e336be
	by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 472D715A6
e336be
	for <patchwork-linux-arm@patchwork.kernel.org>;
e336be
 Wed, 26 Sep 2018 06:28:11 +0000 (UTC)
e336be
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
e336be
	by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32E3C29509
e336be
	for <patchwork-linux-arm@patchwork.kernel.org>;
e336be
 Wed, 26 Sep 2018 06:28:11 +0000 (UTC)
e336be
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
e336be
	id 22E0729725; Wed, 26 Sep 2018 06:28:11 +0000 (UTC)
e336be
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
e336be
	pdx-wl-mail.web.codeaurora.org
e336be
X-Spam-Level: 
e336be
X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED,
e336be
	DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable
e336be
	version=3.3.1
e336be
Received: from bombadil.infradead.org (bombadil.infradead.org
e336be
 [198.137.202.133])
e336be
	(using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits))
e336be
	(No client certificate requested)
e336be
	by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6DA2029509
e336be
	for <patchwork-linux-arm@patchwork.kernel.org>;
e336be
 Wed, 26 Sep 2018 06:28:07 +0000 (UTC)
e336be
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
e336be
	d=lists.infradead.org; s=bombadil.20170209; h=Sender:
e336be
	Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post:
e336be
	List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:
e336be
	Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description:
e336be
	Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:
e336be
	List-Owner; bh=ddeyiUGvmwlUUw+9+6b4C/EKK7hZfyuXiqxwUJxsL9c=; b=W5ngixHWjBQvJa
e336be
	A+8sOKC/eNNvzP9hWMMd1XjlYIlxbqdjCEHokv7m2UTFbuqcHnvGWaf3dF3tCv5rKPYRu+oI5TUmi
e336be
	yzvQbYRAOxJ9F1GTL8KRlR2wKDwk9ytfVlxNms7Hgfl7CYfSX7f6Ln72YNbBw/BbwV/VZBt72Fr0G
e336be
	4kJMqoZxeKjTcxj0NaVoEAYpXfJLCpX5AdXUrLIdRsbeN84NALKpd1RgllsdUk3dymUtIhc9rhX1y
e336be
	tjMoSWDdcEf0dTxjGtFOXL+vIA8/mF6J/fJx12VSPsT/CrbMM54M/AqBvfmOVgYP8rPk/SZgHGTZV
e336be
	uouz21HtNs50aqxpQk5g==;
e336be
Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org)
e336be
	by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux))
e336be
	id 1g53Iq-0000AF-2i; Wed, 26 Sep 2018 06:28:04 +0000
e336be
Received: from relay1.mentorg.com ([192.94.38.131])
e336be
 by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux))
e336be
 id 1g53I7-00007i-6r; Wed, 26 Sep 2018 06:27:21 +0000
e336be
Received: from nat-ies.mentorg.com ([192.94.31.2]
e336be
 helo=SVR-IES-MBX-04.mgc.mentorg.com)
e336be
 by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256)
e336be
 id 1g53HN-0006hO-OV from Akash_Gajjar@mentor.com ;
e336be
 Tue, 25 Sep 2018 23:26:34 -0700
e336be
Received: from eyas.local (137.202.0.90) by SVR-IES-MBX-04.mgc.mentorg.com
e336be
 (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 26 Sep
e336be
 2018 07:26:26 +0100
e336be
From: Akash Gajjar <Akash_Gajjar@mentor.com>
e336be
To: <heiko@sntech.de>
e336be
Subject: [PATCH v3] arm64: dts: rockchip: add initial dts support for
e336be
 Rockpro64
e336be
Date: Wed, 26 Sep 2018 11:54:57 +0530
e336be
Message-ID: <1537943105-21247-1-git-send-email-Akash_Gajjar@mentor.com>
e336be
X-Mailer: git-send-email 1.9.1
e336be
In-Reply-To: <Akash_Gajjar@mentor.com>
e336be
References: <Akash_Gajjar@mentor.com>
e336be
MIME-Version: 1.0
e336be
X-Originating-IP: [137.202.0.90]
e336be
X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To
e336be
 SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4)
e336be
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
e336be
X-CRM114-CacheID: sfid-20180925_232719_296426_D3C01020 
e336be
X-CRM114-Status: GOOD (  21.87  )
e336be
X-BeenThere: linux-arm-kernel@lists.infradead.org
e336be
X-Mailman-Version: 2.1.21
e336be
Precedence: list
e336be
List-Id: <linux-arm-kernel.lists.infradead.org>
e336be
List-Unsubscribe: 
e336be
 <http://lists.infradead.org/mailman/options/linux-arm-kernel>,
e336be
 <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe>
e336be
List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/>
e336be
List-Post: <mailto:linux-arm-kernel@lists.infradead.org>
e336be
List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help>
e336be
List-Subscribe: 
e336be
 <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>,
e336be
 <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe>
e336be
Cc: Mark Rutland <mark.rutland@arm.com>,
e336be
 Shohei Maruyama <cheat.sc.linux@outlook.com>, Arnd Bergmann <arnd@arndb.de>,
e336be
 devicetree@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
e336be
 Shawn Lin <shawn.lin@rock-chips.com>, linux-kernel@vger.kernel.org,
e336be
 Masahiro Yamada <yamada.masahiro@socionext.com>,
e336be
 linux-rockchip@lists.infradead.org, Rob Herring <robh+dt@kernel.org>,
e336be
 Klaus Goger <klaus.goger@theobroma-systems.com>,
e336be
 Philippe Ombredanne <pombredanne@nexb.com>,
e336be
 Enric Balletbo i Serra <enric.balletbo@collabora.com>,
e336be
 Pragnesh_patel@mentor.com, Deepak_das@mentor.com,
e336be
 Levin Du <djw@t-chip.com.cn>,
e336be
 Ezequiel Garcia <ezequiel@collabora.com>, Pierre-Hugues Husson <phh@phh.me>,
e336be
 linux-arm-kernel@lists.infradead.org
e336be
Content-Type: text/plain; charset="us-ascii"
e336be
Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org>
e336be
Errors-To: 
e336be
 linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org
e336be
X-Virus-Scanned: ClamAV using ClamSMTP
e336be
e336be
Rockpro64 is a rockchip RK3399 based board from pine64.org.
e336be
This patch adds basic device node support for Rockpro64 board and make it able
e336be
to bring up.
e336be
e336be
Peripheral Works
e336be
- Sdcard
e336be
- USB 2.0, 3.0
e336be
- Leds
e336be
- Ethernet
e336be
- Debug console
e336be
e336be
Not working:
e336be
- USB Type-C
e336be
e336be
Signed-off-by: Akash Gajjar <Akash_Gajjar@mentor.com>
e336be
Acked-by: Deepak Das <Deepak_Das@mentor.com>
e336be
---
e336be
changes for v2
e336be
- Added support for usb 2.0, 3.0
e336be
- Added fusb302 node and its regulator support
e336be
- Cleanup pinctrl node
e336be
- Remove backlight, pcie, sound codec node inherited from firefly-rk3399 dts
e336be
changes for v3
e336be
- Added copyright properly
e336be
- Typo correction in commit message
e336be
e336be
 Documentation/devicetree/bindings/arm/rockchip.txt |   4 +
e336be
 arch/arm64/boot/dts/rockchip/Makefile              |   1 +
e336be
 arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts  | 692 +++++++++++++++++++++
e336be
 3 files changed, 697 insertions(+)
e336be
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
e336be
e336be
diff --git a/Documentation/devicetree/bindings/arm/rockchip.txt b/Documentation/devicetree/bindings/arm/rockchip.txt
e336be
index acfd3c7..ac95183 100644
e336be
--- a/Documentation/devicetree/bindings/arm/rockchip.txt
e336be
+++ b/Documentation/devicetree/bindings/arm/rockchip.txt
e336be
@@ -160,6 +160,10 @@ Rockchip platforms device tree bindings
e336be
     Required root node properties:
e336be
     - compatible = "pine64,rock64", "rockchip,rk3328";
e336be
 
e336be
+- Pine64 RockPro64 board:
e336be
+    Required root node properties:
e336be
+    - compatible = "pine64,rockpro64", "rockchip,rk3399";
e336be
+
e336be
 - Rockchip PX3 Evaluation board:
e336be
     Required root node properties:
e336be
       - compatible = "rockchip,px3-evb", "rockchip,px3", "rockchip,rk3188";
e336be
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
e336be
index b0092d9..03d523a 100644
e336be
--- a/arch/arm64/boot/dts/rockchip/Makefile
e336be
+++ b/arch/arm64/boot/dts/rockchip/Makefile
e336be
@@ -15,5 +15,6 @@
e336be
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-gru-kevin.dtb
e336be
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-puma-haikou.dtb
e336be
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rock960.dtb
e336be
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-rockpro64.dtb
e336be
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire.dtb
e336be
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399-sapphire-excavator.dtb
e336be
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
e336be
new file mode 100644
e336be
index 0000000..1d35f54
e336be
--- /dev/null
e336be
+++ b/arch/arm64/boot/dts/rockchip/rk3399-rockpro64.dts
e336be
@@ -0,0 +1,692 @@
e336be
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
e336be
+/*
e336be
+ * Copyright (c) 2017 Fuzhou Rockchip Electronics Co., Ltd.
e336be
+ * Copyright (c) 2018 Akash Gajjar <Akash_Gajjar@mentor.com>
e336be
+ */
e336be
+
e336be
+/dts-v1/;
e336be
+#include <dt-bindings/input/linux-event-codes.h>
e336be
+#include <dt-bindings/pwm/pwm.h>
e336be
+#include "rk3399.dtsi"
e336be
+#include "rk3399-opp.dtsi"
e336be
+
e336be
+/ {
e336be
+	model = "Pine64 RockPro64";
e336be
+	compatible = "pine64,rockpro64", "rockchip,rk3399";
e336be
+
e336be
+	chosen {
e336be
+		stdout-path = "serial2:1500000n8";
e336be
+	};
e336be
+
e336be
+	clkin_gmac: external-gmac-clock {
e336be
+		compatible = "fixed-clock";
e336be
+		clock-frequency = <125000000>;
e336be
+		clock-output-names = "clkin_gmac";
e336be
+		#clock-cells = <0>;
e336be
+	};
e336be
+
e336be
+	dc_12v: dc-12v {
e336be
+		compatible = "regulator-fixed";
e336be
+		regulator-name = "dc_12v";
e336be
+		regulator-always-on;
e336be
+		regulator-boot-on;
e336be
+		regulator-min-microvolt = <12000000>;
e336be
+		regulator-max-microvolt = <12000000>;
e336be
+	};
e336be
+
e336be
+	gpio-keys {
e336be
+		compatible = "gpio-keys";
e336be
+		autorepeat;
e336be
+		pinctrl-names = "default";
e336be
+		pinctrl-0 = <&pwrbtn>;
e336be
+
e336be
+		power {
e336be
+			debounce-interval = <100>;
e336be
+			gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
e336be
+			label = "GPIO Key Power";
e336be
+			linux,code = <KEY_POWER>;
e336be
+			wakeup-source;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	leds {
e336be
+		compatible = "gpio-leds";
e336be
+		pinctrl-names = "default";
e336be
+		pinctrl-0 = <&work_led_gpio>, <&diy_led_gpio>;
e336be
+
e336be
+		work-led {
e336be
+			label = "work";
e336be
+			default-state = "on";
e336be
+			gpios = <&gpio0 RK_PB3 GPIO_ACTIVE_HIGH>;
e336be
+		};
e336be
+
e336be
+		diy-led {
e336be
+			label = "diy";
e336be
+			default-state = "off";
e336be
+			gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	sdio_pwrseq: sdio-pwrseq {
e336be
+		compatible = "mmc-pwrseq-simple";
e336be
+		clocks = <&rk808 1>;
e336be
+		clock-names = "ext_clock";
e336be
+		pinctrl-names = "default";
e336be
+		pinctrl-0 = <&wifi_enable_h>;
e336be
+
e336be
+		/*
e336be
+		 * On the module itself this is one of these (depending
e336be
+		 * on the actual card populated):
e336be
+		 * - SDIO_RESET_L_WL_REG_ON
e336be
+		 * - PDN (power down when low)
e336be
+		 */
e336be
+		reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;
e336be
+	};
e336be
+
e336be
+	/* switched by pmic_sleep */
e336be
+	vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
e336be
+		compatible = "regulator-fixed";
e336be
+		regulator-name = "vcc1v8_s3";
e336be
+		regulator-always-on;
e336be
+		regulator-boot-on;
e336be
+		regulator-min-microvolt = <1800000>;
e336be
+		regulator-max-microvolt = <1800000>;
e336be
+		vin-supply = <&vcc_1v8>;
e336be
+	};
e336be
+
e336be
+	vcc3v3_pcie: vcc3v3-pcie-regulator {
e336be
+		compatible = "regulator-fixed";
e336be
+		enable-active-high;
e336be
+		gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_HIGH>;
e336be
+		pinctrl-names = "default";
e336be
+		pinctrl-0 = <&pcie_pwr_en>;
e336be
+		regulator-name = "vcc3v3_pcie";
e336be
+		regulator-always-on;
e336be
+		regulator-boot-on;
e336be
+		vin-supply = <&dc_12v>;
e336be
+	};
e336be
+
e336be
+	vcc3v3_sys: vcc3v3-sys {
e336be
+		compatible = "regulator-fixed";
e336be
+		regulator-name = "vcc3v3_sys";
e336be
+		regulator-always-on;
e336be
+		regulator-boot-on;
e336be
+		regulator-min-microvolt = <3300000>;
e336be
+		regulator-max-microvolt = <3300000>;
e336be
+		vin-supply = <&vcc_sys>;
e336be
+	};
e336be
+
e336be
+	/* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
e336be
+	vcc5v0_host: vcc5v0-host-regulator {
e336be
+		compatible = "regulator-fixed";
e336be
+		enable-active-high;
e336be
+		gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
e336be
+		pinctrl-names = "default";
e336be
+		pinctrl-0 = <&vcc5v0_host_en>;
e336be
+		regulator-name = "vcc5v0_host";
e336be
+		regulator-always-on;
e336be
+		vin-supply = <&vcc_sys>;
e336be
+	};
e336be
+
e336be
+	vcc5v0_typec: vcc5v0-typec-regulator {
e336be
+		compatible = "regulator-fixed";
e336be
+		enable-active-high;
e336be
+		gpio = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>;
e336be
+		pinctrl-names = "default";
e336be
+		pinctrl-0 = <&vcc5v0_typec_en>;
e336be
+		regulator-name = "vcc5v0_typec";
e336be
+		regulator-always-on;
e336be
+		vin-supply = <&vcc_sys>;
e336be
+	};
e336be
+
e336be
+	vcc_sys: vcc-sys {
e336be
+		compatible = "regulator-fixed";
e336be
+		regulator-name = "vcc_sys";
e336be
+		regulator-always-on;
e336be
+		regulator-boot-on;
e336be
+		regulator-min-microvolt = <5000000>;
e336be
+		regulator-max-microvolt = <5000000>;
e336be
+		vin-supply = <&dc_12v>;
e336be
+	};
e336be
+
e336be
+	vdd_log: vdd-log {
e336be
+		compatible = "pwm-regulator";
e336be
+		pwms = <&pwm2 0 25000 1>;
e336be
+		regulator-name = "vdd_log";
e336be
+		regulator-always-on;
e336be
+		regulator-boot-on;
e336be
+		regulator-min-microvolt = <800000>;
e336be
+		regulator-max-microvolt = <1400000>;
e336be
+		vin-supply = <&vcc_sys>;
e336be
+	};
e336be
+};
e336be
+
e336be
+&cpu_l0 {
e336be
+	cpu-supply = <&vdd_cpu_l>;
e336be
+};
e336be
+
e336be
+&cpu_l1 {
e336be
+	cpu-supply = <&vdd_cpu_l>;
e336be
+};
e336be
+
e336be
+&cpu_l2 {
e336be
+	cpu-supply = <&vdd_cpu_l>;
e336be
+};
e336be
+
e336be
+&cpu_l3 {
e336be
+	cpu-supply = <&vdd_cpu_l>;
e336be
+};
e336be
+
e336be
+&cpu_b0 {
e336be
+	cpu-supply = <&vdd_cpu_b>;
e336be
+};
e336be
+
e336be
+&cpu_b1 {
e336be
+	cpu-supply = <&vdd_cpu_b>;
e336be
+};
e336be
+
e336be
+&emmc_phy {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&gmac {
e336be
+	assigned-clocks = <&cru SCLK_RMII_SRC>;
e336be
+	assigned-clock-parents = <&clkin_gmac>;
e336be
+	clock_in_out = "input";
e336be
+	phy-supply = <&vcc_lan>;
e336be
+	phy-mode = "rgmii";
e336be
+	pinctrl-names = "default";
e336be
+	pinctrl-0 = <&rgmii_pins>;
e336be
+	snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
e336be
+	snps,reset-active-low;
e336be
+	snps,reset-delays-us = <0 10000 50000>;
e336be
+	tx_delay = <0x28>;
e336be
+	rx_delay = <0x11>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&i2c0 {
e336be
+	clock-frequency = <400000>;
e336be
+	i2c-scl-rising-time-ns = <168>;
e336be
+	i2c-scl-falling-time-ns = <4>;
e336be
+	status = "okay";
e336be
+
e336be
+	rk808: pmic@1b {
e336be
+		compatible = "rockchip,rk808";
e336be
+		reg = <0x1b>;
e336be
+		interrupt-parent = <&gpio1>;
e336be
+		interrupts = <21 IRQ_TYPE_LEVEL_LOW>;
e336be
+		#clock-cells = <1>;
e336be
+		clock-output-names = "xin32k", "rk808-clkout2";
e336be
+		pinctrl-names = "default";
e336be
+		pinctrl-0 = <&pmic_int_l>;
e336be
+		rockchip,system-power-controller;
e336be
+		wakeup-source;
e336be
+
e336be
+		vcc1-supply = <&vcc_sys>;
e336be
+		vcc2-supply = <&vcc_sys>;
e336be
+		vcc3-supply = <&vcc_sys>;
e336be
+		vcc4-supply = <&vcc_sys>;
e336be
+		vcc6-supply = <&vcc_sys>;
e336be
+		vcc7-supply = <&vcc_sys>;
e336be
+		vcc8-supply = <&vcc3v3_sys>;
e336be
+		vcc9-supply = <&vcc_sys>;
e336be
+		vcc10-supply = <&vcc_sys>;
e336be
+		vcc11-supply = <&vcc_sys>;
e336be
+		vcc12-supply = <&vcc3v3_sys>;
e336be
+		vddio-supply = <&vcc1v8_pmu>;
e336be
+
e336be
+		regulators {
e336be
+			vdd_center: DCDC_REG1 {
e336be
+				regulator-name = "vdd_center";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <750000>;
e336be
+				regulator-max-microvolt = <1350000>;
e336be
+				regulator-ramp-delay = <6001>;
e336be
+				regulator-state-mem {
e336be
+					regulator-off-in-suspend;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vdd_cpu_l: DCDC_REG2 {
e336be
+				regulator-name = "vdd_cpu_l";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <750000>;
e336be
+				regulator-max-microvolt = <1350000>;
e336be
+				regulator-ramp-delay = <6001>;
e336be
+				regulator-state-mem {
e336be
+					regulator-off-in-suspend;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc_ddr: DCDC_REG3 {
e336be
+				regulator-name = "vcc_ddr";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-state-mem {
e336be
+					regulator-on-in-suspend;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc_1v8: DCDC_REG4 {
e336be
+				regulator-name = "vcc_1v8";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <1800000>;
e336be
+				regulator-max-microvolt = <1800000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-on-in-suspend;
e336be
+					regulator-suspend-microvolt = <1800000>;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc1v8_dvp: LDO_REG1 {
e336be
+				regulator-name = "vcc1v8_dvp";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <1800000>;
e336be
+				regulator-max-microvolt = <1800000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-off-in-suspend;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc2v8_dvp: LDO_REG2 {
e336be
+				regulator-name = "vcc2v8_dvp";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <2800000>;
e336be
+				regulator-max-microvolt = <2800000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-off-in-suspend;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc1v8_pmu: LDO_REG3 {
e336be
+				regulator-name = "vcc1v8_pmu";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <1800000>;
e336be
+				regulator-max-microvolt = <1800000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-on-in-suspend;
e336be
+					regulator-suspend-microvolt = <1800000>;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc_sdio: LDO_REG4 {
e336be
+				regulator-name = "vcc_sdio";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <1800000>;
e336be
+				regulator-max-microvolt = <3000000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-on-in-suspend;
e336be
+					regulator-suspend-microvolt = <3000000>;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcca3v0_codec: LDO_REG5 {
e336be
+				regulator-name = "vcca3v0_codec";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <3000000>;
e336be
+				regulator-max-microvolt = <3000000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-off-in-suspend;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc_1v5: LDO_REG6 {
e336be
+				regulator-name = "vcc_1v5";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <1500000>;
e336be
+				regulator-max-microvolt = <1500000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-on-in-suspend;
e336be
+					regulator-suspend-microvolt = <1500000>;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcca1v8_codec: LDO_REG7 {
e336be
+				regulator-name = "vcca1v8_codec";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <1800000>;
e336be
+				regulator-max-microvolt = <1800000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-off-in-suspend;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc_3v0: LDO_REG8 {
e336be
+				regulator-name = "vcc_3v0";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-min-microvolt = <3000000>;
e336be
+				regulator-max-microvolt = <3000000>;
e336be
+				regulator-state-mem {
e336be
+					regulator-on-in-suspend;
e336be
+					regulator-suspend-microvolt = <3000000>;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc3v3_s3: vcc_lan: SWITCH_REG1 {
e336be
+				regulator-name = "vcc3v3_s3";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-state-mem {
e336be
+					regulator-off-in-suspend;
e336be
+				};
e336be
+			};
e336be
+
e336be
+			vcc3v3_s0: SWITCH_REG2 {
e336be
+				regulator-name = "vcc3v3_s0";
e336be
+				regulator-always-on;
e336be
+				regulator-boot-on;
e336be
+				regulator-state-mem {
e336be
+					regulator-off-in-suspend;
e336be
+				};
e336be
+			};
e336be
+		};
e336be
+	};
e336be
+
e336be
+	vdd_cpu_b: regulator@40 {
e336be
+		compatible = "silergy,syr827";
e336be
+		reg = <0x40>;
e336be
+		fcs,suspend-voltage-selector = <0>;
e336be
+		regulator-name = "vdd_cpu_b";
e336be
+		regulator-min-microvolt = <712500>;
e336be
+		regulator-max-microvolt = <1500000>;
e336be
+		regulator-ramp-delay = <1000>;
e336be
+		regulator-always-on;
e336be
+		regulator-boot-on;
e336be
+		vin-supply = <&vcc_sys>;
e336be
+
e336be
+		regulator-state-mem {
e336be
+			regulator-off-in-suspend;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	vdd_gpu: regulator@41 {
e336be
+		compatible = "silergy,syr828";
e336be
+		reg = <0x41>;
e336be
+		fcs,suspend-voltage-selector = <1>;
e336be
+		regulator-name = "vdd_gpu";
e336be
+		regulator-min-microvolt = <712500>;
e336be
+		regulator-max-microvolt = <1500000>;
e336be
+		regulator-ramp-delay = <1000>;
e336be
+		regulator-always-on;
e336be
+		regulator-boot-on;
e336be
+		vin-supply = <&vcc_sys>;
e336be
+
e336be
+		regulator-state-mem {
e336be
+			regulator-off-in-suspend;
e336be
+		};
e336be
+	};
e336be
+};
e336be
+
e336be
+&i2c1 {
e336be
+	i2c-scl-rising-time-ns = <300>;
e336be
+	i2c-scl-falling-time-ns = <15>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&i2c3 {
e336be
+	i2c-scl-rising-time-ns = <450>;
e336be
+	i2c-scl-falling-time-ns = <15>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&i2c4 {
e336be
+	i2c-scl-rising-time-ns = <600>;
e336be
+	i2c-scl-falling-time-ns = <20>;
e336be
+	status = "okay";
e336be
+
e336be
+	fusb0: typec-portc@22 {
e336be
+		compatible = "fcs,fusb302";
e336be
+		reg = <0x22>;
e336be
+		interrupt-parent = <&gpio1>;
e336be
+		interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
e336be
+		pinctrl-names = "default";
e336be
+		pinctrl-0 = <&fusb0_int>;
e336be
+		vbus-supply = <&vcc5v0_typec>;
e336be
+		status = "okay";
e336be
+	};
e336be
+};
e336be
+
e336be
+&i2s0 {
e336be
+	rockchip,playback-channels = <8>;
e336be
+	rockchip,capture-channels = <8>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&i2s1 {
e336be
+	rockchip,playback-channels = <2>;
e336be
+	rockchip,capture-channels = <2>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&i2s2 {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&io_domains {
e336be
+	status = "okay";
e336be
+
e336be
+	bt656-supply = <&vcc1v8_dvp>;
e336be
+	audio-supply = <&vcca1v8_codec>;
e336be
+	sdmmc-supply = <&vcc_sdio>;
e336be
+	gpio1830-supply = <&vcc_3v0>;
e336be
+};
e336be
+
e336be
+&pmu_io_domains {
e336be
+	pmu1830-supply = <&vcc_3v0>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&pinctrl {
e336be
+	buttons {
e336be
+		pwrbtn: pwrbtn {
e336be
+			rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	fusb302x {
e336be
+		fusb0_int: fusb0-int {
e336be
+			rockchip,pins = <1 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	leds {
e336be
+		work_led_gpio: work_led-gpio {
e336be
+			rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
e336be
+		};
e336be
+
e336be
+		diy_led_gpio: diy_led-gpio {
e336be
+			rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	lcd-panel {
e336be
+		lcd_panel_reset: lcd-panel-reset {
e336be
+			rockchip,pins = <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	pcie {
e336be
+		pcie_pwr_en: pcie-pwr-en {
e336be
+			rockchip,pins = <1 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	pmic {
e336be
+		pmic_int_l: pmic-int-l {
e336be
+			rockchip,pins = <1 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
e336be
+		};
e336be
+
e336be
+		vsel1_gpio: vsel1-gpio {
e336be
+			rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
e336be
+		};
e336be
+
e336be
+		vsel2_gpio: vsel2-gpio {
e336be
+			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_down>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	sdio-pwrseq {
e336be
+		wifi_enable_h: wifi-enable-h {
e336be
+			rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	usb-typec {
e336be
+		vcc5v0_typec_en: vcc5v0_typec_en {
e336be
+			rockchip,pins = <1 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
e336be
+		};
e336be
+	};
e336be
+
e336be
+	usb2 {
e336be
+		vcc5v0_host_en: vcc5v0-host-en {
e336be
+			rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
e336be
+		};
e336be
+	};
e336be
+};
e336be
+
e336be
+&pwm0 {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&pwm2 {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&saradc {
e336be
+	vref-supply = <&vcca1v8_s3>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&sdmmc {
e336be
+	bus-width = <4>;
e336be
+	cap-mmc-highspeed;
e336be
+	cap-sd-highspeed;
e336be
+	cd-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
e336be
+	disable-wp;
e336be
+	max-frequency = <150000000>;
e336be
+	pinctrl-names = "default";
e336be
+	pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&sdhci {
e336be
+	bus-width = <8>;
e336be
+	mmc-hs400-1_8v;
e336be
+	mmc-hs400-enhanced-strobe;
e336be
+	non-removable;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&tcphy0 {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&tcphy1 {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&tsadc {
e336be
+	/* tshut mode 0:CRU 1:GPIO */
e336be
+	rockchip,hw-tshut-mode = <1>;
e336be
+	/* tshut polarity 0:LOW 1:HIGH */
e336be
+	rockchip,hw-tshut-polarity = <1>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&u2phy0 {
e336be
+	status = "okay";
e336be
+
e336be
+	u2phy0_otg: otg-port {
e336be
+		status = "okay";
e336be
+	};
e336be
+
e336be
+	u2phy0_host: host-port {
e336be
+		phy-supply = <&vcc5v0_host>;
e336be
+		status = "okay";
e336be
+	};
e336be
+};
e336be
+
e336be
+&u2phy1 {
e336be
+	status = "okay";
e336be
+
e336be
+	u2phy1_otg: otg-port {
e336be
+		status = "okay";
e336be
+	};
e336be
+
e336be
+	u2phy1_host: host-port {
e336be
+		phy-supply = <&vcc5v0_host>;
e336be
+		status = "okay";
e336be
+	};
e336be
+};
e336be
+
e336be
+&uart0 {
e336be
+	pinctrl-names = "default";
e336be
+	pinctrl-0 = <&uart0_xfer &uart0_cts>;
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&uart2 {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&usb_host0_ehci {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&usb_host0_ohci {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&usb_host1_ehci {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&usb_host1_ohci {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&usbdrd3_0 {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&usbdrd_dwc3_0 {
e336be
+	status = "okay";
e336be
+	dr_mode = "otg";
e336be
+};
e336be
+
e336be
+&usbdrd3_1 {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&usbdrd_dwc3_1 {
e336be
+	status = "okay";
e336be
+	dr_mode = "host";
e336be
+};
e336be
+
e336be
+&vopb {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&vopb_mmu {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&vopl {
e336be
+	status = "okay";
e336be
+};
e336be
+
e336be
+&vopl_mmu {
e336be
+	status = "okay";
e336be
+};