Commit b74b33f5 authored by Paul Cercueil's avatar Paul Cercueil Committed by Wolfram Sang

dt-bindings: i2c: ingenic: Add compatible string for the JZ4770

The I2C controller in the JZ4770 SoC seems to work the exact same as in
the JZ4780 SoC.

We could use "ingenic,jz4780-i2c" as a fallback string in the Device
Tree, but that would be awkward, since the JZ4780 is newer. Instead,
add a "ingenic,jz4770-i2c" string and use it as fallback for the
"ingenic,jz4780-i2c" string.
Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 97c93e06
...@@ -17,9 +17,13 @@ properties: ...@@ -17,9 +17,13 @@ properties:
pattern: "^i2c@[0-9a-f]+$" pattern: "^i2c@[0-9a-f]+$"
compatible: compatible:
enum: oneOf:
- ingenic,jz4780-i2c - enum:
- ingenic,jz4770-i2c
- ingenic,x1000-i2c - ingenic,x1000-i2c
- items:
- const: ingenic,jz4780-i2c
- const: ingenic,jz4770-i2c
reg: reg:
maxItems: 1 maxItems: 1
...@@ -60,7 +64,7 @@ examples: ...@@ -60,7 +64,7 @@ examples:
#include <dt-bindings/dma/jz4780-dma.h> #include <dt-bindings/dma/jz4780-dma.h>
#include <dt-bindings/interrupt-controller/irq.h> #include <dt-bindings/interrupt-controller/irq.h>
i2c@10054000 { i2c@10054000 {
compatible = "ingenic,jz4780-i2c"; compatible = "ingenic,jz4780-i2c", "ingenic,jz4770-i2c";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x10054000 0x1000>; reg = <0x10054000 0x1000>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment