xref: /linux/Documentation/devicetree/bindings/misc/idt,89hpesx.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1*63deeba6SRob Herring# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*63deeba6SRob Herring%YAML 1.2
3*63deeba6SRob Herring---
4*63deeba6SRob Herring$id: http://devicetree.org/schemas/misc/idt,89hpesx.yaml#
5*63deeba6SRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml#
6*63deeba6SRob Herring
7*63deeba6SRob Herringtitle: EEPROM / CSR SMBus-slave interface of IDT 89HPESx devices
8*63deeba6SRob Herring
9*63deeba6SRob Herringmaintainers:
10*63deeba6SRob Herring  - Serge Semin <fancer.lancer@gmail.com>
11*63deeba6SRob Herring
12*63deeba6SRob Herringselect:
13*63deeba6SRob Herring  properties:
14*63deeba6SRob Herring    compatible:
15*63deeba6SRob Herring      contains:
16*63deeba6SRob Herring        pattern: '^idt,89hpes'
17*63deeba6SRob Herring  required:
18*63deeba6SRob Herring    - compatible
19*63deeba6SRob Herring
20*63deeba6SRob Herringproperties:
21*63deeba6SRob Herring  compatible:
22*63deeba6SRob Herring    oneOf:
23*63deeba6SRob Herring      - pattern: '^idt,89hpes(8nt2|12nt3|12n3a?|24n3a?|(12|24)t3g2|4t4g2|10t4g2|[56]t5|8t5a?)$'
24*63deeba6SRob Herring      - pattern: '^idt,89hpes(6t6g2|16t7|(24t6|32t8|48t12|16t4a?)(g2)?)$'
25*63deeba6SRob Herring      - pattern: '^idt,89hpes(24nt6a|32nt8[ab]|12nt12|16nt16|24nt24|32nt24[ab])g2$'
26*63deeba6SRob Herring      - pattern: '^idt,89hpes((32h8|48h12a?|22h16|34h16|64h16a?)(g2)?|16h16)$'
27*63deeba6SRob Herring
28*63deeba6SRob Herring  reg:
29*63deeba6SRob Herring    maxItems: 1
30*63deeba6SRob Herring
31*63deeba6SRob Herring  '#address-cells':
32*63deeba6SRob Herring    const: 1
33*63deeba6SRob Herring
34*63deeba6SRob Herring  '#size-cells':
35*63deeba6SRob Herring    const: 0
36*63deeba6SRob Herring
37*63deeba6SRob HerringpatternProperties:
38*63deeba6SRob Herring  '^eeprom@':
39*63deeba6SRob Herring    $ref: /schemas/eeprom/at24.yaml#
40*63deeba6SRob Herring    unevaluatedProperties: false
41*63deeba6SRob Herring
42*63deeba6SRob Herring    properties:
43*63deeba6SRob Herring      compatible:
44*63deeba6SRob Herring        description: Only a subset of devices are supported
45*63deeba6SRob Herring        pattern: ',24c(32|64|128|256|512)$'
46*63deeba6SRob Herring
47*63deeba6SRob Herringrequired:
48*63deeba6SRob Herring  - compatible
49*63deeba6SRob Herring  - reg
50*63deeba6SRob Herring
51*63deeba6SRob HerringadditionalProperties: false
52*63deeba6SRob Herring
53*63deeba6SRob Herringexamples:
54*63deeba6SRob Herring  - |
55*63deeba6SRob Herring    i2c {
56*63deeba6SRob Herring        #address-cells = <1>;
57*63deeba6SRob Herring        #size-cells = <0>;
58*63deeba6SRob Herring
59*63deeba6SRob Herring        idt@74 {
60*63deeba6SRob Herring            compatible = "idt,89hpes32nt8ag2";
61*63deeba6SRob Herring            reg = <0x74>;
62*63deeba6SRob Herring            #address-cells = <1>;
63*63deeba6SRob Herring            #size-cells = <0>;
64*63deeba6SRob Herring
65*63deeba6SRob Herring            eeprom@50 {
66*63deeba6SRob Herring                compatible = "atmel,24c64";
67*63deeba6SRob Herring                reg = <0x50>;
68*63deeba6SRob Herring                read-only;
69*63deeba6SRob Herring            };
70*63deeba6SRob Herring        };
71*63deeba6SRob Herring    };
72*63deeba6SRob Herring...
73