/* * Copyright (c) 2018 Aleksandr Makarov * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include / { model = "STMicroelectronics B-L072Z-LRWAN1 Discovery kit"; compatible = "st,stm32l072z-lrwan1", "st,stm32l072"; chosen { zephyr,console = &usart2; zephyr,shell-uart = &usart2; zephyr,sram = &sram0; zephyr,flash = &flash0; }; leds { compatible = "gpio-leds"; green_led_0: led_0 { gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>; label = "Green LED 1"; }; green_led_1: led_1 { gpios = <&gpiob 5 GPIO_INT_ACTIVE_HIGH>; label = "Green LED 2"; }; blue_led: led_2 { gpios = <&gpiob 6 GPIO_INT_ACTIVE_HIGH>; label = "Blue LED"; }; red_led: led_3 { gpios = <&gpiob 7 GPIO_INT_ACTIVE_HIGH>; label = "Red LED"; }; }; gpio_keys { compatible = "gpio-keys"; user_button: button_0 { label = "Push button switch"; gpios = <&gpiob 2 GPIO_INT_ACTIVE_LOW>; }; }; /* These aliases are provided for compatibility with samples */ aliases { led0 = &green_led_0; led1 = &green_led_1; led2 = &blue_led; led3 = &red_led; sw0 = &user_button; }; }; arduino_usart: &usart1 {}; arduino_spi: &spi2 {}; arduino_i2c: &i2c1 {}; &usart1 { current-speed = <115200>; pinctrl-0 = <&usart1_pins_a>; pinctrl-names = "default"; status = "okay"; }; &usart2 { current-speed = <115200>; pinctrl-0 = <&usart2_pins_a>; pinctrl-names = "default"; status = "okay"; }; &spi1 { status = "okay"; }; &spi2 { status = "okay"; }; &i2c1 { status = "okay"; clock-frequency = ; };