62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
|
/* Based on commit 8f64d6bcf306fa5b5de66fdee2458cb584a78b2e by Sebastian Reichel */
|
||
|
/dts-v1/;
|
||
|
/plugin/;
|
||
|
|
||
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||
|
#include <dt-bindings/pinctrl/rockchip.h>
|
||
|
#include <dt-bindings/usb/pd.h>
|
||
|
|
||
|
/ {
|
||
|
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 = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
|
||
|
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 =
|
||
|
<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>,
|
||
|
<PDO_VAR(5000, 20000, 5000)>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&pinctrl {
|
||
|
usb {
|
||
|
usbc0_int: usbc0-int {
|
||
|
rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
|
||
|
};
|
||
|
|
||
|
};
|
||
|
};
|