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