From nobody Sun Nov 24 03:10:30 2024 Received: from classfun.cn (unknown [129.204.178.38]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DAC5145FE8; Fri, 8 Nov 2024 03:25:06 +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=1731036308; cv=none; b=nBwgoOZ4qsXZ082uzgdvZwNcPclkXvmNuayyJMiIA+TeNdp7pHAQ4/Tg0zPuhteCKU1ioRQ7jnGWMoE/kuNNdMpFkifjxSnO6VBpBxHETzaNaP3YfebdLvtnhDosm3bIbQRKgH5AkAk2Qr2WUXIdmiQusb6S/DDSeEuO1Kw1MRw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731036308; c=relaxed/simple; bh=DTIvffQyFOLCJCeaZdMTtXTD+N2DNjRlLdtnwLjY4Nw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Sd8N+ySTJsaWBvE0p2fO/pPicX7yYQ0T8jmCMnx+rByZ2SlsEKP7PuCV6UZP5LoMSjFtfbGUEeBjZ7z2QsqfX64joUUlT5V1NI5sJAbJPa/x+Q1BThLrWzwhV/9XZme0PRKaxGUnEvNA49M4nCgac+BexANtIHd7PztJTntBBfs= 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=Vp7z8HWv; 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="Vp7z8HWv" Received: from bigfoot-server-storage.classfun.cn (unknown [124.72.160.23]) (Authenticated sender: bigfoot) by classfun.cn (Postfix) with ESMTPSA id E1E00788B1; Fri, 8 Nov 2024 11:19:00 +0800 (CST) DKIM-Filter: OpenDKIM Filter v2.11.0 classfun.cn E1E00788B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=classfun.cn; s=default; t=1731035942; bh=zalAWlbFESuTIXMiBlQXrsSWi3K93QpEzxzNNDSnYbY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vp7z8HWv11IA81Sp45yTvcUtz70ceFPM/efTZlRk2+E1yEX51c2vPvA8dKYlecke5 f8rPlTmBjy5U4gW/qpKGH2FzRUCJd4brHEUs/A7+xW+N7/p2OwEMrBGt0XpN/1tsQp sXioovVjnPaJDAg6ltGC0CG/tZIRXmJ+Eub7PIlA= 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, Krzysztof Kozlowski Subject: [PATCH v5 1/3] dt-bindings: vendor-prefixes: Add prefix for Ariaboard Date: Fri, 8 Nov 2024 11:18:45 +0800 Message-ID: <20241108031847.700606-2-bigfoot@classfun.cn> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241108031847.700606-1-bigfoot@classfun.cn> References: <20241108031847.700606-1-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 Reviewed-by: Krzysztof Kozlowski --- 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 b320a39de7fe..ddeb4ade4080 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.47.0 From nobody Sun Nov 24 03:10:30 2024 Received: from classfun.cn (unknown [129.204.178.38]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DA8112C499; Fri, 8 Nov 2024 03:25:06 +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=1731036309; cv=none; b=eDMWo/9lOJkvfVcrmGnbvYuxXDucmaWyqQJ8b34s79fvEOkPsc9DrOXwSQCFgFN6qjw0iYeofwsjmBuhqseeaxOIjzBFqG3xVEkMzQGHiyTwdwvFow0J30HUxCIP3052LjWgQsJR7gUMhNfUakLQxoYB+28SQV+jcqtatLl+Jq8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731036309; c=relaxed/simple; bh=EUAFm+q8R02D1MaeFtFtbopcDftvXEo22myrQVGgRd4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Iyo579kmr47VHYacKuQ08YYQlmibSIZfJKxPWjpSFLQJDKzgKye6KytExNUW1XgaLBoACB61iu50mKH+tyGBwR1SQHMLmIbQNg1FFKuh05+68lYlJ5CXD+rBIQ80qPu0bjrM0ALHVBqD1k4WWTP0/sFdqLl2vWU7yjAHz8hAMC0= 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=ZmTEsfrt; 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="ZmTEsfrt" Received: from bigfoot-server-storage.classfun.cn (unknown [124.72.160.23]) (Authenticated sender: bigfoot) by classfun.cn (Postfix) with ESMTPSA id 575A178916; Fri, 8 Nov 2024 11:19:02 +0800 (CST) DKIM-Filter: OpenDKIM Filter v2.11.0 classfun.cn 575A178916 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=classfun.cn; s=default; t=1731035943; bh=dQP8Y8gCRO39Dr51y0JWnPu5CMHKF0ukyLE8PoZMioM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZmTEsfrtvbBbghv9edSx0MkjI/YBhaPH4+fhk9LNJrpINBMyRkVyRcYmHvXps4Sse i+wXk1Udb0qjN7LTIdFtTTYRjmWI5fz3XNj6HEeTsdKWYCWBaFs174dkTfH4cI5FOc WYOpXcUULVXwFo3XJieyIc/UafwuPReiekOb3Qpw= 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, Krzysztof Kozlowski Subject: [PATCH v5 2/3] dt-bindings: arm: rockchip: Add Ariaboard Photonicat RK3568 Date: Fri, 8 Nov 2024 11:18:46 +0800 Message-ID: <20241108031847.700606-3-bigfoot@classfun.cn> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241108031847.700606-1-bigfoot@classfun.cn> References: <20241108031847.700606-1-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 Reviewed-by: Krzysztof Kozlowski --- 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 687823e58c22..28408e08b374 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.47.0 From nobody Sun Nov 24 03:10:30 2024 Received: from classfun.cn (unknown [129.204.178.38]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DB06146D40; Fri, 8 Nov 2024 03:25:06 +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=1731036309; cv=none; b=U/2+n4vV+3zyVe4hDH96pZQV2PgdkY+eoApS69EC3cAA72b9EwQljsSbJhadKSEFZiMYBN03lsbilTLHTfRowFcDxb1PicAjGLA1twh814xEkMALO7NTpgIO9HPpSFSpJ9x21ze5rk/ItMblhD3t9gU3FG5a0E8dSPiFFLbISu4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731036309; c=relaxed/simple; bh=R5wXfr/HOb07hPXUmv5fGuXNfCGW+SRw8JjLDkjRu4o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WJ3jOssjq9btoyftkqY+gvDiHWEuGeQ82TtUmWFXAkyRrcYJtaGXItZhe9XL5kzuULP/pppCfHUUGveun3kY7HTqi25oVj4higcCWf56DxJxcB8OyOP2yIpOnGb+xBUWWKTHuIoZXBnJqm5WMoWE6dc8jBanV+Uny+hQtJqlQp0= 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=IOnUCi/s; 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="IOnUCi/s" Received: from bigfoot-server-storage.classfun.cn (unknown [124.72.160.23]) (Authenticated sender: bigfoot) by classfun.cn (Postfix) with ESMTPSA id 32A1C78918; Fri, 8 Nov 2024 11:19:03 +0800 (CST) DKIM-Filter: OpenDKIM Filter v2.11.0 classfun.cn 32A1C78918 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=classfun.cn; s=default; t=1731035943; bh=cSwdgAZ+cEBi70SrWVtb51scHZy310hYdsEs9k8c+sQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IOnUCi/sBbQ4UcB4tuJ2obZalFkbdLcGw8mi0GHwNg9QxA2xl4IUcG1li3erKcH1W c4uX+KLaMVLd1jBm8lGfZFIte2wl6Qyz0268ZIqkoaV0WgfADIcgOcj0N2JrFVMfe6 GAKlAymtja9zM3T0BykugrTwjEBoazroPH+0XiXQ= 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 v5 3/3] arm64: dts: rockchip: add dts for Ariaboard Photonicat RK3568 Date: Fri, 8 Nov 2024 11:18:47 +0800 Message-ID: <20241108031847.700606-4-bigfoot@classfun.cn> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241108031847.700606-1-bigfoot@classfun.cn> References: <20241108031847.700606-1-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 | 600 ++++++++++++++++++ 2 files changed, 601 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 09423070c992..577bfa6e86d3 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -116,6 +116,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-mecsbc.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-nanopi-r5c.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-nanopi-r5s.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-odroid-m1.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-photonicat.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-qnap-ts433.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-radxa-e25.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3568-roc-pc.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..940bd7a6160f --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3568-photonicat.dts @@ -0,0 +1,600 @@ +// 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>; + }; + }; + }; + + vcca_1v8: regulator-vcca-1v8 { + 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>; + }; + + vccin_5v: regulator-vccin-5v { + 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>; + }; + + /* actually fed by vcc_syson, dependent + * on pi6c clock generator + */ + vcc3v3_pcie: regulator-vcc3v3-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-vcc3v3-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-vcc3v3-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-vcc3v3-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-vcc3v4-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>; + }; + + vcc5v0_usb30_otg0: regulator-vcc5v0-usb30-otg0 { + 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>; + }; + + vcc_sysin: regulator-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-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>; + }; + + vcc_1v8: regulator-vcc-1v8 { + 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>; + }; + + vcc_3v3: regulator-vcc-3v3 { + 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>; + }; + + vdda_0v9: regulator-vdda-0v9 { + 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>; + }; + + 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>; + }; + + 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>; + }; + + 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>; +}; + +/* Motorcomm YT8521SC LAN port (require SGMII) */ +&gmac0 { + status =3D "disabled"; +}; + +/* Motorcomm YT8521SC WAN port */ +&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>; + status =3D "okay"; +}; + +&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>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <ð1_phy_rst>; + reset-assert-us =3D <20000>; + reset-deassert-us =3D <100000>; + reset-gpios =3D <&gpio4 RK_PC0 GPIO_ACTIVE_LOW>; + rx-internal-delay-ps =3D <1500>; + tx-internal-delay-ps =3D <1500>; + }; +}; + +&pcie30phy { + phy-supply =3D <&vcc3v3_pi6c>; + status =3D "okay"; +}; + +/* M.2 E-Key for PCIe WLAN */ +&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"; +}; + +&pinctrl { + bt { + bt_reg_on_h: bt-reg-on-h { + rockchip,pins =3D <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + ethernet { + eth1_phy_rst: eth1-phy-rst { + rockchip,pins =3D <4 RK_PC0 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"; +}; + +/* eMMC */ +&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"; +}; + +/* Micro SD card slot */ +&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"; +}; + +/* Qualcomm Atheros QCA9377 WiFi */ +&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"; + + 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"; +}; + +/* Qualcomm Atheros QCA9377 Bluetooth */ +&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>; + }; +}; + +/* Debug UART */ +&uart2 { + status =3D "okay"; +}; + +&uart3 { + dma-names =3D "tx", "rx"; + status =3D "okay"; +}; + +/* Onboard power management MCU */ +&uart4 { + dma-names =3D "tx", "rx"; + status =3D "okay"; +}; + +/* M.2 E-Key for USB Bluetooth */ +&usb_host0_ehci { + status =3D "okay"; +}; + +&usb_host0_ohci { + status =3D "okay"; +}; + +/* USB Type-A Port */ +&usb_host0_xhci { + dr_mode =3D "host"; + status =3D "okay"; +}; + +/* M.2 B-Key for USB Modem WWAN */ +&usb_host1_xhci { + dr_mode =3D "host"; + status =3D "okay"; +}; + +&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>; + }; +}; + +&xin32k { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&clk32k_out1>; +}; --=20 2.47.0