devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Khalil Blaiech <kblaiech@mellanox.com>
To: Rob Herring <robh@kernel.org>, Wolfram Sang <wsa@the-dreams.de>,
	Wolfram Sang <wsa+renesas@sang-engineering.com>,
	David Woods <dwoods@mellanox.com>
Cc: Khalil Blaiech <kblaiech@mellanox.com>,
	linux-i2c@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH v2 0/2] i2c: added driver for Mellanox BlueField SoC
Date: Tue,  4 Dec 2018 12:40:56 -0500	[thread overview]
Message-ID: <cover.1543941145.git.kblaiech@mellanox.com> (raw)

Added I2C SMBus driver and device tree bindings documentation.
This patch set depends on ARCH_MLNX_BLUEFIELD. There is separate
effort that aims to add support for the Mellanox BlueField SoC
to the kernel tree.

Changes since v1:

1) Device bindings documentation:

   - Enumerate the device resources.
   - Edit the 'compatible' property to make it less generic.
   - Remove the 'bus' index property and replace i with a
     standard approach to read the bus identifier.
   - Get rid of the 'profile' property.
   - Use 'clock-frequency' property instead of 'bus-freq'.
   - Convert the clock frequency from KHz to Hz.
   - Remove useless examples.

2) Device driver source:

   - Update the '.compatible' field of of_device_id.
   - Update mlx_i2c_of_probe() call to extract the bus id
     from the pre-defined aliases.
   - Don't check the profile property.
   - Read the 'clock-frequency' property to get the timing
     parameters. 
   - Convert the timing configuration from KHz to Hz.

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 |   67 +
 drivers/i2c/busses/Kconfig                         |   13 +
 drivers/i2c/busses/Makefile                        |    1 +
 drivers/i2c/busses/i2c-mlx.c                       | 2341 ++++++++++++++++++++
 4 files changed, 2422 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/i2c/mellanox,i2c-mlxbf.txt
 create mode 100644 drivers/i2c/busses/i2c-mlx.c

-- 
2.1.2

             reply	other threads:[~2018-12-04 17:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-04 17:40 Khalil Blaiech [this message]
2018-12-04 17:40 ` [PATCH v2 2/2] dt-bindings: i2c: I2C binding for Mellanox BlueField SoC Khalil Blaiech
2018-12-18 15:53   ` Rob Herring
2019-01-30 18:31     ` Khalil Blaiech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1543941145.git.kblaiech@mellanox.com \
    --to=kblaiech@mellanox.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dwoods@mellanox.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=wsa+renesas@sang-engineering.com \
    --cc=wsa@the-dreams.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).