1/* 2 * Copyright (c) 2025 Linaro Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/ { 8 zephyr,user { 9 io-channels = <&adc0 9>; 10 }; 11 12 aliases { 13 /delete-property/ led-strip; 14 }; 15 16 chosen { 17 zephyr,display = &st7789v; 18 }; 19 20 mipi_dbi { 21 compatible = "zephyr,mipi-dbi-spi"; 22 spi-dev = <&spi2>; 23 dc-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; 24 reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; 25 write-only; 26 #address-cells = <1>; 27 #size-cells = <0>; 28 29 st7789v: st7789v@0 { 30 compatible = "sitronix,st7789v"; 31 reg = <0>; 32 mipi-max-frequency = <20000000>; 33 34 width = <135>; 35 height = <240>; 36 x-offset = <52>; 37 y-offset = <40>; 38 39 vcom = <0x28>; 40 gctrl = <0x35>; 41 vrhs = <0x10>; 42 vdvs = <0x20>; 43 mdac = <0x00>; 44 gamma = <0x01>; 45 colmod = <0x55>; 46 lcm = <0x2c>; 47 porch-param = [0c 0c 00 33 33]; 48 cmd2en-param = [5a 69 02 00]; 49 pwctrl1-param = [a4 a1]; 50 pvgam-param = [d0 00 02 07 0a 28 32 44 42 06 0e 12 14 17]; 51 nvgam-param = [d0 00 02 07 0a 28 31 54 47 0e 1c 17 1b 1e]; 52 ram-param = [00 F0]; 53 rgb-param = [40 02 14]; 54 mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE"; 55 }; 56 }; 57}; 58 59/delete-node/ &status_rgb_led; 60 61&pinctrl { 62 spim2_default: spim2_default { 63 group1 { 64 pinmux = <SPIM2_SCLK_GPIO36>, 65 <SPIM2_CSEL_GPIO37>; 66 }; 67 68 group2 { 69 pinmux = <SPIM2_MOSI_GPIO35>; 70 output-low; 71 }; 72 }; 73 74 spim3_default: spim3_default { 75 group1 { 76 pinmux = <SPIM3_SCLK_GPIO40>, 77 <SPIM3_MISO_GPIO39>; 78 }; 79 80 group2 { 81 pinmux = <SPIM3_MOSI_GPIO14>; 82 output-low; 83 }; 84 }; 85 86 i2c1_default: i2c1_default { 87 group1 { 88 pinmux = <I2C1_SDA_GPIO1>, 89 <I2C1_SCL_GPIO2>; 90 bias-pull-up; 91 drive-open-drain; 92 output-high; 93 }; 94 }; 95}; 96 97&adc0 { 98 status = "okay"; 99 #address-cells = <1>; 100 #size-cells = <0>; 101 102 channel@9 { 103 reg = <9>; 104 zephyr,gain = "ADC_GAIN_1_4"; 105 zephyr,reference = "ADC_REF_INTERNAL"; 106 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; 107 zephyr,resolution = <12>; 108 }; 109}; 110 111&spi3 { 112 status = "okay"; 113 #address-cells = <1>; 114 #size-cells = <0>; 115 status = "okay"; 116 pinctrl-0 = <&spim3_default>; 117 pinctrl-names = "default"; 118 clock-frequency = <25000000>; 119 cs-gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; /* TF-CARD */ 120 121 sd0: sd@0 { 122 compatible = "zephyr,sdhc-spi-slot"; 123 reg = <0>; 124 status = "okay"; 125 spi-max-frequency = <25000000>; 126 127 mmc { 128 compatible = "zephyr,sdmmc-disk"; 129 disk-name = "SD"; 130 status = "okay"; 131 }; 132 }; 133}; 134 135&gpio1 { 136 status = "okay"; 137 138 lcd-backlight { 139 gpio-hog; 140 gpios = <6 GPIO_ACTIVE_HIGH>; 141 output-high; 142 }; 143}; 144