1*15b882c6SStanislav Jakubek# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*15b882c6SStanislav Jakubek%YAML 1.2 3*15b882c6SStanislav Jakubek--- 4*15b882c6SStanislav Jakubek$id: http://devicetree.org/schemas/i2c/sprd,sc9860-i2c.yaml# 5*15b882c6SStanislav Jakubek$schema: http://devicetree.org/meta-schemas/core.yaml# 6*15b882c6SStanislav Jakubek 7*15b882c6SStanislav Jakubektitle: Spreadtrum SC9860 I2C controller 8*15b882c6SStanislav Jakubek 9*15b882c6SStanislav Jakubekmaintainers: 10*15b882c6SStanislav Jakubek - Orson Zhai <orsonzhai@gmail.com> 11*15b882c6SStanislav Jakubek - Baolin Wang <baolin.wang7@gmail.com> 12*15b882c6SStanislav Jakubek - Chunyan Zhang <zhang.lyra@gmail.com> 13*15b882c6SStanislav Jakubek 14*15b882c6SStanislav JakubekallOf: 15*15b882c6SStanislav Jakubek - $ref: /schemas/i2c/i2c-controller.yaml# 16*15b882c6SStanislav Jakubek 17*15b882c6SStanislav Jakubekproperties: 18*15b882c6SStanislav Jakubek compatible: 19*15b882c6SStanislav Jakubek const: sprd,sc9860-i2c 20*15b882c6SStanislav Jakubek 21*15b882c6SStanislav Jakubek reg: 22*15b882c6SStanislav Jakubek maxItems: 1 23*15b882c6SStanislav Jakubek 24*15b882c6SStanislav Jakubek interrupts: 25*15b882c6SStanislav Jakubek maxItems: 1 26*15b882c6SStanislav Jakubek 27*15b882c6SStanislav Jakubek clocks: 28*15b882c6SStanislav Jakubek items: 29*15b882c6SStanislav Jakubek - description: I2C clock 30*15b882c6SStanislav Jakubek - description: I2C source (parent) clock 31*15b882c6SStanislav Jakubek - description: I2C module enable clock 32*15b882c6SStanislav Jakubek 33*15b882c6SStanislav Jakubek clock-names: 34*15b882c6SStanislav Jakubek items: 35*15b882c6SStanislav Jakubek - const: i2c 36*15b882c6SStanislav Jakubek - const: source 37*15b882c6SStanislav Jakubek - const: enable 38*15b882c6SStanislav Jakubek 39*15b882c6SStanislav Jakubek clock-frequency: true 40*15b882c6SStanislav Jakubek 41*15b882c6SStanislav Jakubekrequired: 42*15b882c6SStanislav Jakubek - compatible 43*15b882c6SStanislav Jakubek - reg 44*15b882c6SStanislav Jakubek - interrupts 45*15b882c6SStanislav Jakubek - clocks 46*15b882c6SStanislav Jakubek - clock-names 47*15b882c6SStanislav Jakubek - clock-frequency 48*15b882c6SStanislav Jakubek 49*15b882c6SStanislav JakubekunevaluatedProperties: false 50*15b882c6SStanislav Jakubek 51*15b882c6SStanislav Jakubekexamples: 52*15b882c6SStanislav Jakubek - | 53*15b882c6SStanislav Jakubek #include <dt-bindings/interrupt-controller/arm-gic.h> 54*15b882c6SStanislav Jakubek #include <dt-bindings/interrupt-controller/irq.h> 55*15b882c6SStanislav Jakubek 56*15b882c6SStanislav Jakubek i2c@70500000 { 57*15b882c6SStanislav Jakubek compatible = "sprd,sc9860-i2c"; 58*15b882c6SStanislav Jakubek reg = <0x70500000 0x1000>; 59*15b882c6SStanislav Jakubek interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; 60*15b882c6SStanislav Jakubek clocks = <&clk_i2c3>, <&ext_26m>, <&clk_ap_apb_gates 11>; 61*15b882c6SStanislav Jakubek clock-names = "i2c", "source", "enable"; 62*15b882c6SStanislav Jakubek clock-frequency = <400000>; 63*15b882c6SStanislav Jakubek #address-cells = <1>; 64*15b882c6SStanislav Jakubek #size-cells = <0>; 65*15b882c6SStanislav Jakubek }; 66