xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/i2c/nuvoton,npcm7xx-i2c.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*4882a593Smuzhiyun%YAML 1.2
3*4882a593Smuzhiyun---
4*4882a593Smuzhiyun$id: http://devicetree.org/schemas/i2c/nuvoton,npcm7xx-i2c.yaml#
5*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4882a593Smuzhiyun
7*4882a593Smuzhiyuntitle: nuvoton NPCM7XX I2C Controller Device Tree Bindings
8*4882a593Smuzhiyun
9*4882a593Smuzhiyundescription: |
10*4882a593Smuzhiyun  The NPCM750x includes sixteen I2C bus controllers. All Controllers support
11*4882a593Smuzhiyun  both master and slave mode. Each controller can switch between master and slave
12*4882a593Smuzhiyun  at run time (i.e. IPMB mode). Each controller has two 16 byte HW FIFO for TX and
13*4882a593Smuzhiyun  RX.
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunmaintainers:
16*4882a593Smuzhiyun  - Tali Perry <tali.perry1@gmail.com>
17*4882a593Smuzhiyun
18*4882a593Smuzhiyunproperties:
19*4882a593Smuzhiyun  compatible:
20*4882a593Smuzhiyun    const: nuvoton,npcm7xx-i2c
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun  reg:
23*4882a593Smuzhiyun    maxItems: 1
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun  interrupts:
26*4882a593Smuzhiyun    maxItems: 1
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun  clocks:
29*4882a593Smuzhiyun    maxItems: 1
30*4882a593Smuzhiyun    description: Reference clock for the I2C bus
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun  clock-frequency:
33*4882a593Smuzhiyun    description: Desired I2C bus clock frequency in Hz. If not specified,
34*4882a593Smuzhiyun                 the default 100 kHz frequency will be used.
35*4882a593Smuzhiyun                 possible values are 100000, 400000 and 1000000.
36*4882a593Smuzhiyun    default: 100000
37*4882a593Smuzhiyun    enum: [100000, 400000, 1000000]
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunrequired:
40*4882a593Smuzhiyun  - compatible
41*4882a593Smuzhiyun  - reg
42*4882a593Smuzhiyun  - interrupts
43*4882a593Smuzhiyun  - clocks
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunallOf:
46*4882a593Smuzhiyun  - $ref: /schemas/i2c/i2c-controller.yaml#
47*4882a593Smuzhiyun
48*4882a593SmuzhiyununevaluatedProperties: false
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunexamples:
51*4882a593Smuzhiyun  - |
52*4882a593Smuzhiyun    #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
53*4882a593Smuzhiyun    #include <dt-bindings/interrupt-controller/arm-gic.h>
54*4882a593Smuzhiyun    i2c0: i2c@80000 {
55*4882a593Smuzhiyun        reg = <0x80000 0x1000>;
56*4882a593Smuzhiyun        clocks = <&clk NPCM7XX_CLK_APB2>;
57*4882a593Smuzhiyun        clock-frequency = <100000>;
58*4882a593Smuzhiyun        interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
59*4882a593Smuzhiyun        compatible = "nuvoton,npcm750-i2c";
60*4882a593Smuzhiyun    };
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun...
63