cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

marvell,mv64xxx-i2c.yaml (2629B)


      1# SPDX-License-Identifier: GPL-2.0
      2%YAML 1.2
      3---
      4$id: http://devicetree.org/schemas/i2c/marvell,mv64xxx-i2c.yaml#
      5$schema: http://devicetree.org/meta-schemas/core.yaml#
      6
      7title: Marvell MV64XXX I2C Controller Device Tree Bindings
      8
      9maintainers:
     10  - Gregory CLEMENT <gregory.clement@bootlin.com>
     11
     12properties:
     13  compatible:
     14    oneOf:
     15      - const: allwinner,sun4i-a10-i2c
     16      - items:
     17          - const: allwinner,sun7i-a20-i2c
     18          - const: allwinner,sun4i-a10-i2c
     19      - const: allwinner,sun6i-a31-i2c
     20      - items:
     21          - enum:
     22              - allwinner,sun8i-a23-i2c
     23              - allwinner,sun8i-a83t-i2c
     24              - allwinner,sun50i-a64-i2c
     25              - allwinner,sun50i-a100-i2c
     26              - allwinner,sun50i-h6-i2c
     27              - allwinner,sun50i-h616-i2c
     28          - const: allwinner,sun6i-a31-i2c
     29      - const: marvell,mv64xxx-i2c
     30      - const: marvell,mv78230-i2c
     31      - const: marvell,mv78230-a0-i2c
     32
     33    description:
     34      Only use "marvell,mv78230-a0-i2c" for a very rare, initial
     35      version of the SoC which had broken offload support. Linux
     36      auto-detects this and sets it appropriately.
     37
     38  reg:
     39    maxItems: 1
     40
     41  interrupts:
     42    maxItems: 1
     43
     44  clocks:
     45    minItems: 1
     46    items:
     47      - description: Reference clock for the I2C bus
     48      - description: Bus clock (Only for Armada 7K/8K)
     49
     50  clock-names:
     51    minItems: 1
     52    items:
     53      - const: core
     54      - const: reg
     55    description:
     56      Mandatory if two clocks are used (only for Armada 7k and 8k).
     57
     58  resets:
     59    maxItems: 1
     60
     61required:
     62  - compatible
     63  - reg
     64  - interrupts
     65
     66allOf:
     67  - $ref: /schemas/i2c/i2c-controller.yaml#
     68  - if:
     69      properties:
     70        compatible:
     71          contains:
     72            enum:
     73              - allwinner,sun4i-a10-i2c
     74              - allwinner,sun6i-a31-i2c
     75
     76    then:
     77      required:
     78        - clocks
     79
     80  - if:
     81      properties:
     82        compatible:
     83          contains:
     84            const: allwinner,sun6i-a31-i2c
     85
     86    then:
     87      required:
     88        - resets
     89
     90unevaluatedProperties: false
     91
     92examples:
     93  - |
     94    i2c@11000 {
     95        compatible = "marvell,mv64xxx-i2c";
     96        reg = <0x11000 0x20>;
     97        interrupts = <29>;
     98        clock-frequency = <100000>;
     99    };
    100
    101  - |
    102    i2c@11000 {
    103        compatible = "marvell,mv78230-i2c";
    104        reg = <0x11000 0x100>;
    105        interrupts = <29>;
    106        clock-frequency = <100000>;
    107    };
    108
    109  - |
    110    i2c@701000 {
    111        compatible = "marvell,mv78230-i2c";
    112        reg = <0x701000 0x20>;
    113        interrupts = <29>;
    114        clock-frequency = <100000>;
    115        clock-names = "core", "reg";
    116        clocks = <&core_clock>, <&reg_clock>;
    117    };
    118
    119...