Skip to content

Commit dfbdff5

Browse files
yishai1999kartben
authored andcommitted
boards: silabs: xg23_rb4210a: added ls013b7dh03 display
Added the ls013b7dh03 display to the silabs xg23_rb4210a board Signed-off-by: Yishai Jaffe <[email protected]>
1 parent 027e19f commit dfbdff5

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

boards/silabs/radio_boards/xg23_rb4210a/doc/index.rst

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Hardware
2222
- Operation frequency: 868-915 MHz
2323
- Crystals for LFXO (32.768 kHz) and HFXO (39 MHz).
2424
- Silicon Labs Si7021 relative humidity and temperature sensor
25+
- Low-power 128x128 pixel Memory LCD
2526

2627
For more information about the EFR32ZG23 SoC and BRD4210A board, refer to these
2728
documents:
@@ -88,11 +89,19 @@ means Pin number 2 on PORTA, as used in the board's datasheets and manuals.
8889
+-------+-------------+-------------------------------------+
8990
| PB3 | GPIO | Push Button 1 |
9091
+-------+-------------+-------------------------------------+
92+
| PC1 | EUSART1_TX | Display SPI MOSI |
93+
+-------+-------------+-------------------------------------+
94+
| PC3 | EUSART1_CLK | Display SPI Clock |
95+
+-------+-------------+-------------------------------------+
9196
| PC5 | I2C0_SCL | Si7021 I2C Clock |
9297
+-------+-------------+-------------------------------------+
98+
| PC6 | GPIO | Display COM Inversion |
99+
+-------+-------------+-------------------------------------+
93100
| PC7 | I2C0_SDA | Si7021 I2C Data |
94101
+-------+-------------+-------------------------------------+
95-
| PC9 | GPIO | Si7021 Enable |
102+
| PC8 | GPIO | Display SPI Chip Select |
103+
+-------+-------------+-------------------------------------+
104+
| PC9 | GPIO | Display/Si7021 Enable |
96105
+-------+-------------+-------------------------------------+
97106
| PD3 | GPIO | LED1 |
98107
+-------+-------------+-------------------------------------+

boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@
2020
};
2121
};
2222

23+
eusart1_default: eusart1_default {
24+
group0 {
25+
pins = <EUSART1_TX_PC1>, <EUSART1_SCLK_PC3>;
26+
drive-push-pull;
27+
output-high;
28+
};
29+
};
30+
2331
i2c0_default: i2c0_default {
2432
group0 {
2533
pins = <I2C0_SCL_PC5>, <I2C0_SDA_PC7>;

boards/silabs/radio_boards/xg23_rb4210a/xg23_rb4210a.dts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
zephyr,sram = &sram0;
2222
zephyr,flash = &flash0;
2323
zephyr,code-partition = &slot0_partition;
24+
zephyr,display = &ls0xx_ls013b7dh03;
2425
};
2526

2627
aliases {
@@ -124,6 +125,26 @@
124125
status = "okay";
125126
};
126127

128+
&eusart1 {
129+
status = "okay";
130+
#address-cells = <1>;
131+
#size-cells = <0>;
132+
pinctrl-0 = <&eusart1_default>;
133+
pinctrl-names = "default";
134+
cs-gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>;
135+
136+
ls0xx_ls013b7dh03: ls0xx@0 {
137+
compatible = "sharp,ls0xx";
138+
spi-max-frequency = <DT_FREQ_K(1100)>;
139+
reg = <0>;
140+
width = <128>;
141+
height = <128>;
142+
extcomin-gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
143+
extcomin-frequency = <60>;
144+
disp-en-gpios = <&gpioc 9 GPIO_ACTIVE_HIGH>;
145+
};
146+
};
147+
127148
&i2c0 {
128149
pinctrl-0 = <&i2c0_default>;
129150
pinctrl-names = "default";

0 commit comments

Comments
 (0)