| /* |
| * Copyright (c) 2024 Zhang Xingtao <zhxt@live.cn> |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| #include <espressif/esp32s3/esp32s3_wroom_n16r8.dtsi> |
| #include <espressif/partitions_0x0_amp.dtsi> |
| #include "m5stack_cores3-pinctrl.dtsi" |
| #include "m5stack_mbus_connectors.dtsi" |
| #include "grove_connectors.dtsi" |
| |
| / { |
| 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; |
| }; |
| |
| aliases { |
| uart-0 = &uart0; |
| uart-1 = &uart1; |
| uart-2 = &uart2; |
| i2c-0 = &i2c0; |
| i2c-1 = &i2c1; |
| watchdog0 = &wdt0; |
| rtc = &bm8563_rtc; |
| sdhc0 = &sd0; |
| }; |
| }; |
| |
| &usb_serial { |
| status = "okay"; |
| }; |
| |
| &uart0 { |
| status = "okay"; |
| current-speed = <115200>; |
| pinctrl-0 = <&uart0_default>; |
| pinctrl-names = "default"; |
| }; |
| |
| &uart1 { |
| status = "okay"; |
| current-speed = <115200>; |
| pinctrl-0 = <&uart1_default>; |
| pinctrl-names = "default"; |
| }; |
| |
| &uart2 { |
| status = "disabled"; |
| current-speed = <115200>; |
| pinctrl-0 = <&uart2_default>; |
| pinctrl-names = "default"; |
| }; |
| |
| &gpio0 { |
| status = "okay"; |
| }; |
| |
| &gpio1 { |
| status = "okay"; |
| }; |
| |
| &i2c0 { |
| status = "okay"; |
| clock-frequency = <I2C_BITRATE_STANDARD>; |
| pinctrl-0 = <&i2c0_default>; |
| pinctrl-names = "default"; |
| |
| bm8563_rtc: bm8563@51 { |
| compatible = "nxp,pcf8563"; |
| reg = <0x51>; |
| status = "okay"; |
| }; |
| |
| aw9523b@58 { |
| compatible = "awinic,aw9523b"; |
| reg = <0x58>; |
| status = "okay"; |
| |
| aw9523b_gpio: gpio { |
| compatible = "awinic,aw9523b-gpio"; |
| gpio-controller; |
| #gpio-cells = <2>; |
| port0-push-pull; |
| int-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; |
| }; |
| }; |
| }; |
| |
| &i2c1 { |
| status = "okay"; |
| clock-frequency = <I2C_BITRATE_STANDARD>; |
| pinctrl-0 = <&i2c1_default>; |
| pinctrl-names = "default"; |
| }; |
| |
| &spi2 { |
| status = "okay"; |
| #address-cells = <1>; |
| #size-cells = <0>; |
| 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 { |
| status = "disabled"; |
| pinctrl-0 = <&twai_default>; |
| pinctrl-names = "default"; |
| }; |
| |
| &wdt0 { |
| status = "okay"; |
| }; |
| |
| &trng0 { |
| status = "okay"; |
| }; |
| |
| &esp32_bt_hci { |
| status = "okay"; |
| }; |