Skip to contentSkip to conversation

spi: meson: Add Amlogic GXBB compatible

PATCH In review Neil Armstrong 6 participants 11 messages Sep 8, 2016 – Sep 16, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover spi: meson: Add Amlogic GXBB compatible

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 at 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(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 dt-bindings: spi-meson: Add GXBB Compatible string

---
 Documentation/devicetree/bindings/spi/spi-meson.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/spi/spi-meson.txt +1 -1
index bb52a86..dc6d031 100644
@@ -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
Signature · 1 line
1.9.1
maintainer
#2 lore raw

Re: [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string

Quoted 1 line · Neil Armstrong

Please use subject lines matching the style for the subsystem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-amlogic/attachments/20160912/1cc4abbd/attachment.sig>

maintainer
#3 lore raw

Re: [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string

In reply to Neil Armstrong
Quoted 10 lines · Neil Armstrong
---
 Documentation/devicetree/bindings/spi/spi-meson.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/spi/spi-meson.txt +0 -0
index bb52a86..dc6d031 100644

Documentation/devicetree/bindings/spi/spi-meson.txt NOR memories, without DMA support and a 64-byte unified transmit / · line 10

Quoted 5 lines
Documentation/devicetree/bindings/spi/spi-meson.txt +1 -1
@@ -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.

Quoted 10 lines
Documentation/devicetree/bindings/spi/spi-meson.txt +0 -0
  - 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
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#4 lore raw

PATCH 2/2 spi: meson: Add GXBB compatible

In reply to Neil Armstrong
---
 drivers/spi/spi-meson-spifc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/spi/spi-meson-spifc.c +1 -0
index 2465259..616566e 100644
@@ -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);
Signature · 1 line
1.9.1
#5 lore raw
In reply to Neil Armstrong

Am 08.09.2016 um 09:53 schrieb Neil Armstrong:

Quoted 2 lines

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

Quoted 11 lines

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 at 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(-)
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
#6 lore raw

Am 08.09.2016 um 14:04 schrieb Andreas F?rber:

Quoted 6 lines

Am 08.09.2016 um 09:53 schrieb Neil Armstrong:

Quoted 2 lines

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

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
#7 lore raw
Quoted 5 lines · Andreas F?rber

Am 08.09.2016 um 14:04 schrieb Andreas F?rber:

Quoted 4 lines

Am 08.09.2016 um 09:53 schrieb Neil Armstrong:

Quoted 2 lines

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

Quoted 8 lines
Quoted 2 lines

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.

Signature · 2 lines
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius
maintainer
#8 lore raw
In reply to Andreas Färber
Quoted 5 lines · Andreas F?rber

Am 08.09.2016 um 14:04 schrieb Andreas F?rber:

Quoted 4 lines

Am 08.09.2016 um 09:53 schrieb Neil Armstrong:

Quoted 2 lines

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

Quoted 8 lines
Quoted 2 lines

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

maintainer
#9 lore raw
In reply to Andreas Färber
Quoted 5 lines · Andreas F?rber

Am 08.09.2016 um 14:04 schrieb Andreas F?rber:

Quoted 4 lines

Am 08.09.2016 um 09:53 schrieb Neil Armstrong:

Quoted 2 lines

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

Quoted 8 lines
Quoted 2 lines

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

maintainer Acked-by on the v1 series
#10 lore raw
In reply to Neil Armstrong
Quoted 10 lines · Neil Armstrong

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 at baylibre.com

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

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

Kevin