1/*
2 * Copyright (c) 2024 A Labs GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 *
6 * This overlay defines a fake LoRa PHY node which is required to build the driver.
7 */
8
9#include <zephyr/dt-bindings/lora/sx126x.h>
10
11/ {
12	chosen {
13		zephyr,code-partition = &slot0_partition;
14	};
15
16	aliases {
17		lora0 = &lora;
18	};
19
20	test {
21		#address-cells = <1>;
22		#size-cells = <1>;
23
24		test_spi: spi@33334444 {
25			#address-cells = <1>;
26			#size-cells = <0>;
27			compatible = "vnd,spi";
28			reg = <0x33334444 0x1000>;
29			status = "okay";
30			clock-frequency = <2000000>;
31
32			cs-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
33
34			lora: lora@0 {
35				compatible = "semtech,sx1262";
36				status = "okay";
37				reg = <0>;
38				reset-gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
39				busy-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
40				tx-enable-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
41				rx-enable-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
42				dio1-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
43				dio2-tx-enable;
44				dio3-tcxo-voltage = <SX126X_DIO3_TCXO_3V3>;
45				tcxo-power-startup-delay-ms = <5>;
46				spi-max-frequency = <1000000>;
47			};
48		};
49	};
50};
51