0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/i2c/i2c-owl.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Actions Semi Owl I2C Controller
0008
0009 maintainers:
0010 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
0011
0012 description: |
0013 This I2C controller is found in the Actions Semi Owl SoCs:
0014 S500, S700 and S900.
0015
0016 allOf:
0017 - $ref: /schemas/i2c/i2c-controller.yaml#
0018
0019 properties:
0020 compatible:
0021 enum:
0022 - actions,s500-i2c # Actions Semi S500 compatible SoCs
0023 - actions,s700-i2c # Actions Semi S700 compatible SoCs
0024 - actions,s900-i2c # Actions Semi S900 compatible SoCs
0025
0026 reg:
0027 maxItems: 1
0028
0029 interrupts:
0030 maxItems: 1
0031
0032 clocks:
0033 description: Phandle of the clock feeding the I2C controller.
0034 minItems: 1
0035
0036 clock-frequency:
0037 description: |
0038 Desired I2C bus clock frequency in Hz. As only Standard and Fast
0039 modes are supported, possible values are 100000 and 400000.
0040 enum: [100000, 400000]
0041
0042 required:
0043 - compatible
0044 - reg
0045 - interrupts
0046 - clocks
0047
0048 unevaluatedProperties: false
0049
0050 examples:
0051 - |
0052 #include <dt-bindings/clock/actions,s900-cmu.h>
0053 #include <dt-bindings/interrupt-controller/arm-gic.h>
0054 i2c@e0170000 {
0055 compatible = "actions,s900-i2c";
0056 reg = <0xe0170000 0x1000>;
0057 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
0058 clocks = <&cmu CLK_I2C0>;
0059 clock-frequency = <100000>;
0060 };
0061
0062 ...