Broadcom iProc I2C controller
Schema identifier ($id): "http://devicetree.org/schemas/i2c/brcm,iproc-i2c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "brcm,iproc-i2c", "brcm,iproc-nic-i2c"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-frequency — required here #
Allowed values (enum): 100000, 400000
interrupts — not listed as required here #
Should contain the I2C interrupt. For certain revisions of the I2C controller, I2C interrupt is unwired to the interrupt controller. In such case, this property should be left unspecified, and driver will fall back to polling mode
Maximum number of items (maxItems): 1
brcm,ape-hsls-addr-mask — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Host view of address mask into the 'APE' co-processor
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/i2c/i2c-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"brcm,iproc-nic-i2c"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2Required in this object (
required):"brcm,ape-hsls-addr-mask"When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg", "clock-frequency", "#address-cells", "#size-cells"
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c@18008000 {
compatible = "brcm,iproc-i2c";
reg = <0x18008000 0x100>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 85 IRQ_TYPE_NONE>;
clock-frequency = <100000>;
wm8750@1a {
compatible = "wlf,wm8750";
reg = <0x1a>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause