xref: /freebsd/sys/contrib/device-tree/Bindings/i2c/loongson,ls2x-i2c.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1*cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*cb7aa33aSEmmanuel Vadot%YAML 1.2
3*cb7aa33aSEmmanuel Vadot---
4*cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/loongson,ls2x-i2c.yaml#
5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*cb7aa33aSEmmanuel Vadot
7*cb7aa33aSEmmanuel Vadottitle: Loongson LS2X I2C Controller
8*cb7aa33aSEmmanuel Vadot
9*cb7aa33aSEmmanuel Vadotmaintainers:
10*cb7aa33aSEmmanuel Vadot  - Binbin Zhou <zhoubinbin@loongson.cn>
11*cb7aa33aSEmmanuel Vadot
12*cb7aa33aSEmmanuel VadotallOf:
13*cb7aa33aSEmmanuel Vadot  - $ref: /schemas/i2c/i2c-controller.yaml#
14*cb7aa33aSEmmanuel Vadot
15*cb7aa33aSEmmanuel Vadotproperties:
16*cb7aa33aSEmmanuel Vadot  compatible:
17*cb7aa33aSEmmanuel Vadot    enum:
18*cb7aa33aSEmmanuel Vadot      - loongson,ls2k-i2c
19*cb7aa33aSEmmanuel Vadot      - loongson,ls7a-i2c
20*cb7aa33aSEmmanuel Vadot
21*cb7aa33aSEmmanuel Vadot  reg:
22*cb7aa33aSEmmanuel Vadot    maxItems: 1
23*cb7aa33aSEmmanuel Vadot
24*cb7aa33aSEmmanuel Vadot  interrupts:
25*cb7aa33aSEmmanuel Vadot    maxItems: 1
26*cb7aa33aSEmmanuel Vadot
27*cb7aa33aSEmmanuel Vadotrequired:
28*cb7aa33aSEmmanuel Vadot  - compatible
29*cb7aa33aSEmmanuel Vadot  - reg
30*cb7aa33aSEmmanuel Vadot  - interrupts
31*cb7aa33aSEmmanuel Vadot
32*cb7aa33aSEmmanuel VadotunevaluatedProperties: false
33*cb7aa33aSEmmanuel Vadot
34*cb7aa33aSEmmanuel Vadotexamples:
35*cb7aa33aSEmmanuel Vadot  - |
36*cb7aa33aSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
37*cb7aa33aSEmmanuel Vadot
38*cb7aa33aSEmmanuel Vadot    i2c0: i2c@1fe21000 {
39*cb7aa33aSEmmanuel Vadot        compatible = "loongson,ls2k-i2c";
40*cb7aa33aSEmmanuel Vadot        reg = <0x1fe21000 0x8>;
41*cb7aa33aSEmmanuel Vadot        interrupt-parent = <&extioiic>;
42*cb7aa33aSEmmanuel Vadot        interrupts = <22 IRQ_TYPE_LEVEL_LOW>;
43*cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
44*cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
45*cb7aa33aSEmmanuel Vadot
46*cb7aa33aSEmmanuel Vadot        eeprom@57 {
47*cb7aa33aSEmmanuel Vadot            compatible = "atmel,24c16";
48*cb7aa33aSEmmanuel Vadot            reg = <0x57>;
49*cb7aa33aSEmmanuel Vadot            pagesize = <16>;
50*cb7aa33aSEmmanuel Vadot        };
51*cb7aa33aSEmmanuel Vadot    };
52