1/* 2 * Copyright (c) 2019 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/l1/stm32l151Xb-a.dtsi> 9#include <st/l1/stm32l151c(6-8-b)uxa-pinctrl.dtsi> 10#include "96b_lscon.dtsi" 11 12/ { 13 model = "RAKWireless 96boards WisTrio board"; 14 compatible = "rak,wistrio"; 15 16 chosen { 17 zephyr,console = &usart1; 18 zephyr,shell-uart = &usart1; 19 zephyr,sram = &sram0; 20 zephyr,flash = &flash0; 21 }; 22 23 leds { 24 compatible = "gpio-leds"; 25 green_led_0: led_0 { 26 gpios = <&gpioa 12 GPIO_ACTIVE_LOW>; 27 label = "User LD1"; 28 }; 29 blue_led_0: led_1 { 30 gpios = <&gpiob 4 GPIO_ACTIVE_LOW>; 31 label = "User LD2"; 32 }; 33 }; 34 35 aliases { 36 led0 = &green_led_0; 37 eeprom-0 = &eeprom; 38 lora0 = &lora; 39 accel0 = &lis3dh; 40 }; 41 42 rf_switch: rf-switch { 43 compatible = "qorvo,rfsw8001"; 44 rf1-gpios = <&gpioa 4 GPIO_PULL_UP>; 45 rf2-gpios = <&gpiob 6 GPIO_PULL_UP>; 46 rf3-gpios = <&gpiob 7 GPIO_PULL_UP>; 47 }; 48 49 /* regulator controlling SX oscillator enable */ 50 sx-osc-enable { 51 compatible = "regulator-fixed"; 52 regulator-name = "sx-osc-enable"; 53 enable-gpios = <&gpioh 1 GPIO_ACTIVE_HIGH>; 54 regulator-boot-on; 55 }; 56}; 57 58&clk_lsi { 59 status = "okay"; 60}; 61 62&clk_hsi { 63 status = "okay"; 64}; 65 66&pll { 67 div = <2>; 68 mul = <4>; 69 clocks = <&clk_hsi>; 70 status = "okay"; 71}; 72 73&rcc { 74 clocks = <&pll>; 75 clock-frequency = <DT_FREQ_M(32)>; 76 ahb-prescaler = <1>; 77 apb1-prescaler = <1>; 78 apb2-prescaler = <1>; 79}; 80 81&usart1 { 82 pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>; 83 pinctrl-names = "default"; 84 current-speed = <115200>; 85 status = "okay"; 86}; 87 88&usart2 { 89 pinctrl-0 = <&usart2_tx_pa2 &usart2_rx_pa3>; 90 pinctrl-names = "default"; 91 current-speed = <115200>; 92 status = "okay"; 93}; 94 95&i2c1 { 96 pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>; 97 pinctrl-names = "default"; 98 status = "okay"; 99 100 lis3dh: lis3dh@32 { 101 compatible = "st,lis3dh", "st,lis2dh"; 102 reg = <0x32>; 103 }; 104}; 105 106&spi1 { 107 pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pa7>; 108 pinctrl-names = "default"; 109 status = "okay"; 110 cs-gpios = <&gpiob 0 GPIO_ACTIVE_LOW>; 111 112 lora: lora@0 { 113 compatible = "semtech,sx1276"; 114 reg = <0>; 115 reset-gpios = <&gpiob 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; 116 dio-gpios = <&gpioa 11 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, 117 <&gpiob 1 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, 118 <&gpioa 3 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, 119 <&gpioh 0 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>, 120 <&gpioc 13 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>; 121 spi-max-frequency = <1000000>; 122 power-amplifier-output = "pa-boost"; 123 }; 124}; 125 126&rtc { 127 clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>, 128 <&rcc STM32_SRC_LSI RTC_SEL(2)>; 129 status = "okay"; 130}; 131 132&eeprom { 133 status = "okay"; 134}; 135