HiSilicon common I2C controller
Schema identifier ($id): "http://devicetree.org/schemas/i2c/hisilicon,ascend910-i2c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yicong Yang <yangyicong@hisilicon.com>"
The HiSilicon common I2C controller can be used for many different types of SoC such as Huawei Ascend AI series chips.
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): "hisilicon,ascend910-i2c"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-frequency — not listed as required here #
Default value (default): 400000
i2c-sda-falling-time-ns — not listed as required here #
Default value (default): 343
i2c-scl-falling-time-ns — not listed as required here #
Default value (default): 203
i2c-sda-hold-time-ns — not listed as required here #
Default value (default): 830
i2c-scl-rising-time-ns — not listed as required here #
Default value (default): 365
i2c-digital-filter-width-ns — not listed as required here #
Default value (default): 0
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c@38b0000 {
compatible = "hisilicon,ascend910-i2c";
reg = <0x38b0000 0x10000>;
interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
i2c-sda-falling-time-ns = <56>;
i2c-scl-falling-time-ns = <56>;
i2c-sda-hold-time-ns = <56>;
i2c-scl-rising-time-ns = <56>;
i2c-digital-filter;
i2c-digital-filter-width-ns = <0x0>;
clocks = <&alg_clk>;
clock-frequency = <400000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)