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/st,sti-i2c.yaml# 5*cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*cb7aa33aSEmmanuel Vadot 7*cb7aa33aSEmmanuel Vadottitle: I2C controller embedded in STMicroelectronics STi platform 8*cb7aa33aSEmmanuel Vadot 9*cb7aa33aSEmmanuel Vadotmaintainers: 10*cb7aa33aSEmmanuel Vadot - Patrice Chotard <patrice.chotard@foss.st.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 enum: 18*cb7aa33aSEmmanuel Vadot - st,comms-ssc-i2c 19*cb7aa33aSEmmanuel Vadot - st,comms-ssc4-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 Vadot clocks: 28*cb7aa33aSEmmanuel Vadot maxItems: 1 29*cb7aa33aSEmmanuel Vadot 30*cb7aa33aSEmmanuel Vadot clock-names: 31*cb7aa33aSEmmanuel Vadot maxItems: 1 32*cb7aa33aSEmmanuel Vadot 33*cb7aa33aSEmmanuel Vadot clock-frequency: 34*cb7aa33aSEmmanuel Vadot enum: [ 100000, 400000 ] 35*cb7aa33aSEmmanuel Vadot default: 100000 36*cb7aa33aSEmmanuel Vadot 37*cb7aa33aSEmmanuel Vadot st,i2c-min-scl-pulse-width-us: 38*cb7aa33aSEmmanuel Vadot description: 39*cb7aa33aSEmmanuel Vadot The minimum valid SCL pulse width that is allowed through the 40*cb7aa33aSEmmanuel Vadot deglitch circuit. In units of us. 41*cb7aa33aSEmmanuel Vadot 42*cb7aa33aSEmmanuel Vadot st,i2c-min-sda-pulse-width-us: 43*cb7aa33aSEmmanuel Vadot description: 44*cb7aa33aSEmmanuel Vadot The minimum valid SDA pulse width that is allowed through the 45*cb7aa33aSEmmanuel Vadot deglitch circuit. In units of us. 46*cb7aa33aSEmmanuel Vadot 47*cb7aa33aSEmmanuel Vadotrequired: 48*cb7aa33aSEmmanuel Vadot - compatible 49*cb7aa33aSEmmanuel Vadot - reg 50*cb7aa33aSEmmanuel Vadot - interrupts 51*cb7aa33aSEmmanuel Vadot - clocks 52*cb7aa33aSEmmanuel Vadot - clock-names 53*cb7aa33aSEmmanuel Vadot 54*cb7aa33aSEmmanuel VadotunevaluatedProperties: false 55*cb7aa33aSEmmanuel Vadot 56*cb7aa33aSEmmanuel Vadotexamples: 57*cb7aa33aSEmmanuel Vadot - | 58*cb7aa33aSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 59*cb7aa33aSEmmanuel Vadot #include <dt-bindings/clock/stih407-clks.h> 60*cb7aa33aSEmmanuel Vadot i2c@fed40000 { 61*cb7aa33aSEmmanuel Vadot compatible = "st,comms-ssc4-i2c"; 62*cb7aa33aSEmmanuel Vadot reg = <0xfed40000 0x110>; 63*cb7aa33aSEmmanuel Vadot interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>; 64*cb7aa33aSEmmanuel Vadot clocks = <&clk_s_a0_ls CLK_ICN_REG>; 65*cb7aa33aSEmmanuel Vadot clock-names = "ssc"; 66*cb7aa33aSEmmanuel Vadot clock-frequency = <400000>; 67*cb7aa33aSEmmanuel Vadot pinctrl-names = "default"; 68*cb7aa33aSEmmanuel Vadot pinctrl-0 = <&pinctrl_i2c0_default>; 69*cb7aa33aSEmmanuel Vadot st,i2c-min-scl-pulse-width-us = <0>; 70*cb7aa33aSEmmanuel Vadot st,i2c-min-sda-pulse-width-us = <5>; 71*cb7aa33aSEmmanuel Vadot }; 72