Skip to content

Commit ca8ee0e

Browse files
aaronyegxfabiobaltieri
authored andcommitted
boards: arm: apollo4p_blue_kxr_evb: Move the bt-spi instance to soc dts
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. Signed-off-by: Aaron Ye <[email protected]>
1 parent 8042e73 commit ca8ee0e

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

boards/arm/apollo4p_blue_kxr_evb/apollo4p_blue_kxr_evb.dts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,20 +87,9 @@
8787
};
8888

8989
&iom4 {
90-
compatible = "ambiq,spi";
9190
pinctrl-0 = <&spi4_default>;
9291
pinctrl-names = "default";
93-
cs-gpios = <&gpio32_63 22 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
94-
clock-frequency = <DT_FREQ_M(24)>;
9592
status = "okay";
96-
97-
bt-hci@0 {
98-
compatible = "ambiq,bt-hci-spi";
99-
reg = <0>;
100-
irq-gpios = <&gpio32_63 21 GPIO_ACTIVE_HIGH>;
101-
reset-gpios = <&gpio32_63 23 GPIO_ACTIVE_LOW>;
102-
clkreq-gpios = <&gpio32_63 20 GPIO_ACTIVE_HIGH>;
103-
};
10493
};
10594

10695
&mspi0 {

dts/arm/ambiq/ambiq_apollo4p_blue.dtsi

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,25 @@
160160
ambiq,pwrcfg = <&pwrcfg 0x4 0x10>;
161161
};
162162

163-
iom4: iom@40054000 {
163+
iom4: spi@40054000 {
164+
/* IOM4 works as SPI and is wired internally for BLE HCI. */
165+
compatible = "ambiq,spi";
164166
reg = <0x40054000 0x1000>;
165167
#address-cells = <1>;
166168
#size-cells = <0>;
167169
interrupts = <10 0>;
170+
cs-gpios = <&gpio32_63 22 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
171+
clock-frequency = <DT_FREQ_M(24)>;
168172
status = "disabled";
169173
ambiq,pwrcfg = <&pwrcfg 0x4 0x20>;
174+
175+
bt-hci@0 {
176+
compatible = "ambiq,bt-hci-spi";
177+
reg = <0>;
178+
irq-gpios = <&gpio32_63 21 GPIO_ACTIVE_HIGH>;
179+
reset-gpios = <&gpio32_63 23 GPIO_ACTIVE_LOW>;
180+
clkreq-gpios = <&gpio32_63 20 GPIO_ACTIVE_HIGH>;
181+
};
170182
};
171183

172184
iom5: iom@40055000 {

0 commit comments

Comments
 (0)