All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] i2c: added driver for Mellanox BlueField SoC
@ 2019-02-19 23:45 Khalil Blaiech
  2019-02-19 23:45 ` [PATCH v4 2/2] dt-bindings: i2c: I2C binding " Khalil Blaiech
  0 siblings, 1 reply; 3+ messages in thread
From: Khalil Blaiech @ 2019-02-19 23:45 UTC (permalink / raw)
  To: Rob Herring, Wolfram Sang, Wolfram Sang, David Woods
  Cc: Khalil Blaiech, linux-i2c, devicetree, arm-soc

Added I2C SMBus driver and device tree bindings documentation.

Changes since v3:

Device bindings documentation:

   - Re-order property descriptions.
   - Remove useless register addresses from the resource
     description.
   - Mention default clock-frequency value.
   - Fix format issues; remove spaces.
   - Omit "aliases" from Example section.
   - Rename device instance node in Example section.

Khalil Blaiech (2):
  i2c: i2c-mlx: I2C SMBus driver for Mellanox BlueField SoC
  dt-bindings: i2c: I2C binding for Mellanox BlueField SoC

 .../devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt |   29 +
 drivers/i2c/busses/Kconfig                         |   13 +
 drivers/i2c/busses/Makefile                        |    1 +
 drivers/i2c/busses/i2c-mlx.c                       | 2512 ++++++++++++++++++++
 4 files changed, 2555 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt
 create mode 100644 drivers/i2c/busses/i2c-mlx.c

--
2.1.2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v4 2/2] dt-bindings: i2c: I2C binding for Mellanox BlueField SoC
  2019-02-19 23:45 [PATCH v4 0/2] i2c: added driver for Mellanox BlueField SoC Khalil Blaiech
@ 2019-02-19 23:45 ` Khalil Blaiech
  2019-02-22 16:56   ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Khalil Blaiech @ 2019-02-19 23:45 UTC (permalink / raw)
  To: Rob Herring, Wolfram Sang, Wolfram Sang, David Woods
  Cc: Khalil Blaiech, linux-i2c, devicetree, arm-soc

Added device tree bindings documentation for Mellanox BlueField
I2C SMBus controller.

Reviewed-by: David Woods <dwoods@mellanox.com>
Signed-off-by: Khalil Blaiech <kblaiech@mellanox.com>
---
 .../devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt

diff --git a/Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt b/Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt
new file mode 100644
index 0000000..3478bb2
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt
@@ -0,0 +1,29 @@
+Device tree configuration for the Mellanox I2C SMBus on BlueField SoCs
+
+Required Properties:
+- compatible : should be "mellanox,i2c-mlxbf1" or "mellanox,i2c-mlxbf2".
+
+- reg : address offset and length of the device registers. The
+	registers consist of the following set of resources:
+		1) Smbus block registers.
+		2) Cause master registers.
+		3) Cause slave registers.
+
+- interrupts : interrupt number.
+
+Optional Properties:
+
+- clock-frequency : bus frequency used to configure timing registers;
+			allowed values are 100000, 400000 and 1000000;
+			those are expressed in Hz. Default is 100000.
+
+Example:
+
+i2c@2804000 {
+	compatible = "mellanox,i2c-mlxbf1";
+	reg =	<0x02804000 0x800>,
+		<0x02801200 0x020>,
+		<0x02801260 0x020>;
+	interrupts = <57>;
+	clock-frequency = <100000>;
+};
-- 
2.1.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v4 2/2] dt-bindings: i2c: I2C binding for Mellanox BlueField SoC
  2019-02-19 23:45 ` [PATCH v4 2/2] dt-bindings: i2c: I2C binding " Khalil Blaiech
@ 2019-02-22 16:56   ` Rob Herring
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring @ 2019-02-22 16:56 UTC (permalink / raw)
  To: Khalil Blaiech
  Cc: Wolfram Sang, Wolfram Sang, David Woods, linux-i2c, devicetree, arm-soc

On Tue, 19 Feb 2019 18:45:46 -0500, Khalil Blaiech wrote:
> Added device tree bindings documentation for Mellanox BlueField
> I2C SMBus controller.
> 
> Reviewed-by: David Woods <dwoods@mellanox.com>
> Signed-off-by: Khalil Blaiech <kblaiech@mellanox.com>
> ---
>  .../devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt | 29 ++++++++++++++++++++++
>  1 file changed, 29 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-22 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-19 23:45 [PATCH v4 0/2] i2c: added driver for Mellanox BlueField SoC Khalil Blaiech
2019-02-19 23:45 ` [PATCH v4 2/2] dt-bindings: i2c: I2C binding " Khalil Blaiech
2019-02-22 16:56   ` Rob Herring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.