Skip to content

Commit 347563c

Browse files
boards: microchip: sam: sama7g54_ek: enable udc device
Add udphs udc devices and enable udphsa Signed-off-by: CHEN Xing <xing.chen@microchip.com>
1 parent c69c6e0 commit 347563c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

boards/microchip/sam/sama7g54_ek/sama7g54_ek.dts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,16 @@
361361
bias-pull-up;
362362
};
363363
};
364+
365+
pinctrl_usba_vbus_det: usba_vbus_det {
366+
pinmux = <PIN_PD11__GPIO>;
367+
bias-disable;
368+
};
369+
370+
pinctrl_usbb_vbus_det: usbb_vbus_det {
371+
pinmux = <PIN_PC12__GPIO>;
372+
bias-disable;
373+
};
364374
};
365375

366376
&pit64b0 {
@@ -408,3 +418,17 @@
408418
&trng {
409419
status = "okay";
410420
};
421+
422+
zephyr_udc0: &udphsa {
423+
vbus-gpios = <&piod 11 GPIO_ACTIVE_HIGH>;
424+
pinctrl-names = "default";
425+
pinctrl-0 = <&pinctrl_usba_vbus_det>;
426+
status = "okay";
427+
};
428+
429+
&udphsb {
430+
vbus-gpios = <&pioc 12 GPIO_ACTIVE_HIGH>;
431+
pinctrl-names = "default";
432+
pinctrl-0 = <&pinctrl_usbb_vbus_det>;
433+
status = "disabled";
434+
};

boards/microchip/sam/sama7g54_ek/sama7g54_ek.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ supported:
1616
- sdhc
1717
- shell
1818
- uart
19+
- udc
1920
vendor: microchip

0 commit comments

Comments
 (0)