nuvoton NPCM7XX I2C Controller
Schema identifier ($id): "http://devicetree.org/schemas/i2c/nuvoton,npcm7xx-i2c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
I2C bus controllers of the NPCM series support both master and slave mode. Each controller can switch between master and slave at run time (i.e. IPMB mode). HW FIFO for TX and RX are supported.
Maintainers (maintainers): "Tali Perry <tali.perry1@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nuvoton,npcm750-i2c", "nuvoton,npcm845-i2c"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Reference clock for the I2C bus
clock-frequency — not listed as required here #
Desired I2C bus clock frequency in Hz. If not specified, the default 100 kHz frequency will be used. possible values are 100000, 400000 and 1000000.
Default value (default): 100000
Allowed values (enum): 100000, 400000, 1000000
nuvoton,sys-mgr — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
The phandle of system manager register node.
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
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):"nuvoton,npcm845-i2c"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c0: i2c@80000 {
reg = <0x80000 0x1000>;
clocks = <&clk NPCM7XX_CLK_APB2>;
clock-frequency = <100000>;
interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
compatible = "nuvoton,npcm750-i2c";
nuvoton,sys-mgr = <&gcr>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause