Skip to content

Commit c82d66f

Browse files
DhruvaG2000carlescufi
authored andcommitted
boards: cc3220sf: add bosterpack_connector.dtsi
This can be used in DTOs The boosterpack_connector.dtsi is an attempt to add something similar to the arduino_r3_connectors that make using DT overlays with these boards far easier and cleaner. This can probably also be expanded to other CC32x TI launchpads having similar layouts. Referred swru465, ie. cc3220 TRM Table 5-14 and compared with launchpad pinout. The numbering is done from 0...40 as per in the boosterpack pinout. The pins like VCC/ GND have been skipped from the numbering. Also the non-default pins are skipped. Also add gpio status ok: This ensures that all the gpios are enabled by default Signed-off-by: Dhruva Gole <[email protected]>
1 parent 23c9f7b commit c82d66f

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright (c) 2022 Dhruva Gole
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
boosterpack_header: connector {
9+
compatible = "ti,boosterpack-header";
10+
#gpio-cells = <2>;
11+
gpio-map = <4 0 &gpioa1 4 0>, /* GPIO_12 */
12+
<5 0 &gpioa0 6 0>, /* GPIO_06 */
13+
<7 0 &gpioa1 6 0>, /* GPIO_14 */
14+
<9 0 &gpioa1 2 0>, /* I2C_SCL | YELLOW_LED */
15+
<10 0 &gpioa1 3 0>, /* I2C_SDA | GREEN_LED */
16+
<11 0 &gpioa2 6 0>, /* GPIO_22 */
17+
<12 0 &gpioa0 1 0>, /* GPIO_01 */
18+
<13 0 &gpioa3 1 0>, /* GPIO_25 */
19+
<14 0 &gpioa1 7 0>, /* GPIO_15 */
20+
<15 0 &gpioa1 3 0>, /* GPIO_16 */
21+
<17 0 &gpioa3 7 0>, /* GPIO_31 */
22+
<18 0 &gpioa2 3 0>, /* GPIO_17 */
23+
<19 0 &gpioa3 4 0>, /* GPIO_28 */
24+
<23 0 &gpioa0 2 0>, /* GPIO_02 | AIN0 */
25+
<24 0 &gpioa0 5 0>, /* GPIO_05 | AIN3 */
26+
<25 0 &gpioa1 3 0>, /* GPIO_03 | AIN1 */
27+
<26 0 &gpioa0 4 0>, /* GPIO_04 | AIN2 */
28+
<27 0 &gpioa1 0 0>, /* GPIO_08 */
29+
<28 0 &gpioa3 6 0>, /* GPIO_30 */
30+
<29 0 &gpioa1 1 0>, /* GPIO_09 | RED_LED | I2S_DOUT*/
31+
<30 0 &gpioa0 0 0>, /* GPIO_00 */
32+
<31 0 &gpioa3 0 0>, /* GPIO_24 */
33+
<32 0 &gpioa2 7 0>; /* GPIO_23 */
34+
};
35+
};
36+
37+
boosterpack_i2c: &i2c0 {};
38+
boosterpack_serial: &uart0 {};

boards/arm/cc3220sf_launchxl/cc3220sf_launchxl.dts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/dts-v1/;
44

55
#include <ti/cc3220sf.dtsi>
6+
#include "boosterpack_connector.dtsi"
67

78
/ {
89
model = "TI CC3220SF LaunchXL";
@@ -63,6 +64,21 @@
6364
status = "okay";
6465
};
6566

67+
&gpioa0 {
68+
status = "okay";
69+
};
70+
71+
&gpioa1 {
72+
status = "okay";
73+
};
74+
75+
&gpioa2 {
76+
status = "okay";
77+
};
78+
79+
&gpioa3 {
80+
status = "okay";
81+
};
6682
&uart0 {
6783
status = "okay";
6884
current-speed = <115200>;

0 commit comments

Comments
 (0)