From nobody Wed Apr 1 09:45:04 2026 Received: from mail-qv1-f100.google.com (mail-qv1-f100.google.com [209.85.219.100]) (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 BA7642773D8 for ; Wed, 1 Apr 2026 01:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.100 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775005637; cv=none; b=L+GFT6kUFl6va+HXCEdkNcOoOf1SEtiXqpSS8TwN5fqwxLoQqy35coI5dHMFTV0sVIiOFwjUIsiBaBlBdQrdG+mScZUcFip9J6vMladmvBLaWw2XQuZnd5RyYDUo6UoQv1LvyXcpufnVxJPLIt+h8EXHKGwf4zDGWv7H+WcTNjQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775005637; c=relaxed/simple; bh=F59+Jc7sBT/sB7Bf2aTGXlMhSv4GG5B4BafcXYNcTzo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VViW82JMl5kMaWjQHO/QGKt/+KwLb+7nibBZUKOprTxL0It5esgiyzpAeFtyn4KBCzFt258hRN/r4TcRidi1nGNhNY/fXOwhP0jIkIDx13MsYG3eLtTNmqEAr+hN/oVLwcc75tpEOx5LUzWtRUDy27LMeZBAR/DiyqlqaFMbVJ4= 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=R/ddlg4g; arc=none smtp.client-ip=209.85.219.100 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="R/ddlg4g" Received: by mail-qv1-f100.google.com with SMTP id 6a1803df08f44-89fc4147f2eso67498896d6.3 for ; Tue, 31 Mar 2026 18:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ausil.us; s=google; t=1775005635; x=1775610435; 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=pGL01KQz8fGNmgMjeX5GBD+LWCxCWAmCr/D+fX/lnJI=; b=R/ddlg4gUJ4LIrfBRcPyCCRKZNt+EEj7Ba7R14U6Q54xx7Z5MDpsIxSqKs0NHO/3lM vHRz0/j6xSRm4g+d0ZKy0bLTM0AQUfMr6QM1eE34nP3NK/0wwTSXdN0CIbNB3+dlMfTx cx+470M7nEGaguMwQA3K1o47wPyZQw6c7aGOPPPvxAdLqKjUiGHZWNeC9f+kMa/xjSxU sSdMVF+W5d37AmAuAGjVK4wXDKT5SCLH1SF1+vPdakr34przYqcgEKRmFdnTTHG3ew1s qhbpf6LxWG/LVmBR9UnPvbZzWDC8JWq9vrckgCG4fkGV825CWM1utDRJWC7FUcEYaDXR ELIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775005635; x=1775610435; 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=pGL01KQz8fGNmgMjeX5GBD+LWCxCWAmCr/D+fX/lnJI=; b=oMz+RyYDZRXnR0DoNWMw1TPDudJtk59jF+sYiPivFJUKvrZsvOSG6D3VLG8ESRb72D rzk0hlZHmvEShbZHET9pp2bJb4PrULAafiXtelH4GhhKyLIadh23wT8E/Ifw863kJ1/x FDpqPLEEQQYKvz9B/xScCubWqboq4mBRkowpDFOIsoNJBNLYGIjZ1fvd74Im2JKuzsyc jsL/QWE8QcgvwdDQWahvMgx4uvltt88t3AuzjZl3VpFMYP8kTich0GA5nuMfcWIvhV5E wFqamVguTOZXM9FrJGvOpkDyPlW8pXkO1ZdrUsm0AnQxb0f2YFKn32ELuTbKkCpY24Ty 3/4w== X-Forwarded-Encrypted: i=1; AJvYcCV0yfxPchoY8/c3ohMsEh9SRpIxHzjcjuWqLH3PO9f1goZ1nKPwkyXq2uBRN9DNg+SO+34rQaDV1awD89A=@vger.kernel.org X-Gm-Message-State: AOJu0YxzDn/1tTCPdJes/u15qbfHeUdRtE/6XBqH2HZ9F6T3hGE0YP6h DEOsfNdbbiDUSAP5WtIPeGqqjiUGu6cYazxdNVzLJtMqPlI/0O689Hz3j4zyPK0kolQAOcR/fAy RhMrggSUg3QzKrWOmfxgBUoEi+Mg71pLnTkRw X-Gm-Gg: ATEYQzwLlEXLOo7qkBeznGzudw7RLuDpxUP1hwV6bdU+43DFj74v5x2qiEBXYY838/w SkpYNrArVrA8RUds7opsU8yLqycaocOfbscvDtFR1APLTOEkec0iqvNmHoGj05dW1G+3vohU+T1 WdDxdFHl2W+P2SNVNh+EM1f4IqUL2qdEdjD5T5EztKacbxMFXitsc8sWdmFQssGW3dkH0EgnDgB 3kmKAaKkDpC1SAzOC7DjtQKeMJ9bKJvzqseS47BfQmjlYSjcylC4RtlEievQJSOGfcALx6Irl+c c9NxTOkaG0151UtzcrI9gM1vF7SlXlkWlQIg7YCgZh6/wQMOlavZ9Swir9MdfFSInE8chBAEoFK eTngGIGrec42Y+FGvoTJ4qQrEnWogdze6KmatA4VT0fg4 X-Received: by 2002:ad4:5de4:0:b0:89c:da0c:1703 with SMTP id 6a1803df08f44-8a436a23620mr29122466d6.11.1775005634557; Tue, 31 Mar 2026 18:07:14 -0700 (PDT) Received: from ryac.ausil.us (207-179-239-100.mtco.net. [207.179.239.100]) by smtp-relay.gmail.com with ESMTPS id 6a1803df08f44-89ecd72ecd5sm14105766d6.15.2026.03.31.18.07.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2026 18:07:14 -0700 (PDT) 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 , Chukun Pan , Alexey Charkov , Peter Robinson , Dennis Gilmore , Michael Riesch , Mykola Kvach , Jimmy Hon , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 2/3] arm64: dts: rockchip: refactor items from Orange Pi 5/b to prep for Pro Date: Tue, 31 Mar 2026 20:07:06 -0500 Message-ID: <20260401010707.2584962-3-dennis@ausil.us> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260401010707.2584962-1-dennis@ausil.us> References: <20260401010707.2584962-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 The Orange Pi 5 Pro uses the same SoC and base as the Orange Pi 5 and Orange Pi 5B but has had sound, USB, and leds wired up differently. The boards also use gmac for ethernet where thre Pro has a PCIe attached NIC Signed-off-by: Dennis Gilmore --- .../boot/dts/rockchip/rk3588s-orangepi-5.dts | 184 ++++++++++++++++ .../boot/dts/rockchip/rk3588s-orangepi-5.dtsi | 202 ++---------------- .../boot/dts/rockchip/rk3588s-orangepi-5b.dts | 181 ++++++++++++++++ 3 files changed, 378 insertions(+), 189 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts b/arch/arm= 64/boot/dts/rockchip/rk3588s-orangepi-5.dts index 83b9b6645a1e..a102458d7f6f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dts @@ -2,12 +2,62 @@ =20 /dts-v1/; =20 +#include #include "rk3588s-orangepi-5.dtsi" =20 / { model =3D "Xunlong Orange Pi 5"; compatible =3D "xunlong,orangepi-5", "rockchip,rk3588s"; =20 + aliases { + ethernet0 =3D &gmac1; + mmc0 =3D &sdmmc; + }; + + analog-sound { + compatible =3D "simple-audio-card"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&hp_detect>; + simple-audio-card,name =3D "rockchip,es8388"; + 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,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 <&i2s1_8ch>; + }; + + masterdai: simple-audio-card,codec { + sound-dai =3D <&es8388>; + system-clock-frequency =3D <12288000>; + }; + }; + + pwm-leds { + compatible =3D "pwm-leds"; + + led { + color =3D ; + function =3D LED_FUNCTION_STATUS; + linux,default-trigger =3D "heartbeat"; + max-brightness =3D <255>; + pwms =3D <&pwm0 0 25000 0>; + }; + }; + vcc3v3_pcie20: regulator-vcc3v3-pcie20 { compatible =3D "regulator-fixed"; enable-active-high; @@ -21,12 +71,146 @@ vcc3v3_pcie20: regulator-vcc3v3-pcie20 { }; }; =20 +&gmac1 { + clock_in_out =3D "output"; + phy-handle =3D <&rgmii_phy1>; + phy-mode =3D "rgmii-rxid"; + pinctrl-0 =3D <&gmac1_miim + &gmac1_tx_bus2 + &gmac1_rx_bus2 + &gmac1_rgmii_clk + &gmac1_rgmii_bus>; + pinctrl-names =3D "default"; + tx_delay =3D <0x42>; + status =3D "okay"; +}; + +&i2c6 { + es8388: audio-codec@10 { + compatible =3D "everest,es8388", "everest,es8328"; + reg =3D <0x10>; + clocks =3D <&cru I2S1_8CH_MCLKOUT>; + 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-clocks =3D <&cru I2S1_8CH_MCLKOUT>; + assigned-clock-rates =3D <12288000>; + #sound-dai-cells =3D <0>; + }; + + usbc0: usb-typec@22 { + compatible =3D "fcs,fusb302"; + reg =3D <0x22>; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&usbc0_int>; + vbus-supply =3D <&vbus_typec>; + status =3D "okay"; + + usb_con: connector { + compatible =3D "usb-c-connector"; + label =3D "USB-C"; + data-role =3D "dual"; + op-sink-microwatt =3D <1000000>; + power-role =3D "dual"; + sink-pdos =3D + ; + source-pdos =3D + ; + try-power-role =3D "source"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + usbc0_hs: endpoint { + remote-endpoint =3D <&usb_host0_xhci_drd_sw>; + }; + }; + + port@1 { + reg =3D <1>; + usbc0_ss: endpoint { + remote-endpoint =3D <&usbdp_phy0_typec_ss>; + }; + }; + + port@2 { + reg =3D <2>; + usbc0_sbu: endpoint { + remote-endpoint =3D <&usbdp_phy0_typec_sbu>; + }; + }; + }; + }; + }; +}; + +&i2s1_8ch { + rockchip,i2s-tx-route =3D <3 2 1 0>; + rockchip,i2s-rx-route =3D <1 3 2 0>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2s1m0_sclk + &i2s1m0_mclk + &i2s1m0_lrck + &i2s1m0_sdi1 + &i2s1m0_sdo3>; + status =3D "okay"; +}; + &pcie2x1l2 { reset-gpios =3D <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; vpcie3v3-supply =3D <&vcc3v3_pcie20>; status =3D "okay"; }; =20 +&pwm0 { + pinctrl-0 =3D <&pwm0m2_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; +}; + &sfc { status =3D "okay"; }; + +&usb_host0_xhci { + dr_mode =3D "otg"; + usb-role-switch; + + port { + usb_host0_xhci_drd_sw: endpoint { + remote-endpoint =3D <&usbc0_hs>; + }; + }; +}; + +&usb_host2_xhci { + status =3D "okay"; +}; + +&usbdp_phy0 { + mode-switch; + orientation-switch; + sbu1-dc-gpios =3D <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; + sbu2-dc-gpios =3D <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; + + port { + #address-cells =3D <1>; + #size-cells =3D <0>; + + usbdp_phy0_typec_ss: endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&usbc0_ss>; + }; + + usbdp_phy0_typec_sbu: endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <&usbc0_sbu>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi b/arch/ar= m64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi index dafad29f9854..7c7276968d95 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5.dtsi @@ -3,19 +3,13 @@ /dts-v1/; =20 #include -#include #include +#include #include #include -#include #include "rk3588s.dtsi" =20 / { - aliases { - ethernet0 =3D &gmac1; - mmc0 =3D &sdmmc; - }; - chosen { stdout-path =3D "serial2:1500000n8"; }; @@ -34,38 +28,6 @@ button-recovery { }; }; =20 - analog-sound { - compatible =3D "simple-audio-card"; - pinctrl-names =3D "default"; - pinctrl-0 =3D <&hp_detect>; - simple-audio-card,name =3D "rockchip,es8388"; - 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,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 <&i2s1_8ch>; - }; - - masterdai: simple-audio-card,codec { - sound-dai =3D <&es8388>; - system-clock-frequency =3D <12288000>; - }; - }; - hdmi0-con { compatible =3D "hdmi-connector"; type =3D "a"; @@ -77,18 +39,6 @@ hdmi0_con_in: endpoint { }; }; =20 - pwm-leds { - compatible =3D "pwm-leds"; - - led { - color =3D ; - function =3D LED_FUNCTION_STATUS; - linux,default-trigger =3D "heartbeat"; - max-brightness =3D <255>; - pwms =3D <&pwm0 0 25000 0>; - }; - }; - vbus_typec: regulator-vbus-typec { compatible =3D "regulator-fixed"; enable-active-high; @@ -101,15 +51,6 @@ vbus_typec: regulator-vbus-typec { vin-supply =3D <&vcc5v0_sys>; }; =20 - vcc5v0_sys: regulator-vcc5v0-sys { - compatible =3D "regulator-fixed"; - regulator-name =3D "vcc5v0_sys"; - regulator-always-on; - regulator-boot-on; - regulator-min-microvolt =3D <5000000>; - regulator-max-microvolt =3D <5000000>; - }; - vcc_3v3_sd_s0: regulator-vcc-3v3-sd-s0 { compatible =3D "regulator-fixed"; gpios =3D <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>; @@ -119,6 +60,15 @@ vcc_3v3_sd_s0: regulator-vcc-3v3-sd-s0 { regulator-max-microvolt =3D <3300000>; vin-supply =3D <&vcc_3v3_s3>; }; + + vcc5v0_sys: regulator-vcc5v0-sys { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcc5v0_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + }; }; =20 &combphy0_ps { @@ -161,20 +111,6 @@ &cpu_l3 { cpu-supply =3D <&vdd_cpu_lit_s0>; }; =20 -&gmac1 { - clock_in_out =3D "output"; - phy-handle =3D <&rgmii_phy1>; - phy-mode =3D "rgmii-rxid"; - pinctrl-0 =3D <&gmac1_miim - &gmac1_tx_bus2 - &gmac1_rx_bus2 - &gmac1_rgmii_clk - &gmac1_rgmii_bus>; - pinctrl-names =3D "default"; - tx_delay =3D <0x42>; - status =3D "okay"; -}; - &gpu { mali-supply =3D <&vdd_gpu_s0>; status =3D "okay"; @@ -270,69 +206,6 @@ &i2c6 { pinctrl-0 =3D <&i2c6m3_xfer>; status =3D "okay"; =20 - es8388: audio-codec@10 { - compatible =3D "everest,es8388", "everest,es8328"; - reg =3D <0x10>; - clocks =3D <&cru I2S1_8CH_MCLKOUT>; - 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-clocks =3D <&cru I2S1_8CH_MCLKOUT>; - assigned-clock-rates =3D <12288000>; - #sound-dai-cells =3D <0>; - }; - - usbc0: usb-typec@22 { - compatible =3D "fcs,fusb302"; - reg =3D <0x22>; - interrupt-parent =3D <&gpio0>; - interrupts =3D ; - pinctrl-names =3D "default"; - pinctrl-0 =3D <&usbc0_int>; - vbus-supply =3D <&vbus_typec>; - status =3D "okay"; - - usb_con: connector { - compatible =3D "usb-c-connector"; - label =3D "USB-C"; - data-role =3D "dual"; - op-sink-microwatt =3D <1000000>; - power-role =3D "dual"; - sink-pdos =3D - ; - source-pdos =3D - ; - try-power-role =3D "source"; - - ports { - #address-cells =3D <1>; - #size-cells =3D <0>; - - port@0 { - reg =3D <0>; - usbc0_hs: endpoint { - remote-endpoint =3D <&usb_host0_xhci_drd_sw>; - }; - }; - - port@1 { - reg =3D <1>; - usbc0_ss: endpoint { - remote-endpoint =3D <&usbdp_phy0_typec_ss>; - }; - }; - - port@2 { - reg =3D <2>; - usbc0_sbu: endpoint { - remote-endpoint =3D <&usbdp_phy0_typec_sbu>; - }; - }; - }; - }; - }; - hym8563: rtc@51 { compatible =3D "haoyu,hym8563"; reg =3D <0x51>; @@ -346,18 +219,6 @@ hym8563: rtc@51 { }; }; =20 -&i2s1_8ch { - rockchip,i2s-tx-route =3D <3 2 1 0>; - rockchip,i2s-rx-route =3D <1 3 2 0>; - pinctrl-names =3D "default"; - pinctrl-0 =3D <&i2s1m0_sclk - &i2s1m0_mclk - &i2s1m0_lrck - &i2s1m0_sdi1 - &i2s1m0_sdo3>; - status =3D "okay"; -}; - &i2s5_8ch { status =3D "okay"; }; @@ -404,12 +265,6 @@ typec5v_pwren: typec5v-pwren { }; }; =20 -&pwm0 { - pinctrl-0 =3D <&pwm0m2_pins>; - pinctrl-names =3D "default"; - status =3D "okay"; -}; - &rknn_core_0 { npu-supply =3D <&vdd_npu_s0>; sram-supply =3D <&vdd_npu_s0>; @@ -840,29 +695,6 @@ &uart2 { status =3D "okay"; }; =20 -&usbdp_phy0 { - mode-switch; - orientation-switch; - sbu1-dc-gpios =3D <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; - sbu2-dc-gpios =3D <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; - status =3D "okay"; - - port { - #address-cells =3D <1>; - #size-cells =3D <0>; - - usbdp_phy0_typec_ss: endpoint@0 { - reg =3D <0>; - remote-endpoint =3D <&usbc0_ss>; - }; - - usbdp_phy0_typec_sbu: endpoint@1 { - reg =3D <1>; - remote-endpoint =3D <&usbc0_sbu>; - }; - }; -}; - &usb_host0_ehci { status =3D "okay"; }; @@ -872,15 +704,7 @@ &usb_host0_ohci { }; =20 &usb_host0_xhci { - dr_mode =3D "otg"; - usb-role-switch; status =3D "okay"; - - port { - usb_host0_xhci_drd_sw: endpoint { - remote-endpoint =3D <&usbc0_hs>; - }; - }; }; =20 &usb_host1_ehci { @@ -891,15 +715,15 @@ &usb_host1_ohci { status =3D "okay"; }; =20 -&usb_host2_xhci { +&usbdp_phy0 { status =3D "okay"; }; =20 -&vop_mmu { +&vop { status =3D "okay"; }; =20 -&vop { +&vop_mmu { status =3D "okay"; }; =20 diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5b.dts b/arch/ar= m64/boot/dts/rockchip/rk3588s-orangepi-5b.dts index d21ec320d295..5acd96969ddf 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5b.dts @@ -2,6 +2,7 @@ =20 /dts-v1/; =20 +#include #include "rk3588s-orangepi-5.dtsi" =20 / { @@ -9,11 +10,191 @@ / { compatible =3D "xunlong,orangepi-5b", "rockchip,rk3588s"; =20 aliases { + ethernet0 =3D &gmac1; mmc0 =3D &sdhci; mmc1 =3D &sdmmc; }; + + analog-sound { + compatible =3D "simple-audio-card"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&hp_detect>; + simple-audio-card,name =3D "rockchip,es8388"; + 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,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 <&i2s1_8ch>; + }; + + masterdai: simple-audio-card,codec { + sound-dai =3D <&es8388>; + system-clock-frequency =3D <12288000>; + }; + }; + + pwm-leds { + compatible =3D "pwm-leds"; + + led { + color =3D ; + function =3D LED_FUNCTION_STATUS; + linux,default-trigger =3D "heartbeat"; + max-brightness =3D <255>; + pwms =3D <&pwm0 0 25000 0>; + }; + }; + +}; + +&gmac1 { + clock_in_out =3D "output"; + phy-handle =3D <&rgmii_phy1>; + phy-mode =3D "rgmii-rxid"; + pinctrl-0 =3D <&gmac1_miim + &gmac1_tx_bus2 + &gmac1_rx_bus2 + &gmac1_rgmii_clk + &gmac1_rgmii_bus>; + pinctrl-names =3D "default"; + tx_delay =3D <0x42>; + status =3D "okay"; +}; + +&i2c6 { + es8388: audio-codec@10 { + compatible =3D "everest,es8388", "everest,es8328"; + reg =3D <0x10>; + clocks =3D <&cru I2S1_8CH_MCLKOUT>; + 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-clocks =3D <&cru I2S1_8CH_MCLKOUT>; + assigned-clock-rates =3D <12288000>; + #sound-dai-cells =3D <0>; + }; + + usbc0: usb-typec@22 { + compatible =3D "fcs,fusb302"; + reg =3D <0x22>; + interrupt-parent =3D <&gpio0>; + interrupts =3D ; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&usbc0_int>; + vbus-supply =3D <&vbus_typec>; + status =3D "okay"; + + usb_con: connector { + compatible =3D "usb-c-connector"; + label =3D "USB-C"; + data-role =3D "dual"; + op-sink-microwatt =3D <1000000>; + power-role =3D "dual"; + sink-pdos =3D + ; + source-pdos =3D + ; + try-power-role =3D "source"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + usbc0_hs: endpoint { + remote-endpoint =3D <&usb_host0_xhci_drd_sw>; + }; + }; + + port@1 { + reg =3D <1>; + usbc0_ss: endpoint { + remote-endpoint =3D <&usbdp_phy0_typec_ss>; + }; + }; + + port@2 { + reg =3D <2>; + usbc0_sbu: endpoint { + remote-endpoint =3D <&usbdp_phy0_typec_sbu>; + }; + }; + }; + }; + }; +}; + +&i2s1_8ch { + rockchip,i2s-tx-route =3D <3 2 1 0>; + rockchip,i2s-rx-route =3D <1 3 2 0>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&i2s1m0_sclk + &i2s1m0_mclk + &i2s1m0_lrck + &i2s1m0_sdi1 + &i2s1m0_sdo3>; + status =3D "okay"; +}; + +&pwm0 { + pinctrl-0 =3D <&pwm0m2_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; }; =20 &sdhci { status =3D "okay"; }; + +&usb_host0_xhci { + dr_mode =3D "otg"; + usb-role-switch; + + port { + usb_host0_xhci_drd_sw: endpoint { + remote-endpoint =3D <&usbc0_hs>; + }; + }; +}; + +&usb_host2_xhci { + status =3D "okay"; +}; + +&usbdp_phy0 { + mode-switch; + orientation-switch; + sbu1-dc-gpios =3D <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>; + sbu2-dc-gpios =3D <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; + + port { + #address-cells =3D <1>; + #size-cells =3D <0>; + + usbdp_phy0_typec_ss: endpoint@0 { + reg =3D <0>; + remote-endpoint =3D <&usbc0_ss>; + }; + + usbdp_phy0_typec_sbu: endpoint@1 { + reg =3D <1>; + remote-endpoint =3D <&usbc0_sbu>; + }; + }; +}; --=20 2.53.0