ASPEED I2C on the AST24XX, AST25XX, and AST26XX SoCs
Schema identifier ($id): "http://devicetree.org/schemas/i2c/aspeed,i2c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rayn Chen <rayn_chen@aspeedtech.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 #
Allowed values (enum): "aspeed,ast2400-i2c-bus", "aspeed,ast2500-i2c-bus", "aspeed,ast2600-i2c-bus"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
address offset and range of bus
Item 2
address offset and range of bus buffer
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
root clock of bus, should reference the APB clock in the second cell
resets — required here #
Maximum number of items (maxItems): 1
bus-frequency — not listed as required here #
Minimum value (minimum): 500
Maximum value (maximum): 4000000
Default value (default): 100000
frequency of the bus clock in Hz defaults to 100 kHz when not specified
Required in this object (required): "reg", "compatible", "clocks", "resets"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/aspeed-clock.h>
i2c@40 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "aspeed,ast2500-i2c-bus";
reg = <0x40 0x40>;
clocks = <&syscon ASPEED_CLK_APB>;
resets = <&syscon ASPEED_RESET_I2C>;
bus-frequency = <100000>;
interrupts = <0>;
interrupt-parent = <&i2c_ic>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)