boards: arm: Update dts files for ST BlueNRG-based boards

Update dts files to use ST vendor specific HCI SPI Bluetooth driver.

Remove unnecessary GPIO bias for output pins.

Signed-off-by: Ali Hozhabri <ali.hozhabri@st.com>
This commit is contained in:
Ali Hozhabri 2024-01-05 18:19:20 +01:00 committed by Carles Cufí
commit af76d061f8
6 changed files with 21 additions and 26 deletions

View file

@ -148,16 +148,15 @@
pinctrl-names = "default";
status = "okay";
cs-gpios = <&gpiod 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
cs-gpios = <&gpiod 13 GPIO_ACTIVE_LOW>,
<&gpioe 0 GPIO_ACTIVE_LOW>;
spbtle-rf@0 {
compatible = "zephyr,bt-hci-spi", "st,hci-spi-v1";
compatible = "st,hci-spi-v1";
reg = <0>;
reset-gpios = <&gpioa 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
reset-gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpioe 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
spi-max-frequency = <2000000>;
controller-data-delay-us = <0>; /* No need for extra delay for BlueNRG-MS */
spi-max-frequency = <DT_FREQ_M(2)>;
spi-hold-cs;
};

View file

@ -187,16 +187,15 @@
pinctrl-0 = <&spi3_sck_pc10 &spi3_miso_pc11 &spi3_mosi_pc12>;
pinctrl-names = "default";
cs-gpios = <&gpiod 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>,
cs-gpios = <&gpiod 13 GPIO_ACTIVE_LOW>,
<&gpioe 0 GPIO_ACTIVE_LOW>;
spbtle-rf@0 {
compatible = "zephyr,bt-hci-spi", "st,hci-spi-v1";
compatible = "st,hci-spi-v1";
reg = <0>;
reset-gpios = <&gpioa 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
reset-gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpioe 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
spi-max-frequency = <2000000>;
controller-data-delay-us = <0>; /* No need for extra delay for BlueNRG-MS */
spi-max-frequency = <DT_FREQ_M(2)>;
spi-hold-cs;
};

View file

@ -165,16 +165,15 @@
pinctrl-0 = <&spi2_sck_pd1 &spi2_miso_pd3 &spi2_mosi_pc3>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&gpiod 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
cs-gpios = <&gpiod 0 GPIO_ACTIVE_LOW>;
spbtle_1s_sensortile_box: spbtle-1s@0 {
compatible = "zephyr,bt-hci-spi", "st,hci-spi-v2";
compatible = "st,hci-spi-v2";
reg = <0>;
reset-gpios = <&gpioa 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
reset-gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
irq-gpios = <&gpiod 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
spi-max-frequency = <1000000>;
spi-max-frequency = <DT_FREQ_M(1)>;
spi-cpha;
spi-hold-cs;
controller-data-delay-us = <0>;
reset-assert-duration-ms = <6>;
};
};

View file

@ -164,7 +164,7 @@ stm32_lp_tick_source: &lptim1 {
status = "okay";
bluenrg-lp@0 {
compatible = "zephyr,bt-hci-spi", "st,hci-spi-v2";
compatible = "st,hci-spi-v2";
reg = <0>;
irq-gpios = <&gpiod 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
reset-gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;

View file

@ -111,16 +111,15 @@ stm32_lp_tick_source: &lptim1 {
&spi1 {
pinctrl-0 = <&spi1_sck_pg2 &spi1_miso_pg3 &spi1_mosi_pg4>;
pinctrl-names = "default";
cs-gpios = <&gpiog 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
cs-gpios = <&gpiog 5 GPIO_ACTIVE_LOW>;
status = "okay";
spbtle-rf@0 {
compatible = "zephyr,bt-hci-spi", "st,hci-spi-v1";
compatible = "st,hci-spi-v1";
reg = <0>;
irq-gpios = <&gpiog 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
reset-gpios = <&gpiog 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
spi-max-frequency = <2000000>;
controller-data-delay-us = <0>; /* No need for extra delay for BlueNRG-MS */
reset-gpios = <&gpiog 8 GPIO_ACTIVE_LOW>;
spi-max-frequency = <DT_FREQ_M(2)>;
spi-hold-cs;
};
};

View file

@ -5,15 +5,14 @@
*/
&arduino_spi {
cs-gpios = <&arduino_header 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* A1 */
cs-gpios = <&arduino_header 1 GPIO_ACTIVE_LOW>; /* A1 */
spbtle_rf_x_nucleo_idb05a1: spbtle-rf@0 {
compatible = "zephyr,bt-hci-spi", "st,hci-spi-v1";
compatible = "st,hci-spi-v1";
reg = <0>;
reset-gpios = <&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* D7 */
reset-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */
irq-gpios = <&arduino_header 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* A0 */
spi-max-frequency = <2000000>;
controller-data-delay-us = <0>; /* No need for extra delay for BlueNRG-MS */
spi-max-frequency = <DT_FREQ_M(2)>;
spi-hold-cs;
};
};