2020-07-05 11:52:14 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Gerson Fernando Budke <nandojve@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2022-07-18 21:28:04 +08:00
|
|
|
/ {
|
|
|
|
chosen {
|
2022-09-26 18:35:05 +08:00
|
|
|
zephyr,ieee802154 = &ieee802154_atmel_rf2xx_mikrobus;
|
2022-07-18 21:28:04 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-07-05 11:52:14 +08:00
|
|
|
&mikrobus_spi {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
/* CS */
|
|
|
|
cs-gpios = <&mikrobus_header 2 GPIO_ACTIVE_LOW>;
|
|
|
|
|
2022-09-26 18:35:05 +08:00
|
|
|
ieee802154_atmel_rf2xx_mikrobus: rf2xx@0 {
|
2020-07-05 11:52:14 +08:00
|
|
|
compatible = "atmel,rf2xx";
|
|
|
|
reg = <0x0>;
|
|
|
|
spi-max-frequency = <6000000>;
|
|
|
|
/* INT */
|
|
|
|
irq-gpios = <&mikrobus_header 7
|
|
|
|
(GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
|
|
|
|
/* AN */
|
|
|
|
reset-gpios = <&mikrobus_header 0 GPIO_ACTIVE_LOW>;
|
|
|
|
/* PWM */
|
|
|
|
slptr-gpios = <&mikrobus_header 6 GPIO_ACTIVE_HIGH>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|