spi: meson: Add Amlogic GXBB compatible
Subsystems (3)
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
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
@@ -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
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
@@ -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
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 compatibleDocumentation/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)
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)
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
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
Kevin Hilman
maintainerQuoted 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
Mark Brown
maintainerRe: [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string
In reply to Neil ArmstrongQuoted 1 line · Neil Armstrong
Signed-off-by Neil Armstrong <[email protected]>
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>
Rob Herring
maintainerQuoted 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
Rob Herring
maintainerRe: [PATCH 1/2] dt-bindings: spi-meson: Add GXBB Compatible string
In reply to Neil ArmstrongQuoted 10 lines · Neil Armstrong
Signed-off-by Neil Armstrong <[email protected]>--- Documentation/devicetree/bindings/spi/spi-meson.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/devicetree/bindings/spi/spi-meson.txt +0
-0
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 1Signature · 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