Path: blob/main/sys/contrib/device-tree/Bindings/i2c/apple,i2c.yaml
48375 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/i2c/apple,i2c.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Apple/PASemi I2C controller78maintainers:9- Sven Peter <sven@svenpeter.dev>1011description: |12Apple SoCs such as the M1 come with a I2C controller based on the one found13in machines with P. A. Semi's PWRficient processors.14The bus is used to communicate with e.g. USB PD chips or the speaker15amp.1617allOf:18- $ref: /schemas/i2c/i2c-controller.yaml#1920properties:21compatible:22items:23- enum:24- apple,t8103-i2c25- apple,t8112-i2c26- apple,t6000-i2c27- const: apple,i2c2829reg:30maxItems: 13132clocks:33items:34- description: I2C bus reference clock3536interrupts:37maxItems: 13839clock-frequency:40description: |41Desired I2C bus clock frequency in Hz. If not specified, 100 kHz will be42used. This frequency is generated by dividing the reference clock.43Allowed values are between ref_clk/(16*4) and ref_clk/(16*255).4445power-domains:46maxItems: 14748required:49- compatible50- reg51- clocks52- interrupts5354unevaluatedProperties: false5556examples:57- |58i2c@35010000 {59compatible = "apple,t8103-i2c", "apple,i2c";60reg = <0x35010000 0x4000>;61interrupt-parent = <&aic>;62interrupts = <0 627 4>;63clocks = <&ref_clk>;64#address-cells = <1>;65#size-cells = <0>;66};676869