Skip to content

Commit c565c2c

Browse files
danieldegrassekartben
authored andcommitted
drivers: mipi-dbi: use string for mipi-mode property
Use a string for the mipi-mode property over an integer value, as this significantly improves the readability of the MIPI DBI device binding. Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent d6b8912 commit c565c2c

File tree

23 files changed

+36
-43
lines changed

23 files changed

+36
-43
lines changed

boards/adi/max32662evkit/max32662evkit.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
st7735: st7735@0 {
6262
compatible = "sitronix,st7735r";
6363
mipi-max-frequency = <DT_FREQ_M(6)>;
64-
mipi-mode = <MIPI_DBI_MODE_SPI_3WIRE>;
64+
mipi-mode = "MIPI_DBI_MODE_SPI_3WIRE";
6565

6666
reg = <0>;
6767
width = <130>;

boards/adi/max32672evkit/max32672evkit.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
st7735: st7735@0 {
6767
compatible = "sitronix,st7735r";
6868
mipi-max-frequency = <DT_FREQ_M(6)>;
69-
mipi-mode = <MIPI_DBI_MODE_SPI_3WIRE>;
69+
mipi-mode = "MIPI_DBI_MODE_SPI_3WIRE";
7070

7171
reg = <0>;
7272
width = <130>;

boards/adi/max32680evkit/max32680evkit_max32680_m4.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
st7735: st7735@0 {
7373
compatible = "sitronix,st7735r";
7474
mipi-max-frequency = <DT_FREQ_M(6)>;
75-
mipi-mode = <MIPI_DBI_MODE_SPI_3WIRE>;
75+
mipi-mode = "MIPI_DBI_MODE_SPI_3WIRE";
7676

7777
reg = <0>;
7878
width = <130>;

boards/adi/max32690evkit/max32690evkit_max32690_m4.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
st7735: st7735@0 {
6464
compatible = "sitronix,st7735r";
6565
mipi-max-frequency = <DT_FREQ_M(6)>;
66-
mipi-mode = <MIPI_DBI_MODE_SPI_3WIRE>;
66+
mipi-mode = "MIPI_DBI_MODE_SPI_3WIRE";
6767

6868
reg = <0>;
6969
width = <130>;

boards/espressif/esp32s3_eye/esp32s3_eye_procpu.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
110110
ram-param = [00 F0];
111111
rgb-param = [CD 08 14];
112-
mipi-mode = <MIPI_DBI_MODE_SPI_4WIRE>;
112+
mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE";
113113
};
114114
};
115115
};

boards/m5stack/m5stack_atoms3/m5stack_atoms3_procpu.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
nvgam-param = [d0 00 02 07 0a 28 31 54 47 0e 1c 17 1b 1e];
8686
ram-param = [00 E0];
8787
rgb-param = [40 02 14];
88-
mipi-mode = <MIPI_DBI_MODE_SPI_4WIRE>;
88+
mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE";
8989
};
9090

9191
};

boards/m5stack/m5stickc_plus/m5stickc_plus_procpu.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
nvgam-param = [d0 00 02 07 0a 28 31 54 47 0e 1c 17 1b 1e];
9797
ram-param = [00 F0];
9898
rgb-param = [40 02 14];
99-
mipi-mode = <MIPI_DBI_MODE_SPI_4WIRE>;
99+
mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE";
100100
};
101101
};
102102
};

boards/pine64/pinetime_devkit0/pinetime_devkit0.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
nvgam-param = [D0 04 0C 11 13 2C 3F 44 51 2F 1F 1F 20 23];
113113
ram-param = [00 F0];
114114
rgb-param = [CD 08 14];
115-
mipi-mode = <MIPI_DBI_MODE_SPI_4WIRE>;
115+
mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE";
116116
};
117117
};
118118
};

boards/shields/lcd_par_s035/boards/rd_rw612_bga.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
};
6565

6666
&st7796s {
67-
mipi-mode = <MIPI_DBI_MODE_8080_BUS_8_BIT>;
67+
mipi-mode = "MIPI_DBI_MODE_8080_BUS_8_BIT";
6868
/*
6969
* Display supports minimum write cycle time of 66ns. This
7070
* means we can clock the LCDIC module at 30MHz, as

boards/shields/lcd_par_s035/lcd_par_s035_8080.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
reg = <0>;
4040
/* Baud rate on each pin is 1MHz */
4141
mipi-max-frequency = <10000000>;
42-
mipi-mode = <MIPI_DBI_MODE_8080_BUS_16_BIT>;
42+
mipi-mode = "MIPI_DBI_MODE_8080_BUS_16_BIT";
4343
height = <320>;
4444
width = <480>;
4545
invert-mode = "1-dot";

0 commit comments

Comments
 (0)