[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181031194425.32132-1-TheSven73@googlemail.com>
Date: Wed, 31 Oct 2018 15:44:20 -0400
From: thesven73@...il.com
To: svendev@...x.com, lee.jones@...aro.org, robh+dt@...nel.org,
mark.rutland@....com, afaerber@...e.de, treding@...dia.com,
david@...hnology.com, noralf@...nnes.org, johan@...nel.org,
monstr@...str.eu, michal.vokac@...ft.com, arnd@...db.de,
gregkh@...uxfoundation.org, john.garry@...wei.com,
geert+renesas@...der.be, robin.murphy@....com,
paul.gortmaker@...driver.com,
sebastien.bourdelin@...oirfairelinux.com, icenowy@...c.io,
stuyoder@...il.com, linus.walleij@...aro.org,
maxime.ripard@...tlin.com
Cc: linux-kernel@...r.kernel.org, devicetree@...r.kernel.org
Subject: [PATCH anybus v2 0/5] Support HMS Profinet Card over Anybus
From: Sven Van Asbroeck <svendev@...x.com>
This patch set adds support for the HMS Industrial Networks AB Profinet card.
Profinet is an industry technical standard for data communication over
Industrial Ethernet, designed for collecting data from, and controlling,
equipment in industrial systems, with a particular strength in delivering data
under tight time constraints (on the order of 1ms or less).
The profinet card itself is connected to the system via an industrial bus
called 'anybus'.
I have followed the bus driver/client driver pattern, and created an anybus
bus driver, plus a client driver for the profinet card.
In case this patch set gets (eventually) accepted, drivers for other anybus
client cards may follow: flnet, cc-link, ...
The anybus slot on the host is located on an 'anybus bridge', which is
custom h/w designed by Arcx. Its driver is modeled as a misc device, which
exposes a dual reset controller, plus a power readout unrelated to the anybus.
v2:
added architecture overview comments to host driver
completely reworked anybus-bridge driver, it becomes a reset controller
anybuss-host driver now needs devicetree entry, link to reset controller
I will hold off on kernel-doc until the overall architecture gets
more validation / approval
fixed Kconfig, comment-style, document ioctl magic numbers
removed redundant pwm dependency
renamed enable-gpios to reset-gpios
stop driving reset-gpio after unloading driver
use interrupt-parent / interrupts method to describe interrupts
in the devicetree
convert references 'i.MX WEIM parallel bus' to 'parallel bus'
replace devicetree functions with more generic platform_get_resource()
platform_get_irq()
added device unique data to add_device_randomness()
v1:
first shot
Sven Van Asbroeck (5):
misc: support the Arcx anybus bridge.
dt-bindings: anybus-bridge: document devicetree binding.
bus: support HMS Anybus-S bus.
dt-bindings: anybuss-host: document devicetree binding.
misc: support HMS Profinet IRT industrial controller.
.../bindings/bus/arcx,anybuss-host.txt | 36 +
.../bindings/misc/arcx,anybus-bridge.txt | 34 +
.../devicetree/bindings/vendor-prefixes.txt | 1 +
Documentation/ioctl/ioctl-number.txt | 1 +
drivers/bus/Kconfig | 10 +
drivers/bus/Makefile | 1 +
drivers/bus/anybuss-host.c | 1498 +++++++++++++++++
drivers/misc/Kconfig | 19 +
drivers/misc/Makefile | 2 +
drivers/misc/anybus-bridge.c | 301 ++++
drivers/misc/hms-profinet.c | 753 +++++++++
include/linux/anybuss-client.h | 100 ++
include/uapi/linux/hms-common.h | 14 +
include/uapi/linux/hms-profinet.h | 102 ++
14 files changed, 2872 insertions(+)
create mode 100644 Documentation/devicetree/bindings/bus/arcx,anybuss-host.txt
create mode 100644 Documentation/devicetree/bindings/misc/arcx,anybus-bridge.txt
create mode 100644 drivers/bus/anybuss-host.c
create mode 100644 drivers/misc/anybus-bridge.c
create mode 100644 drivers/misc/hms-profinet.c
create mode 100644 include/linux/anybuss-client.h
create mode 100644 include/uapi/linux/hms-common.h
create mode 100644 include/uapi/linux/hms-profinet.h
--
2.17.1
Powered by blists - more mailing lists