Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1690534 > unrolled thread

[PATCH v2 0/2] ZII RAVE platform driver

Started byAndrey Smirnov <andrew.smirnov@gmail.com>
First post2017-07-18 20:00 +0200
Last post2017-07-25 14:40 +0200
Articles 6 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH v2 0/2] ZII RAVE platform driver Andrey Smirnov <andrew.smirnov@gmail.com> - 2017-07-18 20:00 +0200
    [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices Andrey Smirnov <andrew.smirnov@gmail.com> - 2017-07-18 20:00 +0200
      Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE  devices Lee Jones <lee.jones@linaro.org> - 2017-07-20 11:10 +0200
        Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices Andrey Smirnov <andrew.smirnov@gmail.com> - 2017-07-20 16:30 +0200
          Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE  devices Lee Jones <lee.jones@linaro.org> - 2017-07-25 11:20 +0200
            Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices Andrey Smirnov <andrew.smirnov@gmail.com> - 2017-07-25 14:40 +0200

#1690534 — [PATCH v2 0/2] ZII RAVE platform driver

FromAndrey Smirnov <andrew.smirnov@gmail.com>
Date2017-07-18 20:00 +0200
Subject[PATCH v2 0/2] ZII RAVE platform driver
Message-ID<u4EWR-5tk-3@gated-at.bofh.it>
Hi everyone,

This patch series is v2 of the driver for supervisory processor found
on RAVE series of devices from ZII. Supervisory processor is a PIC
microcontroller connected to various electrical subsystems on RAVE
devices whose firmware implements protocol to command/qery them.

Changes since [v1]:

    - Updated wording in DT-bindings as per Rob's request.

    - Collected Rob's Acked-by for patch 2/2

NOTE:

 * The driver for "zii,rave-sp-watchdog" exists, but I haven't
   submitted it yet, becuase I wanted to make sure that API exposed by
   this MFD is acceptable and doesn't need drastic changes.

 * This driver is dependent on crc_ccitt_false() introduced in
   2da9378d531f8cc6670c7497f20d936b706ab80b in 'linux-next'

Feedback is greatly appreciated!

Thanks,
Andrey Smirnov

[v1] lkml.kernel.org/r/r/20170710170449.4544-1-andrew.smirnov@gmail.com


Andrey Smirnov (2):
  platform: Add driver for RAVE Supervisory Processor
  dt-bindings: mfd: Add bindings for ZII RAVE devices

 .../devicetree/bindings/mfd/zii,rave-sp.txt        |   39 +
 drivers/mfd/Makefile                               |    1 +
 drivers/platform/Kconfig                           |    2 +
 drivers/platform/Makefile                          |    1 +
 drivers/platform/rave/Kconfig                      |   26 +
 drivers/platform/rave/Makefile                     |    1 +
 drivers/platform/rave/rave-sp.c                    | 1083 ++++++++++++++++++++
 include/linux/rave-sp.h                            |   54 +
 8 files changed, 1207 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
 create mode 100644 drivers/platform/rave/Kconfig
 create mode 100644 drivers/platform/rave/Makefile
 create mode 100644 drivers/platform/rave/rave-sp.c
 create mode 100644 include/linux/rave-sp.h

-- 
2.13.3

[toc] | [next] | [standalone]


#1690540 — [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices

FromAndrey Smirnov <andrew.smirnov@gmail.com>
Date2017-07-18 20:00 +0200
Subject[PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices
Message-ID<u4EWS-5tk-25@gated-at.bofh.it>
In reply to#1690534
Cc: cphealy@gmail.com
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: devicetree@vger.kernel.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
 .../devicetree/bindings/mfd/zii,rave-sp.txt        | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/zii,rave-sp.txt

diff --git a/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt b/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
new file mode 100644
index 000000000000..61d9105ded07
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
@@ -0,0 +1,39 @@
+Zodiac Inflight Innovations RAVE Supervisory Processor
+
+RAVE Supervisory Processor communicates with SoC over UART. It is
+expected that its device-tree node is specified as a child of a node
+corresponding to UART controller used for communication.
+
+Required parent device properties:
+
+ - compatible: Should be one of:
+	- "zii,rave-sp-niu"
+	- "zii,rave-sp-mezz"
+	- "zii,rave-sp-esb"
+	- "zii,rave-sp-rdu1"
+	- "zii,rave-sp-rdu2"
+
+ - current-speed: Should be set to baud rate SP device is using
+
+RAVE SP consists of the following sub-devices:
+
+Device				 Description
+------				 -----------
+rave-sp-wdt			: Watchdog
+rave-sp-nvmem			: Interface to onborad EEPROM
+rave-sp-backlight		: Display backlight
+rave-sp-hwmon			: Interface to onboard hardware sensors
+rave-sp-leds			: Interface to onboard LEDs
+rave-sp-input			: Interface to onboard power button
+
+Example of usage:
+
+	rdu {
+		compatible = "zii,rave-sp-rdu2";
+		current-speed = <1000000>;
+
+		watchdog {
+			compatible = "zii,rave-sp-watchdog";
+		};
+	};
+
-- 
2.13.3

[toc] | [prev] | [next] | [standalone]


#1692641 — Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices

FromLee Jones <lee.jones@linaro.org>
Date2017-07-20 11:10 +0200
SubjectRe: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices
Message-ID<u5fD4-5dz-27@gated-at.bofh.it>
In reply to#1690540
Where is patch 1?

> Cc: cphealy@gmail.com
> Cc: Lucas Stach <l.stach@pengutronix.de>
> Cc: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Mark Rutland <mark.rutland@arm.com>
> Cc: devicetree@vger.kernel.org
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> ---
>  .../devicetree/bindings/mfd/zii,rave-sp.txt        | 39 ++++++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
> 
> diff --git a/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt b/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
> new file mode 100644
> index 000000000000..61d9105ded07
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
> @@ -0,0 +1,39 @@
> +Zodiac Inflight Innovations RAVE Supervisory Processor
> +
> +RAVE Supervisory Processor communicates with SoC over UART. It is
> +expected that its device-tree node is specified as a child of a node

Nit: Device Tree

Once fixed, please apply my:

For my own reference:
  Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>

> +corresponding to UART controller used for communication.
> +
> +Required parent device properties:
> +
> + - compatible: Should be one of:
> +	- "zii,rave-sp-niu"
> +	- "zii,rave-sp-mezz"
> +	- "zii,rave-sp-esb"
> +	- "zii,rave-sp-rdu1"
> +	- "zii,rave-sp-rdu2"
> +
> + - current-speed: Should be set to baud rate SP device is using
> +
> +RAVE SP consists of the following sub-devices:
> +
> +Device				 Description
> +------				 -----------
> +rave-sp-wdt			: Watchdog
> +rave-sp-nvmem			: Interface to onborad EEPROM
> +rave-sp-backlight		: Display backlight
> +rave-sp-hwmon			: Interface to onboard hardware sensors
> +rave-sp-leds			: Interface to onboard LEDs
> +rave-sp-input			: Interface to onboard power button
> +
> +Example of usage:
> +
> +	rdu {
> +		compatible = "zii,rave-sp-rdu2";
> +		current-speed = <1000000>;
> +
> +		watchdog {
> +			compatible = "zii,rave-sp-watchdog";
> +		};
> +	};
> +

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

[toc] | [prev] | [next] | [standalone]


#1692980 — Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices

FromAndrey Smirnov <andrew.smirnov@gmail.com>
Date2017-07-20 16:30 +0200
SubjectRe: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices
Message-ID<u5kCJ-ew-15@gated-at.bofh.it>
In reply to#1692641
On Thu, Jul 20, 2017 at 2:04 AM, Lee Jones <lee.jones@linaro.org> wrote:
> Where is patch 1?
>

lkml.kernel.org/r/20170718175604.11735-2-andrew.smirnov@gmail.com

I dropped you from CC list to spare you the e-mail traffic, but I can
add you back if you'd prefer that.

>> Cc: cphealy@gmail.com
>> Cc: Lucas Stach <l.stach@pengutronix.de>
>> Cc: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
>> Cc: Rob Herring <robh+dt@kernel.org>
>> Cc: Mark Rutland <mark.rutland@arm.com>
>> Cc: devicetree@vger.kernel.org
>> Acked-by: Rob Herring <robh@kernel.org>
>> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
>> ---
>>  .../devicetree/bindings/mfd/zii,rave-sp.txt        | 39 ++++++++++++++++++++++
>>  1 file changed, 39 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
>>
>> diff --git a/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt b/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
>> new file mode 100644
>> index 000000000000..61d9105ded07
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
>> @@ -0,0 +1,39 @@
>> +Zodiac Inflight Innovations RAVE Supervisory Processor
>> +
>> +RAVE Supervisory Processor communicates with SoC over UART. It is
>> +expected that its device-tree node is specified as a child of a node
>
> Nit: Device Tree
>
> Once fixed, please apply my:
>
> For my own reference:
>   Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>
>

OK. Will do.

Thanks,
Andrey Smirnov

[toc] | [prev] | [next] | [standalone]


#1695524 — Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices

FromLee Jones <lee.jones@linaro.org>
Date2017-07-25 11:20 +0200
SubjectRe: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices
Message-ID<u74au-VK-5@gated-at.bofh.it>
In reply to#1692980
On Thu, 20 Jul 2017, Andrey Smirnov wrote:

> On Thu, Jul 20, 2017 at 2:04 AM, Lee Jones <lee.jones@linaro.org> wrote:
> > Where is patch 1?
> >
> 
> lkml.kernel.org/r/20170718175604.11735-2-andrew.smirnov@gmail.com
> 
> I dropped you from CC list to spare you the e-mail traffic, but I can
> add you back if you'd prefer that.

It's always handy to see the C code which handles these bindings.

Also, it looks like there is an MFD change in that patch, so I should
have been Cc'ed anyway.

> >> Cc: cphealy@gmail.com
> >> Cc: Lucas Stach <l.stach@pengutronix.de>
> >> Cc: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
> >> Cc: Rob Herring <robh+dt@kernel.org>
> >> Cc: Mark Rutland <mark.rutland@arm.com>
> >> Cc: devicetree@vger.kernel.org
> >> Acked-by: Rob Herring <robh@kernel.org>
> >> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
> >> ---
> >>  .../devicetree/bindings/mfd/zii,rave-sp.txt        | 39 ++++++++++++++++++++++
> >>  1 file changed, 39 insertions(+)
> >>  create mode 100644 Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
> >>
> >> diff --git a/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt b/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
> >> new file mode 100644
> >> index 000000000000..61d9105ded07
> >> --- /dev/null
> >> +++ b/Documentation/devicetree/bindings/mfd/zii,rave-sp.txt
> >> @@ -0,0 +1,39 @@
> >> +Zodiac Inflight Innovations RAVE Supervisory Processor
> >> +
> >> +RAVE Supervisory Processor communicates with SoC over UART. It is
> >> +expected that its device-tree node is specified as a child of a node
> >
> > Nit: Device Tree
> >
> > Once fixed, please apply my:
> >
> > For my own reference:
> >   Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org>
> >
> 
> OK. Will do.
> 
> Thanks,
> Andrey Smirnov

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

[toc] | [prev] | [next] | [standalone]


#1695691 — Re: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices

FromAndrey Smirnov <andrew.smirnov@gmail.com>
Date2017-07-25 14:40 +0200
SubjectRe: [PATCH v2 2/2] dt-bindings: mfd: Add bindings for ZII RAVE devices
Message-ID<u77i1-2MX-1@gated-at.bofh.it>
In reply to#1695524
On Tue, Jul 25, 2017 at 2:14 AM, Lee Jones <lee.jones@linaro.org> wrote:
> On Thu, 20 Jul 2017, Andrey Smirnov wrote:
>
>> On Thu, Jul 20, 2017 at 2:04 AM, Lee Jones <lee.jones@linaro.org> wrote:
>> > Where is patch 1?
>> >
>>
>> lkml.kernel.org/r/20170718175604.11735-2-andrew.smirnov@gmail.com
>>
>> I dropped you from CC list to spare you the e-mail traffic, but I can
>> add you back if you'd prefer that.
>
> It's always handy to see the C code which handles these bindings.
>
> Also, it looks like there is an MFD change in that patch, so I should
> have been Cc'ed anyway.
>

OK, I'll add you back on CC list for future versions of the patchset.

Thanks,
Andrey Smirnov

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web