/* * Copyright (c) 2024, Nicolas Goualard * * SPDX-License-Identifier: Apache-2.0 */ #include #include / { chosen { zephyr,display = &gc9a01_xiao_round_display; zephyr,touch = &chsc6x_xiao_round_display; }; vbatt { compatible = "voltage-divider"; io-channels = <&xiao_adc 0>; output-ohms = <470000>; full-ohms = <940000>; }; lvgl_pointer { compatible = "zephyr,lvgl-pointer-input"; input = <&chsc6x_xiao_round_display>; }; aliases { rtc = &pcf8563_xiao_round_display; }; xiao_round_display_mipi_dbi { compatible = "zephyr,mipi-dbi-spi"; spi-dev = <&xiao_spi>; dc-gpios = <&xiao_d 3 GPIO_ACTIVE_HIGH>; write-only; #address-cells = <1>; #size-cells = <0>; gc9a01_xiao_round_display: gc9a01@0 { status = "okay"; compatible = "galaxycore,gc9x01x"; reg = <0>; mipi-max-frequency = ; pixel-format = ; width = <240>; height = <240>; display-inversion; }; }; }; &xiao_adc { status = "okay"; }; /* * xiao_serial uses pins D6 and D7 of the Xiao, which are used respectively to * control the screen backlight and as touch controller interrupt. */ &xiao_serial { status = "disabled"; }; &xiao_i2c { clock-frequency = < I2C_BITRATE_FAST >; pcf8563_xiao_round_display: pcf8563@51 { status = "okay"; compatible = "nxp,pcf8563"; reg = <0x51>; }; chsc6x_xiao_round_display: chsc6x@2e { status = "okay"; compatible = "chipsemi,chsc6x"; reg = <0x2e>; irq-gpios = <&xiao_d 7 GPIO_ACTIVE_LOW>; }; }; &xiao_spi { status = "okay"; cs-gpios = <&xiao_d 1 GPIO_ACTIVE_LOW>, <&xiao_d 2 GPIO_ACTIVE_LOW>; sdhc_xiao_round_display: sdhc@1 { compatible = "zephyr,sdhc-spi-slot"; reg = <1>; status = "okay"; mmc { compatible = "zephyr,sdmmc-disk"; disk-name = "SD"; status = "okay"; }; spi-max-frequency = ; }; };