From patchwork Sat Oct 26 09:48:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AC1D5D10BF7 for ; Sat, 26 Oct 2024 10:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GILpKfFzj7+NGHLEv3p6zj31YKKGUNNA54P6gUPggmo=; b=kOaxqJBNtZMjvk roUfI72JbAVw1Vq2Kph4q+BHiNKwIRVPrZikspuuk2g24nMGlcdXsitSyoXkgm+WuV/2GsUeMl4CJ i6S+2wv48nYHIxZAm/Ezl6OxQZM5sl8uRI3bB+8ZcaWkZyzEFMPOZ9zmkEkNj9NK4LRKJ25blbwrJ RcAYLvldodhJRgznOm/XU7Y9HIIsT9OAPc58rkYZ+6SkkdXd7Q8lOO4b+fD5S0wgps8YLXtfYo+Ty QKUs5reLEf6TQ5EkmaZkqguQ9sbLVsjD7nSXiPTCWwSZMAuLWBVs+gGpHR6fscfL6tvnnvXP/WbhN UhkCdmoT87J3VlfFnjeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4ddv-00000006KnK-4Ays; Sat, 26 Oct 2024 10:03:35 +0000 Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4dds-00000006Klu-0Do5 for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:33 +0000 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-71806621d42so1630238a34.3 for ; Sat, 26 Oct 2024 03:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937011; x=1730541811; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OifXa0xS72KIxES6SPqmMe9eJQY0uGb3CD2rL2OPXD4=; b=RY48YYEJL8oMVWYFgLY4fZOS0MwbsEX8jbaizwagEcRgxPWN4UhpQdpk8trvzvm9Ex /aDOLUPKOYMEKLboP76HK4OJuL8kyW59nJvfLyCUmFCB1gh4zsIe93WvL95AhkmDu3vl rRlu/bbwpfldrzbIwuZWwZUvCQ7NYJXWi6UbUPlamCKk8PPADQ8b8yqE+5m/JNxbQBE+ uWd6Ql+luBBtDzGrRP/0CXRs38jA+BeUAXPsIrRUt1b0vJG97QlxEohInMMqO33PIZYS Z9+80CRMs6RQW+V76AjcSaj/7sacn/8CLDOKUL7YGfmc72IeSdTOPQxOOqc5GfcXBl+y Uj6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937011; x=1730541811; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OifXa0xS72KIxES6SPqmMe9eJQY0uGb3CD2rL2OPXD4=; b=wOm5TOj5yo7NaQvebtvpUJWSSWZ9iDJckTCRn/GVEymHpD9rN4WQqPriSNjQhrwje4 Z6xGGdHj3kKBMM77//QQHpRv6z48mooS9ElwjKVifmW9uGxpV3pjCCaBH7Wdz8Fj7rNN 41dYhVLFYkzaJ1P/REGAN7t9EZsQyRK8+GBgdK6SnlHzfAgKhChsrEo2dMOemHqaRLcQ ofgmKbHOJ/wJBsC1KnYShjoT0lUc+ZkV1QDZ0gRxKJjRPVLUNo+tGWjHwqseE8JITMTS /rq2iSqPw/kbdGki2dTkOYgyn3TwQRwiUlrM8WqGUIRvMBUhQ6j5Mkm79+5+2uNMv+I2 9G3Q== X-Forwarded-Encrypted: i=1; AJvYcCUsXp34TAXm12mcPFpJZ/LOlPVMmvjSNZO1iBfg7NUlRVk8E1e1NSizritx7GrSZxc2zSHBdjTzebxAPCG/+w==@lists.infradead.org X-Gm-Message-State: AOJu0YwVfD3uS/bc8SsUsgxnz9lSHwQNVDoqTS5ticxREffY+rK/a7W/ sW+/KN58+gR9GanUBJGjzcUm0UXy3CIFxaSmjB83+MZwvtSq/R7A X-Google-Smtp-Source: AGHT+IEEXkntzSzsXYOqNGTA/qK57YLuaMTtJTZ6fnmb7HqkQjPijxfpcgZi1sMjK6Hrh08W3eOpyA== X-Received: by 2002:a05:6830:610f:b0:718:100d:a069 with SMTP id 46e09a7af769-718682a4427mr2006151a34.32.1729937010853; Sat, 26 Oct 2024 03:03:30 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:30 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 01/15] dt-bindings: arm: rockchip: Add Xunlong Orange Pi 5 Max Date: Sat, 26 Oct 2024 04:48:17 -0500 Message-ID: <20241026100310.52679-2-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030332_110365_B60C1A00 X-CRM114-Status: UNSURE ( 8.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add devicetree binding for the Xunlong Orange Pi 5 Max board. The Orange Pi 5 Max is a single board computer powered by the Rockchip RK3588. Signed-off-by: Jimmy Hon --- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 1ef09fbfdfaf..8998cfe34fda 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -1001,6 +1001,11 @@ properties: - const: xunlong,orangepi-3b - const: rockchip,rk3566 + - description: Xunlong Orange Pi 5 Max + items: + - const: xunlong,orangepi-5-max + - const: rockchip,rk3588 + - description: Xunlong Orange Pi 5 Plus items: - const: xunlong,orangepi-5-plus From patchwork Sat Oct 26 09:48:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852164 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83F91D10BF0 for ; Sat, 26 Oct 2024 10:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zE7Fh6jEx0M3dMqVV2H6oU3w20XemAdq6PDiI4R4UmA=; b=11mmAti50uebED EUamB071szLMwanCEVoyINWgYjnhCcx2DFPzDps8KU99dPSLYorPVwWyVbL3/GfnzrG11SrzznTeu zTysYAfEORKwUN7PCPOz7AoUkIjhp0KHvGQ1q60O2YIR43QEQFj5uo7MIdMpEeEFRUeKiHoYv50zh eme8iNHpv1B0DFt/DlDVTcoYOWI3HCO5hIL4zr8Fo0HlD6XqA8BpYoyxY3jnN00OXDWbjJxWu2q9l h8YQ4j3Gaq3yuZgZGIuzQID6XvVQPhhuzz4ao4Dl/ZS9duQfFEzU+V2zQrxhHPCwP907/g2frIrUt mrxVuUOHXVngjLJl+L7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4ddw-00000006KnT-1o8m; Sat, 26 Oct 2024 10:03:36 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4ddt-00000006KmC-05VY for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:34 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-288916b7fceso1607723fac.3 for ; Sat, 26 Oct 2024 03:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937012; x=1730541812; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=D6Zy9d8dEL/PStnF8J37aHsrGTltp8FwvEtEBp2TeBM=; b=NgTFYsXfdoyaypMpLFzuDrkX08p+QiF84Z3QYtDc1b5sUGKkn/IjCQfD7BmMjB1sub POuhGlD62p6/7uAWCxH5GrS0OKzs5uwPLKhekReW2hPrzXld3rRZV5OdjYHoP1fxq0VL zjfMSctUwHt5gG7w9yvCdpBuoiAYnfUS4cxpcCQxPSXKe7yRjTISXhtVvQbnHqPlMXaw iO+vaKKx+bSEq1P9ru00VSQ7f4WUtY5VTRQqKmk/watHDOUNvLCwpX5MKLlKKGFEFdpl W+q+WD58Uw4ZQt1pGCgbPTfhTVqLPzbRiX0H1prk0TI2mgQrrAxxlG4y/txQa/0AsFqD 04Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937012; x=1730541812; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D6Zy9d8dEL/PStnF8J37aHsrGTltp8FwvEtEBp2TeBM=; b=o5fcadA5zAh73yTbz9rWdeOqPgJb1jpzrHYC2cFEBY8HfEhY2n9HpTfR4Sjk3B0E9F +m/SDjcrAI+ASDXoLdU9XZ6KKMi0NFprZ+d9pl9lAEOm6hGvqssD5H6zaiOk1bEEsUiC RvJiGTKTqSEeyW2QGpD80EGcIOfwqxo9f7b40Y3sbmHUNTfglKPiMre9JjziFZSgH8R6 KIGGVGiUtS7QYsC6RyoXgO4guWqtUER0mZe6TDuOuCz0RgVoy4zNNFj3CFbVk16auLN1 dlZRpZCbqB8xPTGekQT7wZI+QwS3aE99nCZzIPshquMAgwsfEW2d3/to6dMBTI0MOvR/ 6Ruw== X-Forwarded-Encrypted: i=1; AJvYcCXw/5T9pojDeuaj39DrD4u1+W6FR6TU1zyaaJ39rMKyAaskssRDGTxucBbs3EOskq5RWiRmc9zoYYfw0vjaqg==@lists.infradead.org X-Gm-Message-State: AOJu0Yz9W+UYia6onfzmKfpHD7orLSSHdAyhkVRDdZEe8TA41jSrBrk1 d3g8NABeD2WO/DLIJaiKh2XXaymmRVXxBMZq8a3ddrlam+drYCHMGBYped9t X-Google-Smtp-Source: AGHT+IElMu0JawarafpsfxtE7b6ZHbHrRsEppi46sqH/2gSXqlCJbMnSOiyhPVUDymtlPAJl5zLsjw== X-Received: by 2002:a05:6870:912a:b0:277:e35a:d2d5 with SMTP id 586e51a60fabf-29051e09d9dmr1325996fac.47.1729937011767; Sat, 26 Oct 2024 03:03:31 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:31 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 02/15] arm64: dts: rockchip: Add Orange Pi 5 Max board Date: Sat, 26 Oct 2024 04:48:18 -0500 Message-ID: <20241026100310.52679-3-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030333_090732_F409778D X-CRM114-Status: GOOD ( 14.86 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add board file for the RK3588 Orange Pi 5 Max board. While the hardware offers plenty of peripherals and connectivity this basic implementation just handles things required to access eMMC and UART (i.e. enough to successfully boot Linux). Signed-off-by: Jimmy Hon --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/rk3588-orangepi-5-max.dts | 497 ++++++++++++++++++ 2 files changed, 498 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile index fda1b980eb4b..f910414f0b34 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -129,6 +129,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-friendlyelec-cm3588-nas.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-jaguar.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nanopc-t6.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-ok3588-c.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-orangepi-5-max.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-orangepi-5-plus.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-quartzpro64.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-rock-5-itx.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts new file mode 100644 index 000000000000..53a34cb37487 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -0,0 +1,497 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; + +#include +#include +#include "rk3588.dtsi" + +/ { + model = "Xunlong Orange Pi 5 Max"; + compatible = "xunlong,orangepi-5-max", "rockchip,rk3588"; + + aliases { + mmc0 = &sdhci; + mmc1 = &sdmmc; + }; + + chosen { + stdout-path = "serial2:1500000n8"; + }; + + /* PMIC_EXT_EN */ + vcc_1v1_nldo_s3: vcc-1v1-ndlo-s3-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_1v1_nldo_s3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + vin-supply = <&vcc5v0_sys>; + }; + + /* Regulator is enabled whenever vcc_1v8_s0 is on */ + vcc_3v3_s0: vcc-3v3-s0-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_3v3_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + vin-supply = <&vcc_3v3_s3>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc5v0_sys: vcc5v0-sys-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + }; +}; + +&cpu_b0 { + cpu-supply = <&vdd_cpu_big0_s0>; +}; + +&cpu_b1 { + cpu-supply = <&vdd_cpu_big0_s0>; +}; + +&cpu_b2 { + cpu-supply = <&vdd_cpu_big1_s0>; +}; + +&cpu_b3 { + cpu-supply = <&vdd_cpu_big1_s0>; +}; + +&cpu_l0 { + cpu-supply = <&vdd_cpu_lit_s0>; +}; + +&cpu_l1 { + cpu-supply = <&vdd_cpu_lit_s0>; +}; + +&cpu_l2 { + cpu-supply = <&vdd_cpu_lit_s0>; +}; + +&cpu_l3 { + cpu-supply = <&vdd_cpu_lit_s0>; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0m2_xfer>; + status = "okay"; + + vdd_cpu_big0_s0: regulator@42 { + compatible = "rockchip,rk8602"; + reg = <0x42>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_cpu_big0_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <1050000>; + regulator-ramp-delay = <2300>; + vin-supply = <&vcc5v0_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_cpu_big1_s0: regulator@43 { + compatible = "rockchip,rk8603", "rockchip,rk8602"; + reg = <0x43>; + fcs,suspend-voltage-selector = <1>; + regulator-name = "vdd_cpu_big1_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <1050000>; + regulator-ramp-delay = <2300>; + vin-supply = <&vcc5v0_sys>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; +}; + +&saradc { + vref-supply = <&vcca_1v8_s0>; + status = "okay"; +}; + +&sdhci { + bus-width = <8>; + no-sdio; + no-sd; + non-removable; + max-frequency = <200000000>; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + status = "okay"; +}; + +&sdmmc { + bus-width = <4>; + cap-sd-highspeed; + /* SDMMC_DET_L */ + cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>; + disable-wp; + max-frequency = <150000000>; + no-sdio; + no-mmc; + sd-uhs-sdr104; + vmmc-supply = <&vcc_3v3_s3>; + vqmmc-supply = <&vccio_sd_s0>; + status = "okay"; +}; + +&spi2 { + assigned-clocks = <&cru CLK_SPI2>; + assigned-clock-rates = <200000000>; + num-cs = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&spi2m2_cs0 &spi2m2_pins>; + status = "okay"; + + pmic@0 { + compatible = "rockchip,rk806"; + reg = <0x0>; + interrupt-parent = <&gpio0>; + interrupts = <7 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_pins>, <&rk806_dvs1_null>, + <&rk806_dvs2_null>, <&rk806_dvs3_null>; + spi-max-frequency = <1000000>; + system-power-controller; + + vcc1-supply = <&vcc5v0_sys>; + vcc2-supply = <&vcc5v0_sys>; + vcc3-supply = <&vcc5v0_sys>; + vcc4-supply = <&vcc5v0_sys>; + vcc5-supply = <&vcc5v0_sys>; + vcc6-supply = <&vcc5v0_sys>; + vcc7-supply = <&vcc5v0_sys>; + vcc8-supply = <&vcc5v0_sys>; + vcc9-supply = <&vcc5v0_sys>; + vcc10-supply = <&vcc5v0_sys>; + vcc11-supply = <&vcc_2v0_pldo_s3>; + vcc12-supply = <&vcc5v0_sys>; + vcc13-supply = <&vcc_1v1_nldo_s3>; + vcc14-supply = <&vcc_1v1_nldo_s3>; + vcca-supply = <&vcc5v0_sys>; + + gpio-controller; + #gpio-cells = <2>; + + rk806_dvs1_null: dvs1-null-pins { + pins = "gpio_pwrctrl1"; + function = "pin_fun0"; + }; + + rk806_dvs2_null: dvs2-null-pins { + pins = "gpio_pwrctrl2"; + function = "pin_fun0"; + }; + + rk806_dvs3_null: dvs3-null-pins { + pins = "gpio_pwrctrl3"; + function = "pin_fun0"; + }; + + regulators { + vdd_gpu_s0: dcdc-reg1 { + regulator-name = "vdd_gpu_s0"; + regulator-boot-on; + regulator-enable-ramp-delay = <400>; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <950000>; + regulator-ramp-delay = <12500>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_cpu_lit_s0: dcdc-reg2 { + regulator-name = "vdd_cpu_lit_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <950000>; + regulator-ramp-delay = <12500>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_log_s0: dcdc-reg3 { + regulator-name = "vdd_log_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <825000>; + regulator-ramp-delay = <12500>; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <750000>; + }; + }; + + vdd_vdenc_s0: dcdc-reg4 { + regulator-name = "vdd_vdenc_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <550000>; + regulator-max-microvolt = <825000>; + regulator-ramp-delay = <12500>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_ddr_s0: dcdc-reg5 { + regulator-name = "vdd_ddr_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <675000>; + regulator-max-microvolt = <900000>; + regulator-ramp-delay = <12500>; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <850000>; + }; + }; + + vdd2_ddr_s3: dcdc-reg6 { + regulator-name = "vdd2_ddr_s3"; + regulator-always-on; + regulator-boot-on; + + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vcc_2v0_pldo_s3: dcdc-reg7 { + regulator-name = "vdd_2v0_pldo_s3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <2000000>; + regulator-max-microvolt = <2000000>; + regulator-ramp-delay = <12500>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <2000000>; + }; + }; + + vcc_3v3_s3: dcdc-reg8 { + regulator-name = "vcc_3v3_s3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vddq_ddr_s0: dcdc-reg9 { + regulator-name = "vddq_ddr_s0"; + regulator-always-on; + regulator-boot-on; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_1v8_s3: dcdc-reg10 { + regulator-name = "vcc_1v8_s3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcca_1v8_s0: pldo-reg1 { + regulator-name = "vcca_1v8_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcc_1v8_s0: pldo-reg2 { + regulator-name = "vcc_1v8_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vdda_1v2_s0: pldo-reg3 { + regulator-name = "vdda_1v2_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcca_3v3_s0: pldo-reg4 { + regulator-name = "vcca_3v3_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-ramp-delay = <12500>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vccio_sd_s0: pldo-reg5 { + regulator-name = "vccio_sd_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-ramp-delay = <12500>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_1v8_s3_pldo6: pldo-reg6 { + regulator-name = "vcc_1v8_s3_pldo6"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vdd_0v75_s3: nldo-reg1 { + regulator-name = "vdd_0v75_s3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <750000>; + }; + }; + + vdd_ddr_pll_s0: nldo-reg2 { + regulator-name = "vdd_ddr_pll_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <850000>; + }; + }; + + hdmi_vdda0v85_s0: nldo-reg3 { + regulator-name = "hdmi_vdda0v85_s0"; + regulator-always-on; + regulator-boot-on; + /* + * The schematic mentions that actual setting + * should be 0.8375V. RK3588 datasheet specifies + * maximum as 0.825V. So we set datasheet max + * here. + */ + regulator-min-microvolt = <825000>; + regulator-max-microvolt = <825000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdda_0v85_s0: nldo-reg4 { + regulator-name = "vdda_0v85_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_0v75_s0: nldo-reg5 { + regulator-name = "vdd_0v75_s0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + }; + }; +}; + +&tsadc { + status = "okay"; +}; + +&uart2 { + pinctrl-0 = <&uart2m0_xfer>; + status = "okay"; +}; From patchwork Sat Oct 26 09:48:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852167 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CCBDBD10BF6 for ; Sat, 26 Oct 2024 10:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wy8lBMnIQcASvZDOl5iOWscZ4J+ZLMqp4Jss2Sj+BGQ=; b=sO6p3ffItrcmyV vWk46Xss0KABnvJtkdQAP7nEYLEr754cjc92eu/oYCw980edY2rVvu3Gfou/vc7wcP3yYAW4/0KUO HhztZcmZzMTvX9rvSI2paXNkUtpHvzdb8v9R953+OMXyqOJWNLUJ/0WMeTgJkPpQHlssJMJ0fCJZx DE7BRvOh41EeH4ZnQMVdc22S83h8kDMsHTLKXFVDvXMJZbSNWwl3csCgLRnqT/H7WWAzHAvIF6DQu ivb1oy7qqNT/O4HG7TgAc8g6QlG8z6HQwmecpL3j08cnLnZTLVVBoR86XO1vGHXvV7FhUQEvlwRZO cHYFktZnfyIPdvIMLrFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4de0-00000006Kpo-1vXG; Sat, 26 Oct 2024 10:03:40 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4ddv-00000006Kmo-0ocv for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:36 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-7181b86a749so1501200a34.3 for ; Sat, 26 Oct 2024 03:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937014; x=1730541814; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ikQinEU8DnSuzan7Q2x3yM30D0mwxJ1OP0EuX9uqPK4=; b=JZ/BGN/JrX7RkTMPkBIjyJNir7nqGkbm4+aDzjjo7kkHczQQfQib2+tn0dwyhAY7eh RKQiWYdROeSEOFjllEh36x556t0ZvCYVvkc7+cV2IDe53OJGAtxVc35/yHdnGnipIyUj bJilL1XXM++jO1urYqyNtI/qeCzkSoA7dQEv5cMCqeStFT76YH4mjo2f1PLgVsJSWRfb jCxyBpMmSmeQy8VFuVYrz3v47tTx/TTuEdPDlU+L3AZUG1m1saR/nq4Xdr+16Shtn7O7 SGbmhpszq8X52IG0lsZkcEDJQrzYDCLCW400us+ESQ5uETYJmB+D/i4P6beWf2jbLwjT asOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937014; x=1730541814; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ikQinEU8DnSuzan7Q2x3yM30D0mwxJ1OP0EuX9uqPK4=; b=jD3QYzL4+pTTf+DiDtI3Nj2m5eIXzxNTFwzZ0pNBuZ2ebhp1mFKlgCWb0jagyipI8N 3S2WH9Njmi7kioNazHTGcQGtdyzs24xVmVgL61t+r+NDedfnWMZe+V42iFfJwgsCnP/V L0NB11NR7S9to2e3TXaXaCDjHzmcgnlXmIo8r+823jcW4hhKo3ov5MNIg3N0TSJ905oy xcazV1J9EDWhwVEfnS0aXRYB1mJNgknmyGO9xTbuYcqSzyNlmSRYq1+9/2ZiYimVmuPo +iq/Hx0uzhkdF+iZOwNG7aujfPbt/O5K96G0+brbREDmwSv6tD9JC2VOQ7olQbBagOQl IeRw== X-Forwarded-Encrypted: i=1; AJvYcCU3aR+zGNLyRGRQC7p9PFZ6EuRm/W0zgLOz4HFJaZFQL+49S6/nROiT0/U520ju6CVyuDxpQz4fbV7ngrOaBA==@lists.infradead.org X-Gm-Message-State: AOJu0YxozE0/G7XOVtAdAf6dAustdMLTXGiX1dAQPTByUpn5vrTz0CsK ZTpVu/v6rMk91MIJpIoxAg6CAjWW1PbVjjK6WelfG4nztPAruVUp X-Google-Smtp-Source: AGHT+IGGFOlXCwhkwhnufwNjpSEglxiaU8EryiNdRJ1rxaExPtzL8v5Gjebj0lwoFkayI9tAoJGSMw== X-Received: by 2002:a05:6830:2703:b0:718:1863:a3fa with SMTP id 46e09a7af769-7186801ea8bmr1388130a34.10.1729937014097; Sat, 26 Oct 2024 03:03:34 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:33 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 03/15] arm64: dts: rockchip: add status LED to opi5max Date: Sat, 26 Oct 2024 04:48:19 -0500 Message-ID: <20241026100310.52679-4-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030335_254197_774BE0A2 X-CRM114-Status: UNSURE ( 9.18 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Describe the Orange Pi 5 Max 2 status LEDs in its device tree. Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 53a34cb37487..83a118e52bb0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -3,6 +3,7 @@ /dts-v1/; #include +#include #include #include "rk3588.dtsi" @@ -19,6 +20,28 @@ chosen { stdout-path = "serial2:1500000n8"; }; + pwm-leds { + compatible = "pwm-leds"; + + blue_led: led-1 { + color = ; + function = LED_FUNCTION_STATUS; + linux,default-trigger = "heartbeat"; + max-brightness = <255>; + /* PWM_LED1 */ + pwms = <&pwm4 0 25000 0>; + }; + + green_led: led-2 { + color = ; + function = LED_FUNCTION_STATUS; + linux,default-trigger = "heartbeat"; + max-brightness = <255>; + /* PWM_LED2 */ + pwms = <&pwm5 0 25000 0>; + }; + }; + /* PMIC_EXT_EN */ vcc_1v1_nldo_s3: vcc-1v1-ndlo-s3-regulator { compatible = "regulator-fixed"; @@ -127,6 +150,18 @@ regulator-state-mem { }; }; +&pwm4 { + pinctrl-names = "default"; + pinctrl-0 = <&pwm4m0_pins>; + status = "okay"; +}; + +&pwm5 { + pinctrl-names = "default"; + pinctrl-0 = <&pwm5m1_pins>; + status = "okay"; +}; + &saradc { vref-supply = <&vcca_1v8_s0>; status = "okay"; From patchwork Sat Oct 26 09:48:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852166 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5E9E1D10BF0 for ; Sat, 26 Oct 2024 10:03:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tIFqPDrvalM6EtIjADGGAzzP7hCR5GZ8d+yG4QZERpE=; b=mSkOGj4/SHrMxC q1r3eRQuCEFc+HtrgP435L3pTHCAqNP8XK6gLDL4Kcz1LF46HHRUsEFpsSzVYvNB+j2xWFEU8MVOC XLlKhtD1BBtL6PFLLrRN6H4oe93QtMmQqLqd74MV6wLwcciqFpewdZlDXemE+CtORrIvEEOHbWscg gJq5uvwic8bUZkkxUSfPIz7es8DjmUUgP4eiz2Vo8+aFh7TK+sC+vCpauJOtE4lTdpiD1fKUGo7oF S4+NR/WbEiSvZLKi86Kmo8ejFdNVXF6HOvnLMxKTAnRj+8USCuEJJSseFdtoR8VLss9U0a7TVlON8 PWae+qEFz59/SO/Yo6qQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4de0-00000006KqF-3jyX; Sat, 26 Oct 2024 10:03:40 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4ddx-00000006Kny-2hrB for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:38 +0000 Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-71808e95ae2so1578837a34.0 for ; Sat, 26 Oct 2024 03:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937016; x=1730541816; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vln2kjvTiaEnEIV0ZkT7Cwe0mJcBgbSUVXBSCAwi4P4=; b=Tjz9JFs6Cl7XVCxpPug9g2q7ej+6TppKrakjZwE8UF5UZwRdN1AcfIoLS1k0ylicSR uHvbBurjxTO6mHiNlVHMqi97iL1eTBohzo+IPzWB7IYtpuCSyEsmu+FAoh3dNMcyrmwo tYxYD/z/lFTnErrCI8idSFe2GwbCaonhrstkI3OQn203SVXJkJLPiqepxRq1UH+0ndcq P03OkmOnB9nxHM4HITgsLXAXNtMLgXXSfagik5hdlgp2bEE21P1kiw9VXwrj+fPnajSJ d6T5meo/cgL0yijj+u7pvUhtPi/OK3PmYIaJPZELwMm5731RXVeYYejjcnUAfQ6nN46H ajYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937016; x=1730541816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vln2kjvTiaEnEIV0ZkT7Cwe0mJcBgbSUVXBSCAwi4P4=; b=vTj0UK9rlkdoT1LZ7beABlJ/kSdkIi1ZNFS3wNqnDYUQ2WirZw6xgJgANJRbkFkhMk prlFJYsYeYnsvnGippPR4ttiVtTTP1TThJJK0S9jCnqh8W61Tho0EcSQBPZXSaki7hRO WmUOn188mJaFBM/HG92MmI9OvWOquzn6UuMbKONcy5DOXE7XASNaag4NYWAp06gXnEnm tbvhfWI4TlUo5ZPlkcOCnmgKZdn7k0kYgCFfzgeKBASOiw65JLu+L9NpqF7Fsm7mD/rB ILddo8+TMG5hnU1QMOYSGV1dN7GLEYbS6/VbgX8G6kQL6fjtNtZj85eQpFqUZ//aNXAg IZjw== X-Forwarded-Encrypted: i=1; AJvYcCXKrR3djByn/9/2V08/QAiuFVMa77QE9r5CT47Ehe/URhKADrcCVhx29PO4SJxCcOcjSUDkHc1052JSMl4RfQ==@lists.infradead.org X-Gm-Message-State: AOJu0YymXLevNTpVSvsLHsxGNmAgiJtXLg4BCglYywn1ZSvrGUkaTn7A iTJEJhVC+QTv8hhFGCcHsrS6fMVI1kNEdbXXGSHDEcltTUo+n0Bw X-Google-Smtp-Source: AGHT+IFbn26hcInv+sOr51oPcQ7mdhPnCT+vAxzb2EfKGgUeU7wx1hDR6Fd1fmsBokWFc0LbcgfHYw== X-Received: by 2002:a05:6830:2648:b0:710:f22b:c825 with SMTP id 46e09a7af769-7186801ce8bmr1201710a34.1.1729937016432; Sat, 26 Oct 2024 03:03:36 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:35 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 04/15] arm64: dts: rockchip: Enable RTC support for opi5max Date: Sat, 26 Oct 2024 04:48:20 -0500 Message-ID: <20241026100310.52679-5-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030337_730501_A168D56C X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add DT node to enable RTC support for Orange Pi 5 Max Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 83a118e52bb0..961f9271d0f0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -150,6 +150,32 @@ regulator-state-mem { }; }; +&i2c6 { + clock-frequency = <400000>; + status = "okay"; + + hym8563: rtc@51 { + compatible = "haoyu,hym8563"; + reg = <0x51>; + /* RTC_INT_L */ + interrupt-parent = <&gpio0>; + interrupts = ; + #clock-cells = <0>; + clock-output-names = "hym8563"; + pinctrl-names = "default"; + pinctrl-0 = <&hym8563_int>; + wakeup-source; + }; +}; + +&pinctrl { + hym8563 { + hym8563_int: hym8563-int { + rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + &pwm4 { pinctrl-names = "default"; pinctrl-0 = <&pwm4m0_pins>; From patchwork Sat Oct 26 09:48:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852168 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7243D10BF0 for ; Sat, 26 Oct 2024 10:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3Il7OBbGVN0XIcUOM4IX96rVLODqdklFQiaisnov3Ow=; b=NvCkjHA5Sr2xJi eZLD7qJUpGVO61Xl+tmCkuW6Zd6hto+3g8Gf8YVCw2SP/HGkFGpmGQKLcV9V5MLfHbY2WAiOa51TK OU+3F4VQiS7xqFdX8DmV88LktkzE5Vf5X1Y+NoBnMh4N6nMPzNooBjIRTuxVgroLtq2IoQahHHFOY nK2QBzJSJ2SF71gzpM7i7RZ27Hn/0nnA/oO4CIGZ8xAXlrlFjpGVpaehLoZh5ZX6yBX1qmVTs8vj7 zEZCWSYNtTNV6/d6k2DBLRtog3HPZrAWJZCucEMUlUpqb0N2M2kYmordAtJ6sPlcchWN5HrqQzprJ pCgakoI7yJlSt+AYnEpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4de3-00000006Krw-1flD; Sat, 26 Oct 2024 10:03:43 +0000 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4ddz-00000006Koy-0FSE for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:40 +0000 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-71808e95ae2so1578842a34.0 for ; Sat, 26 Oct 2024 03:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937018; x=1730541818; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8n9OGkms1KY/VW9DlrY7M/ZtaRHuaMzIxRVDkh7KkHA=; b=BaRr8rkLh1Vkmj6Mj+V6e3kzi8LV+KzHm1WD+RX0Q2pMNvmQ5yeLRjeje3Q1UkHy2a cOnlvNTtAKKlrbOk6rDMcbhBiuWS4tv2Fx225vqTqc1z9oWqA80Il9+LALQv4sNtAOUP GxTOVq4/wAn62l1uu16Ay04ZT65p146JpuKdBIJXKXArbdH/3zDVgwWe36qCbUOdoXVU sZxd8YfjClWpWxuVBGZFzLMRokYeA4U7t+k4WUHkFk6BBKOcqkrAthcDc2xVARYhrw9R Sh3EmDtBFxVXmQDr9dpgTE0DHdA4bk+35wfdwtn026nP7G/Bd+4JhVMg379aKtbUbzeQ pwnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937018; x=1730541818; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8n9OGkms1KY/VW9DlrY7M/ZtaRHuaMzIxRVDkh7KkHA=; b=ec7rxf7tEp+XmBmi8eCJTtD8dPYvYfV/tO5NkMBzrWHXaoIbKze3draOfOZGdyV5aQ dOvdW5VS/J7MmzIagyDm0Y4J1fjbXYwcjqSvA3sEwh268DSv/wVRarqBXuHcc7t9QsTW A4y/4Nym1kjF5IlPpZlG5TXzzlt06CCg5b60oyMZP9OWfDuqqt8irJ18REVI6rNITrvz XPIfGe1UU1i5knj5U7eA0ZHZlLqxYmaSiZ8oEtJ0TIp4UMnphpTT+yzolmUSe7zM6odu jQMaxRyBceddMbXtL9XRYb5I+NzgcpEDRy/oPrmpWx/TyjubnhCvOX8nlpJmuMprrX/v Vspg== X-Forwarded-Encrypted: i=1; AJvYcCWN4pj7z8FKTvx+j/aZ9LcE5yi4+HCdRWzkER25Hfzv4tiZDVE2vUN4k8YgMe/gh7plAGE3YDIEYt/iG5s8Vw==@lists.infradead.org X-Gm-Message-State: AOJu0Yxo0YR0IjEu35KbyebR7jhSA9vzm8GF0pqbF52tXCOkecVxSPYn msL9Avmv2mKJ5C+B5yFzx8CrnujemQqlklnYDj3bzm1ouXevWGmG X-Google-Smtp-Source: AGHT+IE3oTk+0eTX2Zv0QRZZxIAmPzZGK4NaxQx0GgTpVJl9FhDbTq9HxR7nhTSZcHHrTvUEXs4ucw== X-Received: by 2002:a05:6830:4390:b0:718:4fd:bd78 with SMTP id 46e09a7af769-7186829ad9emr1244466a34.13.1729937018024; Sat, 26 Oct 2024 03:03:38 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:36 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 05/15] arm64: dts: rockchip: add PCIe network controller to opi5max Date: Sat, 26 Oct 2024 04:48:21 -0500 Message-ID: <20241026100310.52679-6-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030339_123773_11ED7EB1 X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Enable the RTL8125 network controller, which is connected via PCIe 2.0x1. Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 961f9271d0f0..591ba2af25d7 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -53,6 +53,18 @@ vcc_1v1_nldo_s3: vcc-1v1-ndlo-s3-regulator { vin-supply = <&vcc5v0_sys>; }; + /* pcie eth. not a real regulator. 33VAUX */ + vcc_3v3_aux: vcc-3v3-aux-regulator { + compatible = "regulator-fixed"; + /* Ethernet_power_en */ + gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_LOW>; + regulator-name = "33vaux"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <50000>; + vin-supply = <&vcc_3v3_s3>; + }; + /* Regulator is enabled whenever vcc_1v8_s0 is on */ vcc_3v3_s0: vcc-3v3-s0-regulator { compatible = "regulator-fixed"; @@ -78,6 +90,10 @@ vcc5v0_sys: vcc5v0-sys-regulator { }; }; +&combphy2_psu { + status = "okay"; +}; + &cpu_b0 { cpu-supply = <&vdd_cpu_big0_s0>; }; @@ -168,6 +184,13 @@ hym8563: rtc@51 { }; }; +/* phy2 */ +&pcie2x1l1 { + reset-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc_3v3_aux>; + status = "okay"; +}; + &pinctrl { hym8563 { hym8563_int: hym8563-int { From patchwork Sat Oct 26 09:48:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852169 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DE1C2D10BF0 for ; Sat, 26 Oct 2024 10:03:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pQyNyaGS7bAlL3vR5a1SdMfQ8nlT6eMMGfvZlPSM7cw=; b=eadbDC0J5ia3IB O06VK5LNd7+MK2H8xgC1VAQRjK70Z9gL13sR3PxWkNxFs+5mYCFfPOpyUOx/N6Ju8XP5oIHZ/Iry0 Pks0wq2CXtYOZOD1COmtMlC/4MK6WKgGfQc2ua/VUy62GcKLRoXjsD3W0wiDnDdAxCuRAbHLQtNI7 V3Wc2u7yIY0yhmSZDy8llFl37AUiEfO7orMFRqfSON/fYJXrDOS+rVUNjtZ5zazQWrB66JL7CAOrc pmD6sOQq2uHjZ5kOPiC2PICMYeRthGiHoFfDHUGfBwD4ti1Z6sVnTBSCXMoEIoAyk7Tl+vA0iq2bY +bIop7UHNwpZMvZKcn0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4de6-00000006KtW-03Js; Sat, 26 Oct 2024 10:03:46 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4de1-00000006Kpp-0faa for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:42 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-718066adb47so1639919a34.0 for ; Sat, 26 Oct 2024 03:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937020; x=1730541820; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OG5OSejKWm2ypzSCrYRq7/rsTKbEKScT3kAIlnW/zuM=; b=SUCuYja2+G0uM7LuATjI2SJMr3VnOAVbCl35dD2RmisJ1GFvqvmqcoMUd4jgl8/KxE pW0HYoe5wMYrl3Rt1kHORHG2DEIb1GUT7LwW0o+AKjXLVxxGiEvcyUy+h3iO9vhN1e5d 87lniW1oPeq2yWcjZns3KFbcDOuHXtivKH3KizLj/DY2+cumiDXvU2/S5Lo42jDwqAYd 1AGjG1cuOxn2VyQWHN+GY4SoTALVTC0RcBmKhCRax6Xo+/m8itx0HE1BjctQDM5Yy9lg XEnJSgWjfIc5bDchwuVbq/1zw05YEZHYdzWkpI/xHQExBGqPs6Tq8SuzQ+XQWz5751Lx eIag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937020; x=1730541820; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OG5OSejKWm2ypzSCrYRq7/rsTKbEKScT3kAIlnW/zuM=; b=IHZidpjo4BnphTfePdMI4GCGCXdecec+YiIiHqgttYWhBFP9zp52y4DBkaqYCdzBzd pbBJwODxOwHNk4b1rw76N5yOxBXBxWfgIM9QUpTqrSUvLzxfyLWLFvuQ+qEaUKoVitDG u/wkT0xYLQRN9+AGmvTqSI9UC5i/d1APm3zM4ZnYhCy+Y6Lrvi/PvJDTyWBL2mfY3AIe Ds1TYjr1dbLech6FkGpWkiRTL9jKgMPCaKV0ikqlTtLs3XkUkD9dgpqiUjF6wVh0v8DS Lnc6MZuDP+bgfUAg1WJwr9w3Djt26YJ+1ZHUpGeo/9jwBUaLsw9AI5x7suMyIOuVfW/e Yv1w== X-Forwarded-Encrypted: i=1; AJvYcCVaBJrgVxkJJ6T0immdZYwBgK/x/iBhh7muwJmN0Gzggza1kt5se1jV27c834AJxAD+q6fjG67EA6EMzIzEDg==@lists.infradead.org X-Gm-Message-State: AOJu0YzHXOFmEivWWUMtzUKT6mJc3yT/C4Mgyuu3NXo2C5o6qWeIkEt8 AVMi05WvWI8GaIqLzWu7f3PKesm4xlTKOlantUi3aX11i6yY0ioe X-Google-Smtp-Source: AGHT+IH1UYV6cAfrS7OZKZ50c+Tmq/uDig48s0v1YlJsaaoH7pl939ozWL3622OEzL+/CpX7AW+IFQ== X-Received: by 2002:a05:6830:7198:b0:718:ced:90cb with SMTP id 46e09a7af769-71868118a71mr1055636a34.9.1729937020027; Sat, 26 Oct 2024 03:03:40 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:38 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 06/15] arm64: dts: rockchip: add PCIe for M.2 M-key to opi5max Date: Sat, 26 Oct 2024 04:48:22 -0500 Message-ID: <20241026100310.52679-7-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030341_250239_803C3E50 X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The Orange Pi 5 Max has PCIe 3.0x4 routed to its M.2 M-key connector on the board's back. Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 591ba2af25d7..5c4390ac3f8e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -65,6 +65,18 @@ vcc_3v3_aux: vcc-3v3-aux-regulator { vin-supply = <&vcc_3v3_s3>; }; + vcc3v3_pcie30: vcc3v3-pcie30-regulator { + compatible = "regulator-fixed"; + enable-active-high; + /* PCIE_PWREN_H */ + gpios = <&gpio2 RK_PB6 GPIO_ACTIVE_HIGH>; + regulator-name = "vcc3v3_pcie30"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <5000>; + vin-supply = <&vcc5v0_sys>; + }; + /* Regulator is enabled whenever vcc_1v8_s0 is on */ vcc_3v3_s0: vcc-3v3-s0-regulator { compatible = "regulator-fixed"; @@ -191,6 +203,16 @@ &pcie2x1l1 { status = "okay"; }; +&pcie30phy { + status = "okay"; +}; + +&pcie3x4 { + reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply = <&vcc3v3_pcie30>; + status = "okay"; +}; + &pinctrl { hym8563 { hym8563_int: hym8563-int { From patchwork Sat Oct 26 09:48:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852170 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7812DD10BF5 for ; Sat, 26 Oct 2024 10:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tpt+0hbYq6tnAZr2fXLxq0SQ1MlMcBcPiZzmwK+MxGQ=; b=asw/4PcKFsr8nW w+aiENWDpGxY3QW4yZAsQOmzbmj57s0g2xTjvdQchoZ9NFW8yNNTGGyRmZYwB7OTUfKarZ9t9hOln AMOGEgf82prRXdxSD8MV1rp+8EaH3g9Bz45dX02uU7reEStmU/LLWwYjllOdMUTZtMvvlBZFNuRCT 6E6A62rpiv/OKSGwSqYCofM4ES9Cf9Fsd5vulDztB9cgkjwBvS0KwHWA98Q+plU6Ib/z6ym/nlwXk I+LY/Dp2b6tkTBlwRulF1VsfURqcadXjse3oey+vyVMsdssXFy8IGiFWnicBA4A93Q4VosIHfmjXC axpsvH4a2fJrj27FjcUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4de6-00000006Kuh-3eNB; Sat, 26 Oct 2024 10:03:46 +0000 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4de3-00000006KrU-0oLW for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:44 +0000 Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-7180cc146d8so1597534a34.0 for ; Sat, 26 Oct 2024 03:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937022; x=1730541822; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=u2l6vOKakYNeXOr7zjY0fTfuT5/i3Z+JBIc7TaDmx38=; b=S/w0VPrjiMc8ibKn4vjnH8qwrpCk980bXv4dOcx8kmqN+i/f5oRyUVMvLdmLJmR/OC /6JJJWe5sQcop0IasKkf6ri8TPUjcUsczizQJjSdFgd4/6UwuIbhPaeFcA6SgCaFWh+V 3n29emwlkSljbKxmb2u2ZeQvBot/3MFZcIkolrMPfPMfABifBDZ4NUe7c26qwaNCqwA6 9PhGdZRE/ddySJsg7JYX14sFgghdoSgrbSRCaLp3lwS3mkuOrDqzN19y4eVfIdYQktWd mVfqEeO8hAjt8FbQu8WG9o3pBCzZdpUmXp0nQPwaE6O8tfCR6XYYHnPSJhjjLYsSE2NY UOfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937022; x=1730541822; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=u2l6vOKakYNeXOr7zjY0fTfuT5/i3Z+JBIc7TaDmx38=; b=I9bac4M+j2+tplXw14eeVrdPfpGRLgQQHJ7AALF+o7l0hLUHFPVVlb/qNm2egkNx7V hF2xTI6U8amH8H3w62huc/afLO/I68G2eUxxi65OyrjX/VmbfnDVumo5adWhCtqmdxFo 5d3TjJw3CC6F0ou4NBfSEQ6emhTebYrht9OxOuRssDb0V9fIxn90ydIFQhJwstEulnuv Ru8gg84Ckfl9lwGwyg6f/qYQnZ+Dtrzyuzgi94zdBpJ0+91ya8g2YgvTdv2dzTETX37K j/jrbahxDTtRJCgztCRVWY+hM6PwJnERjy1erEBqE5Iss0Grt1qR8wvxLmjUWgJsYvGi UUjQ== X-Forwarded-Encrypted: i=1; AJvYcCWgx0hmg7Xa0map55iOffJ6LLwXV+VYd0hmDjBCNfWmVacmqBAUzRo+rw+D1Zkaa4xM8uPZzYnFTrkFSAwj/A==@lists.infradead.org X-Gm-Message-State: AOJu0YxAdzBuoEMshXwiaiO+wf9FdAKeIBx/K1clazeX2YENCPslhLbz iulQtI6FgqDYwBb17yEB5FAin+/RnsVg1+5dkUR5gbCrboLGaz0v X-Google-Smtp-Source: AGHT+IG6Mx93o0eCB/55OHY7GgeQtiaGJqSLVXU5hactt1AuSxY844vkHuu44c3UPoMgoTWbuMn+CA== X-Received: by 2002:a05:6830:4410:b0:718:728:8ff6 with SMTP id 46e09a7af769-71868229ba8mr1769187a34.16.1729937022454; Sat, 26 Oct 2024 03:03:42 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:41 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 07/15] arm64: dts: rockchip: add fan support to opi5max Date: Sat, 26 Oct 2024 04:48:23 -0500 Message-ID: <20241026100310.52679-8-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030343_275587_0CD47277 X-CRM114-Status: UNSURE ( 9.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add changes for the Orange Pi 5 Max board to enable support for the PWM controlled heat sink fan. Signed-off-by: Jimmy Hon --- .../boot/dts/rockchip/rk3588-orangepi-5-max.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 5c4390ac3f8e..03ae3564b8f4 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -20,6 +20,15 @@ chosen { stdout-path = "serial2:1500000n8"; }; + fan: pwm-fan { + compatible = "pwm-fan"; + cooling-levels = <0 70 75 80 100>; + fan-supply = <&vcc5v0_sys>; + /* FAN_CTL_H */ + pwms = <&pwm9 0 50000 0>; + #cooling-cells = <2>; + }; + pwm-leds { compatible = "pwm-leds"; @@ -233,6 +242,12 @@ &pwm5 { status = "okay"; }; +&pwm9 { + pinctrl-names = "active"; + pinctrl-0 = <&pwm9m2_pins>; + status = "okay"; +}; + &saradc { vref-supply = <&vcca_1v8_s0>; status = "okay"; From patchwork Sat Oct 26 09:48:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852171 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 206CAD10BF5 for ; Sat, 26 Oct 2024 10:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=x0w3inb6E5U7uASzyIPTbFirOqq7LSYXzfWpdZDwa9g=; b=dWZJJPA2txDwDs Kbj+oRSmsMZyCnh50G/yQJv8fLQ6tJgyVPA5p718fdQtf2KdWDVPcPN4g0iy1g95cKDQTn+0ObAYa l52XS9x6N+mc1qqXptmdhrZB+Rf8GZST+U4VhaRJiE6C2XQwiLAkQcnZt2aG45isAuhEVC8wkZWAX nKEXRcoTBpKv9NROKnuCf8lN6S9QEML36Qx8ui3AasiTs8Pj75sEab3EpmZVtU5BoYo/rXEoxmS/v cPPB63hYy2VbwaZlAbnLZWZJmApaQ1DRULaljtZ0yrPJoMZ5T7UfEEa21//6U1Dp/EiotDxAAsq54 l7wDAlzV4yNxif5XmYXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deA-00000006Ky1-2bu8; Sat, 26 Oct 2024 10:03:50 +0000 Received: from mail-ot1-x32a.google.com ([2607:f8b0:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4de5-00000006KtG-3p4I for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:47 +0000 Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-7180dc76075so1511325a34.3 for ; Sat, 26 Oct 2024 03:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937025; x=1730541825; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TYeTYHWTjp7cA/WYWuIhCpZ4XmDorEuPTS9DnqV9+L4=; b=VbbbT+RP6NKD07E4JY1welL4x5C67RLfH43FBuKhS2iob0Ha7ykL8JvaPcfVpn3kb0 a9oR4cB2OiheKQF8bIUI903sP/JResL8H9wuTwfx89zS1XSqlZeKgf+HBpdHNWEGH2Ec KG5j7SHTG+TyM2xLnjb4fn9DLexYZIxQbJgq3S3Y+BwRaoE4Jr4wajFmgepUAUH21VvP OTPzEAcWQZlIurvH6Zq2HphHXc3JBEaiDPRVWGWeMXmHfC3qWDDiRRJu/vMbhvkaLxvD jA2zJcYRj/SFDWeFMgEWsrGSzhHZb4S/fPqVuwJAMif4MeeIcSAfaOUmyprriareQJZh 0/nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937025; x=1730541825; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TYeTYHWTjp7cA/WYWuIhCpZ4XmDorEuPTS9DnqV9+L4=; b=TbcCYV05TG1JVyCzgYF1eGKSXcdDTxuVzHqv/P1V56GAD1v0h0UB7jSAOw2l8ptpPW Fj5rrx3Ffa5kCq/rmdUtN5aYHpHGqSlb6f0zQ2gX5CW1e0jqkARqPJtRlhlZAtltSgjW TJOAsvMGvZPWmEQH+Gm4KvwuQpSe4yCurdMNueS+FnOZXSKk/xakh/v6gCbZjmXx8K2s Z4X1Nm3lYSLvKV8K5y8bE7HDymHGvTjzwRfHDgJMiNxXvCWVuXbO++eEckzUeigXR9y1 5miOOIW+lMeVWVpZlrYm//YDxybyJE/+4PCwhqcxlabNYPdqYh/bInnwMZi13/2wu1y7 VnLQ== X-Forwarded-Encrypted: i=1; AJvYcCUevOctKNB3sB7KNd/twMKiX7h13G9RE3m4pMFp78gMQRBfwHh6uSqMTUYPQUWKGSYQP2mIAv37zDKLs2r+3A==@lists.infradead.org X-Gm-Message-State: AOJu0Yz1TLiy+gnMFeH0zX3Zklahfl/old+Qwv69WNs0HMxdY3e6zJmJ l+9EKzNiyG/Vcrner37fHbzFzdXIdJxOT969Tug6/eYO6rpH/0lI X-Google-Smtp-Source: AGHT+IG5My3otiFkNlKt+LrPvMCRwRWlktLlaITSbUCSlxRBX0CDMt2c1Rv0oumzk5QS7oL6wMR6WA== X-Received: by 2002:a05:6830:2694:b0:718:194d:8ab with SMTP id 46e09a7af769-718682a0ac4mr2057089a34.27.1729937024751; Sat, 26 Oct 2024 03:03:44 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:43 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 08/15] arm64: dts: rockchip: add USB2 to opi5max Date: Sat, 26 Oct 2024 04:48:24 -0500 Message-ID: <20241026100310.52679-9-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030346_030556_0FFC98DB X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Enable USB2 (EHCI and OCHI mode) support for the Orange Pi 5 Max This adds USB support for the two USB2 ports. Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 03ae3564b8f4..be4af5006d69 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -109,6 +109,22 @@ vcc5v0_sys: vcc5v0-sys-regulator { regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; }; + + /* Represents the vcc5v0_usb20 in the schematic */ + vcc5v0_host: vcc5v0-host-regulator { + compatible = "regulator-fixed"; + enable-active-high; + /* USB_HOST_PWREN */ + gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_host_pwren>; + regulator-name = "vcc5v0_host"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc5v0_sys>; + }; }; &combphy2_psu { @@ -228,6 +244,12 @@ hym8563_int: hym8563-int { rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; }; }; + + usb { + usb_host_pwren: usb-host-pwren { + rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &pwm4 { @@ -612,7 +634,41 @@ &tsadc { status = "okay"; }; +&u2phy2 { + status = "okay"; +}; + +&u2phy2_host { + phy-supply = <&vcc5v0_host>; + status = "okay"; +}; + +&u2phy3 { + status = "okay"; +}; + +&u2phy3_host { + phy-supply = <&vcc5v0_host>; + status = "okay"; +}; + &uart2 { pinctrl-0 = <&uart2m0_xfer>; status = "okay"; }; + +&usb_host0_ehci { + status = "okay"; +}; + +&usb_host0_ohci { + status = "okay"; +}; + +&usb_host1_ehci { + status = "okay"; +}; + +&usb_host1_ohci { + status = "okay"; +}; From patchwork Sat Oct 26 09:48:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852173 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DCE57D10BF0 for ; Sat, 26 Oct 2024 10:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gF9jEP0qHHKMfIvIPRFPO6NTAQu/H21LN+LU+BS+0yE=; b=dV6IoFAfMkoc2D 6sivCwe0nuKYn5M67/Y/M+gIb/akDd8ZF4eG70VYLrA0xqxz33KwPwN7zuW3umBeT9qm/PnYmK4lp yDl3L7eiCbhWPpr7WxMzaBD719otHtOeBsAdM+oV1lOsWzIaRnfnevVyNPntncgUAboMiiBoLSzzN QrUvZLfmtSDzznXq5px0zve4DhS2oLdJVGTMM2wDCjKbWPTR4belaFpLNZu1QYXHHys/2ZmZWrf+D OFuXYZqrKiz3MnjSSNAuuGWx0X170+k3T1J0M2WhqEKS4cSdgpXXRAP0yTYuD6aXkR73vOmRlkbQm EYOEU0vzdZ6hwfFqN9Kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deE-00000006L0s-23zJ; Sat, 26 Oct 2024 10:03:54 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4de7-00000006Kuk-2dE9 for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:49 +0000 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-7181caa08a3so1628741a34.0 for ; Sat, 26 Oct 2024 03:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937026; x=1730541826; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BiD5WQZyh4H4zi2wX8Qqo4TX77hmB6UK5+eFFP2Offg=; b=LreAlfJeB/0P2c85R2iBAWuzLVD8qBAI8hVwB1k2Xl9LPLIpfDdCK98x5QM859fsMB CI4kM01NrQqejL8H5YC9waQUJL0hoffcpjb4HqK6AD8/nvNu6Lj7W0k+xffFY3auNyvT D6HLT1hwhPEvNuX4cjsaWi402I1Y7adS+3t7JjZdq+vY+xU7+XAlZttjQsVCdnTdXima sDRAoqOjpmTdv9B3w+vbaGcgr53vjRoSpXL3exZ4gd98PjVqmwKnFg+EP2OnEcWU6W6v wkt05IQghBEdW92QE0kbgVMar94gq/TVR/fnzU3F9hyEpMaL2L4+N74JbNFDabfYsorn qjmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937026; x=1730541826; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BiD5WQZyh4H4zi2wX8Qqo4TX77hmB6UK5+eFFP2Offg=; b=B6BAFUa0xD22i1Cwxc7aedqHlwS/JeLJzY/uRs3gbciI/T0JootrvR8uSWH57SF+FX ZoCJeHt/QrR1EwPq1iKFuSZp+0SqQgdMbRFXN3ngv5GQWFm0nKgD3Sw8w/zmZMw5DUJB shWhKwHInTp6AGFJROoresK8FdEXQwkpkdG3bRh4Vj8C8K88eGZk38576zH/SE07kHan uhbaHWUUcLkciZ2EHMkdAlQtqZdo+AWUERCL72vGwtKNgvLAs39X7Y3IO04GQl0nYhr5 QgruaBf9Mk60NHKSs8NhJz8wABppaIoZgjh7PqfRX0jQmCG5gYa/VbgAOanoNohcSbAl awyA== X-Forwarded-Encrypted: i=1; AJvYcCW7Kw3iyWApKkzJ7yJ3z0QvNUoNh0P8/ioqYeNnn0KegPgMHoIBSAjqZQl6Wxh7n4QLUum/Bb/V1XM8DQ4ESA==@lists.infradead.org X-Gm-Message-State: AOJu0YyIOM4QqTm4lr+sDMP4SQJLZjOA31h3b5+CwGSGQLyciFtjcubX muAru0cJ3WznzrpSfkoP/0xr3WJSQ1YgMsWkYEmdn0ecDDZ9F9gP X-Google-Smtp-Source: AGHT+IFipjEJT7pYluVTW9s93oIrldO3Ddhe9Vf8mgSc5dTP2gz4NDyVyFgcGHP6I/TbrJc0KgtzHA== X-Received: by 2002:a05:6830:440f:b0:713:7e1f:f140 with SMTP id 46e09a7af769-71867f18ae8mr2092323a34.5.1729937026269; Sat, 26 Oct 2024 03:03:46 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:45 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 09/15] arm64: dts: rockchip: add lower USB3 port to opi5max Date: Sat, 26 Oct 2024 04:48:25 -0500 Message-ID: <20241026100310.52679-10-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030348_314436_1C818949 X-CRM114-Status: UNSURE ( 9.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Enable full support (XHCI) for the lower USB3 port from Orange Pi 5 Max. the vcc5v0_usb30 regulator shares the same enable gpio pin as the vcc5v0_usb20 regulator. Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index be4af5006d69..f32e5827dce6 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -111,6 +111,8 @@ vcc5v0_sys: vcc5v0-sys-regulator { }; /* Represents the vcc5v0_usb20 in the schematic */ + /* Also represents the vcc5v0_usb30 in the schematic, + both regulators share the same enable gpio */ vcc5v0_host: vcc5v0-host-regulator { compatible = "regulator-fixed"; enable-active-high; @@ -634,6 +636,15 @@ &tsadc { status = "okay"; }; +&u2phy1 { + status = "okay"; +}; + +&u2phy1_otg { + phy-supply = <&vcc5v0_host>; + status = "okay"; +}; + &u2phy2 { status = "okay"; }; @@ -657,6 +668,10 @@ &uart2 { status = "okay"; }; +&usbdp_phy1 { + status = "okay"; +}; + &usb_host0_ehci { status = "okay"; }; @@ -672,3 +687,8 @@ &usb_host1_ehci { &usb_host1_ohci { status = "okay"; }; + +&usb_host1_xhci { + dr_mode = "host"; + status = "okay"; +}; From patchwork Sat Oct 26 09:48:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852172 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6F4AD10BF5 for ; Sat, 26 Oct 2024 10:03:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hwTtx+o14KopXQ8gFfl07T6lEhtOfmTZPjqwjwxPr1c=; b=riaoQRDkb1b9Tz ir5K9imN6iFwpKSsroAV6b0oAvVFR1Ez5KOqWmULMO3QOHOjo6RX2qYHJUWf3iNQrHxMNrilkwqEc 7tJ8d0EXKFEsFYj/dAURuKlEJ1XhG2yzQEKuFKWQ2V0gefWYy/lba8/MeFuN+suOQSjgeaJsWzYTU xfSbHIv3YtIKemrNIc8yJeZ82FU82eoeBG/wuFD+8dNDpAwouKxG3yQ26MIPW02FwhFrCqtNhRJx3 iWI7PGitWg24vYL8qhAIUPxPoa3jQggEC51gEgrHYOd7tE0bksE140H648NBIAtIfyKXMoiYR+SsR eC2uN4P3xcxXt68WiQpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deF-00000006L1b-0bLx; Sat, 26 Oct 2024 10:03:55 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4de8-00000006Kw5-2O7a for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:51 +0000 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-7180dc76075so1511337a34.3 for ; Sat, 26 Oct 2024 03:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937028; x=1730541828; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cqKRUAcew9KonltBOUBQFqsl33gHXPHUiMeMosYb4xw=; b=LOagOLLSViEfbdKshKvAyF3aogzDO1aploQwydEUNlR7Un/MkC7SZ1BgzhL+eBweUL rf7OaVA/O6PagSQNpB15+eioYUbWufr9lPSucQ9Ktv/6tSUxXIKAB2KVIl1lYVZOqub1 Hd8fzkOgSM03TtnSILi/TLeIBYtTU283zKWwHS/4cyT0fgwM9YTNWfRaVbRXi8cBOjRb mpa9LDTCMd8IowGExooWnTpqv6gGt6RCT1IfK0P0WHheX8D92N9Vc9Cr4tU2b+iEJ7Wz Otf2qfDLAB4Fo3q2N9y/Gwly/5fwNluWFGw1CFuH7xLPKf1JNV3pnd/I49FnJCZrbawB TOmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937028; x=1730541828; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cqKRUAcew9KonltBOUBQFqsl33gHXPHUiMeMosYb4xw=; b=i+knZxDFYGvWt6OEwIl3UZm8FckkfWN5X8uq0ISU37oJFZSMPFnizDJdCVyyhkWN+k h+QcDamps7ZkL+FuQQ/9kc3OQtCDdd+1oYVWkQy0llRRd15b2HpJ/phhySGo4CbqBXVW ckB1GqAzqqneHzS09QFCRQKSZV0tioRDNIKcWpoHz8DGHsnqRyX66N+CskAFtP/8ZSe8 YFskeuKr+kLwx3IMFx53O1OcaF0TjONMRSIBWuTg+a73l96DAopxMG6ezXJObMHD1Sha 448EvVMr5fP6rZNd17pXC/5KcXAEPzL7hdfcnFrvNKZwRMUyqIx7+5X5J6U2aHj3Ys5P a6Sw== X-Forwarded-Encrypted: i=1; AJvYcCUKd1bzKnGkXu2mPozyg0m42wyTYomn+58nILDXYGIZuDs8mfm8rxkDGaK+VaEIJkg2DpYfx2Z636dUN20GDw==@lists.infradead.org X-Gm-Message-State: AOJu0YxZ34Y0XtdwWNnozu+tNKQqJ77820Yzj7+JEd8EU1uy4s6KYQp1 7BbhWJWgCLA/ek6lrMvVZHvCLfPlQ6R4ICvY6eIAnIEWRpvENg0x X-Google-Smtp-Source: AGHT+IFCbN/6oVsJSiSHWOdIrqJzSfHJV6TmzF/QiS/d/ijeIllfKbgOG3iUATFoIMwXmAk0C5Skww== X-Received: by 2002:a05:6830:600e:b0:718:441b:d4cb with SMTP id 46e09a7af769-71867e6a8b0mr2800045a34.0.1729937027822; Sat, 26 Oct 2024 03:03:47 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:46 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 10/15] arm64: dts: rockchip: add upper USB3 port to opi5max Date: Sat, 26 Oct 2024 04:48:26 -0500 Message-ID: <20241026100310.52679-11-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030348_829053_97E81846 X-CRM114-Status: UNSURE ( 9.26 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Enable full support (XHCI) for the upper USB3 port from Orange Pi 5 Max. Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index f32e5827dce6..39d2a38710df 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -127,6 +127,21 @@ vcc5v0_host: vcc5v0-host-regulator { regulator-max-microvolt = <5000000>; vin-supply = <&vcc5v0_sys>; }; + + vcc5v0_usb30_otg: vcc5v0-usb30-otg-regulator { + compatible = "regulator-fixed"; + enable-active-high; + /* USB_OTG_PWREN */ + gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&usb_otg_pwren>; + regulator-name = "vcc5v0_usb30_otg"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc5v0_sys>; + }; }; &combphy2_psu { @@ -251,6 +266,10 @@ usb { usb_host_pwren: usb-host-pwren { rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; }; + + usb_otg_pwren: usb-otg-pwren { + rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>; + }; }; }; @@ -636,6 +655,15 @@ &tsadc { status = "okay"; }; +&u2phy0 { + status = "okay"; +}; + +&u2phy0_otg { + phy-supply = <&vcc5v0_usb30_otg>; + status = "okay"; +}; + &u2phy1 { status = "okay"; }; @@ -668,6 +696,10 @@ &uart2 { status = "okay"; }; +&usbdp_phy0 { + status = "okay"; +}; + &usbdp_phy1 { status = "okay"; }; @@ -680,6 +712,11 @@ &usb_host0_ohci { status = "okay"; }; +&usb_host0_xhci { + dr_mode = "host"; + status = "okay"; +}; + &usb_host1_ehci { status = "okay"; }; From patchwork Sat Oct 26 09:48:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852174 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 13BB0D10BF6 for ; Sat, 26 Oct 2024 10:04:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Qs4CU37vCWiApAGIe2tRJFmwBbATrSf+4YM3AO/2xms=; b=taPH6Ts6ntDTNp bczndS1UtRXjbjxk36By4BR1UEgfXfEAx34eK9iGKZdzBOOp4gPEkesrV3ztJ7ZhRAoebDL2CciTu oEVC6zC2KcyiaMNo4dePIz2TmRNzzcMkp2DvSmZYV+1mAQSgTkBmXV0UKT8VtCnYI18crDIdsOA1B xi1QSwfXmlP9pVGh9ivAiUUqAjL5tD6ZPIkNoY0ZdyW+U2zV3yf9n93WwtwIIw0yzoCuR26jLWS0I Q98Nj+01b1ecNrSHrjf1mIOiFPvqPexfi3qPL0YDiFnh3MWrR10Yl+YZyasYUhz/Tn6bcWQIDtOdc UA2pVHOS9PMBWrc7Be9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deG-00000006L2Z-0yBk; Sat, 26 Oct 2024 10:03:56 +0000 Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4deB-00000006Ky0-1WVy for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:53 +0000 Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-5ebc1af8e91so1411174eaf.1 for ; Sat, 26 Oct 2024 03:03:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937030; x=1730541830; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sRxIWQFidByo0+cFAaad4zx6dLeXSge927bzhcflDvo=; b=D4ypuITqazz+Uf3DXd5Mmk5c31wSejekySeJOixXvUvoKeAbo9xC2rAZ0D4UhO9zuX 9Ahz/vS+PiZVlMC+VclPueCfjkB2cSCVQa4stgLq+RM/GgxpElHRJQej0SXrWssRIuV1 /CQBEbPDxr0/Fat5TlXwKRyboa9q4I/yvvsjObe+QTfSlo4XwCzRrUodgPp67U2bgwmE +G2Ohm3Ha39M7mni2ym7qgBu8jMOTRAYAGuzclkLDOHJIFeHIk2XomM59H/D52LWiyBn 4rklLwsqLPg+PwjpMk1qKZAsBIGXwjqF9KPTx6MZrBKRTF5KGlhbZdXAM+OnxlS63BQo PPZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937030; x=1730541830; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sRxIWQFidByo0+cFAaad4zx6dLeXSge927bzhcflDvo=; b=JcgH0lGgFeexMZcSDLhXh7xUXUeZnQaV8OaqrXSCYAzZa69faPr7rYk+tI+lnSBipq oYt+22qYdyVkmB8J4COyRzIe8t4+b6bsjkKodM4d4ss6iyCozF5dwgG+ekoh05Q2HFD9 Ba4/e/qHVprJ4ah50pApbeZoipu+XMwUugZD4aSGFIQzW+QkkCkjiNFDpRECM0Ygd7Mp 0lZ1Tkxi5s41LtNtTU3lV/rVun3z+TWwLMqvecA0MwCR4rRz+1pZykFMlmynP9HK4jUt M2SPy/UzCXlWN33CvAzLg08LupU8y+s1gp1vijMCYV2Xd03pLryV7Z7F2Vb9neBCDMBN fFvw== X-Forwarded-Encrypted: i=1; AJvYcCUvyC1giyHCgCm4RzcTCi0+Rw0TDj3ucmPuHK37DRPlayU/nwXiEvFiYbm5DQ+9qgVy4WR34UBmu7Ij38TF9w==@lists.infradead.org X-Gm-Message-State: AOJu0Yw7EG62ZX31rwsRV3GATS8W9K5HJgF392QgWqL/ajVuYd3dPwRZ Q23heDEcNq6OdZ9XdOZLsrmfrZj1pqrUxOeSNpomdEKeBkwLCUqL X-Google-Smtp-Source: AGHT+IGWk2XG42M1KaFuaMLBh719ko/eQM/+qhPtYRVwOaq2G2DYvmhN+L4Z3KnytnlYpt3yrXENqw== X-Received: by 2002:a05:6820:1c99:b0:5eb:827b:9bbf with SMTP id 006d021491bc7-5ec239af6f4mr1326408eaf.7.1729937030123; Sat, 26 Oct 2024 03:03:50 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:49 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 11/15] arm64: dts: rockchip: Enable GPU on opi5max Date: Sat, 26 Oct 2024 04:48:27 -0500 Message-ID: <20241026100310.52679-12-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030351_612720_0DFA86A1 X-CRM114-Status: UNSURE ( 9.05 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Enable the Mali GPU in the Orange Pi 5 Max Signed-off-by: Jimmy Hon --- arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 39d2a38710df..71b2d891a2bb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -180,6 +180,11 @@ &cpu_l3 { cpu-supply = <&vdd_cpu_lit_s0>; }; +&gpu { + mali-supply = <&vdd_gpu_s0>; + status = "okay"; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0m2_xfer>; From patchwork Sat Oct 26 09:48:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852176 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3D117D10BF6 for ; Sat, 26 Oct 2024 10:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XyBHFSFHpj7BK7oWY3VbmhXm51BE/eABXcCHQqHRVho=; b=1BSih+qKDVjsAE X15nP76V6FVG9+H5j/WCQJob49ajWKqkVoQWTy9t0U9EX9k+vCqUN+dr/M9eDCtbB95wyB22mJYWH jfnbin8c/j8E7BpoLfWTzxj3F32wTe1mCFd2UHCNUEOBBpyiXKxonZC2uGzZ9uii68CDo9zsHYvce B1lDn8vq0DTETaG98U+SueYvAcsQ08prkFpiNGF3UeV9f+b8rJ8lNDmP4psNn9rNOTc+dsRglQFmc sRcLpWuDUgPDqXzVk7vDUYu68196j9heBunOOd2A0/v1BfZNLDxYohpWsUD0A+LWeIOYOgpbScJFG E5YPcYcAnvnnyq/attBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deJ-00000006L4k-1N0R; Sat, 26 Oct 2024 10:03:59 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4deD-00000006Kzn-2M7Y for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:54 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-7180cc146d8so1597580a34.0 for ; Sat, 26 Oct 2024 03:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937032; x=1730541832; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XxDi/QQjfo4QmzhNBMwFulK0XyHFgDDIUe9Jkm1vGBk=; b=E3oFJIE5NhkRF6lOg8Z3KS4OdAvNmRcbfUmnF5ohZASHo5jpBxMwSjKnJZxzGaTneo KCgsgjp+s1Kaoi204lqUAiuNgccnV3o7pZp8vfR//QjwY6K0lTVCEzV5sPAhfN5NRqYc B21u6T2IyhtzZIESLVMlcjmf0oqMBZd8p2TgDUGnd73TyHjpp+Zv+Qg+B3hbiZBY1vhy 0t2quIaccOUL6Hg9JHIRArMOnaIVVZ/6AXS/HmHUr/5OAul1281V75yshv/9OQeag0O+ Avdo5H13FUYdx8T1V4+sBQOqmTQEAO5K0hqrAK91xJG6AYrXZm1TW93BP1gL7fKJkPeT iMng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937032; x=1730541832; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XxDi/QQjfo4QmzhNBMwFulK0XyHFgDDIUe9Jkm1vGBk=; b=fZ2mZY32j0P2wWf5+vM6vzLtfCXjrpAWVSyxKyvWNDZYN4pw6xm4kTZqA+6wocHwhJ KgYf4nltdyPzPLUUHmGKInUcVpyIjUieD1+ha904gD7159k9wDSX0Ub3UWwAoRZdlOt/ lSWzhjYYpuBz7mlu/Ckhlcn5LMIq5b49E12SoCTXElAt84QNuDw2MXXRFYCYU05VpsHo kwSCNANX1uerOnRvI48WltIQ/PwV9N4SKV94/AVIq/0WxUnuvue39jqfmdP3nagbcF7L oKAwWz1V2zzOayDuM5z1q/alzfnsYhDdYIzFCBWGOuYXZAezU7EWj+2N81jsSzqx8jPV LPBw== X-Forwarded-Encrypted: i=1; AJvYcCW46tTW62GXq/P8bzvJU4adVDijY03msrupJtFLqSnYLCBgLpc60/7VT/zDCTVyPe5zAWhpb4WnEGLaYyEkrw==@lists.infradead.org X-Gm-Message-State: AOJu0Yz49S69fK7oNNLH/MoCStuVVGtdq26Wl3BqKFUGxygIbPPDWWXy vWAwCE23kyFqqiMfJaPv67iv8ENU+TlWLe+PYlE5nbNNfWF6DIWi X-Google-Smtp-Source: AGHT+IHMHtP8zo1ybgS8KSdERD5CS4rZOYYyBJl6klTIEWzRz+kjDvM+1vqkvFQUcZIJ91shRyQtHA== X-Received: by 2002:a05:6830:4991:b0:715:3f20:bd47 with SMTP id 46e09a7af769-71867f1637dmr2025325a34.6.1729937032424; Sat, 26 Oct 2024 03:03:52 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:51 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 12/15] arm64: dts: rockchip: add SFC support for opi5max Date: Sat, 26 Oct 2024 04:48:28 -0500 Message-ID: <20241026100310.52679-13-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030353_643468_5F89E53A X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This commit adds support for SPI NOR flash on Orange Pi 5 Max Signed-off-by: Jimmy Hon --- .../boot/dts/rockchip/rk3588-orangepi-5-max.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 71b2d891a2bb..0cf0e30a503a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -327,6 +327,20 @@ &sdmmc { status = "okay"; }; +&sfc { + pinctrl-names = "default"; + pinctrl-0 = <&fspim2_pins>; + status = "okay"; + + spi_flash: flash@0 { + compatible = "jedec,spi-nor"; + reg = <0x0>; + spi-max-frequency = <100000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <1>; + }; +}; + &spi2 { assigned-clocks = <&cru CLK_SPI2>; assigned-clock-rates = <200000000>; From patchwork Sat Oct 26 09:48:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852175 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D9C5D10BF0 for ; Sat, 26 Oct 2024 10:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PrsNGdnAadfBwXP20jHuwSNguLn7fgbMCF6Ulkb1xdc=; b=RAkvkChbua6afY 9cTFLwMj/LmCwlQKUqLv2xFmkFRmtxiXw6LHPMklp0PTSO0/uOVDOgyvQpcf3Dfryasf0CkGMXstW UkiXteb7Tu2wpFK1uCYg/V/pn69tk7Hl3Hu2sDPLZ+zGjalT7ge4VzgWMgkrY5P4Y2f1LYZGD0IZb 1sogyS6d0ChBuhfO1luRZ4PdUHtrJYx2omUDZScGjfX/GH4cYOJitB3/029dXpnpmu7Ub9AzVDvl7 sRgHqYEW7IrwU+d9Jd9Y4hT1e+oRx7m1Q0sjn9spxeI4DgHyaRs4jObebBpUUA3Ds95/bLtens7Jy WZraYa/BisIes/tDlJnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deK-00000006L5e-0bex; Sat, 26 Oct 2024 10:04:00 +0000 Received: from mail-oo1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4deF-00000006L1m-4Ax0 for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:03:57 +0000 Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-5ebc27fdc30so1470187eaf.2 for ; Sat, 26 Oct 2024 03:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937035; x=1730541835; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j77KWwRpwdnVY3lCC0n6YIiNduwJAHFH4SxLmtm7q7M=; b=gP9hNHXcnBSIytzTyTbplJaGGT6djXiQeVpBE4huVWcfhASjfMSHUSgiSgUHj+xqKs rkAvQRbs8f8S5Xufcn+0Uwvgao59VRORNKsCgXmFIvWWYzyCpZr8xOYgKgg1QIsjXked tyCoSFUldaLOxa5kkQcnBZYKUktfkVnlKO9tJa0Wk5JsEGviGfgXT9ZtRz4kPIv60DLk rDApWibtNW5pBkrxxwla+mc0hrT82ZB0Xvw5KUKpGcQ9c9H9kVfDj5MHjCKB2vcz4z9h YL1+zpkbym3Vxz93FIRYFvHKDYxfxApFUeZMhGeb+S30BCRKyZ5MS0nss17fz7IzCwkx ovSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937035; x=1730541835; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j77KWwRpwdnVY3lCC0n6YIiNduwJAHFH4SxLmtm7q7M=; b=HHyHXOfRSZMPzMlvl3HA9s2pyjV85CDUyYlE8LImvhU/xa0Nf075B1CZte1RaUdXIw igjLSufUCbr6JHvap4WLmzOsHXsZyHivi5NVF7oXqKQOE889l4nPbvGZ2i0EDAHHdnfa U29ux3CTVHzC4vg/12h6qLGhE7wehAboLbXRKbTCYPa7rRU5WCnBTXAF2u5L782P0ltM xf9C6kEtns68Z8lC/l50SXMZW/UNy4xmu8lmGy/kArHvu1c5y8pxQXOfJ2pxVzcuueYb Xd/Wn3GZyOgob1R5lPshAcWuToBPozymZNCyPHRPPHlBxLZH0Bua9M5t5E+HzwRPbQqT RO5w== X-Forwarded-Encrypted: i=1; AJvYcCU2qSTpkrxbqIkHTWm87DGNhj271ImGLUCh4O+sX3+RC7xEagWsTc4xaqmSrfzuI7L3Yk2XXb+HDvqjJ1qq1A==@lists.infradead.org X-Gm-Message-State: AOJu0YwbXX6AsoYq1+G894NInxnn4YeklQ2PwAcM1gzvbM1PKl88ycZI UBVQ5KfxBQtvo/3V1hpjGvKJb+rZk/o25cAaF93Hn5XMrh9FM6eJnl3B6hy0 X-Google-Smtp-Source: AGHT+IEAeskIPyT/zTUshOLEFJYmCv2iSXITusyenV7WUrE1LYyGFixIwD+ymSeTaAxnQ/YBcjs2Gg== X-Received: by 2002:a05:6870:390a:b0:270:7a7:eaa5 with SMTP id 586e51a60fabf-29051af0d75mr1684528fac.10.1729937034743; Sat, 26 Oct 2024 03:03:54 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:53 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 13/15] arm64: dts: rockchip: ADC button for opi5max Date: Sat, 26 Oct 2024 04:48:29 -0500 Message-ID: <20241026100310.52679-14-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030356_139987_D0D1B839 X-CRM114-Status: UNSURE ( 8.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Mask Rom button for the Orange Pi 5 Max Signed-off-by: Jimmy Hon --- .../boot/dts/rockchip/rk3588-orangepi-5-max.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index 0cf0e30a503a..dc5de21cddd1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -3,6 +3,7 @@ /dts-v1/; #include +#include #include #include #include "rk3588.dtsi" @@ -20,6 +21,21 @@ chosen { stdout-path = "serial2:1500000n8"; }; + adc-keys-0 { + compatible = "adc-keys"; + /* BOOT_SARADC_IN0 */ + io-channels = <&saradc 0>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + poll-interval = <100>; + + button-maskrom { + label = "Mask Rom"; + linux,code = ; + press-threshold-microvolt = <2000>; + }; + }; + fan: pwm-fan { compatible = "pwm-fan"; cooling-levels = <0 70 75 80 100>; From patchwork Sat Oct 26 09:48:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852178 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19A1CD10BF5 for ; Sat, 26 Oct 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y1W3qda5ZPqKkQwttMGlDzLje3unG5mKc8BQXBzEegE=; b=0rS1jnraZ0jcCY rREkR8jVROVggXaqOqcigP4Ab9P5KDDYlx+3mPNjH2zewJJC0S5UBUvFblF8Kn0oKxfIHav79EFxm LJXOKyC0maIHyuqoZk6zff7uVII2Z8rroFWbwJWyY7ae65GMKZOVij0xGTUp+FHiqZpS+WGhpBb9o K3P30WpxNQD6Xb2W1/KfEqcYomyf1kn63pbnOYSE/Zu9qIhDGgl02+5l8LDhc9b4ajr0iY78JSdXP OOZzIs8HjXeYTgNz5LypVB58eI3pPurfPkvu4NAhXWqA2MutvdVcshR+a0g1bHCf8N818XTknAode Uh+b2yCnariNfTeejCug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deO-00000006L8h-3c2P; Sat, 26 Oct 2024 10:04:04 +0000 Received: from mail-oi1-x22e.google.com ([2607:f8b0:4864:20::22e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4deI-00000006L3f-0n6y for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:04:00 +0000 Received: by mail-oi1-x22e.google.com with SMTP id 5614622812f47-3e605ffe10cso1663832b6e.3 for ; Sat, 26 Oct 2024 03:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937037; x=1730541837; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=L6NoHFPIFs3PIFOi1h5re+of84q7O6NmybcEySOfaLs=; b=WHNtoofpDcGWia7H6UTwtTxj1/S0B/NHxRmQvfji8vrt7pLQf9VeIMBL6IU9ODY8ae 5DsiGUAi7eiZmpXUcyYslwuG945NaryKHiBuTxiMgVIriGcpAcIfB22VgPiWzbSB8VFl o2z8zWRDQcMsIMTnDsbFIo1WnClkA+I8bo1ol8uWCjTK/NwV+efsGaX1ESxorY66Qqdw DQ512hz8H0WM9c9zQgN2CTcS2eHGAxc6BjL/vpa+XNMU8EQLDZFQ2xgt6FpAZbWtwdJV UBNp20p46FlUCFDA82Oca4smo38DMQm8OfXkA0cBcuFIh9RHzF7f5IvyX4ujq2pCsF6l e+LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937037; x=1730541837; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L6NoHFPIFs3PIFOi1h5re+of84q7O6NmybcEySOfaLs=; b=M4uHIj4a2QPy4RnLlaRgiJkF4qpqfFe5hgS5S4LgNpUpJHYlsVJdf+obLmOQF8FuAE 9W9Bn6oYzgI4MLW/x/r6+E9rX561tp8gjir/yik4RX73BHosYfgK1Y5X2L/U5SVhy+4a r6xZofqgKC9mXE793u3Z5mwuPBtUPWE1eqa30bMKUi38H19rpW2s6tlbrLXZfluAGsQh dzdf3CngAhC63SOvDUO1tBnirjauMrdMfo+rYBbeaf7FXgifRVCirxP/Yec/bPE3sSy/ bRJYur+B2FTnDzxZ01jT4zMCmhNJ5A5oJJpylaHB2rTRWn920aKW3O7MUBbcO6IChzij 8fYQ== X-Forwarded-Encrypted: i=1; AJvYcCVWTM+vlDRrkG2i7rSBblLyU6JiCDS6C1q2n34cNnefCSfCcs69HiVyGfK6BdFm+QAIFYEjA2mBjLCJUH05/g==@lists.infradead.org X-Gm-Message-State: AOJu0Yxn77qaDWvpzJKG3Ba0zyii9o+0PeMWPXIJOnCpzaiL3AySUbZA +ARQNf0yRPXlBf5GHBa7XvjwuMd7kGnNpn0d3nuXa8zhaqP39B6KXHBFhP2M X-Google-Smtp-Source: AGHT+IEb/F7juQx531sdwLj61E8uPZx6UXoHt2xsQH/E+ZcJCVB1KVnU+043eOSLuWvfBzz5SLdNWw== X-Received: by 2002:a05:6830:6382:b0:718:162e:7712 with SMTP id 46e09a7af769-7186811b273mr2269120a34.14.1729937037048; Sat, 26 Oct 2024 03:03:57 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:56 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 14/15] arm64: dts: rockchip: analog audio on opi5max Date: Sat, 26 Oct 2024 04:48:30 -0500 Message-ID: <20241026100310.52679-15-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030358_555989_DC3C7EBD X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Analog audio using es8388 codec via the headset jack and onboard mic for the Orange Pi 5 Max Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index dc5de21cddd1..b98514ea62d1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -36,6 +36,47 @@ button-maskrom { }; }; + amp_audio: audio-amplifier { + compatible = "simple-audio-amplifier"; + /* PHONE_CTL */ + enable-gpios = <&gpio4 RK_PB0 GPIO_ACTIVE_HIGH>; + }; + + analog-sound { + compatible = "simple-audio-card"; + pinctrl-names = "default"; + pinctrl-0 = <&hp_detect>; + simple-audio-card,name = "rockchip,es8388"; + simple-audio-card,aux-devs = <&_audio>; + simple-audio-card,bitclock-master = <&masterdai>; + simple-audio-card,format = "i2s"; + simple-audio-card,frame-master = <&masterdai>; + simple-audio-card,hp-det-gpios = <&gpio3 RK_PD2 GPIO_ACTIVE_HIGH>; + simple-audio-card,mclk-fs = <256>; + /*TODO: SARADC_VIN3_HP_HOOK is used as MIC detection / key input */ + + simple-audio-card,routing = + "Headphones", "LOUT1", + "Headphones", "ROUT1", + "LINPUT1", "Microphone Jack", + "RINPUT1", "Microphone Jack", + "LINPUT2", "Onboard Microphone", + "RINPUT2", "Onboard Microphone"; + simple-audio-card,widgets = + "Microphone", "Microphone Jack", + "Microphone", "Onboard Microphone", + "Headphone", "Headphones"; + + simple-audio-card,cpu { + sound-dai = <&i2s0_8ch>; + }; + + masterdai: simple-audio-card,codec { + sound-dai = <&es8388>; + system-clock-frequency = <12288000>; + }; + }; + fan: pwm-fan { compatible = "pwm-fan"; cooling-levels = <0 70 75 80 100>; @@ -259,6 +300,33 @@ hym8563: rtc@51 { }; }; +&i2c7 { + status = "okay"; + + es8388: audio-codec@11 { + compatible = "everest,es8388"; + reg = <0x11>; + clocks = <&cru I2S0_8CH_MCLKOUT>; + AVDD-supply = <&vcc_3v3_s0>; + DVDD-supply = <&vcc_1v8_s0>; + HPVDD-supply = <&vcc_3v3_s0>; + PVDD-supply = <&vcc_1v8_s0>; + assigned-clocks = <&cru I2S0_8CH_MCLKOUT>; + assigned-clock-rates = <12288000>; + #sound-dai-cells = <0>; + }; +}; + +&i2s0_8ch { + pinctrl-names = "default"; + pinctrl-0 = <&i2s0_lrck + &i2s0_mclk + &i2s0_sclk + &i2s0_sdi0 + &i2s0_sdo0>; + status = "okay"; +}; + /* phy2 */ &pcie2x1l1 { reset-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>; @@ -283,6 +351,12 @@ hym8563_int: hym8563-int { }; }; + sound { + hp_detect: hp-detect { + rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + usb { usb_host_pwren: usb-host-pwren { rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; From patchwork Sat Oct 26 09:48:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jimmy Hon X-Patchwork-Id: 13852177 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EBC2D10BF6 for ; Sat, 26 Oct 2024 10:04:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vZ22LHvU39DoTNQrJtSdbDyrdBhvEwmWtIyEoxpDyJY=; b=BeKxLjvKyWbPr/ txKtmm2Ks246orLp/GgK9tLyRcN0hMxVxsmkqR1f+wNooCwpRK9Wqu++/YXCkC6zfA6Zl0ezFDhHL gexCbqbVmpOqQsOJsXCTz8dI4466HeqLo9EjyY87BC4YXQhwAzRlLXdJO+yxK4HxXXZ1OGhghOs+T FmHlv9/0sZMCCQ2hefDcO6Zb/bmNL+aPZICAzyR6UCF27Lam0ptKPDNINlWqyEH1uFSg2BSAFTxHg wzLPAtZK6QMReNEe7LF6xBadOX/X6f+g3nprN1G5QKV0Xwoalc8HoJDEsjyy2RShmbaQCudMZiSaZ XjR3Hlpd8Z/8ahCZAsRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t4deP-00000006L99-1fTp; Sat, 26 Oct 2024 10:04:05 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t4deK-00000006L59-2Q1o for linux-rockchip@lists.infradead.org; Sat, 26 Oct 2024 10:04:03 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-7181285c7c4so1632410a34.0 for ; Sat, 26 Oct 2024 03:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729937039; x=1730541839; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YGdPlaVwtS18r1hz8w1fww+e5P3V5ikUprg2WMPABa8=; b=K7mCCs5yxMZEHx3+39KpiWyI0u/2Y490hYjeTgcJyQEgQq2cLsRaiXgq6wcXE8iY03 shayW8zbw9TxCayqqJn8cl+DAqK8tpWfv8sD+lMSXNvLjStZJM+fjz3cswrq0qqCOtS0 2bm9vtR8SIBGuKmRVEyJWkxC/DHYN/KGTwPV4GMPwTXbnOJzrxNCYtEBC1vzVN/nGlz4 dGqg46lDGMw9QzuWmRG8IhPtlFUvDrpbTvkCIgLBC5xvjBLJW0JZcVxFheGNEhDRGe8n DDGDOIA1/sZ3ZfyNc3o21+KYlUdbZkq2SQN3sNti7ZcXTOQBFOR5vEIC37056R69d0Yx E+Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729937039; x=1730541839; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YGdPlaVwtS18r1hz8w1fww+e5P3V5ikUprg2WMPABa8=; b=hdc3dSxi7ESZtdEuSeUkSfLTbuetbwLS83YpQvl94pvMgK/VdXJFJb9RdGqYIAdyi7 6DBjKR05HElwrMayUBFNP5tkS2DvIHgivtHf9QCVnUIvyp/zvkJ514kP318W8Iaox/HN x3J/fkmQVYlNhFZ7pB6XecuPA7DwFOYvWk1OZVPekSS98eu95TP9NQnYYUX6EpO2NgIK HCX0crSyuuqwrAy1lIs3F1E1jP9MnWTFbuE/9qqlxOs6GM4llQSCBXlKsVgNkqEJzAMN IcayFqc60uM9xo+mi0zMs261ty0YyZE1xGqHLN9IGYGO40MK3K6kbMCz1xp8pePu/DaZ UmKg== X-Forwarded-Encrypted: i=1; AJvYcCVuX3ueS4kCrfilp1ohYgC5dzaoCuKykTJslzkbcGNbk6tXJqkdryafHUIoIx3/ZLy1yrjj0A8ogyGVLKvUJg==@lists.infradead.org X-Gm-Message-State: AOJu0YyJwPUAO/0NWRNjbP6S3/KTC4od+9125V/TNoncAEPOmSxP+J29 aJjztelfoRrdPNcwtlVcu3MZ8I6qSv4kyTHTBBn1wgtP0rl/pIZ+ X-Google-Smtp-Source: AGHT+IEsQseylVP2uUC4xzaO32bOYkp/tRkK9ISGnubEZXvPAEib8HR7oKW8DyeacvXcFyOHOKbQUA== X-Received: by 2002:a05:6830:638a:b0:718:4e3:1b27 with SMTP id 46e09a7af769-7186829ac56mr2033737a34.8.1729937039317; Sat, 26 Oct 2024 03:03:59 -0700 (PDT) Received: from tower.cjhon.com ([2603:8081:ad40:11:cefb:5eea:7da6:3c6d]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7186165841asm632243a34.48.2024.10.26.03.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 03:03:58 -0700 (PDT) From: Jimmy Hon To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, Ondrej Jirman , Jimmy Hon Subject: [PATCH 15/15] arm64: dts: rockchip: Enable HDMI0 on opi5max Date: Sat, 26 Oct 2024 04:48:31 -0500 Message-ID: <20241026100310.52679-16-honyuenkwun@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com> References: <20241026100310.52679-1-honyuenkwun@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241026_030401_037435_18BE73A0 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add the necessary DT changes to enable HDMI0 on Orange Pi 5 Max Signed-off-by: Jimmy Hon --- .../dts/rockchip/rk3588-orangepi-5-max.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts index b98514ea62d1..d31b13f99fdc 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts @@ -6,6 +6,7 @@ #include #include #include +#include #include "rk3588.dtsi" / { @@ -86,6 +87,17 @@ fan: pwm-fan { #cooling-cells = <2>; }; + hdmi0-con { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi0_con_in: endpoint { + remote-endpoint = <&hdmi0_out_con>; + }; + }; + }; + pwm-leds { compatible = "pwm-leds"; @@ -242,6 +254,26 @@ &gpu { status = "okay"; }; +&hdmi0 { + status = "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi0>; + }; +}; + +&hdmi0_out { + hdmi0_out_con: endpoint { + remote-endpoint = <&hdmi0_con_in>; + }; +}; + +&hdptxphy_hdmi0 { + status = "okay"; +}; + &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0m2_xfer>; @@ -838,3 +870,18 @@ &usb_host1_xhci { dr_mode = "host"; status = "okay"; }; + +&vop_mmu { + status = "okay"; +}; + +&vop { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi0_in_vp0>; + }; +};