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/hpe,gxp-i2c.yaml# 5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*cb7aa33aSEmmanuel Vadot 7*cb7aa33aSEmmanuel Vadottitle: HPE GXP SoC I2C Controller 8*cb7aa33aSEmmanuel Vadot 9*cb7aa33aSEmmanuel Vadotmaintainers: 10*cb7aa33aSEmmanuel Vadot - Nick Hawkins <nick.hawkins@hpe.com> 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 const: hpe,gxp-i2c 18*cb7aa33aSEmmanuel Vadot 19*cb7aa33aSEmmanuel Vadot reg: 20*cb7aa33aSEmmanuel Vadot maxItems: 1 21*cb7aa33aSEmmanuel Vadot 22*cb7aa33aSEmmanuel Vadot interrupts: 23*cb7aa33aSEmmanuel Vadot maxItems: 1 24*cb7aa33aSEmmanuel Vadot 25*cb7aa33aSEmmanuel Vadot clock-frequency: 26*cb7aa33aSEmmanuel Vadot default: 100000 27*cb7aa33aSEmmanuel Vadot 28*cb7aa33aSEmmanuel Vadot hpe,sysreg: 29*cb7aa33aSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 30*cb7aa33aSEmmanuel Vadot description: 31*cb7aa33aSEmmanuel Vadot Phandle to the global status and enable interrupt registers shared 32*cb7aa33aSEmmanuel Vadot between each I2C engine controller instance. It enables the I2C 33*cb7aa33aSEmmanuel Vadot engine controller to act as both a master or slave by being able to 34*cb7aa33aSEmmanuel Vadot arm and respond to interrupts from its engine. Each bit in the 35*cb7aa33aSEmmanuel Vadot registers represent the respective bit position. 36*cb7aa33aSEmmanuel Vadot 37*cb7aa33aSEmmanuel Vadotrequired: 38*cb7aa33aSEmmanuel Vadot - compatible 39*cb7aa33aSEmmanuel Vadot - reg 40*cb7aa33aSEmmanuel Vadot - interrupts 41*cb7aa33aSEmmanuel Vadot 42*cb7aa33aSEmmanuel VadotunevaluatedProperties: false 43*cb7aa33aSEmmanuel Vadot 44*cb7aa33aSEmmanuel Vadotexamples: 45*cb7aa33aSEmmanuel Vadot - | 46*cb7aa33aSEmmanuel Vadot i2c@2600 { 47*cb7aa33aSEmmanuel Vadot compatible = "hpe,gxp-i2c"; 48*cb7aa33aSEmmanuel Vadot reg = <0x2500 0x70>; 49*cb7aa33aSEmmanuel Vadot interrupts = <9>; 50*cb7aa33aSEmmanuel Vadot #address-cells = <1>; 51*cb7aa33aSEmmanuel Vadot #size-cells = <0>; 52*cb7aa33aSEmmanuel Vadot hpe,sysreg = <&sysreg_system_controller>; 53*cb7aa33aSEmmanuel Vadot clock-frequency = <10000>; 54*cb7aa33aSEmmanuel Vadot 55*cb7aa33aSEmmanuel Vadot eeprom@50 { 56*cb7aa33aSEmmanuel Vadot compatible = "atmel,24c128"; 57*cb7aa33aSEmmanuel Vadot reg = <0x50>; 58*cb7aa33aSEmmanuel Vadot }; 59*cb7aa33aSEmmanuel Vadot }; 60