/dts-v1/; #include #include #include #include #include #include #include #include #include #include #include #include / { compatible = "root"; model = "CYD 2432S022C"; wifi0 { compatible = "espressif,esp32-wifi-pinned"; }; gpio0 { compatible = "espressif,esp32-gpio"; gpio-count = <40>; }; i2c0 { compatible = "espressif,esp32-i2c-master"; port = ; clock-frequency = <400000>; pin-sda = <&gpio0 21 GPIO_FLAG_NONE>; pin-scl = <&gpio0 22 GPIO_FLAG_NONE>; touch { compatible = "hynitron,cst816s"; reg = <0x15>; x-max = <240>; y-max = <320>; }; }; display_backlight_pwm { compatible = "espressif,esp32-pwm-ledc"; pin = <&gpio0 0 GPIO_FLAG_NONE>; period-ns = <33333>; ledc-timer = <0>; ledc-channel = <0>; }; display_backlight { compatible = "pwm-backlight"; // Off by default so display power-on won't show the screen from before the last power loss. // The display backlight is turned on during the boot process. status = "disabled"; pwm = <&display_backlight_pwm>; }; display { compatible = "sitronix,st7789-soft-i8080"; horizontal-resolution = <240>; vertical-resolution = <320>; pin-d0 = <&gpio0 15 GPIO_FLAG_NONE>; pin-d1 = <&gpio0 13 GPIO_FLAG_NONE>; pin-d2 = <&gpio0 12 GPIO_FLAG_NONE>; pin-d3 = <&gpio0 14 GPIO_FLAG_NONE>; pin-d4 = <&gpio0 27 GPIO_FLAG_NONE>; pin-d5 = <&gpio0 25 GPIO_FLAG_NONE>; pin-d6 = <&gpio0 33 GPIO_FLAG_NONE>; pin-d7 = <&gpio0 32 GPIO_FLAG_NONE>; pin-cs = <&gpio0 17 GPIO_FLAG_NONE>; pin-dc = <&gpio0 16 GPIO_FLAG_NONE>; pin-wr = <&gpio0 4 GPIO_FLAG_NONE>; pin-rd = <&gpio0 2 GPIO_FLAG_NONE>; backlight = <&display_backlight>; }; spi1 { compatible = "espressif,esp32-spi"; host = ; cs-gpios = <&gpio0 5 GPIO_FLAG_NONE>; pin-mosi = <&gpio0 23 GPIO_FLAG_NONE>; pin-miso = <&gpio0 19 GPIO_FLAG_NONE>; pin-sclk = <&gpio0 18 GPIO_FLAG_NONE>; miso-pull-up; sdcard@0 { compatible = "espressif,esp32-sdspi"; frequency-khz = <20000>; }; }; speaker { compatible = "espressif,esp32-dac-speaker"; pin = <&gpio0 26 GPIO_FLAG_NONE>; sample-rate = <16000>; }; };