|
| 1 | +/* |
| 2 | + * Copyright (c) 2022 Jason Kridner, BeagleBoard.org Foundation |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + */ |
| 6 | + |
| 7 | +/dts-v1/; |
| 8 | + |
| 9 | +#include <ti/cc1352r7.dtsi> |
| 10 | +#include "beagleplay-cc1352p7-pinctrl.dtsi" |
| 11 | + |
| 12 | +/ { |
| 13 | + model = "beagleplay"; |
| 14 | + compatible = "beagle,beagleplay-cc1352p7"; |
| 15 | + |
| 16 | + aliases { |
| 17 | + led0 = &led0; |
| 18 | + led1 = &led1; |
| 19 | + }; |
| 20 | + |
| 21 | + chosen { |
| 22 | + zephyr,sram = &sram0; |
| 23 | + zephyr,console = &uart0; |
| 24 | + zephyr,shell-uart = &uart0; |
| 25 | + zephyr,flash = &flash0; |
| 26 | + zephyr,ieee802154 = &ieee802154g; |
| 27 | + }; |
| 28 | + |
| 29 | + leds: leds { |
| 30 | + compatible = "gpio-leds"; |
| 31 | + led0: led_0 { |
| 32 | + gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
| 33 | + label = "LED1"; |
| 34 | + }; |
| 35 | + |
| 36 | + led1: led_1 { |
| 37 | + gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; |
| 38 | + label = "LED2"; |
| 39 | + }; |
| 40 | + }; |
| 41 | + |
| 42 | + /** |
| 43 | + * The BeaglePlay cc1352 has an on-board antenna switch (SKY13317-373LF) used to |
| 44 | + * select the appropriate RF signal port based on the currently-used PHY. |
| 45 | + * |
| 46 | + * Truth table: |
| 47 | + * |
| 48 | + * Path DIO29 DIO30 |
| 49 | + * =========== ===== ===== |
| 50 | + * Off 0 0 |
| 51 | + * Sub-1 GHz 0 1 // DIO30 mux to IOC_PORT_RFC_GPO0 for auto |
| 52 | + * 20 dBm TX 1 0 // DIO29 mux to IOC_PORT_RFC_GPO3 for auto |
| 53 | + */ |
| 54 | + antenna_mux0: antenna_mux0 { |
| 55 | + compatible = "skyworks,sky13317"; |
| 56 | + status = "okay"; |
| 57 | + gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>, <&gpio0 30 GPIO_ACTIVE_HIGH>; |
| 58 | + pinctrl-0 = <&board_ant_tx_pa_off &board_ant_subg_off>; |
| 59 | + pinctrl-1 = <&board_ant_tx_pa_off &board_ant_subg_on>; |
| 60 | + pinctrl-2 = <&board_ant_tx_pa_on &board_ant_subg_on>; |
| 61 | + pinctrl-names = "default", "ant_subg", "ant_subg_pa"; |
| 62 | + }; |
| 63 | +}; |
| 64 | + |
| 65 | +&cpu0 { |
| 66 | + clock-frequency = <48000000>; |
| 67 | + cpu-power-states = <&idle &standby>; |
| 68 | +}; |
| 69 | + |
| 70 | +&trng { |
| 71 | + status = "okay"; |
| 72 | +}; |
| 73 | + |
| 74 | +&gpio0 { |
| 75 | + status = "okay"; |
| 76 | +}; |
| 77 | + |
| 78 | +&uart0 { |
| 79 | + status = "okay"; |
| 80 | + current-speed = <115200>; |
| 81 | + pinctrl-0 = <&uart0_rx_default &uart0_tx_default>; |
| 82 | + pinctrl-names = "default"; |
| 83 | +}; |
| 84 | + |
| 85 | +&rtc { |
| 86 | + status = "okay"; |
| 87 | +}; |
| 88 | + |
| 89 | +&ieee802154 { |
| 90 | + status = "okay"; |
| 91 | +}; |
| 92 | + |
| 93 | +&ieee802154g { |
| 94 | + status = "okay"; |
| 95 | +}; |
0 commit comments