linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible
@ 2016-09-08  7:53 Neil Armstrong
  2016-09-08  7:53 ` [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string Neil Armstrong
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Neil Armstrong @ 2016-09-08  7:53 UTC (permalink / raw)
  To: broonie, carlo, khilman
  Cc: Neil Armstrong, linux-spi, linux-arm-kernel, linux-amlogic, linux-kernel

This patchset adds a specific compatible string in the Meson SPIFC driver for
the Amlogic Meson GXBB SoC.

This patchset is SPI-only respin from Jerome Brunet patchset at [1].

[1] http://lkml.kernel.org/r/1473261223-15412-1-git-send-email-jbrunet@baylibre.com

Neil Armstrong (2):
  dt-bindings: spi-meson: Add GXBB Compatible string
  spi: meson: Add GXBB compatible

 Documentation/devicetree/bindings/spi/spi-meson.txt | 2 +-
 drivers/spi/spi-meson-spifc.c                       | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

-- 
1.9.1

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

* [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string
  2016-09-08  7:53 [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible Neil Armstrong
@ 2016-09-08  7:53 ` Neil Armstrong
  2016-09-12 19:07   ` Mark Brown
  2016-09-16 15:33   ` Rob Herring
  2016-09-08  7:53 ` [PATCH 2/2] spi: meson: Add GXBB compatible Neil Armstrong
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 11+ messages in thread
From: Neil Armstrong @ 2016-09-08  7:53 UTC (permalink / raw)
  To: broonie, carlo, khilman, devicetree
  Cc: Neil Armstrong, linux-spi, linux-arm-kernel, linux-amlogic, linux-kernel

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 Documentation/devicetree/bindings/spi/spi-meson.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/spi/spi-meson.txt b/Documentation/devicetree/bindings/spi/spi-meson.txt
index bb52a86..dc6d031 100644
--- a/Documentation/devicetree/bindings/spi/spi-meson.txt
+++ b/Documentation/devicetree/bindings/spi/spi-meson.txt
@@ -7,7 +7,7 @@ NOR memories, without DMA support and a 64-byte unified transmit /
 receive buffer.
 
 Required properties:
- - compatible: should be "amlogic,meson6-spifc"
+ - compatible: should be "amlogic,meson6-spifc" or "amlogic,meson-gxbb-spifc"
  - reg: physical base address and length of the controller registers
  - clocks: phandle of the input clock for the baud rate generator
  - #address-cells: should be 1
-- 
1.9.1

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

* [PATCH 2/2] spi: meson: Add GXBB compatible
  2016-09-08  7:53 [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible Neil Armstrong
  2016-09-08  7:53 ` [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string Neil Armstrong
@ 2016-09-08  7:53 ` Neil Armstrong
  2016-09-08 12:04 ` [PATCH 0/2] spi: meson: Add Amlogic " Andreas Färber
  2016-09-08 18:13 ` Kevin Hilman
  3 siblings, 0 replies; 11+ messages in thread
From: Neil Armstrong @ 2016-09-08  7:53 UTC (permalink / raw)
  To: broonie, carlo, khilman
  Cc: Neil Armstrong, linux-spi, linux-arm-kernel, linux-amlogic, linux-kernel

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 drivers/spi/spi-meson-spifc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-meson-spifc.c b/drivers/spi/spi-meson-spifc.c
index 2465259..616566e 100644
--- a/drivers/spi/spi-meson-spifc.c
+++ b/drivers/spi/spi-meson-spifc.c
@@ -442,6 +442,7 @@ static const struct dev_pm_ops meson_spifc_pm_ops = {
 
 static const struct of_device_id meson_spifc_dt_match[] = {
 	{ .compatible = "amlogic,meson6-spifc", },
+	{ .compatible = "amlogic,meson-gxbb-spifc", },
 	{ },
 };
 MODULE_DEVICE_TABLE(of, meson_spifc_dt_match);
-- 
1.9.1

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

* Re: [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible
  2016-09-08  7:53 [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible Neil Armstrong
  2016-09-08  7:53 ` [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string Neil Armstrong
  2016-09-08  7:53 ` [PATCH 2/2] spi: meson: Add GXBB compatible Neil Armstrong
@ 2016-09-08 12:04 ` Andreas Färber
  2016-09-08 12:50   ` Andreas Färber
  2016-09-08 18:13 ` Kevin Hilman
  3 siblings, 1 reply; 11+ messages in thread
From: Andreas Färber @ 2016-09-08 12:04 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: broonie, carlo, khilman, linux-amlogic, linux-spi, linux-kernel,
	linux-arm-kernel

Am 08.09.2016 um 09:53 schrieb Neil Armstrong:
> This patchset adds a specific compatible string in the Meson SPIFC driver for
> the Amlogic Meson GXBB SoC.

Any particular reason? We could just reuse the meson6 one since there
appear to be no code changes so far.

Regards,
Andreas

> This patchset is SPI-only respin from Jerome Brunet patchset at [1].
> 
> [1] http://lkml.kernel.org/r/1473261223-15412-1-git-send-email-jbrunet@baylibre.com
> 
> Neil Armstrong (2):
>   dt-bindings: spi-meson: Add GXBB Compatible string
>   spi: meson: Add GXBB compatible
> 
>  Documentation/devicetree/bindings/spi/spi-meson.txt | 2 +-
>  drivers/spi/spi-meson-spifc.c                       | 1 +
>  2 files changed, 2 insertions(+), 1 deletion(-)

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

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

* Re: [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible
  2016-09-08 12:04 ` [PATCH 0/2] spi: meson: Add Amlogic " Andreas Färber
@ 2016-09-08 12:50   ` Andreas Färber
  2016-09-08 13:21     ` Ben Dooks
                       ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Andreas Färber @ 2016-09-08 12:50 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: khilman, linux-kernel, linux-spi, broonie, carlo, linux-amlogic,
	linux-arm-kernel, devicetree

Am 08.09.2016 um 14:04 schrieb Andreas Färber:
> Am 08.09.2016 um 09:53 schrieb Neil Armstrong:
>> This patchset adds a specific compatible string in the Meson SPIFC driver for
>> the Amlogic Meson GXBB SoC.
> 
> Any particular reason? We could just reuse the meson6 one since there
> appear to be no code changes so far.

So Neil is essentially telling me they don't know whether there are any
differences in the IP block, so a separate compatible string was chosen.

No objection from my side, but a general clarification from device tree
maintainers when and when not to would be appreciated. (+ devicetree)

Cheers,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

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

* Re: [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible
  2016-09-08 12:50   ` Andreas Färber
@ 2016-09-08 13:21     ` Ben Dooks
  2016-09-08 18:17     ` Kevin Hilman
  2016-09-16 15:28     ` Rob Herring
  2 siblings, 0 replies; 11+ messages in thread
From: Ben Dooks @ 2016-09-08 13:21 UTC (permalink / raw)
  To: Andreas Färber, Neil Armstrong
  Cc: devicetree, khilman, linux-kernel, linux-spi, broonie, carlo,
	linux-amlogic, linux-arm-kernel

On 08/09/16 13:50, Andreas Färber wrote:
> Am 08.09.2016 um 14:04 schrieb Andreas Färber:
>> Am 08.09.2016 um 09:53 schrieb Neil Armstrong:
>>> This patchset adds a specific compatible string in the Meson SPIFC driver for
>>> the Amlogic Meson GXBB SoC.
>>
>> Any particular reason? We could just reuse the meson6 one since there
>> appear to be no code changes so far.
>
> So Neil is essentially telling me they don't know whether there are any
> differences in the IP block, so a separate compatible string was chosen.
>
> No objection from my side, but a general clarification from device tree
> maintainers when and when not to would be appreciated. (+ devicetree)

I prefer to add both the device-tree itself, so if there are differences
found later then it can be dealt with without rebuilding both the DT
and kernel.

It is nice to have the new ones added to the driver so that you know the
hardware choices in play.

-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

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

* Re: [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible
  2016-09-08  7:53 [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible Neil Armstrong
                   ` (2 preceding siblings ...)
  2016-09-08 12:04 ` [PATCH 0/2] spi: meson: Add Amlogic " Andreas Färber
@ 2016-09-08 18:13 ` Kevin Hilman
  3 siblings, 0 replies; 11+ messages in thread
From: Kevin Hilman @ 2016-09-08 18:13 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: broonie, carlo, linux-spi, linux-arm-kernel, linux-amlogic, linux-kernel

Neil Armstrong <narmstrong@baylibre.com> writes:

> This patchset adds a specific compatible string in the Meson SPIFC driver for
> the Amlogic Meson GXBB SoC.
>
> This patchset is SPI-only respin from Jerome Brunet patchset at [1].
>
> [1] http://lkml.kernel.org/r/1473261223-15412-1-git-send-email-jbrunet@baylibre.com
>
> Neil Armstrong (2):
>   dt-bindings: spi-meson: Add GXBB Compatible string
>   spi: meson: Add GXBB compatible

Acked-by: Kevin Hilman <khilman@baylibre.com>

Mark, with your ack, I could take these through the amlogic tree also.
Let me know.

Kevin

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

* Re: [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible
  2016-09-08 12:50   ` Andreas Färber
  2016-09-08 13:21     ` Ben Dooks
@ 2016-09-08 18:17     ` Kevin Hilman
  2016-09-16 15:28     ` Rob Herring
  2 siblings, 0 replies; 11+ messages in thread
From: Kevin Hilman @ 2016-09-08 18:17 UTC (permalink / raw)
  To: Andreas Färber
  Cc: Neil Armstrong, linux-kernel, linux-spi, broonie, carlo,
	linux-amlogic, linux-arm-kernel, devicetree, Rob Herring

Andreas Färber <afaerber@suse.de> writes:

> Am 08.09.2016 um 14:04 schrieb Andreas Färber:
>> Am 08.09.2016 um 09:53 schrieb Neil Armstrong:
>>> This patchset adds a specific compatible string in the Meson SPIFC driver for
>>> the Amlogic Meson GXBB SoC.
>> 
>> Any particular reason? We could just reuse the meson6 one since there
>> appear to be no code changes so far.
>
> So Neil is essentially telling me they don't know whether there are any
> differences in the IP block, so a separate compatible string was chosen.
>
> No objection from my side, but a general clarification from device tree
> maintainers when and when not to would be appreciated. (+ devicetree)

I'm not sure what the "right" way is (Rob?) but I think the usual way is
to add new compatibles when needed.

Kevin

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

* Re: [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string
  2016-09-08  7:53 ` [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string Neil Armstrong
@ 2016-09-12 19:07   ` Mark Brown
  2016-09-16 15:33   ` Rob Herring
  1 sibling, 0 replies; 11+ messages in thread
From: Mark Brown @ 2016-09-12 19:07 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: carlo, khilman, devicetree, linux-spi, linux-arm-kernel,
	linux-amlogic, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

On Thu, Sep 08, 2016 at 09:53:25AM +0200, Neil Armstrong wrote:
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>

Please use subject lines matching the style for the subsystem.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

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

* Re: [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible
  2016-09-08 12:50   ` Andreas Färber
  2016-09-08 13:21     ` Ben Dooks
  2016-09-08 18:17     ` Kevin Hilman
@ 2016-09-16 15:28     ` Rob Herring
  2 siblings, 0 replies; 11+ messages in thread
From: Rob Herring @ 2016-09-16 15:28 UTC (permalink / raw)
  To: Andreas Färber
  Cc: Neil Armstrong, khilman, linux-kernel, linux-spi, broonie, carlo,
	linux-amlogic, linux-arm-kernel, devicetree

On Thu, Sep 08, 2016 at 02:50:37PM +0200, Andreas Färber wrote:
> Am 08.09.2016 um 14:04 schrieb Andreas Färber:
> > Am 08.09.2016 um 09:53 schrieb Neil Armstrong:
> >> This patchset adds a specific compatible string in the Meson SPIFC driver for
> >> the Amlogic Meson GXBB SoC.
> > 
> > Any particular reason? We could just reuse the meson6 one since there
> > appear to be no code changes so far.
> 
> So Neil is essentially telling me they don't know whether there are any
> differences in the IP block, so a separate compatible string was chosen.
> 
> No objection from my side, but a general clarification from device tree
> maintainers when and when not to would be appreciated. (+ devicetree)

New chip, always define a new compatible. If you think they are the same 
or are close enough to function with the existing driver, then put both 
compatible strings in the DT.

Rob

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

* Re: [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string
  2016-09-08  7:53 ` [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string Neil Armstrong
  2016-09-12 19:07   ` Mark Brown
@ 2016-09-16 15:33   ` Rob Herring
  1 sibling, 0 replies; 11+ messages in thread
From: Rob Herring @ 2016-09-16 15:33 UTC (permalink / raw)
  To: Neil Armstrong
  Cc: broonie, carlo, khilman, devicetree, linux-spi, linux-arm-kernel,
	linux-amlogic, linux-kernel

On Thu, Sep 08, 2016 at 09:53:25AM +0200, Neil Armstrong wrote:
> Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
> ---
>  Documentation/devicetree/bindings/spi/spi-meson.txt | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/spi/spi-meson.txt b/Documentation/devicetree/bindings/spi/spi-meson.txt
> index bb52a86..dc6d031 100644
> --- a/Documentation/devicetree/bindings/spi/spi-meson.txt
> +++ b/Documentation/devicetree/bindings/spi/spi-meson.txt
> @@ -7,7 +7,7 @@ NOR memories, without DMA support and a 64-byte unified transmit /
>  receive buffer.
>  
>  Required properties:
> - - compatible: should be "amlogic,meson6-spifc"
> + - compatible: should be "amlogic,meson6-spifc" or "amlogic,meson-gxbb-spifc"

If you are going to use both, make sure the order is clear (most 
specific, best match first). Sometimes the chip names make that clear, 
but not here.

>   - reg: physical base address and length of the controller registers
>   - clocks: phandle of the input clock for the baud rate generator
>   - #address-cells: should be 1
> -- 
> 1.9.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2016-09-16 15:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-08  7:53 [PATCH 0/2] spi: meson: Add Amlogic GXBB compatible Neil Armstrong
2016-09-08  7:53 ` [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string Neil Armstrong
2016-09-12 19:07   ` Mark Brown
2016-09-16 15:33   ` Rob Herring
2016-09-08  7:53 ` [PATCH 2/2] spi: meson: Add GXBB compatible Neil Armstrong
2016-09-08 12:04 ` [PATCH 0/2] spi: meson: Add Amlogic " Andreas Färber
2016-09-08 12:50   ` Andreas Färber
2016-09-08 13:21     ` Ben Dooks
2016-09-08 18:17     ` Kevin Hilman
2016-09-16 15:28     ` Rob Herring
2016-09-08 18:13 ` Kevin Hilman

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