Skip to content

Commit 6f89f41

Browse files
geertubrgl
authored andcommitted
dt-bindings: at24: Rework special case compatible handling
Sort the compatible values for the special cases by EEPROM size, like is done for the normal cases. Combine entries with a common fallback using enums, to compact the table. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 92e1764 commit 6f89f41

File tree

1 file changed

+11
-14
lines changed
  • Documentation/devicetree/bindings/eeprom

1 file changed

+11
-14
lines changed

Documentation/devicetree/bindings/eeprom/at24.yaml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,20 @@ properties:
9595
# These are special cases that don't conform to the above pattern.
9696
# Each requires a standard at24 model as fallback.
9797
- items:
98-
- const: nxp,se97b
99-
- const: atmel,24c02
98+
- enum:
99+
- rohm,br24g01
100+
- rohm,br24t01
101+
- const: atmel,24c01
100102
- items:
101-
- const: onnn,cat24c04
102-
- const: atmel,24c04
103+
- enum:
104+
- nxp,se97b
105+
- renesas,r1ex24002
106+
- const: atmel,24c02
103107
- items:
104-
- const: onnn,cat24c05
108+
- enum:
109+
- onnn,cat24c04
110+
- onnn,cat24c05
105111
- const: atmel,24c04
106-
- items:
107-
- const: renesas,r1ex24002
108-
- const: atmel,24c02
109112
- items:
110113
- const: renesas,r1ex24016
111114
- const: atmel,24c16
@@ -115,12 +118,6 @@ properties:
115118
- items:
116119
- const: renesas,r1ex24128
117120
- const: atmel,24c128
118-
- items:
119-
- const: rohm,br24g01
120-
- const: atmel,24c01
121-
- items:
122-
- const: rohm,br24t01
123-
- const: atmel,24c01
124121

125122
label:
126123
description: Descriptive name of the EEPROM.

0 commit comments

Comments
 (0)