* [PATCH 1/2] ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 @ 2016-09-01 8:37 Krzysztof Kozlowski 2016-09-01 8:37 ` [PATCH 2/2] ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 Krzysztof Kozlowski ` (2 more replies) 0 siblings, 3 replies; 7+ messages in thread From: Krzysztof Kozlowski @ 2016-09-01 8:37 UTC (permalink / raw) To: javier, Arnd Bergmann, Kukjin Kim, Krzysztof Kozlowski, devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel Cc: Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz The pinctrl pull up/down register on exynos4210 is 2-bit wide for each pin and it accepts only values of 0, 1 and 3. The pins sd4-bus-width8 were configured with value of 4. The driver does not validate the value so this overflow effectively set a bit 1 in adjacent pins thus configuring them to pull down. The author's intention was probably to set drive strength of 4x. All other bus-widths pins are configured with pull up and drive strength of 4x. Fix this one with same pattern. Fixes: 87711d8c7c70 ("ARM: dts: Add pinctrl node entries for SAMSUNG EXYNOS4210 SoC") Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> --- arch/arm/boot/dts/exynos4210-pinctrl.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos4210-pinctrl.dtsi b/arch/arm/boot/dts/exynos4210-pinctrl.dtsi index 8046340e50ac..d9b6d25e4abe 100644 --- a/arch/arm/boot/dts/exynos4210-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos4210-pinctrl.dtsi @@ -649,7 +649,7 @@ sd4_bus8: sd4-bus-width8 { samsung,pins = "gpk1-3", "gpk1-4", "gpk1-5", "gpk1-6"; samsung,pin-function = <EXYNOS_PIN_FUNC_3>; - samsung,pin-pud = <4>; + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; }; -- 1.9.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 2016-09-01 8:37 [PATCH 1/2] ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 Krzysztof Kozlowski @ 2016-09-01 8:37 ` Krzysztof Kozlowski [not found] ` <1472719022-27226-2-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2016-09-01 11:21 ` Bartlomiej Zolnierkiewicz 2016-09-01 10:19 ` [PATCH 1/2] ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 Javier Martinez Canillas [not found] ` <1472719022-27226-1-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2 siblings, 2 replies; 7+ messages in thread From: Krzysztof Kozlowski @ 2016-09-01 8:37 UTC (permalink / raw) To: javier, Arnd Bergmann, Kukjin Kim, Krzysztof Kozlowski, devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel Cc: Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz The pinctrl drive strength register on exynos4415 is 2-bit wide for each pin. The pins for SD2 were configured with value of 4. The driver does not validate the value so this overflow effectively set a bit 1 in adjacent pins thus configuring them to drive strength 2x. The author's intention was probably to set drive strength of 4x. All other SD pins are configured with drive strength of 4x. Fix these with same pattern. Fixes: 9246e7ff24c5 ("ARM: dts: Add dts files for exynos4415 SoC") Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> --- arch/arm/boot/dts/exynos4415-pinctrl.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/exynos4415-pinctrl.dtsi b/arch/arm/boot/dts/exynos4415-pinctrl.dtsi index f54aee53b6ec..76cfd872ead3 100644 --- a/arch/arm/boot/dts/exynos4415-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos4415-pinctrl.dtsi @@ -480,14 +480,14 @@ samsung,pins = "gpk2-0"; samsung,pin-function = <EXYNOS_PIN_FUNC_2>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; - samsung,pin-drv = <4>; + samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; }; sd2_cmd: sd2-cmd { samsung,pins = "gpk2-1"; samsung,pin-function = <EXYNOS_PIN_FUNC_2>; samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; - samsung,pin-drv = <4>; + samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; }; sd2_cd: sd2-cd { @@ -501,14 +501,14 @@ samsung,pins = "gpk2-3"; samsung,pin-function = <EXYNOS_PIN_FUNC_2>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; - samsung,pin-drv = <4>; + samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; }; sd2_bus4: sd2-bus-width4 { samsung,pins = "gpk2-4", "gpk2-5", "gpk2-6"; samsung,pin-function = <EXYNOS_PIN_FUNC_2>; samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; - samsung,pin-drv = <4>; + samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; }; cam_port_b_io: cam-port-b-io { -- 1.9.1 ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <1472719022-27226-2-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 2/2] ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 [not found] ` <1472719022-27226-2-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2016-09-01 10:21 ` Javier Martinez Canillas 0 siblings, 0 replies; 7+ messages in thread From: Javier Martinez Canillas @ 2016-09-01 10:21 UTC (permalink / raw) To: Krzysztof Kozlowski, Arnd Bergmann, Kukjin Kim, Krzysztof Kozlowski, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Cc: Bartlomiej Zolnierkiewicz Hello Krzysztof, On 09/01/2016 10:37 AM, Krzysztof Kozlowski wrote: > The pinctrl drive strength register on exynos4415 is 2-bit wide for each > pin. The pins for SD2 were configured with value of 4. The driver does > not validate the value so this overflow effectively set a bit 1 in > adjacent pins thus configuring them to drive strength 2x. > > The author's intention was probably to set drive strength of 4x. > All other SD pins are configured with drive strength of 4x. Fix these > with same pattern. > > Fixes: 9246e7ff24c5 ("ARM: dts: Add dts files for exynos4415 SoC") > Signed-off-by: Krzysztof Kozlowski <k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > --- Reviewed-by: Javier Martinez Canillas <javier-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America -- 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] 7+ messages in thread
* Re: [PATCH 2/2] ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 2016-09-01 8:37 ` [PATCH 2/2] ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 Krzysztof Kozlowski [not found] ` <1472719022-27226-2-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2016-09-01 11:21 ` Bartlomiej Zolnierkiewicz 2016-09-01 11:26 ` Krzysztof Kozlowski 1 sibling, 1 reply; 7+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2016-09-01 11:21 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: javier, Arnd Bergmann, Kukjin Kim, Krzysztof Kozlowski, devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel Hi, On Thursday, September 01, 2016 10:37:02 AM Krzysztof Kozlowski wrote: > The pinctrl drive strength register on exynos4415 is 2-bit wide for each > pin. The pins for SD2 were configured with value of 4. The driver does > not validate the value so this overflow effectively set a bit 1 in > adjacent pins thus configuring them to drive strength 2x. > > The author's intention was probably to set drive strength of 4x. > All other SD pins are configured with drive strength of 4x. Fix these > with same pattern. > > Fixes: 9246e7ff24c5 ("ARM: dts: Add dts files for exynos4415 SoC") > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> BTW This reminds me that there are still no board files for Exynos4415 SoC based boards so maybe we should consider removal of its support? > --- > arch/arm/boot/dts/exynos4415-pinctrl.dtsi | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/boot/dts/exynos4415-pinctrl.dtsi b/arch/arm/boot/dts/exynos4415-pinctrl.dtsi > index f54aee53b6ec..76cfd872ead3 100644 > --- a/arch/arm/boot/dts/exynos4415-pinctrl.dtsi > +++ b/arch/arm/boot/dts/exynos4415-pinctrl.dtsi > @@ -480,14 +480,14 @@ > samsung,pins = "gpk2-0"; > samsung,pin-function = <EXYNOS_PIN_FUNC_2>; > samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; > - samsung,pin-drv = <4>; > + samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; > }; > > sd2_cmd: sd2-cmd { > samsung,pins = "gpk2-1"; > samsung,pin-function = <EXYNOS_PIN_FUNC_2>; > samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; > - samsung,pin-drv = <4>; > + samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; > }; > > sd2_cd: sd2-cd { > @@ -501,14 +501,14 @@ > samsung,pins = "gpk2-3"; > samsung,pin-function = <EXYNOS_PIN_FUNC_2>; > samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; > - samsung,pin-drv = <4>; > + samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; > }; > > sd2_bus4: sd2-bus-width4 { > samsung,pins = "gpk2-4", "gpk2-5", "gpk2-6"; > samsung,pin-function = <EXYNOS_PIN_FUNC_2>; > samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; > - samsung,pin-drv = <4>; > + samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; > }; > > cam_port_b_io: cam-port-b-io { Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 2016-09-01 11:21 ` Bartlomiej Zolnierkiewicz @ 2016-09-01 11:26 ` Krzysztof Kozlowski 0 siblings, 0 replies; 7+ messages in thread From: Krzysztof Kozlowski @ 2016-09-01 11:26 UTC (permalink / raw) To: Bartlomiej Zolnierkiewicz Cc: javier, Arnd Bergmann, Kukjin Kim, Krzysztof Kozlowski, devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel On 09/01/2016 01:21 PM, Bartlomiej Zolnierkiewicz wrote: > BTW This reminds me that there are still no board files for Exynos4415 > SoC based boards so maybe we should consider removal of its support? Fine with me. I would ack such patches so (anyone) please go ahead. :) Best regards, Krzysztof ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 2016-09-01 8:37 [PATCH 1/2] ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 Krzysztof Kozlowski 2016-09-01 8:37 ` [PATCH 2/2] ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 Krzysztof Kozlowski @ 2016-09-01 10:19 ` Javier Martinez Canillas [not found] ` <1472719022-27226-1-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2 siblings, 0 replies; 7+ messages in thread From: Javier Martinez Canillas @ 2016-09-01 10:19 UTC (permalink / raw) To: Krzysztof Kozlowski, Arnd Bergmann, Kukjin Kim, Krzysztof Kozlowski, devicetree, linux-arm-kernel, linux-samsung-soc, linux-kernel Cc: Bartlomiej Zolnierkiewicz Hello Krzysztof, On 09/01/2016 10:37 AM, Krzysztof Kozlowski wrote: > The pinctrl pull up/down register on exynos4210 is 2-bit wide for each > pin and it accepts only values of 0, 1 and 3. The pins sd4-bus-width8 > were configured with value of 4. The driver does not validate the value > so this overflow effectively set a bit 1 in adjacent pins thus > configuring them to pull down. > > The author's intention was probably to set drive strength of 4x. All > other bus-widths pins are configured with pull up and drive strength of > 4x. Fix this one with same pattern. > > Fixes: 87711d8c7c70 ("ARM: dts: Add pinctrl node entries for SAMSUNG EXYNOS4210 SoC") > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> > --- Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Best regards, -- Javier Martinez Canillas Open Source Group Samsung Research America ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <1472719022-27226-1-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH 1/2] ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 [not found] ` <1472719022-27226-1-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2016-09-01 11:17 ` Bartlomiej Zolnierkiewicz 0 siblings, 0 replies; 7+ messages in thread From: Bartlomiej Zolnierkiewicz @ 2016-09-01 11:17 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: javier-JPH+aEBZ4P+UEJcrhfAQsw, Arnd Bergmann, Kukjin Kim, Krzysztof Kozlowski, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Hi, On Thursday, September 01, 2016 10:37:01 AM Krzysztof Kozlowski wrote: > The pinctrl pull up/down register on exynos4210 is 2-bit wide for each > pin and it accepts only values of 0, 1 and 3. The pins sd4-bus-width8 > were configured with value of 4. The driver does not validate the value > so this overflow effectively set a bit 1 in adjacent pins thus > configuring them to pull down. > > The author's intention was probably to set drive strength of 4x. All > other bus-widths pins are configured with pull up and drive strength of > 4x. Fix this one with same pattern. > > Fixes: 87711d8c7c70 ("ARM: dts: Add pinctrl node entries for SAMSUNG EXYNOS4210 SoC") > Signed-off-by: Krzysztof Kozlowski <k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> sd4_bus8 is currently unused by other drivers so there should be no problem with this change. Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > --- > arch/arm/boot/dts/exynos4210-pinctrl.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/exynos4210-pinctrl.dtsi b/arch/arm/boot/dts/exynos4210-pinctrl.dtsi > index 8046340e50ac..d9b6d25e4abe 100644 > --- a/arch/arm/boot/dts/exynos4210-pinctrl.dtsi > +++ b/arch/arm/boot/dts/exynos4210-pinctrl.dtsi > @@ -649,7 +649,7 @@ > sd4_bus8: sd4-bus-width8 { > samsung,pins = "gpk1-3", "gpk1-4", "gpk1-5", "gpk1-6"; > samsung,pin-function = <EXYNOS_PIN_FUNC_3>; > - samsung,pin-pud = <4>; > + samsung,pin-pud = <EXYNOS_PIN_PULL_UP>; > samsung,pin-drv = <EXYNOS4_PIN_DRV_LV4>; > }; Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics -- 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] 7+ messages in thread
end of thread, other threads:[~2016-09-01 11:26 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-09-01 8:37 [PATCH 1/2] ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 Krzysztof Kozlowski 2016-09-01 8:37 ` [PATCH 2/2] ARM: dts: exynos: Fix mismatched values of SD drive strengh configuration on exynos4415 Krzysztof Kozlowski [not found] ` <1472719022-27226-2-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2016-09-01 10:21 ` Javier Martinez Canillas 2016-09-01 11:21 ` Bartlomiej Zolnierkiewicz 2016-09-01 11:26 ` Krzysztof Kozlowski 2016-09-01 10:19 ` [PATCH 1/2] ARM: dts: exynos: Fix mismatched value for SD4 pull up/down configuration on exynos4210 Javier Martinez Canillas [not found] ` <1472719022-27226-1-git-send-email-k.kozlowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2016-09-01 11:17 ` Bartlomiej Zolnierkiewicz
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).