Skip to content

Commit

Permalink
boards: arm: apollo4p_blue_kxr_evb: Move the bt-spi instance to soc dts
Browse files Browse the repository at this point in the history
Since the pins of bt-spi instance are wired internally in the chip, it will
make sense to move the definition to soc dts so no need for every board
using the chip to redefine the same.

(cherry picked from commit ca8ee0e)

Original-Signed-off-by: Aaron Ye <aye@ambiq.com>
GitOrigin-RevId: ca8ee0e
Change-Id: I3d699f9a573a2691e24e78b1aee6981037e9aa3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5198298
Tested-by: Yuval Peress <peress@google.com>
Commit-Queue: Yuval Peress <peress@google.com>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Yuval Peress <peress@google.com>
  • Loading branch information
aaronyegx authored and Chromeos LUCI committed Jan 16, 2024
1 parent 018de8c commit 8b7cf82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
11 changes: 0 additions & 11 deletions boards/arm/apollo4p_blue_kxr_evb/apollo4p_blue_kxr_evb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,9 @@
};

&iom4 {
compatible = "ambiq,spi";
pinctrl-0 = <&spi4_default>;
pinctrl-names = "default";
cs-gpios = <&gpio32_63 22 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
clock-frequency = <DT_FREQ_M(24)>;
status = "okay";

bt-hci@0 {
compatible = "ambiq,bt-hci-spi";
reg = <0>;
irq-gpios = <&gpio32_63 21 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio32_63 23 GPIO_ACTIVE_LOW>;
clkreq-gpios = <&gpio32_63 20 GPIO_ACTIVE_HIGH>;
};
};

&mspi0 {
Expand Down
14 changes: 13 additions & 1 deletion dts/arm/ambiq/ambiq_apollo4p_blue.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,25 @@
ambiq,pwrcfg = <&pwrcfg 0x4 0x10>;
};

iom4: iom@40054000 {
iom4: spi@40054000 {
/* IOM4 works as SPI and is wired internally for BLE HCI. */
compatible = "ambiq,spi";
reg = <0x40054000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <10 0>;
cs-gpios = <&gpio32_63 22 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
clock-frequency = <DT_FREQ_M(24)>;
status = "disabled";
ambiq,pwrcfg = <&pwrcfg 0x4 0x20>;

bt-hci@0 {
compatible = "ambiq,bt-hci-spi";
reg = <0>;
irq-gpios = <&gpio32_63 21 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio32_63 23 GPIO_ACTIVE_LOW>;
clkreq-gpios = <&gpio32_63 20 GPIO_ACTIVE_HIGH>;
};
};

iom5: iom@40055000 {
Expand Down

0 comments on commit 8b7cf82

Please sign in to comment.