public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] arm64: dts: rockchip: add usbc to rk3588s-roc-pc
@ 2026-05-05 15:10 Eva Emmerich
  2026-05-05 15:10 ` [PATCH 2/2] arm64: dts: rockchip: rk3588s-roc-pc set hym8563 rtc as wakeup source Eva Emmerich
  0 siblings, 1 reply; 2+ messages in thread
From: Eva Emmerich @ 2026-05-05 15:10 UTC (permalink / raw)
  To: linux-kernel, linux-rockchip, devicetree, linux-arm-kernel; +Cc: Eva Emmerich

Signed-off-by: Eva Emmerich <eva@evaemmerich.com>
---
 .../boot/dts/rockchip/rk3588s-roc-pc.dts      | 105 ++++++++++++++++++
 1 file changed, 105 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
index 7e179862da6e..84ba09528215 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
@@ -110,6 +110,7 @@ vcc12v_dcin: regulator-vcc12v-dcin {
 	};
 
 	vbus5v0_typec: regulator-vbus5v0-typec {
+		status = "okay";
 		compatible = "regulator-fixed";
 		enable-active-high;
 		gpio = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
@@ -315,6 +316,72 @@ hym8563: rtc@51 {
 		pinctrl-names = "default";
 		pinctrl-0 = <&hym8563_int>;
 	};
+
+	usbc0: fusb302@22 {
+		status = "okay";
+		compatible = "fcs,fusb302";
+		reg = <0x22>;
+		interrupt-parent = <&gpio0>;
+		interrupts = <RK_PC4 IRQ_TYPE_LEVEL_LOW>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&usbc0_int>;
+		vbus-supply = <&vbus5v0_typec>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+				usbc0_role_sw: endpoint@0 {
+					remote-endpoint = <&dwc3_0_role_switch>;
+				};
+			};
+		};
+
+		usb_con: connector {
+			compatible = "usb-c-connector";
+			label = "USB-C";
+			data-role = "dual";
+			power-role = "dual";
+			try-power-role = "sink";
+			op-sink-microwatt = <1000000>;
+			sink-pdos =
+				<PDO_FIXED(5000, 1000, PDO_FIXED_USB_COMM)>;
+			source-pdos =
+				<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>;
+
+			altmodes {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				altmode@0 {
+					reg = <0>;
+					svid = <0xff01>;
+					vdo = <0xffffffff>;
+				};
+			};
+
+			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
+				port@0 {
+					reg = <0>;
+					usbc0_orien_sw: endpoint {
+						remote-endpoint = <&usbdp_phy0_orientation_switch>;
+					};
+				};
+
+				port@1 {
+					reg = <1>;
+					dp_altmode_mux: endpoint {
+						remote-endpoint = <&usbdp_phy0_dp_altmode_mux>;
+					};
+				};
+			};
+		};
+	};
 };
 
 &i2c3 {
@@ -401,6 +468,10 @@ typec5v_pwren: typec5v-pwren {
 		vcc5v0_host_en: vcc5v0-host-en {
 			rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
+
+		usbc0_int: usbc0-int {
+			rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_up>;
+		};
 	};
 };
 
@@ -770,6 +841,40 @@ &u2phy0 {
 	status = "okay";
 };
 
+&usbdp_phy0 {
+	status = "okay";
+	orientation-switch;
+	svid = <0xff01>;
+	sbu1-dc-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_HIGH>;
+	sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		usbdp_phy0_orientation_switch: endpoint@0 {
+			reg = <0>;
+			remote-endpoint = <&usbc0_orien_sw>;
+		};
+		usbdp_phy0_dp_altmode_mux: endpoint@1 {
+			reg = <1>;
+			remote-endpoint = <&dp_altmode_mux>;
+		};
+	};
+};
+&usb_host0_xhci {
+	status = "okay";
+	dr_mode = "otg";
+	usb-role-switch;
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;
+		dwc3_0_role_switch: endpoint@0 {
+			reg = <0>;
+			remote-endpoint = <&usbc0_role_sw>;
+		};
+	};
+};
+
+
 &u2phy0_otg {
 	status = "okay";
 };
-- 
2.51.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] arm64: dts: rockchip: rk3588s-roc-pc set hym8563 rtc as wakeup source
  2026-05-05 15:10 [PATCH 1/2] arm64: dts: rockchip: add usbc to rk3588s-roc-pc Eva Emmerich
@ 2026-05-05 15:10 ` Eva Emmerich
  0 siblings, 0 replies; 2+ messages in thread
From: Eva Emmerich @ 2026-05-05 15:10 UTC (permalink / raw)
  To: linux-kernel, linux-rockchip, devicetree, linux-arm-kernel; +Cc: Eva Emmerich

Signed-off-by: Eva Emmerich <eva@evaemmerich.com>
---
 arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts b/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
index 84ba09528215..d4513f6b154a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
@@ -315,6 +315,7 @@ hym8563: rtc@51 {
 		interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&hym8563_int>;
+		wakeup-source;
 	};
 
 	usbc0: fusb302@22 {
-- 
2.51.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-05-05 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 15:10 [PATCH 1/2] arm64: dts: rockchip: add usbc to rk3588s-roc-pc Eva Emmerich
2026-05-05 15:10 ` [PATCH 2/2] arm64: dts: rockchip: rk3588s-roc-pc set hym8563 rtc as wakeup source Eva Emmerich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox