Path: blob/master/Documentation/devicetree/bindings/i2c/apple,i2c.yaml
29282 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:22oneOf:23- items:24- const: apple,t6020-i2c25- const: apple,t8103-i2c26- items:27- enum:28# Do not add additional SoC to this list.29- apple,s5l8960x-i2c30- apple,t7000-i2c31- apple,s8000-i2c32- apple,t8010-i2c33- apple,t8015-i2c34- apple,t8103-i2c35- apple,t8112-i2c36- apple,t6000-i2c37- const: apple,i2c3839reg:40maxItems: 14142clocks:43items:44- description: I2C bus reference clock4546interrupts:47maxItems: 14849clock-frequency:50description: |51Desired I2C bus clock frequency in Hz. If not specified, 100 kHz will be52used. This frequency is generated by dividing the reference clock.53Allowed values are between ref_clk/(16*4) and ref_clk/(16*255).5455power-domains:56maxItems: 15758required:59- compatible60- reg61- clocks62- interrupts6364unevaluatedProperties: false6566examples:67- |68i2c@35010000 {69compatible = "apple,t8103-i2c", "apple,i2c";70reg = <0x35010000 0x4000>;71interrupt-parent = <&aic>;72interrupts = <0 627 4>;73clocks = <&ref_clk>;74#address-cells = <1>;75#size-cells = <0>;76};777879