st,stm32-i2c-v2

Vendor: STMicroelectronics

Description

These nodes are “i2c” bus nodes.

STM32 I2C V2 controller

Properties

Properties not inherited from the base binding file.

Name

Type

Details

pinctrl-0

phandles

GPIO pin configuration for serial signals (SDA, SCL).  We expect
that the phandles will reference pinctrl nodes.

For example the I2C1 would be
   pinctrl-0 = <&i2c1_sda_pb11 &i2c1_scl_pb10>;

timings

array

An optional table of pre-computed i2c timing values with the
matching clock configuration.

Precise timings values for a given Hardware can be pre-computed
with a tool like STM32CubeMX or directly from I2C_TIMINGR register
description.

Because timing value is valid for a given I2C peripheral clock
frequency and target I2C bus clock, each timing value must be
provided with the matching configuration.

The resulting table entries should look like <periph_clock
clock-frequency timing>

For example timings could be defined as

    timings = <64000000 I2C_BITRATE_STANDARD 0x10707DBC>,
              <64000000 I2C_BITRATE_FAST 0x00603D56>,
              <56000000 I2C_BITRATE_STANDARD 0x10606DA4>,
              <56000000 I2C_BITRATE_FAST 0x00501D63>;

clock-frequency

int

Initial clock frequency in Hz

Properties inherited from the base binding file, which defines common properties that may be set on many nodes. Not all of these may apply to the “st,stm32-i2c-v2” compatible.

Name

Type

Details

reg

array

register space

This property is required.

See Important properties for more information.

interrupts

array

interrupts for device

This property is required.

See Important properties for more information.

#address-cells

int

number of address cells in reg property

This property is required.

Constant value: 1

#size-cells

int

number of size cells in reg property

This property is required.

label

string

Human readable string describing the device (used as device_get_binding() argument)

This property is required.

See Important properties for more information.

status

string

indicates the operational status of a device

Legal values: 'ok', 'okay', 'disabled', 'reserved', 'fail', 'fail-sss'

See Important properties for more information.

compatible

string-array

compatible strings

This property is required.

See Important properties for more information.

reg-names

string-array

name of each register space

interrupts-extended

compound

extended interrupt specifier for device

interrupt-names

string-array

name of each interrupt

interrupt-parent

phandle

phandle to interrupt controller node

clocks

phandle-array

Clock gate information

clock-names

string-array

name of each clock

dmas

phandle-array

DMA channels specifiers

dma-names

string-array

Provided names of DMA channel specifiers

io-channels

phandle-array

IO channels specifiers

io-channel-names

string-array

Provided names of IO channel specifiers