Skip to contentSkip to conversation

dt-bindings: i2c: i2c-mt7621: Add bindings for MediaTek MT7621/28/88 I2C

PATCH Wolfram Sang 2 participants 4 messages Jun 17, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 6 lines · Stefan Roese

Add bindings for the I2C controller that can be found in the MediaTek MT7621/7628/7688 SoCs.

Cc Rob Herring <[email protected]>
Cc Wolfram Sang <[email protected]>

CCing the DT mailing list.

Quoted 45 lines

---
v4:
- No change

v3:
- New patch

 .../devicetree/bindings/i2c/i2c-mt7621.txt    | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-mt7621.txt
Documentation/devicetree/bindings/i2c/i2c-mt7621.txt new file +25 -0
new file mode 100644
index 000000000000..bc36f0eb94cd
@@ -0,0 +1,25 @@
+MediaTek MT7621/MT7628 I2C master controller
+
+Required properties:
+
+- compatible: Should be one of the following:
+  - "mediatek,mt7621-i2c": for MT7621/MT7628/MT7688 platforms
+- #address-cells: should be 1.
+- #size-cells: should be 0.
+- reg: Address and length of the register set for the device
+- resets: phandle to the reset controller asserting this device in
+          reset
+  See ../reset/reset.txt for details.
+
+Optional properties :
+
+Example:
+
+i2c: i2c@900 {
+	compatible = "mediatek,mt7621-i2c";
+	reg = <0x900 0x100>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	resets = <&rstctrl 16>;
+	reset-names = "i2c";
+};
Signature · 1 line
2.22.0
#2 lore raw
Quoted 9 lines · Wolfram Sang
Quoted 6 lines · Stefan Roese

Add bindings for the I2C controller that can be found in the MediaTek MT7621/7628/7688 SoCs.

Cc Rob Herring <[email protected]>
Cc Wolfram Sang <[email protected]>

CCing the DT mailing list.

Since the driver has now clock support, don't we need bindings for this?

Quoted 46 lines
Quoted 46 lines

---
v4:
- No change

v3:
- New patch

 .../devicetree/bindings/i2c/i2c-mt7621.txt    | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/i2c-mt7621.txt
Documentation/devicetree/bindings/i2c/i2c-mt7621.txt new file +25 -0
new file mode 100644
index 000000000000..bc36f0eb94cd
@@ -0,0 +1,25 @@
+MediaTek MT7621/MT7628 I2C master controller
+
+Required properties:
+
+- compatible: Should be one of the following:
+  - "mediatek,mt7621-i2c": for MT7621/MT7628/MT7688 platforms
+- #address-cells: should be 1.
+- #size-cells: should be 0.
+- reg: Address and length of the register set for the device
+- resets: phandle to the reset controller asserting this device in
+          reset
+  See ../reset/reset.txt for details.
+
+Optional properties :
+
+Example:
+
+i2c: i2c@900 {
+	compatible = "mediatek,mt7621-i2c";
+	reg = <0x900 0x100>;
+	#address-cells = <1>;
+	#size-cells = <0>;
+	resets = <&rstctrl 16>;
+	reset-names = "i2c";
+};
Signature · 1 line
2.22.0
#3 lore raw
Quoted 5 lines · Wolfram Sang
Quoted 4 lines · Wolfram Sang
Quoted 3 lines · Stefan Roese

Add bindings for the I2C controller that can be found in the MediaTek MT7621/7628/7688 SoCs.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Cc Rob Herring <[email protected]>
Cc Wolfram Sang <[email protected]>

CCing the DT mailing list.

Since the driver has now clock support, don't we need bindings for this?

No. As the clock support is currently not handled via a DT based driver:

https://elixir.bootlin.com/linux/v5.2-rc5/source/arch/mips/ralink/mt7620.c#L565

This probably should be moved to DT but would like to do this at a later time (if time permits).

Thanks,
Stefan

#4 lore raw
Quoted 3 lines

This probably should be moved to DT but would like to do this at a later time (if time permits).

OK, thanks for the heads up.