boards: m5stack: cores3: Add TF-Card slot configuration

Adding TF-Card slot configuration.
Adding SPI CS configurations. Reserving id-0 for TFT.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
This commit is contained in:
TOKITA Hiroshi 2024-11-04 23:45:52 +09:00 committed by Benjamin Cabé
parent 815d669971
commit e4dd3baa66

View file

@ -29,6 +29,7 @@
i2c-1 = &i2c1;
watchdog0 = &wdt0;
rtc = &bm8563_rtc;
sdhc0 = &sd0;
};
};
@ -106,6 +107,22 @@
status = "okay";
pinctrl-0 = <&spim2_default>;
pinctrl-names = "default";
clock-frequency = <20000000>;
cs-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>, /* LCD */
<&gpio0 4 GPIO_ACTIVE_LOW>; /* TF-CARD */
sd0: sd@1 {
compatible = "zephyr,sdhc-spi-slot";
reg = <1>;
status = "okay";
spi-max-frequency = <20000000>;
mmc {
compatible = "zephyr,sdmmc-disk";
disk-name = "SD";
status = "okay";
};
};
};
&twai {