Skip to content

Commit 0facdd8

Browse files
zeonchewnashif
authored andcommitted
boards: ambiq: apollo4p: Add USB nodes
Add USB node to apollo4p and apollo4p_blue qualifier, and apollo4p_evb and apollo4p_blue_kxr_evb board to enableUSB support on the MCU and its EVB. Signed-off-by: Chew Zeh Yang <[email protected]>
1 parent 659582b commit 0facdd8

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed

boards/ambiq/apollo4p_blue_kxr_evb/apollo4p_blue_kxr_evb.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@
137137
status = "okay";
138138
};
139139

140+
zephyr_udc0: &usb {
141+
vddusb33-gpios = <&gpio0_31 13 (GPIO_PULL_UP)>;
142+
vddusb0p9-gpios = <&gpio0_31 15 (GPIO_PULL_UP)>;
143+
status = "okay";
144+
};
145+
140146
&gpio0_31 {
141147
status = "okay";
142148
};

boards/ambiq/apollo4p_blue_kxr_evb/apollo4p_blue_kxr_evb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ supported:
1616
- i2c
1717
- clock_control
1818
- ble
19+
- usbd
1920
testing:
2021
ignore_tags:
2122
- net

boards/ambiq/apollo4p_evb/apollo4p_evb.dts

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

146+
zephyr_udc0: &usb {
147+
vddusb33-gpios = <&gpio96_127 7 (GPIO_PULL_UP)>;
148+
vddusb0p9-gpios = <&gpio96_127 5 (GPIO_PULL_UP)>;
149+
status = "okay";
150+
};
151+
146152
&gpio0_31 {
147153
status = "okay";
148154
};

boards/ambiq/apollo4p_evb/apollo4p_evb.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ supported:
1717
- rtc
1818
- adc
1919
- hwinfo
20+
- usbd
2021
testing:
2122
ignore_tags:
2223
- net

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>;

dts/arm/ambiq/ambiq_apollo4p_blue.dtsi

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,16 @@
313313
ambiq,pwrcfg = <&pwrcfg 0x4 0x10000>;
314314
};
315315

316+
usb: usb@400b0000 {
317+
compatible = "ambiq,usb";
318+
reg = <0x400B0000 0x4100>;
319+
interrupts = <27 0>;
320+
num-bidir-endpoints = <6>;
321+
maximum-speed = "full-speed";
322+
status = "disabled";
323+
ambiq,pwrcfg = <&pwrcfg 0x4 0x400000>;
324+
};
325+
316326
pinctrl: pin-controller@40010000 {
317327
compatible = "ambiq,apollo4-pinctrl";
318328
reg = <0x40010000 0x800>;

0 commit comments

Comments
 (0)