Skip to content

Commit 546ac7a

Browse files
committed
dts: bindings: apollo4p: Add USB Nodes
Add USB node to apollo4p qualifier, and apollo4p_evb board to enable USB support on the MCU and its EVB. Signed-off-by: Chew Zeh Yang <[email protected]>
1 parent 3336413 commit 546ac7a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

boards/ambiq/apollo4p_evb/apollo4p_evb.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ compatible = "ambiq,adc";
141141
};
142142
};
143143

144+
zephyr_udc0: &usb {
145+
vddusb33-gpios = <&gpio96_127 7 (GPIO_PULL_UP)>;
146+
vddusb0p9-gpios = <&gpio96_127 5 (GPIO_PULL_UP)>;
147+
status = "okay";
148+
};
149+
144150
&gpio0_31 {
145151
status = "okay";
146152
};

dts/arm/ambiq/ambiq_apollo4p.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,16 @@
338338
status = "disabled";
339339
};
340340

341+
usb: usb@400b0000 {
342+
compatible = "ambiq,usb";
343+
reg = <0x400B0000 0x4100>;
344+
interrupts = <27 0>;
345+
num-bidir-endpoints = <6>;
346+
maximum-speed = "full-speed";
347+
status = "disabled";
348+
ambiq,pwrcfg = <&pwrcfg 0x4 0x400000>;
349+
};
350+
341351
pinctrl: pin-controller@40010000 {
342352
compatible = "ambiq,apollo4-pinctrl";
343353
reg = <0x40010000 0x800>;

0 commit comments

Comments
 (0)