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