Skip to content

Commit 2afef25

Browse files
rpardinisuperna9999
authored andcommitted
arm64: dts: amlogic: add the type-c controller on Radxa Zero 2
The Radxa Zero2 has an FUSB302 controller on i2c3 at address 0x22 and INT# wired to GPIOA-13; include a minimal connector. Signed-off-by: Ricardo Pardini <ricardo@pardini.net> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20260115-arm64-dts-amlogic-radxa-zero2-additions-v2-1-948bb0479a45@pardini.net Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent 436418e commit 2afef25

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/meson-g12b-radxa-zero2.dts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,46 @@
351351
};
352352
};
353353

354+
/* Also exposed on the 40-pin header: SDA pin 3, SCL pin 5 */
355+
&i2c3 {
356+
pinctrl-0 = <&i2c3_sda_a_pins>, <&i2c3_sck_a_pins>;
357+
pinctrl-names = "default";
358+
status = "okay";
359+
360+
fusb0: typec-portc@22 {
361+
compatible = "fcs,fusb302";
362+
reg = <0x22>;
363+
364+
pinctrl-0 = <&fusb302_irq_pins>;
365+
pinctrl-names = "default";
366+
interrupt-parent = <&gpio_intc>;
367+
interrupts = <74 IRQ_TYPE_LEVEL_LOW>;
368+
369+
vbus-supply = <&ao_5v>;
370+
371+
connector {
372+
compatible = "usb-c-connector";
373+
};
374+
};
375+
};
376+
354377
&ir {
355378
status = "disabled";
356379
pinctrl-0 = <&remote_input_ao_pins>;
357380
pinctrl-names = "default";
358381
};
359382

383+
&periphs_pinctrl {
384+
fusb302_irq_pins: fusb302-irq {
385+
mux {
386+
groups = "GPIOA_13";
387+
function = "gpio_periphs";
388+
bias-pull-up;
389+
output-disable;
390+
};
391+
};
392+
};
393+
360394
&pwm_ab {
361395
pinctrl-0 = <&pwm_a_e_pins>;
362396
pinctrl-names = "default";

0 commit comments

Comments
 (0)