From: Jiri Pirko <jiri@resnulli.us>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, vadimp@mellanox.com, idosch@mellanox.com,
eladr@mellanox.com, yotamg@mellanox.com, nogahf@mellanox.com,
arkadis@mellanox.com, ogerlitz@mellanox.com
Subject: [patch net-next 0/4] mlxsw: Introduce support for I2C bus
Date: Wed, 16 Nov 2016 15:20:42 +0100 [thread overview]
Message-ID: <1479306046-13324-1-git-send-email-jiri@resnulli.us> (raw)
From: Jiri Pirko <jiri@mellanox.com>
Vadim says:
This patchset adds I2C access support for SwitchX, SwitchX2, SwitchIB,
SwitchIB2 and Spectrum silicones.
It contains:
- Small changes in mlxsw core code, needed for I2C bus support;
- I2C driver, which obtains I2C input/output mailboxes setting and
provides command interface implementation.
- Minimal driver, which works on top of I2C driver and allows running
of mlxsw command interface over I2C bus;
Use case:
On system, which does not have PCI to ASIC (BMC), hwmon functionality
(sensors, pwm, tacho) will be available through I2C.
Usage (manual probing):
echo mlxsw_minimal 0x48 > /sys/bus/i2c/devices/i2c-2/new_device
Sysfs interface:
/sys/bus/i2c/devices/2-0048/hwmon/hwmon5/pwm1
/sys/bus/i2c/devices/2-0048/hwmon/hwmon5/temp1_input
Vadim Pasternak (4):
mlxsw: Add bus capability flag
mlxsw: Introduce support for I2C bus
mlxsw: Invoke driver's init/fini methods only if defined
mlxsw: minimal: Add I2C support for Mellanox ASICs
drivers/net/ethernet/mellanox/mlxsw/Kconfig | 21 +
drivers/net/ethernet/mellanox/mlxsw/Makefile | 4 +
drivers/net/ethernet/mellanox/mlxsw/core.c | 20 +-
drivers/net/ethernet/mellanox/mlxsw/core.h | 3 +
drivers/net/ethernet/mellanox/mlxsw/i2c.c | 582 ++++++++++++++++++++++++++
drivers/net/ethernet/mellanox/mlxsw/i2c.h | 60 +++
drivers/net/ethernet/mellanox/mlxsw/minimal.c | 97 +++++
drivers/net/ethernet/mellanox/mlxsw/pci.c | 1 +
8 files changed, 783 insertions(+), 5 deletions(-)
create mode 100644 drivers/net/ethernet/mellanox/mlxsw/i2c.c
create mode 100644 drivers/net/ethernet/mellanox/mlxsw/i2c.h
create mode 100644 drivers/net/ethernet/mellanox/mlxsw/minimal.c
--
2.7.4
next reply other threads:[~2016-11-16 14:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-16 14:20 Jiri Pirko [this message]
2016-11-16 14:20 ` [patch net-next 1/4] mlxsw: Add bus capability flag Jiri Pirko
2016-11-16 14:20 ` [patch net-next 2/4] mlxsw: Introduce support for I2C bus Jiri Pirko
2016-11-16 14:20 ` [patch net-next 3/4] mlxsw: Invoke driver's init/fini methods only if defined Jiri Pirko
2016-11-16 14:20 ` [patch net-next 4/4] mlxsw: minimal: Add I2C support for Mellanox ASICs Jiri Pirko
2016-11-16 14:23 ` [patch net-next 0/4] mlxsw: Introduce support for I2C bus Jiri Pirko
2016-11-17 4:29 ` David Miller
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=1479306046-13324-1-git-send-email-jiri@resnulli.us \
--to=jiri@resnulli.us \
--cc=arkadis@mellanox.com \
--cc=davem@davemloft.net \
--cc=eladr@mellanox.com \
--cc=idosch@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=nogahf@mellanox.com \
--cc=ogerlitz@mellanox.com \
--cc=vadimp@mellanox.com \
--cc=yotamg@mellanox.com \
/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).