* [PATCH 1/2] ARM: shmobile: r8a7794: add SDHI DT support
2015-02-21 22:25 [PATCH 0/2] Add R8A7794/SILK board SDHI DT support Sergei Shtylyov
@ 2015-02-21 22:26 ` Sergei Shtylyov
2015-02-23 0:28 ` Kuninori Morimoto
[not found] ` <4571288.SFHfW35Ob9-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2015-02-21 22:27 ` [PATCH 2/2] ARM: shmobile: silk: add SDHI0/1 " Sergei Shtylyov
` (4 subsequent siblings)
5 siblings, 2 replies; 36+ messages in thread
From: Sergei Shtylyov @ 2015-02-21 22:26 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
Define the generic R8A7794 parts of the SDHI[012] device nodes.
Based on the orginal patch by Shinobu Uehara <shinobu.uehara.xc@renesas.com>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7794.dtsi | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7794.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794.dtsi
+++ renesas/arch/arm/boot/dts/r8a7794.dtsi
@@ -441,6 +441,30 @@
status = "disabled";
};
+ sdhi0: sd@ee100000 {
+ compatible = "renesas,sdhi-r8a7794";
+ reg = <0 0xee100000 0 0x200>;
+ interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp3_clks R8A7794_CLK_SDHI0>;
+ status = "disabled";
+ };
+
+ sdhi1: sd@ee140000 {
+ compatible = "renesas,sdhi-r8a7794";
+ reg = <0 0xee140000 0 0x100>;
+ interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp3_clks R8A7794_CLK_SDHI1>;
+ status = "disabled";
+ };
+
+ sdhi2: sd@ee160000 {
+ compatible = "renesas,sdhi-r8a7794";
+ reg = <0 0xee160000 0 0x100>;
+ interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&mstp3_clks R8A7794_CLK_SDHI2>;
+ status = "disabled";
+ };
+
clocks {
#address-cells = <2>;
#size-cells = <2>;
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 1/2] ARM: shmobile: r8a7794: add SDHI DT support
2015-02-21 22:26 ` [PATCH 1/2] ARM: shmobile: r8a7794: add " Sergei Shtylyov
@ 2015-02-23 0:28 ` Kuninori Morimoto
2015-02-23 11:18 ` Geert Uytterhoeven
[not found] ` <4571288.SFHfW35Ob9-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
1 sibling, 1 reply; 36+ messages in thread
From: Kuninori Morimoto @ 2015-02-23 0:28 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree, magnus.damm, linux,
linux-arm-kernel
Hi Sergei, Magnus, Simon
> Define the generic R8A7794 parts of the SDHI[012] device nodes.
>
> Based on the orginal patch by Shinobu Uehara <shinobu.uehara.xc@renesas.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
(snip)
> + sdhi0: sd@ee100000 {
> + compatible = "renesas,sdhi-r8a7794";
> + reg = <0 0xee100000 0 0x200>;
> + interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&mstp3_clks R8A7794_CLK_SDHI0>;
> + status = "disabled";
> + };
> +
> + sdhi1: sd@ee140000 {
> + compatible = "renesas,sdhi-r8a7794";
> + reg = <0 0xee140000 0 0x100>;
> + interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&mstp3_clks R8A7794_CLK_SDHI1>;
> + status = "disabled";
> + };
> +
> + sdhi2: sd@ee160000 {
> + compatible = "renesas,sdhi-r8a7794";
> + reg = <0 0xee160000 0 0x100>;
> + interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&mstp3_clks R8A7794_CLK_SDHI2>;
> + status = "disabled";
> + };
This patch and r8a7791.dtsi have sdhi0/1/2.
But, according to datasheet, it is sdhi0/2/3.
(Only R-Car H2 have sdhi1)
I don't care so match about this, but
I think following datasheet is no-confusion if possible.
Best regards
---
Kuninori Morimoto
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 1/2] ARM: shmobile: r8a7794: add SDHI DT support
2015-02-23 0:28 ` Kuninori Morimoto
@ 2015-02-23 11:18 ` Geert Uytterhoeven
0 siblings, 0 replies; 36+ messages in thread
From: Geert Uytterhoeven @ 2015-02-23 11:18 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: Sergei Shtylyov, Simon Horman, Linux-sh list, Rob Herring,
Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala,
devicetree@vger.kernel.org, Magnus Damm, Russell King,
linux-arm-kernel@lists.infradead.org
Hi Morimoto-san,
On Mon, Feb 23, 2015 at 1:28 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
>> + sdhi0: sd@ee100000 {
>> + compatible = "renesas,sdhi-r8a7794";
>> + reg = <0 0xee100000 0 0x200>;
>> + interrupts = <0 165 IRQ_TYPE_LEVEL_HIGH>;
>> + clocks = <&mstp3_clks R8A7794_CLK_SDHI0>;
>> + status = "disabled";
>> + };
>> +
>> + sdhi1: sd@ee140000 {
>> + compatible = "renesas,sdhi-r8a7794";
>> + reg = <0 0xee140000 0 0x100>;
>> + interrupts = <0 167 IRQ_TYPE_LEVEL_HIGH>;
>> + clocks = <&mstp3_clks R8A7794_CLK_SDHI1>;
>> + status = "disabled";
>> + };
>> +
>> + sdhi2: sd@ee160000 {
>> + compatible = "renesas,sdhi-r8a7794";
>> + reg = <0 0xee160000 0 0x100>;
>> + interrupts = <0 168 IRQ_TYPE_LEVEL_HIGH>;
>> + clocks = <&mstp3_clks R8A7794_CLK_SDHI2>;
>> + status = "disabled";
>> + };
>
> This patch and r8a7791.dtsi have sdhi0/1/2.
> But, according to datasheet, it is sdhi0/2/3.
> (Only R-Car H2 have sdhi1)
There's a difference between the SDHI clocks and the SDHI instances
(and their MSTP clocks). Cfr. the discussion
"ARM: shmobile: r8a7794: Correct SDHI base address, clock labels and
output-names".
> I don't care so match about this, but
> I think following datasheet is no-confusion if possible.
Please check the naming on pages 59-2.
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] 36+ messages in thread
[parent not found: <4571288.SFHfW35Ob9-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH 1/2] ARM: shmobile: r8a7794: add SDHI DT support
[not found] ` <4571288.SFHfW35Ob9-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
@ 2015-02-23 11:16 ` Geert Uytterhoeven
2015-02-23 22:00 ` Simon Horman
0 siblings, 1 reply; 36+ messages in thread
From: Geert Uytterhoeven @ 2015-02-23 11:16 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Simon Horman, Linux-sh list, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Magnus Damm,
Russell King,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
On Sat, Feb 21, 2015 at 11:26 PM, Sergei Shtylyov
<sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org> wrote:
> Define the generic R8A7794 parts of the SDHI[012] device nodes.
>
> Based on the orginal patch by Shinobu Uehara <shinobu.uehara.xc-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
Acked-by: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 1/2] ARM: shmobile: r8a7794: add SDHI DT support
2015-02-23 11:16 ` Geert Uytterhoeven
@ 2015-02-23 22:00 ` Simon Horman
0 siblings, 0 replies; 36+ messages in thread
From: Simon Horman @ 2015-02-23 22:00 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Sergei Shtylyov, Linux-sh list, Rob Herring, Pawel Moll,
Mark Rutland, Ian Campbell, Kumar Gala,
devicetree@vger.kernel.org, Magnus Damm, Russell King,
linux-arm-kernel@lists.infradead.org
On Mon, Feb 23, 2015 at 12:16:47PM +0100, Geert Uytterhoeven wrote:
> On Sat, Feb 21, 2015 at 11:26 PM, Sergei Shtylyov
> <sergei.shtylyov@cogentembedded.com> wrote:
> > Define the generic R8A7794 parts of the SDHI[012] device nodes.
> >
> > Based on the orginal patch by Shinobu Uehara <shinobu.uehara.xc@renesas.com>.
> >
> > Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 36+ messages in thread
* [PATCH 2/2] ARM: shmobile: silk: add SDHI0/1 DT support
2015-02-21 22:25 [PATCH 0/2] Add R8A7794/SILK board SDHI DT support Sergei Shtylyov
2015-02-21 22:26 ` [PATCH 1/2] ARM: shmobile: r8a7794: add " Sergei Shtylyov
@ 2015-02-21 22:27 ` Sergei Shtylyov
2015-02-22 0:45 ` Magnus Damm
2015-08-10 22:44 ` [PATCH v2] ARM: shmobile: silk: add SDHI1 " Sergei Shtylyov
` (3 subsequent siblings)
5 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-02-21 22:27 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
Define the SILK board dependent parts of the SDHI0 (connected to SDIO Wi-Fi
chip) and SDHI1 (connected to micro-SD slot) device nodes along with the
necessary voltage regulators.
Based on the original patch by Vladimir Barinov
<vladimir.barinov@cogentembedded.com>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
arch/arm/boot/dts/r8a7794-silk.dts | 81 +++++++++++++++++++++++++++++++++++++
1 file changed, 81 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts
+++ renesas/arch/arm/boot/dts/r8a7794-silk.dts
@@ -12,6 +12,7 @@
/dts-v1/;
#include "r8a7794.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "SILK";
@@ -39,6 +40,54 @@
regulator-boot-on;
regulator-always-on;
};
+
+ vcc_sdhi0: regulator@1 {
+ compatible = "regulator-fixed";
+
+ regulator-name = "SDHI0 Vcc";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpio = <&gpio2 26 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ vccq_sdhi0: regulator@2 {
+ compatible = "regulator-gpio";
+
+ regulator-name = "SDHI0 VccQ";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpios = <&gpio2 29 GPIO_ACTIVE_HIGH>;
+ gpios-states = <1>;
+ states = <3300000 1
+ 1800000 0>;
+ };
+
+ vcc_sdhi1: regulator@3 {
+ compatible = "regulator-fixed";
+
+ regulator-name = "SDHI1 Vcc";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ vccq_sdhi1: regulator@4 {
+ compatible = "regulator-gpio";
+
+ regulator-name = "SDHI1 VccQ";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
+ gpios-states = <1>;
+ states = <3300000 1
+ 1800000 0>;
+ };
};
&extal_clk {
@@ -65,6 +114,16 @@
renesas,groups = "mmc_data8", "mmc_ctrl";
renesas,function = "mmc";
};
+
+ sdhi0_pins: sd0 {
+ renesas,groups = "sdhi0_data4", "sdhi0_ctrl";
+ renesas,function = "sdhi0";
+ };
+
+ sdhi1_pins: sd1 {
+ renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
+ renesas,function = "sdhi1";
+ };
};
&scif2 {
@@ -100,3 +159,25 @@
non-removable;
status = "okay";
};
+
+&sdhi0 {
+ pinctrl-0 = <&sdhi0_pins>;
+ pinctrl-names = "default";
+
+ vmmc-supply = <&vcc_sdhi0>;
+ vqmmc-supply = <&vccq_sdhi0>;
+ cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
+ wp-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
+ status = "okay";
+};
+
+&sdhi1 {
+ pinctrl-0 = <&sdhi1_pins>;
+ pinctrl-names = "default";
+
+ vmmc-supply = <&vcc_sdhi1>;
+ vqmmc-supply = <&vccq_sdhi1>;
+ cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
+ wp-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;
+ status = "okay";
+};
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: silk: add SDHI0/1 DT support
2015-02-21 22:27 ` [PATCH 2/2] ARM: shmobile: silk: add SDHI0/1 " Sergei Shtylyov
@ 2015-02-22 0:45 ` Magnus Damm
2015-02-22 14:54 ` Sergei Shtylyov
0 siblings, 1 reply; 36+ messages in thread
From: Magnus Damm @ 2015-02-22 0:45 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Simon Horman [Horms], SH-Linux, Rob Herring, Pawel Moll,
Mark Rutland, ijc+devicetree@hellion.org.uk, Kumar Gala,
devicetree@vger.kernel.org, Russell King - ARM Linux,
linux-arm-kernel@lists.infradead.org
Hi Sergei,
On Sat, Feb 21, 2015 at 2:27 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Define the SILK board dependent parts of the SDHI0 (connected to SDIO Wi-Fi
> chip) and SDHI1 (connected to micro-SD slot) device nodes along with the
> necessary voltage regulators.
>
> Based on the original patch by Vladimir Barinov
> <vladimir.barinov@cogentembedded.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Thanks for your patch. One question - above you write that SDHI1 is micro-SD...
> @@ -100,3 +159,25 @@
> non-removable;
> status = "okay";
> };
> +
> +&sdhi0 {
> + pinctrl-0 = <&sdhi0_pins>;
> + pinctrl-names = "default";
> +
> + vmmc-supply = <&vcc_sdhi0>;
> + vqmmc-supply = <&vccq_sdhi0>;
> + cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
> + wp-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
> + status = "okay";
> +};
> +
> +&sdhi1 {
> + pinctrl-0 = <&sdhi1_pins>;
> + pinctrl-names = "default";
> +
> + vmmc-supply = <&vcc_sdhi1>;
> + vqmmc-supply = <&vccq_sdhi1>;
> + cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
> + wp-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;
> + status = "okay";
> +};
... however here the WP signal is assigned.
I believe micro-SD doesn't use the WP signal, so either I'm wrong or
the patch needs to be updated to reflect reality. =)
Also, I doubt that an on-board SDIO module makes use of CD and/or WP signals?
Any ideas?
Thanks,
/ magnus
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: silk: add SDHI0/1 DT support
2015-02-22 0:45 ` Magnus Damm
@ 2015-02-22 14:54 ` Sergei Shtylyov
2015-02-23 22:01 ` Simon Horman
2015-02-24 4:28 ` Magnus Damm
0 siblings, 2 replies; 36+ messages in thread
From: Sergei Shtylyov @ 2015-02-22 14:54 UTC (permalink / raw)
To: Magnus Damm
Cc: Simon Horman [Horms], SH-Linux, Rob Herring, Pawel Moll,
Mark Rutland, ijc+devicetree@hellion.org.uk, Kumar Gala,
devicetree@vger.kernel.org, Russell King - ARM Linux,
linux-arm-kernel@lists.infradead.org
Hello.
On 02/22/2015 03:45 AM, Magnus Damm wrote:
>> Define the SILK board dependent parts of the SDHI0 (connected to SDIO Wi-Fi
>> chip) and SDHI1 (connected to micro-SD slot) device nodes along with the
>> necessary voltage regulators.
>> Based on the original patch by Vladimir Barinov
>> <vladimir.barinov@cogentembedded.com>.
>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
> Thanks for your patch. One question - above you write that SDHI1 is micro-SD...
Yes, have double-checked now.
>> @@ -100,3 +159,25 @@
>> non-removable;
>> status = "okay";
>> };
>> +
>> +&sdhi0 {
>> + pinctrl-0 = <&sdhi0_pins>;
>> + pinctrl-names = "default";
>> +
>> + vmmc-supply = <&vcc_sdhi0>;
>> + vqmmc-supply = <&vccq_sdhi0>;
>> + cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
>> + wp-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
>> + status = "okay";
>> +};
>> +
>> +&sdhi1 {
>> + pinctrl-0 = <&sdhi1_pins>;
>> + pinctrl-names = "default";
>> +
>> + vmmc-supply = <&vcc_sdhi1>;
>> + vqmmc-supply = <&vccq_sdhi1>;
>> + cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
>> + wp-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;
>> + status = "okay";
>> +};
> ... however here the WP signal is assigned.
> I believe micro-SD doesn't use the WP signal, so either I'm wrong or
> the patch needs to be updated to reflect reality. =)
Both seem correct: SD1_WP signal is just tied to VCCQ_SD1. Do you think we
should still drop it?
> Also, I doubt that an on-board SDIO module makes use of CD and/or WP signals?
Those two are tied to VCCQ_SD0 as well. Do you think we should drop them?
> Thanks,
> / magnus
WBR, Sergei
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: silk: add SDHI0/1 DT support
2015-02-22 14:54 ` Sergei Shtylyov
@ 2015-02-23 22:01 ` Simon Horman
2015-02-24 4:28 ` Magnus Damm
1 sibling, 0 replies; 36+ messages in thread
From: Simon Horman @ 2015-02-23 22:01 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Magnus Damm, SH-Linux, Rob Herring, Pawel Moll, Mark Rutland,
ijc+devicetree@hellion.org.uk, Kumar Gala,
devicetree@vger.kernel.org, Russell King - ARM Linux,
linux-arm-kernel@lists.infradead.org
On Sun, Feb 22, 2015 at 05:54:13PM +0300, Sergei Shtylyov wrote:
> Hello.
>
> On 02/22/2015 03:45 AM, Magnus Damm wrote:
>
> >>Define the SILK board dependent parts of the SDHI0 (connected to SDIO Wi-Fi
> >>chip) and SDHI1 (connected to micro-SD slot) device nodes along with the
> >>necessary voltage regulators.
>
> >>Based on the original patch by Vladimir Barinov
> >><vladimir.barinov@cogentembedded.com>.
>
> >>Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> >Thanks for your patch. One question - above you write that SDHI1 is micro-SD...
>
> Yes, have double-checked now.
>
> >>@@ -100,3 +159,25 @@
> >> non-removable;
> >> status = "okay";
> >> };
> >>+
> >>+&sdhi0 {
> >>+ pinctrl-0 = <&sdhi0_pins>;
> >>+ pinctrl-names = "default";
> >>+
> >>+ vmmc-supply = <&vcc_sdhi0>;
> >>+ vqmmc-supply = <&vccq_sdhi0>;
> >>+ cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
> >>+ wp-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
> >>+ status = "okay";
> >>+};
> >>+
> >>+&sdhi1 {
> >>+ pinctrl-0 = <&sdhi1_pins>;
> >>+ pinctrl-names = "default";
> >>+
> >>+ vmmc-supply = <&vcc_sdhi1>;
> >>+ vqmmc-supply = <&vccq_sdhi1>;
> >>+ cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
> >>+ wp-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;
> >>+ status = "okay";
> >>+};
>
> >... however here the WP signal is assigned.
>
> >I believe micro-SD doesn't use the WP signal, so either I'm wrong or
> >the patch needs to be updated to reflect reality. =)
>
> Both seem correct: SD1_WP signal is just tied to VCCQ_SD1. Do you think
> we should still drop it?
>
> >Also, I doubt that an on-board SDIO module makes use of CD and/or WP signals?
>
> Those two are tied to VCCQ_SD0 as well. Do you think we should drop them?
I am holding off on queuing this up until some consensus is reached.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 2/2] ARM: shmobile: silk: add SDHI0/1 DT support
2015-02-22 14:54 ` Sergei Shtylyov
2015-02-23 22:01 ` Simon Horman
@ 2015-02-24 4:28 ` Magnus Damm
1 sibling, 0 replies; 36+ messages in thread
From: Magnus Damm @ 2015-02-24 4:28 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Simon Horman [Horms], SH-Linux, Rob Herring, Pawel Moll,
Mark Rutland, ijc+devicetree@hellion.org.uk, Kumar Gala,
devicetree@vger.kernel.org, Russell King - ARM Linux,
linux-arm-kernel@lists.infradead.org
Hi Sergei,
On Sun, Feb 22, 2015 at 6:54 AM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Hello.
>
> On 02/22/2015 03:45 AM, Magnus Damm wrote:
>
>>> Define the SILK board dependent parts of the SDHI0 (connected to SDIO
>>> Wi-Fi
>>> chip) and SDHI1 (connected to micro-SD slot) device nodes along with
>>> the
>>> necessary voltage regulators.
>
>
>>> Based on the original patch by Vladimir Barinov
>>> <vladimir.barinov@cogentembedded.com>.
>
>
>>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
>
>> Thanks for your patch. One question - above you write that SDHI1 is
>> micro-SD...
>
>
> Yes, have double-checked now.
>
>
>>> @@ -100,3 +159,25 @@
>>> non-removable;
>>> status = "okay";
>>> };
>>> +
>>> +&sdhi0 {
>>> + pinctrl-0 = <&sdhi0_pins>;
>>> + pinctrl-names = "default";
>>> +
>>> + vmmc-supply = <&vcc_sdhi0>;
>>> + vqmmc-supply = <&vccq_sdhi0>;
>>> + cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>;
>>> + wp-gpios = <&gpio6 7 GPIO_ACTIVE_LOW>;
>>> + status = "okay";
>>> +};
>>> +
>>> +&sdhi1 {
>>> + pinctrl-0 = <&sdhi1_pins>;
>>> + pinctrl-names = "default";
>>> +
>>> + vmmc-supply = <&vcc_sdhi1>;
>>> + vqmmc-supply = <&vccq_sdhi1>;
>>> + cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
>>> + wp-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;
>>> + status = "okay";
>>> +};
>
>
>> ... however here the WP signal is assigned.
>
>
>> I believe micro-SD doesn't use the WP signal, so either I'm wrong or
>> the patch needs to be updated to reflect reality. =)
>
>
> Both seem correct: SD1_WP signal is just tied to VCCQ_SD1. Do you think
> we should still drop it?
If the signal is not exposed to the card connector then I believe the
correct approach is to omit it. So yes, please drop it.
>> Also, I doubt that an on-board SDIO module makes use of CD and/or WP
>> signals?
>
> Those two are tied to VCCQ_SD0 as well. Do you think we should drop them?
Since the on-board SDIO chip does not support hotplug and cannot be
write-protected I think those should be dropped too.
Thanks,
/ magnus
^ permalink raw reply [flat|nested] 36+ messages in thread
* [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-02-21 22:25 [PATCH 0/2] Add R8A7794/SILK board SDHI DT support Sergei Shtylyov
2015-02-21 22:26 ` [PATCH 1/2] ARM: shmobile: r8a7794: add " Sergei Shtylyov
2015-02-21 22:27 ` [PATCH 2/2] ARM: shmobile: silk: add SDHI0/1 " Sergei Shtylyov
@ 2015-08-10 22:44 ` Sergei Shtylyov
2015-08-12 1:26 ` Simon Horman
[not found] ` <2757472.iuyUyRzJ3z-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
2015-10-16 21:37 ` Sergei Shtylyov
` (2 subsequent siblings)
5 siblings, 2 replies; 36+ messages in thread
From: Sergei Shtylyov @ 2015-08-10 22:44 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
Define the SILK board dependent part of the SDHI1 (connected to micro-SD slot)
device nodes along with the necessary voltage regulators.
Based on the original patch by Vladimir Barinov
<vladimir.barinov@cogentembedded.com>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
This patch is against 'renesas-devel-20150810-v4.2-rc6' tag of Simon Horman's
'renesas.git' repo plus the R8A7794/SILK QSPI patches just re-posted. It needs
the R8A7794 GPIO patches in order to compile.
Changes in version 2:
- removed not working SDHI0 stuff, renamed the patch;
- replaced SDHI1's "wp-gpios" property with "disable-wp".
arch/arm/boot/dts/r8a7794-silk.dts | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts
+++ renesas/arch/arm/boot/dts/r8a7794-silk.dts
@@ -12,6 +12,7 @@
/dts-v1/;
#include "r8a7794.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "SILK";
@@ -39,6 +40,29 @@
regulator-boot-on;
regulator-always-on;
};
+ vcc_sdhi1: regulator@3 {
+ compatible = "regulator-fixed";
+
+ regulator-name = "SDHI1 Vcc";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ vccq_sdhi1: regulator@4 {
+ compatible = "regulator-gpio";
+
+ regulator-name = "SDHI1 VccQ";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
+ gpios-states = <1>;
+ states = <3300000 1
+ 1800000 0>;
+ };
};
&extal_clk {
@@ -66,6 +90,11 @@
renesas,function = "mmc";
};
+ sdhi1_pins: sd1 {
+ renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
+ renesas,function = "sdhi1";
+ };
+
qspi_pins: spi0 {
renesas,groups = "qspi_ctrl", "qspi_data4";
renesas,function = "qspi";
@@ -106,6 +135,17 @@
status = "okay";
};
+&sdhi1 {
+ pinctrl-0 = <&sdhi1_pins>;
+ pinctrl-names = "default";
+
+ vmmc-supply = <&vcc_sdhi1>;
+ vqmmc-supply = <&vccq_sdhi1>;
+ cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
+ disable-wp;
+ status = "okay";
+};
+
&qspi {
pinctrl-0 = <&qspi_pins>;
pinctrl-names = "default";
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-08-10 22:44 ` [PATCH v2] ARM: shmobile: silk: add SDHI1 " Sergei Shtylyov
@ 2015-08-12 1:26 ` Simon Horman
2015-08-21 20:57 ` Sergei Shtylyov
[not found] ` <2757472.iuyUyRzJ3z-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
1 sibling, 1 reply; 36+ messages in thread
From: Simon Horman @ 2015-08-12 1:26 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
Hi Sergei,
On Tue, Aug 11, 2015 at 01:44:03AM +0300, Sergei Shtylyov wrote:
> Define the SILK board dependent part of the SDHI1 (connected to micro-SD slot)
> device nodes along with the necessary voltage regulators.
>
> Based on the original patch by Vladimir Barinov
> <vladimir.barinov@cogentembedded.com>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
> This patch is against 'renesas-devel-20150810-v4.2-rc6' tag of Simon Horman's
> 'renesas.git' repo plus the R8A7794/SILK QSPI patches just re-posted. It needs
> the R8A7794 GPIO patches in order to compile.
>
> Changes in version 2:
> - removed not working SDHI0 stuff, renamed the patch;
> - replaced SDHI1's "wp-gpios" property with "disable-wp".
I am wondering if you could explain the motivation for the "disable-wp"
update and weather it is appropriate for other r8a779* dts files.
Thanks.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-08-12 1:26 ` Simon Horman
@ 2015-08-21 20:57 ` Sergei Shtylyov
2015-08-21 22:18 ` Sergei Shtylyov
0 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-08-21 20:57 UTC (permalink / raw)
To: Simon Horman
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
On 08/12/2015 04:26 AM, Simon Horman wrote:
>> Define the SILK board dependent part of the SDHI1 (connected to micro-SD slot)
>> device nodes along with the necessary voltage regulators.
>>
>> Based on the original patch by Vladimir Barinov
>> <vladimir.barinov@cogentembedded.com>.
>>
>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>>
>> ---
>> This patch is against 'renesas-devel-20150810-v4.2-rc6' tag of Simon Horman's
>> 'renesas.git' repo plus the R8A7794/SILK QSPI patches just re-posted. It needs
>> the R8A7794 GPIO patches in order to compile.
>>
>> Changes in version 2:
>> - removed not working SDHI0 stuff, renamed the patch;
>> - replaced SDHI1's "wp-gpios" property with "disable-wp".
>
> I am wondering if you could explain the motivation for the "disable-wp"
> update
Please see the comment in mmc_sd_get_ro().
> and weather it is appropriate for other r8a779* dts files.
In case of micro-SD slots, yes.
> Thanks.
MBR, Sergei
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-08-21 20:57 ` Sergei Shtylyov
@ 2015-08-21 22:18 ` Sergei Shtylyov
[not found] ` <55D7A3A1.9020009-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
0 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-08-21 22:18 UTC (permalink / raw)
To: Simon Horman
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
On 08/21/2015 11:57 PM, Sergei Shtylyov wrote:
>>> Define the SILK board dependent part of the SDHI1 (connected to micro-SD slot)
>>> device nodes along with the necessary voltage regulators.
>>>
>>> Based on the original patch by Vladimir Barinov
>>> <vladimir.barinov@cogentembedded.com>.
>>>
>>> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>>>
>>> ---
>>> This patch is against 'renesas-devel-20150810-v4.2-rc6' tag of Simon Horman's
>>> 'renesas.git' repo plus the R8A7794/SILK QSPI patches just re-posted. It needs
>>> the R8A7794 GPIO patches in order to compile.
>>>
>>> Changes in version 2:
>>> - removed not working SDHI0 stuff, renamed the patch;
>>> - replaced SDHI1's "wp-gpios" property with "disable-wp".
>>
>> I am wondering if you could explain the motivation for the "disable-wp"
>> update
>
> Please see the comment in mmc_sd_get_ro().
>
>> and weather it is appropriate for other r8a779* dts files.
>
> In case of micro-SD slots, yes.
The MMC binding document says it should only be specified if the
controller has WP detection logic. We, so far, seem to have been replying on
the GPIOs despite this logic is present (according to the R-Car gen2 SDHI
manuals I have). The driver will first call mmc_gpio_get_ro() and when that
fails due to "wp-gpios" not being specified, it proceeds to reading the
register but that is forbidden by TMIO_MMC_WRPROTECT_DISABLE flag set for the
R-Car gen1/2 chips, so 0 is always returned from tmio_mmc_get_ro(). There
seems to be no point in going that far (and doing the runtime PM dances) --
and MMC_CAP2_NO_WRITE_PROTECT (set when "disable-wp" is specified) prohibits
doing that...
MBR, Sergei
^ permalink raw reply [flat|nested] 36+ messages in thread
[parent not found: <2757472.iuyUyRzJ3z-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>]
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
[not found] ` <2757472.iuyUyRzJ3z-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
@ 2015-08-13 22:47 ` Sergei Shtylyov
0 siblings, 0 replies; 36+ messages in thread
From: Sergei Shtylyov @ 2015-08-13 22:47 UTC (permalink / raw)
To: horms-/R6kz+dDXgpPR4JQBCEnsQ, linux-sh-u79uwXL29TY76Z2rM5mHXA,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ, devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: magnus.damm-Re5JQEeQqe8AvxtiuMwx3w, linux-lFZ/pmaqli7XmaaqVzeoHQ,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Hello.
On 08/11/2015 01:44 AM, Sergei Shtylyov wrote:
> Define the SILK board dependent part of the SDHI1 (connected to micro-SD slot)
> device nodes along with the necessary voltage regulators.
>
> Based on the original patch by Vladimir Barinov
> <vladimir.barinov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov-M4DtvfQ/ZS1MRgGoP+s0PdBPR1lH4CV8@public.gmane.org>
>
> ---
> This patch is against 'renesas-devel-20150810-v4.2-rc6' tag of Simon Horman's
> 'renesas.git' repo plus the R8A7794/SILK QSPI patches just re-posted. It needs
> the R8A7794 GPIO patches in order to compile.
>
> Changes in version 2:
> - removed not working SDHI0 stuff, renamed the patch;
> - replaced SDHI1's "wp-gpios" property with "disable-wp".
>
> arch/arm/boot/dts/r8a7794-silk.dts | 40 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
>
> Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts
> ===================================================================
> --- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts
> +++ renesas/arch/arm/boot/dts/r8a7794-silk.dts
[...]
> @@ -39,6 +40,29 @@
> regulator-boot-on;
> regulator-always-on;
> };
Oops, need a newline here. I'll repost.
> + vcc_sdhi1: regulator@3 {
> + compatible = "regulator-fixed";
> +
> + regulator-name = "SDHI1 Vcc";
> + regulator-min-microvolt = <3300000>;
> + regulator-max-microvolt = <3300000>;
> +
> + gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
> + enable-active-high;
> + };
> +
> + vccq_sdhi1: regulator@4 {
> + compatible = "regulator-gpio";
> +
> + regulator-name = "SDHI1 VccQ";
> + regulator-min-microvolt = <1800000>;
> + regulator-max-microvolt = <3300000>;
> +
> + gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
> + gpios-states = <1>;
> + states = <3300000 1
> + 1800000 0>;
> + };
> };
>
> &extal_clk {
[...]
MBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 36+ messages in thread
* [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-02-21 22:25 [PATCH 0/2] Add R8A7794/SILK board SDHI DT support Sergei Shtylyov
` (2 preceding siblings ...)
2015-08-10 22:44 ` [PATCH v2] ARM: shmobile: silk: add SDHI1 " Sergei Shtylyov
@ 2015-10-16 21:37 ` Sergei Shtylyov
2015-10-18 11:04 ` Sergei Shtylyov
2015-10-21 23:04 ` [PATCH 1/2] ARM: shmobile: r8a7790: fix "gpio-ranges" props Sergei Shtylyov
2015-10-21 23:05 ` [PATCH 2/2] ARM: shmobile: r8a7791: " Sergei Shtylyov
5 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-10-16 21:37 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
Define the SILK board dependent part of the SDHI1 (connected to micro-SD
slot) device nodes along with the necessary voltage regulators.
Based on the original patch by Vladimir Barinov
<vladimir.barinov@cogentembedded.com>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
This patch is against 'renesas-devel-20151015-v4.3-rc5' tag of Simon Horman's
'renesas.git' repo.
Changes in version 3:
- removed the "disable-wp" property;
- added empty line before the regulator nodes;
- reformatted the changelog;
- refreshed the patch.
Changes in version 2:
- removed non-working SDHI0 stuff, renamed the patch;
- replaced SDHI1's "wp-gpios" property with "disable-wp".
arch/arm/boot/dts/r8a7794-silk.dts | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Index: renesas/arch/arm/boot/dts/r8a7794-silk.dts
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7794-silk.dts
+++ renesas/arch/arm/boot/dts/r8a7794-silk.dts
@@ -12,6 +12,7 @@
/dts-v1/;
#include "r8a7794.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "SILK";
@@ -39,6 +40,30 @@
regulator-boot-on;
regulator-always-on;
};
+
+ vcc_sdhi1: regulator@3 {
+ compatible = "regulator-fixed";
+
+ regulator-name = "SDHI1 Vcc";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ vccq_sdhi1: regulator@4 {
+ compatible = "regulator-gpio";
+
+ regulator-name = "SDHI1 VccQ";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <3300000>;
+
+ gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>;
+ gpios-states = <1>;
+ states = <3300000 1
+ 1800000 0>;
+ };
};
&extal_clk {
@@ -71,6 +96,11 @@
renesas,function = "mmc";
};
+ sdhi1_pins: sd1 {
+ renesas,groups = "sdhi1_data4", "sdhi1_ctrl";
+ renesas,function = "sdhi1";
+ };
+
qspi_pins: spi0 {
renesas,groups = "qspi_ctrl", "qspi_data4";
renesas,function = "qspi";
@@ -147,6 +177,16 @@
status = "okay";
};
+&sdhi1 {
+ pinctrl-0 = <&sdhi1_pins>;
+ pinctrl-names = "default";
+
+ vmmc-supply = <&vcc_sdhi1>;
+ vqmmc-supply = <&vccq_sdhi1>;
+ cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
+ status = "okay";
+};
+
&qspi {
pinctrl-0 = <&qspi_pins>;
pinctrl-names = "default";
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-10-16 21:37 ` Sergei Shtylyov
@ 2015-10-18 11:04 ` Sergei Shtylyov
2015-10-19 0:46 ` Simon Horman
0 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-10-18 11:04 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
There should have been [PATCH v3] in the subject, of course.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-10-18 11:04 ` Sergei Shtylyov
@ 2015-10-19 0:46 ` Simon Horman
2015-10-20 17:58 ` Sergei Shtylyov
0 siblings, 1 reply; 36+ messages in thread
From: Simon Horman @ 2015-10-19 0:46 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
On Sun, Oct 18, 2015 at 02:04:53PM +0300, Sergei Shtylyov wrote:
> There should have been [PATCH v3] in the subject, of course.
Thanks for following up.
I have queued this up for v4.5.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-10-19 0:46 ` Simon Horman
@ 2015-10-20 17:58 ` Sergei Shtylyov
2015-10-21 0:31 ` Simon Horman
0 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-10-20 17:58 UTC (permalink / raw)
To: Simon Horman
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
Hello.
On 10/19/2015 03:46 AM, Simon Horman wrote:
>> There should have been [PATCH v3] in the subject, of course.
>
> Thanks for following up.
>
> I have queued this up for v4.5.
Again, not seeing anything new today from renesas.git...
MBR, Sergei
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-10-20 17:58 ` Sergei Shtylyov
@ 2015-10-21 0:31 ` Simon Horman
2015-10-21 18:13 ` Sergei Shtylyov
0 siblings, 1 reply; 36+ messages in thread
From: Simon Horman @ 2015-10-21 0:31 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
On Tue, Oct 20, 2015 at 08:58:20PM +0300, Sergei Shtylyov wrote:
> Hello.
>
> On 10/19/2015 03:46 AM, Simon Horman wrote:
>
> >>There should have been [PATCH v3] in the subject, of course.
> >
> >Thanks for following up.
> >
> >I have queued this up for v4.5.
>
> Again, not seeing anything new today from renesas.git...
Thanks for noticing, it should be there now.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-10-21 0:31 ` Simon Horman
@ 2015-10-21 18:13 ` Sergei Shtylyov
2015-10-22 0:54 ` Simon Horman
0 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-10-21 18:13 UTC (permalink / raw)
To: Simon Horman
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
On 10/21/2015 03:31 AM, Simon Horman wrote:
>>>> There should have been [PATCH v3] in the subject, of course.
>>>
>>> Thanks for following up.
>>>
>>> I have queued this up for v4.5.
>>
>> Again, not seeing anything new today from renesas.git...
>
> Thanks for noticing, it should be there now.
Hm, again nothing... :-(
MBR, Sergei
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH v2] ARM: shmobile: silk: add SDHI1 DT support
2015-10-21 18:13 ` Sergei Shtylyov
@ 2015-10-22 0:54 ` Simon Horman
0 siblings, 0 replies; 36+ messages in thread
From: Simon Horman @ 2015-10-22 0:54 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
On Wed, Oct 21, 2015 at 09:13:02PM +0300, Sergei Shtylyov wrote:
> On 10/21/2015 03:31 AM, Simon Horman wrote:
>
> >>>>There should have been [PATCH v3] in the subject, of course.
> >>>
> >>>Thanks for following up.
> >>>
> >>>I have queued this up for v4.5.
> >>
> >> Again, not seeing anything new today from renesas.git...
> >
> >Thanks for noticing, it should be there now.
>
> Hm, again nothing... :-(
Sorry, third time lucky.
https://git.kernel.org/cgit/linux/kernel/git/horms/renesas.git/tag/?id=renesas-devel-20151021-v4.3-rc6
^ permalink raw reply [flat|nested] 36+ messages in thread
* [PATCH 1/2] ARM: shmobile: r8a7790: fix "gpio-ranges" props
2015-02-21 22:25 [PATCH 0/2] Add R8A7794/SILK board SDHI DT support Sergei Shtylyov
` (3 preceding siblings ...)
2015-10-16 21:37 ` Sergei Shtylyov
@ 2015-10-21 23:04 ` Sergei Shtylyov
2015-10-23 0:19 ` Simon Horman
2015-10-21 23:05 ` [PATCH 2/2] ARM: shmobile: r8a7791: " Sergei Shtylyov
5 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-10-21 23:04 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
On R8A7790, GPIO banks 1 and 2 are missing pins 30 and 31. Correct the
"gpio-ranges" properties of the corresponding device nodes.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
This patch is against the 'renesas-devel-20151019-v4.3-rc6' of Simon Horman's
'renesas.git' repo.
arch/arm/boot/dts/r8a7790.dtsi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: renesas/arch/arm/boot/dts/r8a7790.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7790.dtsi
+++ renesas/arch/arm/boot/dts/r8a7790.dtsi
@@ -143,7 +143,7 @@
interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
#gpio-cells = <2>;
gpio-controller;
- gpio-ranges = <&pfc 0 32 32>;
+ gpio-ranges = <&pfc 0 32 30>;
#interrupt-cells = <2>;
interrupt-controller;
clocks = <&mstp9_clks R8A7790_CLK_GPIO1>;
@@ -156,7 +156,7 @@
interrupts = <0 6 IRQ_TYPE_LEVEL_HIGH>;
#gpio-cells = <2>;
gpio-controller;
- gpio-ranges = <&pfc 0 64 32>;
+ gpio-ranges = <&pfc 0 64 30>;
#interrupt-cells = <2>;
interrupt-controller;
clocks = <&mstp9_clks R8A7790_CLK_GPIO2>;
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 1/2] ARM: shmobile: r8a7790: fix "gpio-ranges" props
2015-10-21 23:04 ` [PATCH 1/2] ARM: shmobile: r8a7790: fix "gpio-ranges" props Sergei Shtylyov
@ 2015-10-23 0:19 ` Simon Horman
0 siblings, 0 replies; 36+ messages in thread
From: Simon Horman @ 2015-10-23 0:19 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: linux-sh, robh+dt, pawel.moll, mark.rutland, ijc+devicetree,
galak, devicetree, magnus.damm, linux, linux-arm-kernel
On Thu, Oct 22, 2015 at 02:04:41AM +0300, Sergei Shtylyov wrote:
> On R8A7790, GPIO banks 1 and 2 are missing pins 30 and 31. Correct the
> "gpio-ranges" properties of the corresponding device nodes.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
>
> ---
> This patch is against the 'renesas-devel-20151019-v4.3-rc6' of Simon Horman's
> 'renesas.git' repo.
Thanks, I have queued this up.
^ permalink raw reply [flat|nested] 36+ messages in thread
* [PATCH 2/2] ARM: shmobile: r8a7791: fix "gpio-ranges" props
2015-02-21 22:25 [PATCH 0/2] Add R8A7794/SILK board SDHI DT support Sergei Shtylyov
` (4 preceding siblings ...)
2015-10-21 23:04 ` [PATCH 1/2] ARM: shmobile: r8a7790: fix "gpio-ranges" props Sergei Shtylyov
@ 2015-10-21 23:05 ` Sergei Shtylyov
[not found] ` <5904216.pOYUtEytKc-gHKXc3Y1Z8zGSmamagVegGFoWSdPRAKMAL8bYrjMMd8@public.gmane.org>
5 siblings, 1 reply; 36+ messages in thread
From: Sergei Shtylyov @ 2015-10-21 23:05 UTC (permalink / raw)
To: horms, linux-sh, robh+dt, pawel.moll, mark.rutland,
ijc+devicetree, galak, devicetree
Cc: magnus.damm, linux, linux-arm-kernel
On R8A7791, GPIO banks 1 and 7 are missing pins 26 to 31. Correct the
"gpio-ranges" properties of the GPIO1 node (GPIO7 is already correct).
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
---
This patch is against the 'renesas-devel-20151019-v4.3-rc6' of Simon Horman's
'renesas.git' repo.
arch/arm/boot/dts/r8a7791.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: renesas/arch/arm/boot/dts/r8a7791.dtsi
===================================================================
--- renesas.orig/arch/arm/boot/dts/r8a7791.dtsi
+++ renesas/arch/arm/boot/dts/r8a7791.dtsi
@@ -100,7 +100,7 @@
interrupts = <0 5 IRQ_TYPE_LEVEL_HIGH>;
#gpio-cells = <2>;
gpio-controller;
- gpio-ranges = <&pfc 0 32 32>;
+ gpio-ranges = <&pfc 0 32 26>;
#interrupt-cells = <2>;
interrupt-controller;
clocks = <&mstp9_clks R8A7791_CLK_GPIO1>;
^ permalink raw reply [flat|nested] 36+ messages in thread