Update bluetooth hcp spi driver to new GPIO API. Following changes have been done: - Use new gpio api functions - Get reset, irq and cs flags from dt defines - Define reset pin as active low and invert set/unset logic. Tested on disco_l475_iot1 and 96b_carbon. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
18 lines
479 B
Text
18 lines
479 B
Text
/*
|
|
* Copyright (c) 2019 STMicroelectronics
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
&arduino_spi {
|
|
cs-gpios = <&arduino_header 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* D10 */
|
|
|
|
spbtle-rf@0 {
|
|
compatible = "zephyr,bt-hci-spi";
|
|
reg = <0>;
|
|
reset-gpios = <&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* D7 */
|
|
irq-gpios = <&arduino_header 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* A0 */
|
|
spi-max-frequency = <2000000>;
|
|
label = "SPBTLE-RF";
|
|
};
|
|
};
|