1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2023 Collabora Ltd.
6 #include "rk3588-u-boot.dtsi"
7 #include <dt-bindings/usb/pd.h>
10 vcc12v_dcin: vcc12v-dcin-regulator {
11 compatible = "regulator-fixed";
12 regulator-name = "vcc12v_dcin";
15 regulator-min-microvolt = <12000000>;
16 regulator-max-microvolt = <12000000>;
27 usbc0_int: usbc0-int {
28 rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
39 pinctrl-names = "default";
40 pinctrl-0 = <&fspim2_pins>;
44 compatible = "jedec,spi-nor";
48 spi-max-frequency = <24000000>;
49 spi-rx-bus-width = <4>;
50 spi-tx-bus-width = <1>;
81 sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
82 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
89 usbdp_phy0_typec_ss: endpoint@0 {
91 remote-endpoint = <&usbc0_ss>;
94 usbdp_phy0_typec_sbu: endpoint@1 {
96 remote-endpoint = <&usbc0_sbu>;
110 #address-cells = <1>;
113 usb_host0_xhci_drd_sw: endpoint {
114 remote-endpoint = <&usbc0_hs>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&i2c4m1_xfer>;
128 usbc0: usb-typec@22 {
129 compatible = "fcs,fusb302";
131 interrupt-parent = <&gpio3>;
132 interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
133 pinctrl-names = "default";
134 pinctrl-0 = <&usbc0_int>;
135 vbus-supply = <&vcc12v_dcin>;
139 compatible = "usb-c-connector";
143 try-power-role = "sink";
144 op-sink-microwatt = <1000000>;
146 <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>,
147 <PDO_VAR(5000, 20000, 5000)>;
150 #address-cells = <1>;
156 remote-endpoint = <&usb_host0_xhci_drd_sw>;
163 remote-endpoint = <&usbdp_phy0_typec_ss>;
169 usbc0_sbu: endpoint {
170 remote-endpoint = <&usbdp_phy0_typec_sbu>;