From nobody Thu Apr 16 09:26:23 2026 Received: from mail-yw1-f226.google.com (mail-yw1-f226.google.com [209.85.128.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2ABE8274659 for ; Sat, 28 Feb 2026 20:54:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.226 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772312064; cv=none; b=o+2yPd+PU2qO/P47aNC142pZrHRXWjBuWjLkWwqtoJ7MWJv7e6R1cvxPT93ch+sbruVlsbXDR33q6vcQy2fZrPmft2d5z0qoJvo3RZZhZncaeIC+q6MV0cPYW6QF50FvsGkj11G82cAyDTetrVin61Q09ApNHqr9l79qVWKglWs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772312064; c=relaxed/simple; bh=qqvMnsockGI5meTKZGNpy+nRNOlPW3x2xjyz7U3fY9s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jSecTrbtBfEOco88x84EXFWEm2zMXipARcWUA4muv5cM3CWqVERXbWh8gMYMV1JZZGsXi+H5K44IlSJXexjbKT7D1OwtvnkzA4JYkhbEHknOj1hTfn65JKQdTVCiio2k4S9D2k/nJ+77Aymv6UNjsvIK8a4XHBJFJOD6AsFVJUU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ausil.us; spf=pass smtp.mailfrom=ausil.us; dkim=pass (2048-bit key) header.d=ausil.us header.i=@ausil.us header.b=TcVEWHbC; arc=none smtp.client-ip=209.85.128.226 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ausil.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ausil.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ausil.us header.i=@ausil.us header.b="TcVEWHbC" Received: by mail-yw1-f226.google.com with SMTP id 00721157ae682-7947cf097c1so31013617b3.2 for ; Sat, 28 Feb 2026 12:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ausil.us; s=google; t=1772312062; x=1772916862; darn=vger.kernel.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=Qwey03mZDyIX0X1N7iXb0Z2GyEloShTQz4q0hZoIMyY=; b=TcVEWHbCW/31wc+gzQO7q8sKJDCBRhXlc4kc9qRZllmya0B8BhcG8KBkFnuJQSa5jv dDEQChxL6Yi4Nleqc3Mr/vs/XKXRGckoa/mGKSRCGVPKLJ0vcXX8Okt+u4XLvewxtSED xpvB/5tg4nLRpIEmizCrLBikbjJKltwhTen22bj+Y8gzJjhZcufpP9FooDLYKr+H5AH/ l8T28MrVJJlLb5QzCdd5VeHWfiZy9SgQ8l3y+FHpzYDgVqyqPS1NgPXionzLJwdVQIB2 eXAZyHyoEQGh9AP+vu4relnS/KodedCauxicw0rW4opegMNDKr8AZ+GQ5KQXQlL7qoxW /2Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772312062; x=1772916862; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Qwey03mZDyIX0X1N7iXb0Z2GyEloShTQz4q0hZoIMyY=; b=G//z1pTJD0PQXu4LMHH1VJldakFciSJ7/aBTEOYZ4+xkWmzlf1Z8e5CAO63kb7T2UF tpMS8bn6eOVKDz0hJpNws4a2LZHdIh23Q5RXsT4F2S1IXDiJAODa0q0RW96UVGn89pa/ WTfXZlYa3KtTFHjp2C/DyS7eJtNLFL4DQEoVKust24naGjOQXBzCaPRpwKAiJdvZXVbG BPaUMdmAZkTZOfSo2ICw/pqEvaXDgQWOTfl1Aj0oQaTEYNyeen3hv6GM+0yxdo6TTIW2 am8GDnzOGhwb0C3httGzyvthh6Gu4AO8g4kskJsWybMig6wln2vADXm+0Tjixfb1WzvA c8WA== X-Forwarded-Encrypted: i=1; AJvYcCWwnP+Yc6zw02/A08pJo9QXyjjIT4JGjb/nQQPW3adzUBkftkY0uZ1Bu3xOJUr0PHHw4QuLo0hhCSfuxaY=@vger.kernel.org X-Gm-Message-State: AOJu0YzKy9IdBjuLej1u6H1F7K60+yAmTTRardgSqV9Yb/1HvNL1OZf4 3oyy7CKAH1cWzOPOHHAjdVlcohmguis4DzVksYcOWix7Ol12i6UBKWgtJWYAvQqEx36+9ohGtDM wZAnIr0a3hxZ8vj5rHiWgRR+fVRaBoMU3nwln X-Gm-Gg: ATEYQzx2u7xaWq5doPT0xRrE2/89oaf3VVbvLBzJkNGQRkszDrx+ujyX2QvRlGNurL9 Ng31rrtvU17RJeiNBkYxKarb4/OZIMoyAvTYSmS2N/lgYIjfOJCK5hTIY1dXiojs1dX4yaXfhIb D//MTh93YDS5zD7OmuUFkAc2U62qarGbkWxBrApX9XTKnGHzI64FXPjpuryFv81JlURxaBCi1w7 MGOT5a8mxGD13AApB07x+NLgLIkV5vopKNjXCpv+1eYbv+lg/cqQOVcDuYfgCi4fM67TJx3CBEG 7FpCry5rfcLLAUI3a6tGaUUHNnkigUwWjaVyqwT7gS+sAIJ+nOUoy0zUdGFNUFcQ1YF9hHLCb7i G+pyrqHZuFdHxEawzKiN7sQb2u4cF2QMHTNaxk0Jh4ViX X-Received: by 2002:a05:690c:4507:b0:798:50ee:5b02 with SMTP id 00721157ae682-7988559ca7dmr66829347b3.42.1772312062116; Sat, 28 Feb 2026 12:54:22 -0800 (PST) Received: from ryac.ausil.us (207-179-239-100.mtco.net. [207.179.239.100]) by smtp-relay.gmail.com with ESMTPS id 00721157ae682-79876bf333esm10213567b3.16.2026.02.28.12.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Feb 2026 12:54:22 -0800 (PST) X-Relaying-Domain: ausil.us From: dennis@ausil.us To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: FUKAUMI Naoki , Hsun Lai , Jonas Karlman , Chaoyi Chen , John Clark , Michael Opdenacker , Quentin Schulz , Andrew Lunn , Alexey Charkov , Peter Robinson , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Dennis Gilmore Subject: [PATCH 1/2] dt-bindings: arm: rockchip: Add Orange Pi 5 Pro Date: Sat, 28 Feb 2026 14:54:16 -0600 Message-ID: <20260228205418.2944620-2-dennis@ausil.us> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260228205418.2944620-1-dennis@ausil.us> References: <20260228205418.2944620-1-dennis@ausil.us> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Dennis Gilmore Add compatible string for the Orange Pi 5 Pro. Signed-off-by: Dennis Gilmore Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/rockchip.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Document= ation/devicetree/bindings/arm/rockchip.yaml index ae77ded9fe47..3c6b83a84463 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -1320,6 +1320,7 @@ properties: items: - enum: - xunlong,orangepi-5 + - xunlong,orangepi-5-pro - xunlong,orangepi-5b - const: rockchip,rk3588s =20 --=20 2.53.0 From nobody Thu Apr 16 09:26:23 2026 Received: from mail-yw1-f232.google.com (mail-yw1-f232.google.com [209.85.128.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 308D83002D1 for ; Sat, 28 Feb 2026 20:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.232 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772312065; cv=none; b=YSZbSaa52eNV6IQ4qAQrKeS60bIfqDleBnyKj4gyL4QFnfVkiTI7LX2VFhJ+me1I5p9rGo1iHAPejp7nA+nx/qiR+guHlA+nkNK2Is6p5pUaSEPD2DuP7y6ZGo3rvEEj74n6gfThF1bUgyVcfuhQtIsA9WGBdA/jybkkNal557Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772312065; c=relaxed/simple; bh=l2F65hctVvbLUgSBsy2T20gFUKOLqF0a3g4h/by3QQA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Tk3Aijap78BE1F/jqGUHZjDJCSuVQX8eguo8J0ZNsJfuqguf8XtloGn1SxdVpySpPTU4gy2y2kTbTZjR/4XkbU71nKdr3jUQiHuukmrMY5YQi9KSA0U16MYmsvMTw4on+Hei45rLcKUHJRBMhqhfigVgym4ls0/h0ijlpEy/l+A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ausil.us; spf=pass smtp.mailfrom=ausil.us; dkim=pass (2048-bit key) header.d=ausil.us header.i=@ausil.us header.b=ebkRQSQ0; arc=none smtp.client-ip=209.85.128.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ausil.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ausil.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ausil.us header.i=@ausil.us header.b="ebkRQSQ0" Received: by mail-yw1-f232.google.com with SMTP id 00721157ae682-7986fb839f5so26421327b3.0 for ; Sat, 28 Feb 2026 12:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ausil.us; s=google; t=1772312063; x=1772916863; darn=vger.kernel.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=vc/mKMQHWBKWISLIX5zCISp9R0i/eqeNN9jxcO1amd4=; b=ebkRQSQ0+8f9owVUVAUZUUP8L+Gq1AxSD4r7LcZiAp/tezrlQFQxhVyvcvviKBxxGu tapMthaEQQw2JkgkmI97GFN/+1xPgX+oAXWWiibG0rbAfZruWHQjX8Ehi4nebwFa9rrU 3E6P5p2m+N6foOfxVjwAEEGCTD9to4OftT9Pgx6/cuudzHx/QedV50XzvwWxOBGvGIt1 tE7ESQLB88G086jkb9K/OAyua/Fa1qXKomX0PJaWIC6D/7G+79Dj3IFfd3QjAQq95jgN 4qxa25Cob927xcxcUbdHcQcf4sBURHdrkX69gRlkUNaIP3dPc7ts5n80+UN/D8ruTHai 37kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772312063; x=1772916863; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=vc/mKMQHWBKWISLIX5zCISp9R0i/eqeNN9jxcO1amd4=; b=TEzKFyp+wiGuAJ7fY/kJvcnjN3SMYS4MvXQblmiYeioASnss+Xsq0fBNgw+x+Raxbl NsGdKna8zx8t91jVPFCQxgMxcy9CI0gt1pnKBe9Wt0PRXpdK4QiDy8CnJ2ALAIQ6v+G8 lxIQQY8fMglj715C93fXuWlGCKr2IdinxfMdtQ6QFH9mFDe0aefcBF/766J2E8fHTU5Z f+eHh53bfvGxymPtZWrYCKofcVNnrVE/0ekdrych5nDOJs9FaVttvQZpQ0d9MmIVvI7U ClmqFmhhqsw6laKcA1Dj23o8c+kxbTXoiLYVtrUKMoB9jfggZ/+SgQSfUowzlU6TBQQp gqPw== X-Forwarded-Encrypted: i=1; AJvYcCU8EHX28+KmP1P1R6x3cEhRsA4wqP9Zfdr5T2IO6W2sRbR/ZVsYQgCLzDh7tcI7I+u0wS3Rq6ZV9PSduYw=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5LxoWLL0WVuBeJlfF41N6X4h7fG1h0Zua29LeNfYkVIRy7Jx4 UPS3x0h6Aghq5uRaVuBITFvXiVRFS0PZQ9K+obrbUbzrKhNLFbuRjdmJgEZDhl2OMeKL+QrzcNq os/yrh1OLllHT26YIBTA2yFcc2z++9s1UdQlp X-Gm-Gg: ATEYQzyjCX9gAkIr2EHjQrtKcG2JviTwR4+tQCxhXTa9VP69EiZR/C0H8UJ5vcLXRiP pa6ak+hQvnh5dC5GnLFZpCdYYmtrw12yTdV/EShXOCiy7T9y/Qn98ubj6ogCcqQhRRFSPvyNDPb q469HJOB5kNowv9CbHitT0YFtVl+uW0KVS802mvlNxtaMc/gQsn87RQFwhICTHWRcFjducqNx5T u0sMObZ+/6cFnfCN0MIi6mQtDKGN6HF8pk0KQwnYGi9E4RhIpTM2HjjPjyspiBWnRFMuKMhmXgq CWTEm6jXXBNgA0ynJsMtujMASsx/sGwjctZ9+/8JNq+g+1JzXQB86x1yu74PuAcL53BJPYfgv7j w5uZqPzXtq3yMbSzKPiRg5UD5Zk5q8ntsM/LOU2ooXXPT X-Received: by 2002:a05:690c:480a:b0:794:f36a:c97 with SMTP id 00721157ae682-798855ecdfdmr64726337b3.55.1772312063114; Sat, 28 Feb 2026 12:54:23 -0800 (PST) Received: from ryac.ausil.us (207-179-239-100.mtco.net. [207.179.239.100]) by smtp-relay.gmail.com with ESMTPS id 00721157ae682-79876bf333esm10213567b3.16.2026.02.28.12.54.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Feb 2026 12:54:23 -0800 (PST) X-Relaying-Domain: ausil.us From: dennis@ausil.us To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: FUKAUMI Naoki , Hsun Lai , Jonas Karlman , Chaoyi Chen , John Clark , Michael Opdenacker , Quentin Schulz , Andrew Lunn , Alexey Charkov , Peter Robinson , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Dennis Gilmore Subject: [PATCH 2/2] arm64: dts: rockchip: Add Orange Pi 5 Pro board support Date: Sat, 28 Feb 2026 14:54:17 -0600 Message-ID: <20260228205418.2944620-3-dennis@ausil.us> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260228205418.2944620-1-dennis@ausil.us> References: <20260228205418.2944620-1-dennis@ausil.us> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Dennis Gilmore Add device tree for the Xunlong Orange Pi 5 Pro (RK3588S). The Pro differs from the base Orange Pi 5 in the following ways: - No SPI NOR flash; eMMC module slot instead, you can optionally solder a SPI NOR fin place and turn off the eMMC - PCIe-attached NIC (pcie2x1l1) replaces the GMAC1 ethernet - PCIe NVMe slot (pcie2x1l2) - AP6256 WiFi (BCM43456) via SDIO with mmc-pwrseq - BCM4345C5 Bluetooth via uart9 with full RTS/CTS - Two-colour (blue/green) GPIO LED using modern color/function binding - audio is wired up differently Vendors description and links to schematics available: http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/O= range-Pi-5-Pro.html Signed-off-by: Dennis Gilmore --- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../dts/rockchip/rk3588s-orangepi-5-pro.dts | 376 ++++++++++++++++++ 2 files changed, 377 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5-pro.dts diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/ro= ckchip/Makefile index 4d384f153c13..c99dca2ae9e7 100644 --- a/arch/arm64/boot/dts/rockchip/Makefile +++ b/arch/arm64/boot/dts/rockchip/Makefile @@ -214,6 +214,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-nanopi-r6c.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-odroid-m2.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-orangepi-5.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-orangepi-5b.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-orangepi-5-pro.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-orangepi-cm5-base.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-radxa-cm5-io.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) +=3D rk3588s-roc-pc.dtb diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5-pro.dts b/arch= /arm64/boot/dts/rockchip/rk3588s-orangepi-5-pro.dts new file mode 100644 index 000000000000..d656328c906d --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5-pro.dts @@ -0,0 +1,376 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +/dts-v1/; + +#include "rk3588s-orangepi-5.dtsi" + +/ { + model =3D "Xunlong Orange Pi 5 Pro"; + compatible =3D "xunlong,orangepi-5-pro", "rockchip,rk3588s"; + + aliases { + /delete-property/ ethernet0; + mmc0 =3D &sdhci; + mmc1 =3D &sdmmc; + mmc2 =3D &sdio; + }; + + /* Pro uses gpio-leds instead; pwm0 LED is not wired up */ + /delete-node/ pwm-leds; + + /* + * Pro uses i2s2 (i2s2m1 mux) for audio, not i2s1. Recreate the sound + * card node pointing at i2s2_2ch instead. + */ + /delete-node/ analog-sound; + + analog-sound { + compatible =3D "simple-audio-card"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&hp_detect>; + simple-audio-card,bitclock-master =3D <&masterdai>; + simple-audio-card,format =3D "i2s"; + simple-audio-card,frame-master =3D <&masterdai>; + simple-audio-card,hp-det-gpios =3D <&gpio1 RK_PD5 GPIO_ACTIVE_HIGH>; + simple-audio-card,mclk-fs =3D <256>; + simple-audio-card,name =3D "rockchip,es8388"; + simple-audio-card,routing =3D + "Headphones", "LOUT1", + "Headphones", "ROUT1", + "LINPUT1", "Microphone Jack", + "RINPUT1", "Microphone Jack", + "LINPUT2", "Onboard Microphone", + "RINPUT2", "Onboard Microphone"; + simple-audio-card,widgets =3D + "Microphone", "Microphone Jack", + "Microphone", "Onboard Microphone", + "Headphone", "Headphones"; + + simple-audio-card,cpu { + sound-dai =3D <&i2s2_2ch>; + }; + + masterdai: simple-audio-card,codec { + sound-dai =3D <&es8388>; + system-clock-frequency =3D <12288000>; + }; + }; + + fan: pwm-fan { + compatible =3D "pwm-fan"; + #cooling-cells =3D <2>; + cooling-levels =3D <0 50 100 150 200 255>; + fan-supply =3D <&vcc5v0_sys>; + pwms =3D <&pwm2 0 20000000 0>; + }; + + gpio-leds { + compatible =3D "gpio-leds"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&leds_rgb>; + + blue-led { + color =3D ; + function =3D LED_FUNCTION_STATUS; + gpios =3D <&gpio1 RK_PC6 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "heartbeat"; + }; + + green-led { + color =3D ; + function =3D LED_FUNCTION_ACTIVITY; + gpios =3D <&gpio1 RK_PC2 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "mmc0"; + }; + }; + + vcc5v0_otg: regulator-vcc5v0-otg { + compatible =3D "regulator-fixed"; + enable-active-high; + gpios =3D <&gpio0 RK_PC4 GPIO_ACTIVE_HIGH>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&vcc5v0_otg_en>; + regulator-always-on; + regulator-boot-on; + regulator-max-microvolt =3D <5000000>; + regulator-min-microvolt =3D <5000000>; + regulator-name =3D "vcc5v0_otg"; + vin-supply =3D <&vcc5v0_sys>; + }; + + sdio_pwrseq: sdio-pwrseq { + compatible =3D "mmc-pwrseq-simple"; + clocks =3D <&hym8563>; + clock-names =3D "ext_clock"; + post-power-on-delay-ms =3D <200>; + reset-gpios =3D <&gpio0 RK_PD0 GPIO_ACTIVE_LOW>; + }; + + vcc3v3_pcie20: regulator-vcc3v3-pcie20 { + compatible =3D "regulator-fixed"; + enable-active-high; + gpios =3D <&gpio3 RK_PB7 GPIO_ACTIVE_HIGH>; + regulator-boot-on; + regulator-max-microvolt =3D <3300000>; + regulator-min-microvolt =3D <3300000>; + regulator-name =3D "vcc3v3_pcie20"; + startup-delay-us =3D <50000>; + vin-supply =3D <&vcc5v0_sys>; + }; + + vcc3v3_pcie_eth: regulator-vcc3v3-pcie-eth { + compatible =3D "regulator-fixed"; + regulator-always-on; + regulator-boot-on; + regulator-max-microvolt =3D <3300000>; + regulator-min-microvolt =3D <3300000>; + regulator-name =3D "vcc3v3_pcie_eth"; + vin-supply =3D <&vcc5v0_sys>; + }; +}; + +/* disable gmac1 as the pro has a PCIe attached NIC */ +&gmac1 { + status =3D "disabled"; +}; + +/* 40-pin header pins 3/5 */ +&i2c1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c1m4_xfer>; + status =3D "okay"; +}; + +/* + * Pro routes audio codec via i2c3 (not i2c6) and i2s2m1 (not i2s1m0). + * Delete the inherited es8388 node from i2c6 and redeclare it here. + */ +/delete-node/ &es8388; + +&i2c3 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c3m0_xfer>; + status =3D "okay"; + + es8388: audio-codec@11 { + compatible =3D "everest,es8388", "everest,es8328"; + reg =3D <0x11>; + #sound-dai-cells =3D <0>; + AVDD-supply =3D <&vcc_3v3_s0>; + DVDD-supply =3D <&vcc_1v8_s0>; + HPVDD-supply =3D <&vcc_3v3_s0>; + PVDD-supply =3D <&vcc_3v3_s0>; + assigned-clock-rates =3D <12288000>; + assigned-clocks =3D <&cru I2S2_2CH_MCLKOUT>; + clocks =3D <&cru I2S2_2CH_MCLKOUT>; + }; +}; + +/* 40-pin header pins 27/28 */ +&i2c4 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2c4m3_xfer>; + status =3D "okay"; +}; + +/* + * i2s1_8ch uses i2s1m0 which occupies GPIO4_PA0 (CLKREQ#) and GPIO4_PA1 + * (WAKE#) needed for the NVMe M.2 slot. Disable it; audio is on i2s2_2ch. + */ +&i2s1_8ch { + status =3D "disabled"; +}; + +/* Audio codec on i2s2, m1 mux; add mclk pin to the base pinctrl */ +&i2s2_2ch { + pinctrl-0 =3D <&i2s2m1_lrck &i2s2m1_mclk &i2s2m1_sclk + &i2s2m1_sdi &i2s2m1_sdo>; + status =3D "okay"; +}; + +&package_thermal { + polling-delay =3D <1000>; + + cooling-maps { + map0 { + trip =3D <&package_fan0>; + cooling-device =3D <&fan THERMAL_NO_LIMIT 1>; + }; + + map1 { + trip =3D <&package_fan1>; + cooling-device =3D <&fan 2 THERMAL_NO_LIMIT>; + }; + }; + + trips { + package_fan0: package-fan0 { + hysteresis =3D <2000>; + temperature =3D <55000>; + type =3D "active"; + }; + + package_fan1: package-fan1 { + hysteresis =3D <2000>; + temperature =3D <65000>; + type =3D "active"; + }; + }; +}; + +/* NVMe */ +&pcie2x1l1 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pcie30x1m1_1_clkreqn &pcie30x1m1_1_waken>; + reset-gpios =3D <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>; + supports-clkreq; + vpcie3v3-supply =3D <&vcc3v3_pcie_eth>; + status =3D "okay"; +}; + +/* NIC */ +&pcie2x1l2 { + reset-gpios =3D <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; + vpcie3v3-supply =3D <&vcc3v3_pcie20>; + status =3D "okay"; +}; + +&pinctrl { + bluetooth { + bt_wake_gpio: bt-wake-pin { + rockchip,pins =3D <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + bt_wake_host_irq: bt-wake-host-irq { + rockchip,pins =3D <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; + + gpio-leds { + leds_rgb: leds-rgb { + rockchip,pins =3D <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>, + <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + usb { + vcc5v0_otg_en: vcc5v0-otg-en { + rockchip,pins =3D <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + + wlan { + wifi_host_wake_irq: wifi-host-wake-irq { + rockchip,pins =3D <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>; + }; + }; +}; + +/* pwm0 pin conflicts with i2c4 pin 27 Pro */ +&pwm0 { + status =3D "disabled"; +}; + +&pwm2 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pwm2m1_pins>; + status =3D "okay"; +}; + +&sdhci { + status =3D "okay"; +}; + +&sdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + bus-width =3D <4>; + cap-sd-highspeed; + cap-sdio-irq; + disable-wp; + keep-power-in-suspend; + max-frequency =3D <150000000>; + mmc-pwrseq =3D <&sdio_pwrseq>; + no-mmc; + no-sd; + non-removable; + sd-uhs-sdr104; + status =3D "okay"; + + ap6256: wifi@1 { + compatible =3D "brcm,bcm43456-fmac", "brcm,bcm4329-fmac"; + reg =3D <1>; + interrupt-names =3D "host-wake"; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&wifi_host_wake_irq>; + }; +}; + +&uart9 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&uart9m2_xfer &uart9m2_ctsn &uart9m2_rtsn>; + uart-has-rtscts; + status =3D "okay"; + + bluetooth { + compatible =3D "brcm,bcm4345c5"; + clocks =3D <&hym8563>; + clock-names =3D "lpo"; + device-wakeup-gpios =3D <&gpio0 RK_PC6 GPIO_ACTIVE_HIGH>; + interrupt-names =3D "host-wakeup"; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + max-speed =3D <1500000>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&bt_wake_host_irq &bt_wake_gpio>; + shutdown-gpios =3D <&gpio0 RK_PD5 GPIO_ACTIVE_HIGH>; + vbat-supply =3D <&vcc_3v3_s3>; + vddio-supply =3D <&vcc_1v8_s3>; + }; +}; + +/* USB2 OTG PHY for usb_host0_xhci; phy-supply enables VBUS to USB3 Type-A= port */ +&u2phy0_otg { + phy-supply =3D <&vcc5v0_otg>; +}; + +/* Pro has no FUSB302; the USB-C port is power delivery only */ +/delete-node/ &usbc0; + +/* + * The Pro's USB-C port is power delivery only: no FUSB302, no data lines, + * no alt-mode switching. The parent DTSI enables usbdp_phy0 (status =3D "= okay") + * and adds FUSB302 alt-mode/orientation properties; delete those here. + * + * dp-lane-mux =3D <0 1>: PHY lanes 0/1 are DP (physically routed to the + * LT8711UXD DP=E2=86=92HDMI2 bridge), lanes 2/3 are USB3 SuperSpeed (phys= ically + * routed to the USB3 Type-A port P3). Without this property the driver + * defaults to USB-only mode and places USB3 on lanes 0/1, which do not + * reach the Type-A connector and makes the USB3 port non-functional. + */ +&usbdp_phy0 { + rockchip,dp-lane-mux =3D <0 1>; + /delete-property/ mode-switch; + /delete-property/ orientation-switch; + /delete-property/ sbu1-dc-gpios; + /delete-property/ sbu2-dc-gpios; + /delete-node/ port; +}; + +/* USB3 Type-A port*/ +&usb_host0_xhci { + dr_mode =3D "host"; + /delete-property/ usb-role-switch; + status =3D "okay"; + /delete-node/ port; +}; + +/* + * combphy2_psu is shared between usb_host2_xhci (USB3) and pcie2x1l1 (PCI= e). + * Disable USB3 so the PHY can be used for the NVMe M.2 slot. + */ +&usb_host2_xhci { + status =3D "disabled"; +}; --=20 2.53.0