101 lines
1.6 KiB
Plaintext
101 lines
1.6 KiB
Plaintext
/*
|
|
* Copyright (c) 2019 Brett Witherspoon
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
|
|
#include <ti/cc2652r.dtsi>
|
|
#include "boosterpack_connector.dtsi"
|
|
#include "cc26x2r1_launchxl-pinctrl.dtsi"
|
|
|
|
#define BTN_GPIO_FLAGS (GPIO_ACTIVE_LOW | GPIO_PULL_UP)
|
|
|
|
/ {
|
|
model = "TI CC26x2R1 LaunchXL";
|
|
compatible = "ti,launchxl-cc26x2r1";
|
|
|
|
aliases {
|
|
led0 = &led0;
|
|
led1 = &led1;
|
|
sw0 = &btn0;
|
|
sw1 = &btn1;
|
|
watchdog0 = &wdt0;
|
|
};
|
|
|
|
chosen {
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
zephyr,console = &uart0;
|
|
zephyr,shell-uart = &uart0;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
led0: led_0 {
|
|
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
|
|
label = "Green LED";
|
|
};
|
|
led1: led_1 {
|
|
gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
|
|
label = "Red LED";
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
btn0: btn_0 {
|
|
gpios = <&gpio0 13 BTN_GPIO_FLAGS>;
|
|
label = "Push button 1";
|
|
};
|
|
btn1: btn_1 {
|
|
gpios = <&gpio0 14 BTN_GPIO_FLAGS>;
|
|
label = "Push button 2";
|
|
};
|
|
};
|
|
};
|
|
|
|
&cpu0 {
|
|
clock-frequency = <48000000>;
|
|
};
|
|
|
|
&trng {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&adc0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&uart0_rx_default &uart0_tx_default>;
|
|
pinctrl-names = "default";
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "okay";
|
|
pinctrl-0 = <&i2c0_scl_default &i2c0_sda_default>;
|
|
pinctrl-1 = <&i2c0_scl_sleep &i2c0_sda_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
pinctrl-0 = <&spi0_sck_default &spi0_mosi_default
|
|
&spi0_miso_default &spi0_cs_default>;
|
|
pinctrl-names = "default";
|
|
|
|
cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
&wdt0 {
|
|
status = "okay";
|
|
};
|