Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions boards/m5stack/m5stack_cores3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ if BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
config INPUT
default y

config MIPI_DBI_SPI_3WIRE
default y

endif # BOARD_M5STACK_CORES3_ESP32S3_PROCPU || BOARD_M5STACK_CORES3_ESP32S3_PROCPU_SE
13 changes: 12 additions & 1 deletion boards/m5stack/m5stack_cores3/m5stack_cores3-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,18 @@
spim2_default: spim2_default {
group1 {
pinmux = <SPIM2_MISO_GPIO35>,
<SPIM2_SCLK_GPIO36>;
<SPIM2_SCLK_GPIO36>;

Check failure on line 51 in boards/m5stack/m5stack_cores3/m5stack_cores3-pinctrl.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3-pinctrl.dtsi:51 code indent should use tabs where possible
};

group2 {
pinmux = <SPIM2_MOSI_GPIO37>;
output-low;
};
};

spim2_ili9342c_3wire: spim2_ili9342c_3wire {
group1 {
pinmux = <SPIM2_SCLK_GPIO36>;
};

group2 {
Expand Down
57 changes: 44 additions & 13 deletions boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
#include "m5stack_cores3-pinctrl.dtsi"
#include "m5stack_mbus_connectors.dtsi"
#include "grove_connectors.dtsi"
#include <zephyr/dt-bindings/display/ili9xxx.h>
#include <zephyr/dt-bindings/mipi_dbi/mipi_dbi.h>
#include <zephyr/dt-bindings/spi/spi.h>

/ {
chosen {
zephyr,sram = &sram1;
zephyr,console = &usb_serial;
zephyr,shell-uart = &usb_serial;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,rtc = &bm8563_rtc;
zephyr,bt-hci = &esp32_bt_hci;
zephyr,touch = &ft6336_touch;
};
chosen {

Check warning on line 17 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:17 please, no spaces at the start of a line

Check failure on line 17 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:17 code indent should use tabs where possible
zephyr,sram = &sram1;

Check warning on line 18 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:18 please, no spaces at the start of a line

Check failure on line 18 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:18 code indent should use tabs where possible
zephyr,console = &usb_serial;

Check warning on line 19 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:19 please, no spaces at the start of a line

Check failure on line 19 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:19 code indent should use tabs where possible
zephyr,shell-uart = &usb_serial;

Check warning on line 20 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:20 please, no spaces at the start of a line

Check failure on line 20 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:20 code indent should use tabs where possible
zephyr,flash = &flash0;

Check warning on line 21 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:21 please, no spaces at the start of a line

Check failure on line 21 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:21 code indent should use tabs where possible
zephyr,code-partition = &slot0_partition;

Check warning on line 22 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:22 please, no spaces at the start of a line

Check failure on line 22 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:22 code indent should use tabs where possible
zephyr,rtc = &bm8563_rtc;

Check warning on line 23 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:23 please, no spaces at the start of a line

Check failure on line 23 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:23 code indent should use tabs where possible
zephyr,bt-hci = &esp32_bt_hci;

Check warning on line 24 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:24 please, no spaces at the start of a line

Check failure on line 24 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:24 code indent should use tabs where possible
zephyr,touch = &ft6336_touch;

Check warning on line 25 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:25 please, no spaces at the start of a line

Check failure on line 25 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:25 code indent should use tabs where possible
zephyr,display = &ili9342c;

Check warning on line 26 in boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

boards/m5stack/m5stack_cores3/m5stack_cores3_procpu_common.dtsi:26 please, no spaces at the start of a line
};

aliases {
uart-0 = &uart0;
Expand All @@ -35,9 +39,36 @@
fuel-gauge0 = &fuel_gauge;
};

lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&ft6336_touch>;
lvgl_pointer {
compatible = "zephyr,lvgl-pointer-input";
input = <&ft6336_touch>;
};

mipi_dbi {
compatible = "zephyr,mipi-dbi-spi";
spi-dev = <&spi2>;
write-only;
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-0 = <&spim2_ili9342c_3wire>;
pinctrl-1 = <&spim2_default>;
pinctrl-names = "default", "sleep";

ili9342c: ili9342c@0 {
compatible = "ilitek,ili9342c";
reg = <0>;
status = "okay";
mipi-max-frequency = <20000000>;
duplex = <SPI_HALF_DUPLEX>;
mipi-mode = "MIPI_DBI_MODE_SPI_3WIRE";
vin-supply = <&vcc_bl>;
pixel-format = <ILI9XXX_PIXEL_FORMAT_RGB565>;
display-inversion;
width = <320>;
height = <240>;
rotation = <0>;
};
};
};

Expand Down
Loading
Loading