Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 # Copyright 2019 BayLibre, SAS
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/i2c/amlogic,meson6-i2c.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007 
0008 title: Amlogic Meson I2C Controller
0009 
0010 maintainers:
0011   - Neil Armstrong <neil.armstrong@linaro.org>
0012   - Beniamino Galvani <b.galvani@gmail.com>
0013 
0014 allOf:
0015   - $ref: /schemas/i2c/i2c-controller.yaml#
0016 
0017 properties:
0018   compatible:
0019     enum:
0020       - amlogic,meson6-i2c # Meson6, Meson8 and compatible SoCs
0021       - amlogic,meson-gxbb-i2c # GXBB and compatible SoCs
0022       - amlogic,meson-axg-i2c # AXG and compatible SoCs
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   interrupts:
0028     maxItems: 1
0029 
0030   clocks:
0031     minItems: 1
0032 
0033 required:
0034   - compatible
0035   - reg
0036   - interrupts
0037   - clocks
0038 
0039 unevaluatedProperties: false
0040 
0041 examples:
0042   - |
0043     i2c@c8100500 {
0044         compatible = "amlogic,meson6-i2c";
0045         reg = <0xc8100500 0x20>;
0046         interrupts = <92>;
0047         clocks = <&clk81>;
0048         #address-cells = <1>;
0049         #size-cells = <0>;
0050 
0051         eeprom@52 {
0052             compatible = "atmel,24c32";
0053             reg = <0x52>;
0054         };
0055     };