From c39398420253f736e43673fed0d1a4c830922b71 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Mon, 4 Dec 2023 23:54:20 +0000 Subject: [PATCH] smolder: add USB PD overlay but don't use it because it causes reset --- system/smolder/usbc.dts | 61 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 system/smolder/usbc.dts diff --git a/system/smolder/usbc.dts b/system/smolder/usbc.dts new file mode 100644 index 0000000..89768f7 --- /dev/null +++ b/system/smolder/usbc.dts @@ -0,0 +1,61 @@ +/* Based on commit 8f64d6bcf306fa5b5de66fdee2458cb584a78b2e by Sebastian Reichel */ +/dts-v1/; +/plugin/; + +#include +#include +#include + +/ { + compatible = "radxa,rock-5b"; + + vcc12v_dcin: vcc12v-dcin-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc12v_dcin"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; +}; + +&vcc3v3_pcie2x1l0 { + vin-supply = <&vcc12v_dcin>; +}; + +&i2c4 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c4m1_xfer>; + status = "okay"; + + usbc0: usb-typec@22 { + compatible = "fcs,fusb302"; + reg = <0x22>; + interrupt-parent = <&gpio3>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&usbc0_int>; + vbus-supply = <&vcc12v_dcin>; + status = "okay"; + + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "sink"; + try-power-role = "sink"; + op-sink-microwatt = <1000000>; + sink-pdos = + , + ; + }; + }; +}; + +&pinctrl { + usb { + usbc0_int: usbc0-int { + rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + }; +};