From nobody Sat Nov 30 06:29:25 2024 Received: from classfun.cn (unknown [129.204.178.38]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6062F176FD2; Wed, 11 Sep 2024 12:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=129.204.178.38 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726057733; cv=none; b=GUpvPyVrgMP2t1CekqtBKPhl9XppFDsTcTtunJkueOYOw1TP6wuIX8SFv1GfAIayzUIs9VIG6XvOE44RDYOfOivAw6AWDyfSvWqv90CR9Q4wiWgdT4+uRUBLmO9M5M4ZopWbavMgjDeWU4ZhmGGaI5EpT5h/t0h6N7sJs4HyxPw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726057733; c=relaxed/simple; bh=acxLMwAeHXmKoAPWmSOUWqniiM1VGXObmL2eXZCf2iU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eZnKjf2ZrhJrq4jd+my+HHKIH5N3WPNddMkQQWsoZQ6PGa2gfXJNrM9xG7eWiMGg4IEvSH1QRipJS7GGIgzue4y1l7JbnsBjIxo4M2ZJCJTZt25ElswWv6bvOQXbb5Wkgn+TNz5itqKo7DpnacRjvt7P5FDQZntY05/aIw7ri94= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=classfun.cn; spf=pass smtp.mailfrom=classfun.cn; dkim=pass (1024-bit key) header.d=classfun.cn header.i=@classfun.cn header.b=awEZ074G; arc=none smtp.client-ip=129.204.178.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=classfun.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=classfun.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=classfun.cn header.i=@classfun.cn header.b="awEZ074G" Received: from bigfoot-server-storage.classfun.cn (unknown [124.72.163.173]) (Authenticated sender: bigfoot) by classfun.cn (Postfix) with ESMTPSA id 96EE17890E; Wed, 11 Sep 2024 20:28:42 +0800 (CST) DKIM-Filter: OpenDKIM Filter v2.11.0 classfun.cn 96EE17890E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=classfun.cn; s=default; t=1726057728; bh=VxKX2yW3hXBVxO4kTWCelxZoamv0eXklRuRpYCKRibQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=awEZ074GQjMLA+t/NHdxpVjOqaFkANSYjuad8p2VvslTenoKIckLXegm79uYDeC45 v/XiehzvYZSc4nJNKQho88xVcj4Gc2RoTdcosmiGePM5x0iYuii1b4+kmdGJGPYszv rrPRNn7UwxO9llPN4su+ZBQ9qA/rj9jjvcI+9u7o= From: Junhao Xie To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Jonas Karlman , Chukun Pan , Junhao Xie , FUKAUMI Naoki , Dragan Simic , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] dt-bindings: vendor-prefixes: Add prefix for Ariaboard Date: Wed, 11 Sep 2024 20:28:08 +0800 Message-ID: <20240911122809.1789778-3-bigfoot@classfun.cn> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911122809.1789778-2-bigfoot@classfun.cn> References: <20240911122809.1789778-2-bigfoot@classfun.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add an entry for Ariaboard from Shanghai Novotech Ariaboard represents a product line from Shanghai Novotech Co., Ltd. Link: https://shanghainovotech.com/ Link: https://ariaboard.com/ Signed-off-by: Junhao Xie --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Docum= entation/devicetree/bindings/vendor-prefixes.yaml index a70ce43b3dc0..849b7b0f9097 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -145,6 +145,8 @@ patternProperties: description: Arctic Sand "^arcx,.*": description: arcx Inc. / Archronix Inc. + "^ariaboard,.*": + description: Shanghai Novotech Co., Ltd. (Ariaboard) "^aries,.*": description: Aries Embedded GmbH "^arm,.*": --=20 2.46.0 From nobody Sat Nov 30 06:29:25 2024 Received: from classfun.cn (unknown [129.204.178.38]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6C9F185B7A; Wed, 11 Sep 2024 12:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=129.204.178.38 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726057733; cv=none; b=CRdGgtX6mJQYmp2RQx/PkCx6IM6zZam/g51g63v+Jd1uvjSUcTA7iCZw5ufhXpLSIDHvxiTLaxk7icVvDtE4z34plDDZHXQcSWPUernt1AKByP9t/B7YlmcEUPrekKHqnpG/e2QS0rIhHNuvv3I0XBhJkBvb2AHPy1k30U2jXdc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726057733; c=relaxed/simple; bh=TGse2xgHyrJ86lk+geFp8JWO8clvO33za4oO/yaOSzc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L3TwDcAb6/DBayHv8r814Sv/voecIrra8bbDeWoPoDbq193xtqfnwG0wLsJXu351tiWneZXf8JObds1P4J4PMKSLij4NRbWqsbrJ1Sf34xyOucS1pVN1LE0mI+mhSBPoZIqt+jAoY8ImLp7/EhPRJ0nOkjvxF6Wn3oQuOnX2GtE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=classfun.cn; spf=pass smtp.mailfrom=classfun.cn; dkim=pass (1024-bit key) header.d=classfun.cn header.i=@classfun.cn header.b=PnqRqeQT; arc=none smtp.client-ip=129.204.178.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=classfun.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=classfun.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=classfun.cn header.i=@classfun.cn header.b="PnqRqeQT" Received: from bigfoot-server-storage.classfun.cn (unknown [124.72.163.173]) (Authenticated sender: bigfoot) by classfun.cn (Postfix) with ESMTPSA id 5DE7D7890F; Wed, 11 Sep 2024 20:28:48 +0800 (CST) DKIM-Filter: OpenDKIM Filter v2.11.0 classfun.cn 5DE7D7890F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=classfun.cn; s=default; t=1726057729; bh=lRER49IU2r+IDAkeANEnbgPaU7VQG0ThpFJyDhD3UTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PnqRqeQT/v5rOs3iAV7HYfGeevEPY97wc4GLRvb5FEg0C/ka4TQcMudR1ubawucPw itrJ7Dpjx8X9W9HN6ShKNgDLIv5Eek0VO2rweE4XrzKkf01G6TN454QyxkDtyNTtBJ ybb2syV4k0sRqYBierEcHb9ppv5wvgoG8tyLGExw= From: Junhao Xie To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Jonas Karlman , Chukun Pan , Junhao Xie , FUKAUMI Naoki , Dragan Simic , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] dt-bindings: arm: rockchip: Add Ariaboard Photonicat RK3568 Date: Wed, 11 Sep 2024 20:28:09 +0800 Message-ID: <20240911122809.1789778-4-bigfoot@classfun.cn> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911122809.1789778-2-bigfoot@classfun.cn> References: <20240911122809.1789778-2-bigfoot@classfun.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This documents Ariaboard Photonicat which is a router based on RK3568 SoC. Link: https://ariaboard.com/ Link: https://photonicat.com/ Signed-off-by: Junhao Xie --- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Document= ation/devicetree/bindings/arm/rockchip.yaml index 1ef09fbfdfaf..c35541b56175 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -49,6 +49,11 @@ properties: - anbernic,rg-arc-s - const: rockchip,rk3566 =20 + - description: Ariaboard Photonicat + items: + - const: ariaboard,photonicat + - const: rockchip,rk3568 + - description: ArmSoM Sige7 board items: - const: armsom,sige7 --=20 2.46.0 From nobody Sat Nov 30 06:29:25 2024 Received: from classfun.cn (unknown [129.204.178.38]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09BD7188A05; Wed, 11 Sep 2024 12:28:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=129.204.178.38 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726057734; cv=none; b=UqC2dUsK+eGMT6G8PR4KgBH1DNx48SZ7SrYmMKtd8VJIDOEvCN9L1oFyrxD4o+xSD4xs+BgIRXjevhElhzX8rGMgc6Oa9jlbMAZPCYHwAQrWILSLmUV5vFWU/SEDbu3j13yerOr8MoArPgJKQYcCUOcCfgwI26qXaCs6J2bhWEQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726057734; c=relaxed/simple; bh=p8lCE57sMf5JvXQAC5lJ7mvNiU+hM4lD0+myhwY1p1k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eJx6xpanG/vX1E1vs+kXBfoqT+pVWECoR7US7YindOT3fzQSUD74kL5ui3FHSgcrYgyjo0zJXehpcIGSA69JMd4/UevCDrBQTUT5/RE/ERbuyOY56Wy3O2aO1yBgjl1n7228X/bY5LEPZiTjUJgFXxl2T093TExubVJXZQ2O/Zw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=classfun.cn; spf=pass smtp.mailfrom=classfun.cn; dkim=pass (1024-bit key) header.d=classfun.cn header.i=@classfun.cn header.b=NynujUAS; arc=none smtp.client-ip=129.204.178.38 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=classfun.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=classfun.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=classfun.cn header.i=@classfun.cn header.b="NynujUAS" Received: from bigfoot-server-storage.classfun.cn (unknown [124.72.163.173]) (Authenticated sender: bigfoot) by classfun.cn (Postfix) with ESMTPSA id 21F7178915; Wed, 11 Sep 2024 20:28:49 +0800 (CST) DKIM-Filter: OpenDKIM Filter v2.11.0 classfun.cn 21F7178915 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=classfun.cn; s=default; t=1726057729; bh=B1GlsyUuy5RVpCaJjZyeC3Bo/GVnRNcLPWP0bqtePIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NynujUASDO0Uzvv0d4bZVeZgJHLP/DRslO0eV1YXsJ4xTPerAe21ysZSbEgkdxh87 u0P13MLX+KkLzBDwAHit3S7wEaBtWeo9tYn7aS1NcC4+QrOqCyPJtFRKIjk28Smbdf 5GLThy8jO/0WKQNXTxXvYS4TKvbMCL/1Ys942cBA= From: Junhao Xie To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Jonas Karlman , Chukun Pan , Junhao Xie , FUKAUMI Naoki , Dragan Simic , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568 Date: Wed, 11 Sep 2024 20:28:10 +0800 Message-ID: <20240911122809.1789778-5-bigfoot@classfun.cn> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911122809.1789778-2-bigfoot@classfun.cn> References: <20240911122809.1789778-2-bigfoot@classfun.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add dts for Ariaboard Photonicat RK3568. Working IO: Debug UART SDIO QCA9377 WiFi and Bluetooth M.2 E-Key PCIe WiFi and Bluetooth M.2 B-Key USB Modem WWAN Ethernet WAN Port MicroSD Card slot eMMC HDMI Output Mali GPU USB Type-A Not working IO: Ethernet LAN Port (Lack of SGMII support) Power management MCU on UART4 (Driver pending) Not working IO in MCU: Battery voltage sensor Board temperature sensor Hardware Power-off Hardware Watchdog Network status LED Real-time clock USB Charger voltage sensor About onboard power management MCU: A heartbeat must be sent to the MCU within 60 seconds, otherwise the MCU will restart the system. When powering off, a shutdown command needs to be sent to the MCU. When the power button is long pressed, the MCU will send a shutdown command to the system. If system does not shutdown within 60 seconds, the power will be turned off directly. MCU only provides voltage for charger and battery. Manufacturer removed RK8xx PMIC. Signed-off-by: Junhao Xie --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../boot/dts/rockchip/rk3568-photonicat.dts | 586 ++++++++++++++++++ 2 files changed, 587 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/ro= ckchip/Makefile index fda1b980eb4b..56afd63cb9e2 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -130,6 +130,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588-jaguar.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588-nanopc-t6.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588-ok3588-c.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588-orangepi-5-plus.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-photonicat.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588-quartzpro64.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588-rock-5-itx.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588-rock-5b.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts b/arch/arm6= 4/boot/dts/rockchip/rk3568-photonicat.dts new file mode 100644 index 000000000000..8ae39cbb60af --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts @@ -0,0 +1,586 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; + +#include +#include +#include +#include "rk3568.dtsi" + +/ { + model =3D "Ariaboard Photonicat"; + compatible =3D "ariaboard,photonicat", "rockchip,rk3568"; + + aliases { + ethernet0 =3D &gmac0; + ethernet1 =3D &gmac1; + mmc0 =3D &sdhci; + mmc1 =3D &sdmmc0; + mmc2 =3D &sdmmc1; + }; + + battery: battery { + compatible =3D "simple-battery"; + device-chemistry =3D "lithium-ion"; + charge-full-design-microamp-hours =3D <6800000>; + energy-full-design-microwatt-hours =3D <25000000>; + voltage-max-design-microvolt =3D <4200000>; + voltage-min-design-microvolt =3D <3400000>; + + ocv-capacity-celsius =3D <25>; + ocv-capacity-table-0 =3D <4100000 100>, <4040000 90>, + <3980000 80>, <3920000 70>, + <3870000 60>, <3820000 50>, + <3790000 40>, <3770000 30>, + <3740000 20>, <3680000 10>, + <3450000 0>; + }; + + chosen: chosen { + stdout-path =3D "serial2:1500000n8"; + }; + + hdmi_con: hdmi-con { + compatible =3D "hdmi-connector"; + type =3D "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint =3D <&hdmi_out_con>; + }; + }; + }; + + rfkill-modem { + compatible =3D "rfkill-gpio"; + label =3D "M.2 USB Modem"; + radio-type =3D "wwan"; + reset-gpios =3D <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>; + shutdown-gpios =3D <&gpio4 RK_PC4 GPIO_ACTIVE_HIGH>; + }; + + vdda_0v9: regulator-0v9-vdda { + compatible =3D "regulator-fixed"; + regulator-name =3D "vdda_0v9"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <900000>; + regulator-max-microvolt =3D <900000>; + vin-supply =3D <&vcc3v3_sys>; + }; + + vcc_1v8: regulator-1v8-vcc { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + vin-supply =3D <&vcc3v3_sys>; + }; + + vcca_1v8: regulator-1v8-vcca { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcca_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + vin-supply =3D <&vcc3v3_sys>; + }; + + vcc_3v3: regulator-3v3-vcc { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_3v3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&vcc3v3_sys>; + }; + + /* actually fed by vcc_syson, dependent + * on pi6c clock generator + */ + vcc3v3_pcie: regulator-3v3-vcc-pcie { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc3v3_pcie"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&vcc3v3_pi6c>; + }; + + /* pi6c pcie clock generator */ + vcc3v3_pi6c: regulator-3v3-vcc-pi6c { + compatible =3D "regulator-fixed"; + enable-active-high; + gpios =3D <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pcie_pwren_h>; + regulator-name =3D "vcc3v3_pi6c"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&vcc_syson>; + }; + + vcc3v3_sd: regulator-3v3-vcc-sd { + compatible =3D "regulator-fixed"; + gpio =3D <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&sdmmc0_pwren>; + regulator-boot-on; + regulator-name =3D "vcc3v3_sd"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&vcc_3v3>; + }; + + vcc3v3_sys: regulator-3v3-vcc-sys { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc3v3_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + vin-supply =3D <&vcc_syson>; + }; + + vcc3v4_rf: regulator-3v4-vcc-rf { + compatible =3D "regulator-fixed"; + enable-active-high; + gpio =3D <&gpio4 RK_PC2 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&rf_pwr_en>; + regulator-name =3D "vcc3v4_rf"; + regulator-min-microvolt =3D <3400000>; + regulator-max-microvolt =3D <3400000>; + vin-supply =3D <&vccin_5v>; + }; + + vccin_5v: regulator-5v0-vcc-in { + compatible =3D "regulator-fixed"; + regulator-name =3D "vccin_5v"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + }; + + vcc_sysin: regulator-5v0-vcc-sysin { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_sysin"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + vin-supply =3D <&vccin_5v>; + }; + + vcc_syson: regulator-5v0-vcc-syson { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc_syson"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + vin-supply =3D <&vcc_sysin>; + }; + + vcc5v0_usb30_otg0: regulator-5v0-vcc-usb-host { + compatible =3D "regulator-fixed"; + enable-active-high; + gpio =3D <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&usb_host_pwren_h>; + regulator-name =3D "vcc5v0_usb30_otg0"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + vin-supply =3D <&vccin_5v>; + }; + + vdd_gpu: regulator-vdd-gpu { + compatible =3D "pwm-regulator"; + pwms =3D <&pwm2 0 5000 1>; + pwm-supply =3D <&vcc_syson>; + regulator-name =3D "vdd_gpu"; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <1350000>; + regulator-ramp-delay =3D <6001>; + regulator-settling-time-up-us =3D <250>; + }; + + vdd_logic: regulator-vdd-logic { + compatible =3D "pwm-regulator"; + pwms =3D <&pwm1 0 5000 1>; + pwm-supply =3D <&vcc_syson>; + regulator-name =3D "vdd_logic"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <1350000>; + regulator-ramp-delay =3D <6001>; + regulator-settling-time-up-us =3D <250>; + }; + + wifi_pwrseq: wifi-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + clocks =3D <&pmucru CLK_RTC_32K>; + clock-names =3D "ext_clock"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&wifi_reg_on_h &clk32k_out1>; + post-power-on-delay-ms =3D <200>; + reset-gpios =3D <&gpio2 RK_PB1 GPIO_ACTIVE_LOW>; + }; +}; + +&combphy0 { + status =3D "okay"; +}; + +&combphy1 { + status =3D "okay"; +}; + +&combphy2 { + status =3D "okay"; +}; + +&cpu0 { + cpu-supply =3D <&vdd_cpu>; +}; + +&cpu1 { + cpu-supply =3D <&vdd_cpu>; +}; + +&cpu2 { + cpu-supply =3D <&vdd_cpu>; +}; + +&cpu3 { + cpu-supply =3D <&vdd_cpu>; +}; + +&gmac0 { + status =3D "disabled"; + /* Motorcomm YT8521SC LAN port (require SGMII) */ +}; + +&gmac1 { + assigned-clocks =3D <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>; + assigned-clock-parents =3D <&cru SCLK_GMAC1_RGMII_SPEED>; + assigned-clock-rates =3D <0>, <125000000>; + clock_in_out =3D "output"; + phy-handle =3D <&rgmii_phy1>; + phy-mode =3D "rgmii-id"; + phy-supply =3D <&vcc_3v3>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&gmac1m1_miim + &gmac1m1_tx_bus2 + &gmac1m1_rx_bus2 + &gmac1m1_rgmii_clk + &gmac1m1_rgmii_bus>; + snps,reset-gpio =3D <&gpio4 RK_PC0 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us =3D <0 20000 100000>; + status =3D "okay"; + /* Motorcomm YT8521SC WAN port */ +}; + +&gpu { + mali-supply =3D <&vdd_gpu>; + status =3D "okay"; +}; + +&hdmi { + avdd-0v9-supply =3D <&vdda_0v9>; + avdd-1v8-supply =3D <&vcca_1v8>; + status =3D "okay"; +}; + +&hdmi_in { + hdmi_in_vp0: endpoint { + remote-endpoint =3D <&vp0_out_hdmi>; + }; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint =3D <&hdmi_con_in>; + }; +}; + +&hdmi_sound { + status =3D "okay"; +}; + +&i2c0 { + status =3D "okay"; + + vdd_cpu: regulator@1c { + compatible =3D "tcs,tcs4525"; + reg =3D <0x1c>; + fcs,suspend-voltage-selector =3D <1>; + regulator-name =3D "vdd_cpu"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <800000>; + regulator-max-microvolt =3D <1150000>; + regulator-ramp-delay =3D <2300>; + vin-supply =3D <&vcc_syson>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; +}; + +&i2c2 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c2m1_xfer>; + status =3D "okay"; +}; + +&i2s0_8ch { + status =3D "okay"; +}; + +&mdio1 { + rgmii_phy1: ethernet-phy@0 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <0x0>; + rx-internal-delay-ps =3D <1500>; + tx-internal-delay-ps =3D <1500>; + }; +}; + +&pcie30phy { + phy-supply =3D <&vcc3v3_pi6c>; + status =3D "okay"; +}; + +&pcie3x2 { + max-link-speed =3D <1>; + num-lanes =3D <1>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pcie30x1m0_pins>; + reset-gpios =3D <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply =3D <&vcc3v3_pcie>; + status =3D "okay"; + /* M.2 E-Key for PCIe WLAN */ +}; + +&pinctrl { + bt { + bt_reg_on_h: bt-reg-on-h { + rockchip,pins =3D <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + pcie { + pcie_pwren_h: pcie-pwren-h { + rockchip,pins =3D <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + sdmmc0 { + sdmmc0_pwren: sdmmc0-pwren { + rockchip,pins =3D <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + usb { + rf_pwr_en: rf-pwr-en { + rockchip,pins =3D <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + usb_host_pwren_h: usb-host-pwren-h { + rockchip,pins =3D <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + wifi { + wifi_reg_on_h: wifi-reg-on-h { + rockchip,pins =3D <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + +&pmu_io_domains { + pmuio1-supply =3D <&vcc_3v3>; + pmuio2-supply =3D <&vcc_3v3>; + vccio1-supply =3D <&vcc_3v3>; + vccio2-supply =3D <&vcc_1v8>; + vccio3-supply =3D <&vcc_3v3>; + vccio4-supply =3D <&vcc_1v8>; + vccio5-supply =3D <&vcc_3v3>; + vccio6-supply =3D <&vcc_3v3>; + vccio7-supply =3D <&vcc_3v3>; + status =3D "okay"; +}; + +&pwm1 { + status =3D "okay"; +}; + +&pwm2 { + status =3D "okay"; +}; + +&saradc { + vref-supply =3D <&vcca_1v8>; + status =3D "okay"; +}; + +&sdhci { + bus-width =3D <8>; + max-frequency =3D <200000000>; + mmc-hs200-1_8v; + non-removable; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&emmc_bus8 &emmc_clk &emmc_cmd>; + vmmc-supply =3D <&vcc_3v3>; + vqmmc-supply =3D <&vcc_1v8>; + status =3D "okay"; + /* eMMC */ +}; + +&sdmmc0 { + bus-width =3D <4>; + cap-sd-highspeed; + cd-gpios =3D <&gpio0 RK_PB5 GPIO_ACTIVE_LOW>; + disable-wp; + no-1-8-v; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&sdmmc0_bus4 &sdmmc0_clk &sdmmc0_cmd>; + vmmc-supply =3D <&vcc3v3_sd>; + vqmmc-supply =3D <&vcc_3v3>; + status =3D "okay"; + /* Micro SD card slot */ +}; + +&sdmmc1 { + bus-width =3D <4>; + cap-sd-highspeed; + cap-sdio-irq; + keep-power-in-suspend; + mmc-pwrseq =3D <&wifi_pwrseq>; + non-removable; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&sdmmc1_bus4 &sdmmc1_cmd &sdmmc1_clk>; + sd-uhs-sdr104; + vmmc-supply =3D <&vcc3v3_sys>; + vqmmc-supply =3D <&vcc_1v8>; + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "okay"; + /* Qualcomm Atheros QCA9377 */ + + wifi: wifi@1 { + reg =3D <1>; + interrupt-parent =3D <&gpio2>; + interrupts =3D ; + interrupt-names =3D "host-wake"; + }; +}; + +&tsadc { + rockchip,hw-tshut-mode =3D <1>; + rockchip,hw-tshut-polarity =3D <0>; + status =3D "okay"; +}; + +&uart1 { + dma-names =3D "tx", "rx"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>; + uart-has-rtscts; + status =3D "okay"; + + bluetooth: bluetooth { + compatible =3D "qcom,qca9377-bt"; + clocks =3D <&pmucru CLK_RTC_32K>; + clock-names =3D "lpo"; + enable-gpios =3D <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&bt_reg_on_h>; + vddio-supply =3D <&vcc_1v8>; + }; +}; + +&uart2 { + status =3D "okay"; + /* Debug UART */ +}; + +&uart3 { + dma-names =3D "tx", "rx"; + status =3D "okay"; +}; + +&uart4 { + dma-names =3D "tx", "rx"; + status =3D "okay"; + /* Onboard power management MCU */ +}; + +&usb_host0_ehci { + status =3D "okay"; + /* M.2 E-Key for USB Bluetooth */ +}; + +&usb_host0_ohci { + status =3D "okay"; +}; + +&usb_host0_xhci { + dr_mode =3D "host"; + status =3D "okay"; + /* USB Type-A Port */ +}; + +&usb_host1_xhci { + dr_mode =3D "host"; + status =3D "okay"; + /* M.2 B-Key for USB Modem WWAN */ +}; + +&usb2phy0 { + status =3D "okay"; +}; + +&usb2phy0_host { + phy-supply =3D <&vcc3v4_rf>; + status =3D "okay"; +}; + +&usb2phy0_otg { + phy-supply =3D <&vcc5v0_usb30_otg0>; + status =3D "okay"; +}; + +&usb2phy1 { + status =3D "okay"; +}; + +&usb2phy1_otg { + phy-supply =3D <&vcc5v0_usb30_otg0>; + status =3D "okay"; +}; + +&vop { + assigned-clocks =3D <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; + assigned-clock-parents =3D <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; + status =3D "okay"; +}; + +&vop_mmu { + status =3D "okay"; +}; + +&vp0 { + vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg =3D ; + remote-endpoint =3D <&hdmi_in_vp0>; + }; +}; --=20 2.46.0