devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] ks8851 DT updates
@ 2014-05-22 21:00 Stephen Boyd
  2014-05-22 21:00 ` [PATCH 1/5] devicetree: bindings: Document micrel vendor prefix Stephen Boyd
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stephen Boyd @ 2014-05-22 21:00 UTC (permalink / raw)
  To: David S . Miller
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, netdev,
	Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	devicetree, Nishanth Menon

This set of patches properly documents the micrel ks8851 spi ethernet
controller, converts to devm_regulator_get_optional() to make error
paths slightly simpler, and finally adds supports for another
optional regulator and a reset gpio.

Stephen Boyd (5):
  devicetree: bindings: Document micrel vendor prefix
  devicetree: bindings: Properly document micrel ks8851 SPI chips
  net: ks8851: Use devm_regulator_get_optional()
  net: ks8851: Add optional vdd_io regulator and reset gpio
  net: ks8851: Add of match table

 .../devicetree/bindings/net/micrel-ks8851.txt      | 15 ++++-
 .../devicetree/bindings/vendor-prefixes.txt        |  1 +
 drivers/net/ethernet/micrel/ks8851.c               | 71 +++++++++++++++++++---
 3 files changed, 75 insertions(+), 12 deletions(-)

-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

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

* [PATCH 1/5] devicetree: bindings: Document micrel vendor prefix
  2014-05-22 21:00 [PATCH 0/5] ks8851 DT updates Stephen Boyd
@ 2014-05-22 21:00 ` Stephen Boyd
  2014-05-28 16:18   ` Rob Herring
  2014-05-22 21:00 ` [PATCH 2/5] devicetree: bindings: Properly document micrel ks8851 SPI chips Stephen Boyd
  2014-05-23 19:15 ` [PATCH 0/5] ks8851 DT updates David Miller
  2 siblings, 1 reply; 7+ messages in thread
From: Stephen Boyd @ 2014-05-22 21:00 UTC (permalink / raw)
  To: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, netdev,
	David S . Miller, devicetree

There's one existing use of 'micrel' in the documentation so use
'micrel' instead of the company's ticker symbol 'mcrl'.

Cc: <devicetree@vger.kernel.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---

This is mostly here as the first patch to make checkpatch quiet. I expect DT
maintainers to pick this one up.

 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 1bc2174e1a05..2fe06ad1d248 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -76,6 +76,7 @@ linux	Linux-specific binding
 lsi	LSI Corp. (LSI Logic)
 marvell	Marvell Technology Group Ltd.
 maxim	Maxim Integrated Products
+micrel	Micrel Inc.
 microchip	Microchip Technology Inc.
 mosaixtech	Mosaix Technologies, Inc.
 moxa	Moxa
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

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

* [PATCH 2/5] devicetree: bindings: Properly document micrel ks8851 SPI chips
  2014-05-22 21:00 [PATCH 0/5] ks8851 DT updates Stephen Boyd
  2014-05-22 21:00 ` [PATCH 1/5] devicetree: bindings: Document micrel vendor prefix Stephen Boyd
@ 2014-05-22 21:00 ` Stephen Boyd
  2014-05-23 19:15 ` [PATCH 0/5] ks8851 DT updates David Miller
  2 siblings, 0 replies; 7+ messages in thread
From: Stephen Boyd @ 2014-05-22 21:00 UTC (permalink / raw)
  To: David S . Miller
  Cc: Nishanth Menon, Mark Rutland, Pawel Moll, Ian Campbell,
	linux-arm-msm, Kumar Gala, linux-kernel, devicetree, Rob Herring,
	netdev, linux-arm-kernel

The ks8851 SPI ethernet wasn't documented, but we documented the
optional regulator supply for it under the mll based ethernet
chip. Furthermore, that compatible string needed another 'l'. Fix
all of this and document the newly added optional vdd-io and
reset-gpios properties.

Cc: Nishanth Menon <nm@ti.com>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: <devicetree@vger.kernel.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
 Documentation/devicetree/bindings/net/micrel-ks8851.txt | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/net/micrel-ks8851.txt b/Documentation/devicetree/bindings/net/micrel-ks8851.txt
index d54d0cc79487..bbdf9a7359a2 100644
--- a/Documentation/devicetree/bindings/net/micrel-ks8851.txt
+++ b/Documentation/devicetree/bindings/net/micrel-ks8851.txt
@@ -1,9 +1,18 @@
-Micrel KS8851 Ethernet mac
+Micrel KS8851 Ethernet mac (MLL)
 
 Required properties:
-- compatible = "micrel,ks8851-ml" of parallel interface
+- compatible = "micrel,ks8851-mll" of parallel interface
 - reg : 2 physical address and size of registers for data and command
 - interrupts : interrupt connection
 
+Micrel KS8851 Ethernet mac (SPI)
+
+Required properties:
+- compatible = "micrel,ks8851" or the deprecated "ks8851"
+- reg : chip select number
+- interrupts : interrupt connection
+
 Optional properties:
-- vdd-supply:	supply for Ethernet mac
+- vdd-supply: analog 3.3V supply for Ethernet mac
+- vdd-io-supply: digital 1.8V IO supply for Ethernet mac
+- reset-gpios: reset_n input pin
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation

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

* Re: [PATCH 0/5] ks8851 DT updates
  2014-05-22 21:00 [PATCH 0/5] ks8851 DT updates Stephen Boyd
  2014-05-22 21:00 ` [PATCH 1/5] devicetree: bindings: Document micrel vendor prefix Stephen Boyd
  2014-05-22 21:00 ` [PATCH 2/5] devicetree: bindings: Properly document micrel ks8851 SPI chips Stephen Boyd
@ 2014-05-23 19:15 ` David Miller
  2014-05-23 19:34   ` Stephen Boyd
  2 siblings, 1 reply; 7+ messages in thread
From: David Miller @ 2014-05-23 19:15 UTC (permalink / raw)
  To: sboyd
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, netdev, robh+dt,
	pawel.moll, mark.rutland, ijc+devicetree, galak, devicetree, nm

From: Stephen Boyd <sboyd@codeaurora.org>
Date: Thu, 22 May 2014 14:00:08 -0700

> This set of patches properly documents the micrel ks8851 spi ethernet
> controller, converts to devm_regulator_get_optional() to make error
> paths slightly simpler, and finally adds supports for another
> optional regulator and a reset gpio.

Please do not submit patch sets that you expect different trees to
integrate, this is painful for maintainers to deal with.

Instead, submit the changes separately.  One series for one
maintainer's tree, another for the other maintainer's tree.

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

* Re: [PATCH 0/5] ks8851 DT updates
  2014-05-23 19:15 ` [PATCH 0/5] ks8851 DT updates David Miller
@ 2014-05-23 19:34   ` Stephen Boyd
  2014-05-23 19:37     ` David Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Boyd @ 2014-05-23 19:34 UTC (permalink / raw)
  To: David Miller
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, netdev, robh+dt,
	pawel.moll, mark.rutland, ijc+devicetree, galak, devicetree, nm

On 05/23/14 12:15, David Miller wrote:
> From: Stephen Boyd <sboyd@codeaurora.org>
> Date: Thu, 22 May 2014 14:00:08 -0700
>
>> This set of patches properly documents the micrel ks8851 spi ethernet
>> controller, converts to devm_regulator_get_optional() to make error
>> paths slightly simpler, and finally adds supports for another
>> optional regulator and a reset gpio.
> Please do not submit patch sets that you expect different trees to
> integrate, this is painful for maintainers to deal with.
>
> Instead, submit the changes separately.  One series for one
> maintainer's tree, another for the other maintainer's tree.
>

Ok. Shall I resend this series with the proper separation? Or can you
ignore the first patch? There isn't any functional dependency, more just
a checkpatch dependency which is not really all that important.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

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

* Re: [PATCH 0/5] ks8851 DT updates
  2014-05-23 19:34   ` Stephen Boyd
@ 2014-05-23 19:37     ` David Miller
  0 siblings, 0 replies; 7+ messages in thread
From: David Miller @ 2014-05-23 19:37 UTC (permalink / raw)
  To: sboyd
  Cc: linux-kernel, linux-arm-msm, linux-arm-kernel, netdev, robh+dt,
	pawel.moll, mark.rutland, ijc+devicetree, galak, devicetree, nm

From: Stephen Boyd <sboyd@codeaurora.org>
Date: Fri, 23 May 2014 12:34:01 -0700

> On 05/23/14 12:15, David Miller wrote:
>> From: Stephen Boyd <sboyd@codeaurora.org>
>> Date: Thu, 22 May 2014 14:00:08 -0700
>>
>>> This set of patches properly documents the micrel ks8851 spi ethernet
>>> controller, converts to devm_regulator_get_optional() to make error
>>> paths slightly simpler, and finally adds supports for another
>>> optional regulator and a reset gpio.
>> Please do not submit patch sets that you expect different trees to
>> integrate, this is painful for maintainers to deal with.
>>
>> Instead, submit the changes separately.  One series for one
>> maintainer's tree, another for the other maintainer's tree.
>>
> 
> Ok. Shall I resend this series with the proper separation? Or can you
> ignore the first patch? There isn't any functional dependency, more just
> a checkpatch dependency which is not really all that important.

To avoid all ambiguity please resubmit the new series.

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

* Re: [PATCH 1/5] devicetree: bindings: Document micrel vendor prefix
  2014-05-22 21:00 ` [PATCH 1/5] devicetree: bindings: Document micrel vendor prefix Stephen Boyd
@ 2014-05-28 16:18   ` Rob Herring
  0 siblings, 0 replies; 7+ messages in thread
From: Rob Herring @ 2014-05-28 16:18 UTC (permalink / raw)
  To: Stephen Boyd
  Cc: Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
	linux-kernel@vger.kernel.org, linux-arm-msm,
	linux-arm-kernel@lists.infradead.org, netdev, David S . Miller,
	devicetree@vger.kernel.org

On Thu, May 22, 2014 at 4:00 PM, Stephen Boyd <sboyd@codeaurora.org> wrote:
> There's one existing use of 'micrel' in the documentation so use
> 'micrel' instead of the company's ticker symbol 'mcrl'.
>
> Cc: <devicetree@vger.kernel.org>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

Applied for 3.16.

Rob

> ---
>
> This is mostly here as the first patch to make checkpatch quiet. I expect DT
> maintainers to pick this one up.
>
>  Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
> index 1bc2174e1a05..2fe06ad1d248 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.txt
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
> @@ -76,6 +76,7 @@ linux Linux-specific binding
>  lsi    LSI Corp. (LSI Logic)
>  marvell        Marvell Technology Group Ltd.
>  maxim  Maxim Integrated Products
> +micrel Micrel Inc.
>  microchip      Microchip Technology Inc.
>  mosaixtech     Mosaix Technologies, Inc.
>  moxa   Moxa
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> hosted by The Linux Foundation
>

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

end of thread, other threads:[~2014-05-28 16:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-22 21:00 [PATCH 0/5] ks8851 DT updates Stephen Boyd
2014-05-22 21:00 ` [PATCH 1/5] devicetree: bindings: Document micrel vendor prefix Stephen Boyd
2014-05-28 16:18   ` Rob Herring
2014-05-22 21:00 ` [PATCH 2/5] devicetree: bindings: Properly document micrel ks8851 SPI chips Stephen Boyd
2014-05-23 19:15 ` [PATCH 0/5] ks8851 DT updates David Miller
2014-05-23 19:34   ` Stephen Boyd
2014-05-23 19:37     ` David Miller

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).