* [PATCH v3 resend] spi: hs-spi: Improve bindings
@ 2014-03-11 9:40 Geert Uytterhoeven
[not found] ` <1394530851-20244-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2014-03-11 10:42 ` Mark Brown
0 siblings, 2 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2014-03-11 9:40 UTC (permalink / raw)
To: Mark Brown
Cc: Simon Horman, devicetree, linux-spi, linux-sh, Geert Uytterhoeven
From: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
- Add future-proof "renesas,hspi-<soctype>" compatible values,
- Add missing "interrupt-parent", "#address-cells", and "#size-cells"
properties,
- Add reference to pinctrl documentation,
- Add example bindings.
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
---
Mark: Can you please ack and take this, so Simon can apply the patches that
use these bindings? Thx!
v3:
- Split in two patches: bindings and dtsi updates
v2:
- Add Tested-by
- List full example compatible properties with soctypes instead of just
the soctypes, so checkpatch can validate DTSes.
Documentation/devicetree/bindings/spi/sh-hspi.txt | 28 ++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/spi/sh-hspi.txt b/Documentation/devicetree/bindings/spi/sh-hspi.txt
index 30b57b1c8a13..319bad4af875 100644
--- a/Documentation/devicetree/bindings/spi/sh-hspi.txt
+++ b/Documentation/devicetree/bindings/spi/sh-hspi.txt
@@ -1,7 +1,29 @@
Renesas HSPI.
Required properties:
-- compatible : "renesas,hspi"
-- reg : Offset and length of the register set for the device
-- interrupts : interrupt line used by HSPI
+- compatible : "renesas,hspi-<soctype>", "renesas,hspi" as fallback.
+ Examples with soctypes are:
+ - "renesas,hspi-r8a7778" (R-Car M1)
+ - "renesas,hspi-r8a7779" (R-Car H1)
+- reg : Offset and length of the register set for the device
+- interrupt-parent : The phandle for the interrupt controller that
+ services interrupts for this device
+- interrupts : Interrupt specifier
+- #address-cells : Must be <1>
+- #size-cells : Must be <0>
+
+Pinctrl properties might be needed, too. See
+Documentation/devicetree/bindings/pinctrl/renesas,*.
+
+Example:
+
+ hspi0: spi@fffc7000 {
+ compatible = "renesas,hspi-r8a7778", "renesas,hspi";
+ reg = <0xfffc7000 0x18>;
+ interrupt-parent = <&gic>;
+ interrupts = <0 63 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "disabled";
+ };
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3 resend] spi: hs-spi: Improve bindings
[not found] ` <1394530851-20244-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
@ 2014-03-11 9:49 ` Mark Brown
2014-03-11 9:56 ` Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2014-03-11 9:49 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Simon Horman, devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-spi-u79uwXL29TY76Z2rM5mHXA, linux-sh-u79uwXL29TY76Z2rM5mHXA,
Geert Uytterhoeven
[-- Attachment #1: Type: text/plain, Size: 218 bytes --]
On Tue, Mar 11, 2014 at 10:40:51AM +0100, Geert Uytterhoeven wrote:
> Mark: Can you please ack and take this, so Simon can apply the patches that
> use these bindings? Thx!
Why would I ack it and not apply it?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 resend] spi: hs-spi: Improve bindings
2014-03-11 9:49 ` Mark Brown
@ 2014-03-11 9:56 ` Geert Uytterhoeven
0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2014-03-11 9:56 UTC (permalink / raw)
To: Mark Brown
Cc: Simon Horman, devicetree@vger.kernel.org, linux-spi,
Linux-sh list, Geert Uytterhoeven
On Tue, Mar 11, 2014 at 10:49 AM, Mark Brown <broonie@kernel.org> wrote:
> On Tue, Mar 11, 2014 at 10:40:51AM +0100, Geert Uytterhoeven wrote:
>> Mark: Can you please ack and take this, so Simon can apply the patches that
>> use these bindings? Thx!
>
> Why would I ack it and not apply it?
Sorry, bad wording on my side.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 resend] spi: hs-spi: Improve bindings
2014-03-11 9:40 [PATCH v3 resend] spi: hs-spi: Improve bindings Geert Uytterhoeven
[not found] ` <1394530851-20244-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
@ 2014-03-11 10:42 ` Mark Brown
1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2014-03-11 10:42 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Simon Horman, devicetree, linux-spi, linux-sh, Geert Uytterhoeven
[-- Attachment #1: Type: text/plain, Size: 390 bytes --]
On Tue, Mar 11, 2014 at 10:40:51AM +0100, Geert Uytterhoeven wrote:
> From: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
>
> - Add future-proof "renesas,hspi-<soctype>" compatible values,
> - Add missing "interrupt-parent", "#address-cells", and "#size-cells"
> properties,
> - Add reference to pinctrl documentation,
> - Add example bindings.
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-11 10:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-11 9:40 [PATCH v3 resend] spi: hs-spi: Improve bindings Geert Uytterhoeven
[not found] ` <1394530851-20244-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2014-03-11 9:49 ` Mark Brown
2014-03-11 9:56 ` Geert Uytterhoeven
2014-03-11 10:42 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox