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>;
26 usbc0_int: usbc0-int {
27 rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
40 u-boot,spl-sfc-no-dma;
41 pinctrl-names = "default";
42 pinctrl-0 = <&fspim2_pins>;
47 compatible = "jedec,spi-nor";
49 spi-max-frequency = <24000000>;
50 spi-rx-bus-width = <4>;
51 spi-tx-bus-width = <1>;
82 sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
83 sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
90 usbdp_phy0_typec_ss: endpoint@0 {
92 remote-endpoint = <&usbc0_ss>;
95 usbdp_phy0_typec_sbu: endpoint@1 {
97 remote-endpoint = <&usbc0_sbu>;
111 #address-cells = <1>;
114 usb_host0_xhci_drd_sw: endpoint {
115 remote-endpoint = <&usbc0_hs>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&i2c4m1_xfer>;
129 usbc0: usb-typec@22 {
130 compatible = "fcs,fusb302";
132 interrupt-parent = <&gpio3>;
133 interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&usbc0_int>;
136 vbus-supply = <&vcc12v_dcin>;
140 compatible = "usb-c-connector";
144 try-power-role = "sink";
145 op-sink-microwatt = <1000000>;
147 <PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>,
148 <PDO_VAR(5000, 20000, 5000)>;
151 #address-cells = <1>;
157 remote-endpoint = <&usb_host0_xhci_drd_sw>;
164 remote-endpoint = <&usbdp_phy0_typec_ss>;
170 usbc0_sbu: endpoint {
171 remote-endpoint = <&usbdp_phy0_typec_sbu>;