mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
48c926cd34
Improve the binding example by removing all the leading zeros to fix the following dtc warnings: Warning (unit_address_format): Node /XXX unit name should not have leading 0s Converted using the following command: perl -p -i -e 's/\@0+([0-9a-f])/\@$1/g' `find ./Documentation/devicetree/bindings "*.txt"` Some unnecessary changes were manually fixed. Signed-off-by: Marco Franchi <marco.franchi@nxp.com> Signed-off-by: Rob Herring <robh@kernel.org>
31 lines
855 B
Plaintext
31 lines
855 B
Plaintext
LSI Axxia I2C
|
|
|
|
Required properties :
|
|
- compatible : Must be "lsi,api2c"
|
|
- reg : Offset and length of the register set for the device
|
|
- interrupts : the interrupt specifier
|
|
- #address-cells : Must be <1>;
|
|
- #size-cells : Must be <0>;
|
|
- clock-names : Must contain "i2c".
|
|
- clocks: Must contain an entry for each name in clock-names. See the common
|
|
clock bindings.
|
|
|
|
Optional properties :
|
|
- clock-frequency : Desired I2C bus clock frequency in Hz. If not specified,
|
|
the default 100 kHz frequency will be used. As only Normal and Fast modes
|
|
are supported, possible values are 100000 and 400000.
|
|
|
|
Example :
|
|
|
|
i2c@2010084000 {
|
|
compatible = "lsi,api2c";
|
|
device_type = "i2c";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
reg = <0x20 0x10084000 0x00 0x1000>;
|
|
interrupts = <0 19 4>;
|
|
clocks = <&clk_per>;
|
|
clock-names = "i2c";
|
|
clock-frequency = <400000>;
|
|
};
|