Skip to content

Commit

Permalink
boards: ambiq: apollo4p: Add USB nodes
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
zeonchew authored and nashif committed Nov 16, 2024
1 parent 659582b commit 0facdd8
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boards/ambiq/apollo4p_blue_kxr_evb/apollo4p_blue_kxr_evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@
status = "okay";
};

zephyr_udc0: &usb {
vddusb33-gpios = <&gpio0_31 13 (GPIO_PULL_UP)>;
vddusb0p9-gpios = <&gpio0_31 15 (GPIO_PULL_UP)>;
status = "okay";
};

&gpio0_31 {
status = "okay";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ supported:
- i2c
- clock_control
- ble
- usbd
testing:
ignore_tags:
- net
Expand Down
6 changes: 6 additions & 0 deletions boards/ambiq/apollo4p_evb/apollo4p_evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ compatible = "ambiq,adc";
};
};

zephyr_udc0: &usb {
vddusb33-gpios = <&gpio96_127 7 (GPIO_PULL_UP)>;
vddusb0p9-gpios = <&gpio96_127 5 (GPIO_PULL_UP)>;
status = "okay";
};

&gpio0_31 {
status = "okay";
};
Expand Down
1 change: 1 addition & 0 deletions boards/ambiq/apollo4p_evb/apollo4p_evb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ supported:
- rtc
- adc
- hwinfo
- usbd
testing:
ignore_tags:
- net
Expand Down
10 changes: 10 additions & 0 deletions dts/arm/ambiq/ambiq_apollo4p.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,16 @@
status = "disabled";
};

usb: usb@400b0000 {
compatible = "ambiq,usb";
reg = <0x400B0000 0x4100>;
interrupts = <27 0>;
num-bidir-endpoints = <6>;
maximum-speed = "full-speed";
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x400000>;
};

pinctrl: pin-controller@40010000 {
compatible = "ambiq,apollo4-pinctrl";
reg = <0x40010000 0x800>;
Expand Down
10 changes: 10 additions & 0 deletions dts/arm/ambiq/ambiq_apollo4p_blue.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,16 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x10000>;
};

usb: usb@400b0000 {
compatible = "ambiq,usb";
reg = <0x400B0000 0x4100>;
interrupts = <27 0>;
num-bidir-endpoints = <6>;
maximum-speed = "full-speed";
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x400000>;
};

pinctrl: pin-controller@40010000 {
compatible = "ambiq,apollo4-pinctrl";
reg = <0x40010000 0x800>;
Expand Down

0 comments on commit 0facdd8

Please sign in to comment.