15f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25f62a964SEmmanuel Vadot%YAML 1.2 35f62a964SEmmanuel Vadot--- 45f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/realtek,rtl9301-i2c.yaml# 55f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65f62a964SEmmanuel Vadot 75f62a964SEmmanuel Vadottitle: Realtek RTL I2C Controller 85f62a964SEmmanuel Vadot 95f62a964SEmmanuel Vadotmaintainers: 105f62a964SEmmanuel Vadot - Chris Packham <chris.packham@alliedtelesis.co.nz> 115f62a964SEmmanuel Vadot 125f62a964SEmmanuel Vadotdescription: 135f62a964SEmmanuel Vadot The RTL9300 SoC has two I2C controllers. Each of these has an SCL line (which 145f62a964SEmmanuel Vadot if not-used for SCL can be a GPIO). There are 8 common SDA lines that can be 155f62a964SEmmanuel Vadot assigned to either I2C controller. 165f62a964SEmmanuel Vadot 175f62a964SEmmanuel Vadotproperties: 185f62a964SEmmanuel Vadot compatible: 195f62a964SEmmanuel Vadot oneOf: 205f62a964SEmmanuel Vadot - items: 215f62a964SEmmanuel Vadot - enum: 225f62a964SEmmanuel Vadot - realtek,rtl9302b-i2c 235f62a964SEmmanuel Vadot - realtek,rtl9302c-i2c 245f62a964SEmmanuel Vadot - realtek,rtl9303-i2c 255f62a964SEmmanuel Vadot - const: realtek,rtl9301-i2c 265f62a964SEmmanuel Vadot - const: realtek,rtl9301-i2c 275f62a964SEmmanuel Vadot 285f62a964SEmmanuel Vadot reg: 29*ae5de77eSEmmanuel Vadot items: 30*ae5de77eSEmmanuel Vadot - description: Register offset and size this I2C controller. 315f62a964SEmmanuel Vadot 325f62a964SEmmanuel Vadot "#address-cells": 335f62a964SEmmanuel Vadot const: 1 345f62a964SEmmanuel Vadot 355f62a964SEmmanuel Vadot "#size-cells": 365f62a964SEmmanuel Vadot const: 0 375f62a964SEmmanuel Vadot 385f62a964SEmmanuel VadotpatternProperties: 395f62a964SEmmanuel Vadot '^i2c@[0-7]$': 405f62a964SEmmanuel Vadot $ref: /schemas/i2c/i2c-controller.yaml 415f62a964SEmmanuel Vadot unevaluatedProperties: false 425f62a964SEmmanuel Vadot 435f62a964SEmmanuel Vadot properties: 445f62a964SEmmanuel Vadot reg: 455f62a964SEmmanuel Vadot description: The SDA pin associated with the I2C bus. 465f62a964SEmmanuel Vadot maxItems: 1 475f62a964SEmmanuel Vadot 485f62a964SEmmanuel Vadot required: 495f62a964SEmmanuel Vadot - reg 505f62a964SEmmanuel Vadot 515f62a964SEmmanuel Vadotrequired: 525f62a964SEmmanuel Vadot - compatible 535f62a964SEmmanuel Vadot - reg 545f62a964SEmmanuel Vadot 555f62a964SEmmanuel VadotadditionalProperties: false 565f62a964SEmmanuel Vadot 575f62a964SEmmanuel Vadotexamples: 585f62a964SEmmanuel Vadot - | 595f62a964SEmmanuel Vadot i2c@36c { 605f62a964SEmmanuel Vadot compatible = "realtek,rtl9301-i2c"; 615f62a964SEmmanuel Vadot reg = <0x36c 0x14>; 625f62a964SEmmanuel Vadot #address-cells = <1>; 635f62a964SEmmanuel Vadot #size-cells = <0>; 645f62a964SEmmanuel Vadot 655f62a964SEmmanuel Vadot i2c@2 { 665f62a964SEmmanuel Vadot reg = <2>; 675f62a964SEmmanuel Vadot #address-cells = <1>; 685f62a964SEmmanuel Vadot #size-cells = <0>; 695f62a964SEmmanuel Vadot }; 705f62a964SEmmanuel Vadot }; 71