1/* SPDX-License-Identifier: Apache-2.0 */ 2 3/dts-v1/; 4 5#include <ti/cc3220sf.dtsi> 6#include "boosterpack_connector.dtsi" 7#include "cc3220sf_launchxl-pinctrl.dtsi" 8#include <zephyr/dt-bindings/input/input-event-codes.h> 9 10/ { 11 model = "TI CC3220SF LaunchXL"; 12 compatible = "ti,cc3220sf-launchxl", "ti,cc3220sf", "ti,cc32xx"; 13 14 aliases { 15 uart-0 = &uart0; 16 uart-1 = &uart1; 17 i2c-0 = &i2c0; 18 led0 = &led0; 19 led1 = &led1; 20 led2 = &led2; 21 /* sw0/1 alias defined for compatibility with samples */ 22 sw0 = &sw2; 23 sw1 = &sw3; 24 watchdog0 = &wdt0; 25 }; 26 27 chosen { 28 zephyr,sram = &sram0; 29 zephyr,flash = &flash1; 30 zephyr,console = &uart0; 31 zephyr,shell-uart = &uart0; 32 }; 33 34 leds { 35 compatible = "gpio-leds"; 36 led0: led_0 { 37 gpios = <&gpioa1 3 GPIO_ACTIVE_HIGH>; 38 label = "Green LED"; 39 }; 40 led1: led_1 { 41 gpios = <&gpioa1 2 GPIO_ACTIVE_HIGH>; 42 label = "Yellow LED"; 43 }; 44 led2: led_2 { 45 gpios = <&gpioa1 1 GPIO_ACTIVE_HIGH>; 46 label = "Red LED"; 47 }; 48 }; 49 50 buttons { 51 /* Push button 2 */ 52 compatible = "gpio-keys"; 53 sw2: button_0 { 54 gpios = <&gpioa2 6 GPIO_ACTIVE_HIGH>; 55 label = "Push button switch 2"; 56 zephyr,code = <INPUT_KEY_0>; 57 }; 58 /* Push button 3 */ 59 sw3: button_1 { 60 gpios = <&gpioa1 5 GPIO_ACTIVE_HIGH>; 61 label = "Push button switch 3"; 62 zephyr,code = <INPUT_KEY_1>; 63 }; 64 }; 65}; 66 67&adc0 { 68 status = "okay"; 69}; 70 71&gpioa0 { 72 status = "okay"; 73}; 74 75&gpioa1 { 76 status = "okay"; 77}; 78 79&gpioa2 { 80 status = "okay"; 81}; 82 83&gpioa3 { 84 status = "okay"; 85}; 86&uart0 { 87 status = "okay"; 88 current-speed = <115200>; 89 pinctrl-0 = <&uart0_default>; 90 pinctrl-names = "default"; 91}; 92 93&i2c0 { 94 status = "okay"; 95 clock-frequency = <I2C_BITRATE_FAST>; 96 pinctrl-0 = <&i2c0_default>; 97 pinctrl-names = "default"; 98}; 99 100&wdt0 { 101 status = "okay"; 102}; 103