Spreadtrum SC9860 I2C controller
Schema identifier ($id): "http://devicetree.org/schemas/i2c/sprd,sc9860-i2c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/i2c/i2c-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sprd,sc9860-i2c"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
I2C clock
Item 2
I2C source (parent) clock
Item 3
I2C module enable clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"i2c"
Item 2
Exact value (
const):"source"
Item 3
Exact value (
const):"enable"
clock-frequency — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "clock-frequency"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c@70500000 {
compatible = "sprd,sc9860-i2c";
reg = <0x70500000 0x1000>;
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_i2c3>, <&ext_26m>, <&clk_ap_apb_gates 11>;
clock-names = "i2c", "source", "enable";
clock-frequency = <400000>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause