From nobody Mon Apr 13 15:09:52 2026 Received: from mail-qt1-f226.google.com (mail-qt1-f226.google.com [209.85.160.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 B986C35EDBA for ; Fri, 6 Mar 2026 02:46:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.226 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772765205; cv=none; b=sNRcZyNhb3guPHbCNFdp9YlCc4cHpCoDtlylkLzrw43Kb8KqO3YcO18EMWOeouk1NIpUUMET3//bJJf7ioBKU9hfrqVUpVX/cxxoyK3e+woru9QWJTLFpqVPfP7pU/qVNW9YXRUbhCLRWjx+MJp9qJ8UXoVhaEp8su33q0i4/cw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772765205; c=relaxed/simple; bh=F59+Jc7sBT/sB7Bf2aTGXlMhSv4GG5B4BafcXYNcTzo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=u656UgUU95+oJuaUWj4BySUcaXM9WOMLTmoDWTV+0zknmG9MT7gcUmFdRp0YCJtM0XsCMmOZmEC1Ws2Q+9MPRRcB7W0ecyDq65hlgNm7CGWS4T73Spwfe5fWxDS+8r3OZVRag1r+42UtajNTYIZG48tNUH7xIZnWNfcde4T+15E= 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=Znfljt/M; arc=none smtp.client-ip=209.85.160.226 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="Znfljt/M" Received: by mail-qt1-f226.google.com with SMTP id d75a77b69052e-506a297c14bso74041391cf.2 for ; Thu, 05 Mar 2026 18:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ausil.us; s=google; t=1772765203; x=1773370003; 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=Znfljt/MEHb3UzdsrL+UuLj2vjrIVGvajEVIp2g6Rg8SQPrGMCYcIpTCSCa7gMD3eu 9yDavnMzlgaEsJoQH9FbrFsmm157wX+8OiC6/jkfuED6q+hMopUGTa8OwZ+hwm6vhktj x/+kwKSmyEeKnVAtqUnbawrYIqegPO3HugvcKqxyHktzqfox9ysEQv5hEtM09vR7oIf2 B22EB4TWqdHbaLSjzOlchLSwjE+29UfeJRNEb2okMTI7AmnOVsbtR6kE4dGcDmV/3rxS +MLEIu40NsKzsD2PkObMKF0Ov6qWFKLOxxT86Tog/IPurhPe1K+CWvaFYPaRfafwBN+m po6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772765203; x=1773370003; 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=rZ9R/JHoFCd9YfYWbq+g5GPbKNMW8bVnrOXp7hfWzUGihrObT7EO4Rf8fkGyKxhYu6 ezZjSBP9/mNoM4n4PyVRxJD2daKo9S/+RYFmP++g6Bg2o1KgxtlcTgoB2g2LcAAOq/0a rgg+TBYuxlGPTYB29fMO4xUcu1WhCrame2vnJoqh1pc+EfbJIoZTOXU8C3D2dgt/Ft3V xnH+fC3xIRbguQKn8WfQrSpPPLX/1ntTLBqr1WAuSCUEGx9A7pqKjFqP5dOYr5ZDMD1z 6hfOLcFy+wIAe7ixhHkvGgIe1hIrET4RQpCHN4qqAeL643Wo1fUdMN++eMOwJQVmtcx9 kpqw== X-Forwarded-Encrypted: i=1; AJvYcCWZ4cCYY+BmpJiNFDCAT/gPrKhoSBJpnVZcx2BQUvlqzuEp5DsDIS5hkmX8pbcOxCVGqcsiPucSrTKwi64=@vger.kernel.org X-Gm-Message-State: AOJu0Yy0zXtfKqZv0n79diP9w187gWOJFKYYdsB//tFv2+d+kDR/uRqc iKMKpmj/LnUe/tMNcaMr1oSgYOvdMRxce1Laq76w/3i7GsbQ7OkLNEpVpyw8fsmpbeAG3jTpAYP srIs0KL3f8m34LDTZZywK3L2NmEM47sfIoEm/ X-Gm-Gg: ATEYQzz9bP2PuxMHI3ecB2YiDoboLmythmffCVwOgDloPC4T/1XjrZ/Abepmd3mdoXO PD3W1NlC5DJJrB62iTdtGbxyC/Tzkn7hlfbVJydRP2jAKWtDVBmh11grCL1jngKk52kpGjnF+XC 1WvshaeiMw+dgtiC/iA+PDg0/b4T8p4M+tbHdMC7juQhQ0rDomKsJesbe5CxVH7YCbPApraU4aW jrk/SbSJQj8Tq/vg2bmbp7NMVf5xAwf+UaOyWtCTalzy/+SVWQx253kqKdHYzHNt1/rcix947y9 H6+4cVuzD70C39qJiyHIrrQwhn1XC+v7CIzne+M4f7GTflUccBdqLxeKs9jvzJFFVhzwWkQ+251 tDwtsfAqKgGA4LUukRfb3CvdDsS9GCHvSAhTVqgdLW3ly X-Received: by 2002:a05:622a:249:b0:506:847b:cda3 with SMTP id d75a77b69052e-508f493e088mr8200971cf.49.1772765202650; Thu, 05 Mar 2026 18:46:42 -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 6a1803df08f44-89a31412832sm168366d6.11.2026.03.05.18.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2026 18:46:42 -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 , Chukun Pan , Alexey Charkov , Peter Robinson , Dennis Gilmore , Mykola Kvach , Michael Riesch , Jimmy Hon , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] arm64: dts: rockchip: refactor items from Orange Pi 5/b to prep for Pro Date: Thu, 5 Mar 2026 20:46:33 -0600 Message-ID: <20260306024634.239614-3-dennis@ausil.us> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260306024634.239614-1-dennis@ausil.us> References: <20260306024634.239614-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