* [PATCH] ARM: dts: rockchip: correct regular setting for act8846
@ 2017-05-24 7:33 Eddie Cai
[not found] ` <1495611221-6749-1-git-send-email-eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Eddie Cai @ 2017-05-24 7:33 UTC (permalink / raw)
To: heiko, robh+dt, mark.rutland, linux
Cc: linux-arm-kernel, linux-rockchip, devicetree, linux-kernel,
Eddie Cai
the previous setting of act8846 is just copy from firefly board. but
the reload board is a little different from firefly board. let's correct
it.
Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com>
---
arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi
index 8134966..4cfa109 100644
--- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi
+++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi
@@ -179,6 +179,7 @@
regulator-name = "vccio_sd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
+ regulator-always-on;
};
vdd10_lcd: REG6 {
@@ -187,24 +188,23 @@
regulator-max-microvolt = <1000000>;
};
- vcca_18: REG7 {
- regulator-name = "vcca_18";
- regulator-min-microvolt = <1800000>;
- regulator-max-microvolt = <1800000>;
- regulator-always-on;
+ vcca_33: REG7 {
+ regulator-name = "vcca_33";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
};
- vcca_33: REG8 {
- regulator-name = "vcca_33";
+ vcc_lan: REG8 {
+ regulator-name = "vcc_lan";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
- regulator-always-on;
};
- vcc_lan: REG9 {
- regulator-name = "vcca_lan";
+ vccio_pmu: REG9 {
+ regulator-name = "vccio_pmu";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
+ regulator-always-on;
};
vdd_10: REG10 {
@@ -218,6 +218,7 @@
regulator-name = "vcc_18";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
+ regulator-always-on;
};
vcc18_lcd: REG12 {
--
1.9.1
^ permalink raw reply related [flat|nested] 10+ messages in thread[parent not found: <1495611221-6749-1-git-send-email-eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 [not found] ` <1495611221-6749-1-git-send-email-eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2017-05-24 8:17 ` Heiko Stuebner 2017-05-24 8:44 ` Eddie Cai 2017-05-24 10:26 ` Robin Murphy 0 siblings, 2 replies; 10+ messages in thread From: Heiko Stuebner @ 2017-05-24 8:17 UTC (permalink / raw) To: Eddie Cai Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Hi Eddie, Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: > the previous setting of act8846 is just copy from firefly board. but > the reload board is a little different from firefly board. let's correct > it. > > Signed-off-by: Eddie Cai <eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-) > > diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > index 8134966..4cfa109 100644 > --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > @@ -179,6 +179,7 @@ > regulator-name = "vccio_sd"; > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > + regulator-always-on; the rest below looks pretty straight forward, but why does vccio_sd need to be always on? I've checked the reload's schematics but did not find any further users of vccio_sd that may warant this attribute. Heiko > }; > > vdd10_lcd: REG6 { > @@ -187,24 +188,23 @@ > regulator-max-microvolt = <1000000>; > }; > > - vcca_18: REG7 { > - regulator-name = "vcca_18"; > - regulator-min-microvolt = <1800000>; > - regulator-max-microvolt = <1800000>; > - regulator-always-on; > + vcca_33: REG7 { > + regulator-name = "vcca_33"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > }; > > - vcca_33: REG8 { > - regulator-name = "vcca_33"; > + vcc_lan: REG8 { > + regulator-name = "vcc_lan"; > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > - regulator-always-on; > }; > > - vcc_lan: REG9 { > - regulator-name = "vcca_lan"; > + vccio_pmu: REG9 { > + regulator-name = "vccio_pmu"; > regulator-min-microvolt = <3300000>; > regulator-max-microvolt = <3300000>; > + regulator-always-on; > }; > > vdd_10: REG10 { > @@ -218,6 +218,7 @@ > regulator-name = "vcc_18"; > regulator-min-microvolt = <1800000>; > regulator-max-microvolt = <1800000>; > + regulator-always-on; > }; > > vcc18_lcd: REG12 { > -- 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] 10+ messages in thread
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 2017-05-24 8:17 ` Heiko Stuebner @ 2017-05-24 8:44 ` Eddie Cai 2017-05-24 8:47 ` Heiko Stuebner 2017-05-24 10:26 ` Robin Murphy 1 sibling, 1 reply; 10+ messages in thread From: Eddie Cai @ 2017-05-24 8:44 UTC (permalink / raw) To: Heiko Stuebner Cc: robh+dt, mark.rutland, linux, linux-arm-kernel, linux-rockchip, devicetree, linux-kernel 2017-05-24 16:17 GMT+08:00 Heiko Stuebner <heiko@sntech.de>: > Hi Eddie, > > Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: >> the previous setting of act8846 is just copy from firefly board. but >> the reload board is a little different from firefly board. let's correct >> it. >> >> Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com> >> --- >> arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- >> 1 file changed, 11 insertions(+), 10 deletions(-) >> >> diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> index 8134966..4cfa109 100644 >> --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> @@ -179,6 +179,7 @@ >> regulator-name = "vccio_sd"; >> regulator-min-microvolt = <3300000>; >> regulator-max-microvolt = <3300000>; >> + regulator-always-on; > > the rest below looks pretty straight forward, but why does vccio_sd > need to be always on? > > I've checked the reload's schematics but did not find any further users > of vccio_sd that may warant this attribute. Oh, It's default on. thank you for point out my mistake. I will modify it in next version. > > > Heiko > > >> }; >> >> vdd10_lcd: REG6 { >> @@ -187,24 +188,23 @@ >> regulator-max-microvolt = <1000000>; >> }; >> >> - vcca_18: REG7 { >> - regulator-name = "vcca_18"; >> - regulator-min-microvolt = <1800000>; >> - regulator-max-microvolt = <1800000>; >> - regulator-always-on; >> + vcca_33: REG7 { >> + regulator-name = "vcca_33"; >> + regulator-min-microvolt = <3300000>; >> + regulator-max-microvolt = <3300000>; >> }; >> >> - vcca_33: REG8 { >> - regulator-name = "vcca_33"; >> + vcc_lan: REG8 { >> + regulator-name = "vcc_lan"; >> regulator-min-microvolt = <3300000>; >> regulator-max-microvolt = <3300000>; >> - regulator-always-on; >> }; >> >> - vcc_lan: REG9 { >> - regulator-name = "vcca_lan"; >> + vccio_pmu: REG9 { >> + regulator-name = "vccio_pmu"; >> regulator-min-microvolt = <3300000>; >> regulator-max-microvolt = <3300000>; >> + regulator-always-on; >> }; >> >> vdd_10: REG10 { >> @@ -218,6 +218,7 @@ >> regulator-name = "vcc_18"; >> regulator-min-microvolt = <1800000>; >> regulator-max-microvolt = <1800000>; >> + regulator-always-on; >> }; >> >> vcc18_lcd: REG12 { >> > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 2017-05-24 8:44 ` Eddie Cai @ 2017-05-24 8:47 ` Heiko Stuebner 2017-05-24 8:50 ` Eddie Cai 0 siblings, 1 reply; 10+ messages in thread From: Heiko Stuebner @ 2017-05-24 8:47 UTC (permalink / raw) To: Eddie Cai Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Am Mittwoch, 24. Mai 2017, 16:44:05 CEST schrieb Eddie Cai: > 2017-05-24 16:17 GMT+08:00 Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>: > > Hi Eddie, > > > > Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: > >> the previous setting of act8846 is just copy from firefly board. but > >> the reload board is a little different from firefly board. let's correct > >> it. > >> > >> Signed-off-by: Eddie Cai <eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> --- > >> arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- > >> 1 file changed, 11 insertions(+), 10 deletions(-) > >> > >> diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> index 8134966..4cfa109 100644 > >> --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> @@ -179,6 +179,7 @@ > >> regulator-name = "vccio_sd"; > >> regulator-min-microvolt = <3300000>; > >> regulator-max-microvolt = <3300000>; > >> + regulator-always-on; > > > > the rest below looks pretty straight forward, but why does vccio_sd > > need to be always on? > > > > I've checked the reload's schematics but did not find any further users > > of vccio_sd that may warant this attribute. > Oh, It's default on. thank you for point out my mistake. I will modify > it in next version. not default-on, but the mmc-core will turn on the vccio regulator on its own during probe. So yes, please fix :-) . Thanks Heiko -- 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] 10+ messages in thread
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 2017-05-24 8:47 ` Heiko Stuebner @ 2017-05-24 8:50 ` Eddie Cai [not found] ` <CAJrj+DMU5XP9vHt60F8Uf7BTfv13DQQUoVXs0Fv2nKbWH8xKYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Eddie Cai @ 2017-05-24 8:50 UTC (permalink / raw) To: Heiko Stuebner Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA 2017-05-24 16:47 GMT+08:00 Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>: > Am Mittwoch, 24. Mai 2017, 16:44:05 CEST schrieb Eddie Cai: >> 2017-05-24 16:17 GMT+08:00 Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>: >> > Hi Eddie, >> > >> > Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: >> >> the previous setting of act8846 is just copy from firefly board. but >> >> the reload board is a little different from firefly board. let's correct >> >> it. >> >> >> >> Signed-off-by: Eddie Cai <eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> --- >> >> arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- >> >> 1 file changed, 11 insertions(+), 10 deletions(-) >> >> >> >> diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> >> index 8134966..4cfa109 100644 >> >> --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> >> +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> >> @@ -179,6 +179,7 @@ >> >> regulator-name = "vccio_sd"; >> >> regulator-min-microvolt = <3300000>; >> >> regulator-max-microvolt = <3300000>; >> >> + regulator-always-on; >> > >> > the rest below looks pretty straight forward, but why does vccio_sd >> > need to be always on? >> > >> > I've checked the reload's schematics but did not find any further users >> > of vccio_sd that may warant this attribute. >> Oh, It's default on. thank you for point out my mistake. I will modify >> it in next version. > > not default-on, but the mmc-core will turn on the vccio regulator on its > own during probe. So yes, please fix :-) . I mean it will be default on by hardware from schematics. I just modify it to regulator-boot-on and send v1 patch > > > Thanks > Heiko > -- 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] 10+ messages in thread
[parent not found: <CAJrj+DMU5XP9vHt60F8Uf7BTfv13DQQUoVXs0Fv2nKbWH8xKYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 [not found] ` <CAJrj+DMU5XP9vHt60F8Uf7BTfv13DQQUoVXs0Fv2nKbWH8xKYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-05-24 8:55 ` Heiko Stuebner 0 siblings, 0 replies; 10+ messages in thread From: Heiko Stuebner @ 2017-05-24 8:55 UTC (permalink / raw) To: Eddie Cai Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA Am Mittwoch, 24. Mai 2017, 16:50:51 CEST schrieb Eddie Cai: > 2017-05-24 16:47 GMT+08:00 Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>: > > Am Mittwoch, 24. Mai 2017, 16:44:05 CEST schrieb Eddie Cai: > >> 2017-05-24 16:17 GMT+08:00 Heiko Stuebner <heiko-4mtYJXux2i+zQB+pC5nmwQ@public.gmane.org>: > >> > Hi Eddie, > >> > > >> > Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: > >> >> the previous setting of act8846 is just copy from firefly board. but > >> >> the reload board is a little different from firefly board. let's correct > >> >> it. > >> >> > >> >> Signed-off-by: Eddie Cai <eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> >> --- > >> >> arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- > >> >> 1 file changed, 11 insertions(+), 10 deletions(-) > >> >> > >> >> diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> >> index 8134966..4cfa109 100644 > >> >> --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> >> +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> >> @@ -179,6 +179,7 @@ > >> >> regulator-name = "vccio_sd"; > >> >> regulator-min-microvolt = <3300000>; > >> >> regulator-max-microvolt = <3300000>; > >> >> + regulator-always-on; > >> > > >> > the rest below looks pretty straight forward, but why does vccio_sd > >> > need to be always on? > >> > > >> > I've checked the reload's schematics but did not find any further users > >> > of vccio_sd that may warant this attribute. > >> Oh, It's default on. thank you for point out my mistake. I will modify > >> it in next version. > > > > not default-on, but the mmc-core will turn on the vccio regulator on its > > own during probe. So yes, please fix :-) . > I mean it will be default on by hardware from schematics. I just modify it to > regulator-boot-on and send v1 patch nice, that is even better to make that explicit. No need to resent for that, but your new patch should actually be v2. The patch without version number always counts as v1, we just normally don't write that down :-) Heiko -- 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] 10+ messages in thread
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 2017-05-24 8:17 ` Heiko Stuebner 2017-05-24 8:44 ` Eddie Cai @ 2017-05-24 10:26 ` Robin Murphy [not found] ` <010ca6dc-e1f7-fb6d-7a22-056d4e1eeef2-5wv7dgnIgG8@public.gmane.org> 1 sibling, 1 reply; 10+ messages in thread From: Robin Murphy @ 2017-05-24 10:26 UTC (permalink / raw) To: Heiko Stuebner, Eddie Cai Cc: mark.rutland, devicetree, linux, linux-kernel, linux-rockchip, robh+dt, linux-arm-kernel On 24/05/17 09:17, Heiko Stuebner wrote: > Hi Eddie, > > Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: >> the previous setting of act8846 is just copy from firefly board. but >> the reload board is a little different from firefly board. let's correct >> it. >> >> Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com> >> --- >> arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- >> 1 file changed, 11 insertions(+), 10 deletions(-) >> >> diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> index 8134966..4cfa109 100644 >> --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >> @@ -179,6 +179,7 @@ >> regulator-name = "vccio_sd"; >> regulator-min-microvolt = <3300000>; >> regulator-max-microvolt = <3300000>; >> + regulator-always-on; > > the rest below looks pretty straight forward, but why does vccio_sd > need to be always on? > > I've checked the reload's schematics but did not find any further users > of vccio_sd that may warant this attribute. It looks like the card detect line is pulled up externally to vcc_sd, which isn't always-on either, so you probably do want this - on the (unrelated) rk3288 TV box I've been hacking on, I discovered that powering off the sdmmc-supply domain also kills the internal pull-up and leaves sdmmc_cd floating. The resulting stochastic card polling mechanism is amusing, but probably undesirable ;) Robin. > > > Heiko > > >> }; >> >> vdd10_lcd: REG6 { >> @@ -187,24 +188,23 @@ >> regulator-max-microvolt = <1000000>; >> }; >> >> - vcca_18: REG7 { >> - regulator-name = "vcca_18"; >> - regulator-min-microvolt = <1800000>; >> - regulator-max-microvolt = <1800000>; >> - regulator-always-on; >> + vcca_33: REG7 { >> + regulator-name = "vcca_33"; >> + regulator-min-microvolt = <3300000>; >> + regulator-max-microvolt = <3300000>; >> }; >> >> - vcca_33: REG8 { >> - regulator-name = "vcca_33"; >> + vcc_lan: REG8 { >> + regulator-name = "vcc_lan"; >> regulator-min-microvolt = <3300000>; >> regulator-max-microvolt = <3300000>; >> - regulator-always-on; >> }; >> >> - vcc_lan: REG9 { >> - regulator-name = "vcca_lan"; >> + vccio_pmu: REG9 { >> + regulator-name = "vccio_pmu"; >> regulator-min-microvolt = <3300000>; >> regulator-max-microvolt = <3300000>; >> + regulator-always-on; >> }; >> >> vdd_10: REG10 { >> @@ -218,6 +218,7 @@ >> regulator-name = "vcc_18"; >> regulator-min-microvolt = <1800000>; >> regulator-max-microvolt = <1800000>; >> + regulator-always-on; >> }; >> >> vcc18_lcd: REG12 { >> > > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <010ca6dc-e1f7-fb6d-7a22-056d4e1eeef2-5wv7dgnIgG8@public.gmane.org>]
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 [not found] ` <010ca6dc-e1f7-fb6d-7a22-056d4e1eeef2-5wv7dgnIgG8@public.gmane.org> @ 2017-05-24 11:34 ` Heiko Stuebner 2017-05-24 12:27 ` Robin Murphy 0 siblings, 1 reply; 10+ messages in thread From: Heiko Stuebner @ 2017-05-24 11:34 UTC (permalink / raw) To: Robin Murphy Cc: mark.rutland-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA, Eddie Cai, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Am Mittwoch, 24. Mai 2017, 11:26:10 CEST schrieb Robin Murphy: > On 24/05/17 09:17, Heiko Stuebner wrote: > > Hi Eddie, > > > > Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: > >> the previous setting of act8846 is just copy from firefly board. but > >> the reload board is a little different from firefly board. let's correct > >> it. > >> > >> Signed-off-by: Eddie Cai <eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> --- > >> arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- > >> 1 file changed, 11 insertions(+), 10 deletions(-) > >> > >> diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> index 8134966..4cfa109 100644 > >> --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi > >> @@ -179,6 +179,7 @@ > >> regulator-name = "vccio_sd"; > >> regulator-min-microvolt = <3300000>; > >> regulator-max-microvolt = <3300000>; > >> + regulator-always-on; > > > > the rest below looks pretty straight forward, but why does vccio_sd > > need to be always on? > > > > I've checked the reload's schematics but did not find any further users > > of vccio_sd that may warant this attribute. > > It looks like the card detect line is pulled up externally to vcc_sd, > which isn't always-on either, so you probably do want this - on the > (unrelated) rk3288 TV box I've been hacking on, I discovered that > powering off the sdmmc-supply domain also kills the internal pull-up and > leaves sdmmc_cd floating. The resulting stochastic card polling > mechanism is amusing, but probably undesirable ;) Hmm, are you mixing up vcc_sd and vccio_sd? vccio_sd is the io supply (vqmmc in mmc-terms) to the mmc-host itself while vcc_sd is the actual card supply (vmmc in mmc-terms). After looking through some schematics, the pull-up to vcc_sd seems to be the common pattern for rk3288 devices. So I guess this means the fixed regulator vcc_sd should get an regulator-always-on instead to stabilize the card-detect? Heiko > > > > > > Heiko > > > > > >> }; > >> > >> vdd10_lcd: REG6 { > >> @@ -187,24 +188,23 @@ > >> regulator-max-microvolt = <1000000>; > >> }; > >> > >> - vcca_18: REG7 { > >> - regulator-name = "vcca_18"; > >> - regulator-min-microvolt = <1800000>; > >> - regulator-max-microvolt = <1800000>; > >> - regulator-always-on; > >> + vcca_33: REG7 { > >> + regulator-name = "vcca_33"; > >> + regulator-min-microvolt = <3300000>; > >> + regulator-max-microvolt = <3300000>; > >> }; > >> > >> - vcca_33: REG8 { > >> - regulator-name = "vcca_33"; > >> + vcc_lan: REG8 { > >> + regulator-name = "vcc_lan"; > >> regulator-min-microvolt = <3300000>; > >> regulator-max-microvolt = <3300000>; > >> - regulator-always-on; > >> }; > >> > >> - vcc_lan: REG9 { > >> - regulator-name = "vcca_lan"; > >> + vccio_pmu: REG9 { > >> + regulator-name = "vccio_pmu"; > >> regulator-min-microvolt = <3300000>; > >> regulator-max-microvolt = <3300000>; > >> + regulator-always-on; > >> }; > >> > >> vdd_10: REG10 { > >> @@ -218,6 +218,7 @@ > >> regulator-name = "vcc_18"; > >> regulator-min-microvolt = <1800000>; > >> regulator-max-microvolt = <1800000>; > >> + regulator-always-on; > >> }; > >> > >> vcc18_lcd: REG12 { > >> > > > > > > > > _______________________________________________ > > linux-arm-kernel mailing list > > linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org > > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > > > > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 2017-05-24 11:34 ` Heiko Stuebner @ 2017-05-24 12:27 ` Robin Murphy 2017-05-26 8:35 ` Eddie Cai 0 siblings, 1 reply; 10+ messages in thread From: Robin Murphy @ 2017-05-24 12:27 UTC (permalink / raw) To: Heiko Stuebner Cc: mark.rutland, devicetree, Eddie Cai, linux, linux-kernel, linux-rockchip, robh+dt, linux-arm-kernel On 24/05/17 12:34, Heiko Stuebner wrote: > Am Mittwoch, 24. Mai 2017, 11:26:10 CEST schrieb Robin Murphy: >> On 24/05/17 09:17, Heiko Stuebner wrote: >>> Hi Eddie, >>> >>> Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: >>>> the previous setting of act8846 is just copy from firefly board. but >>>> the reload board is a little different from firefly board. let's correct >>>> it. >>>> >>>> Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com> >>>> --- >>>> arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- >>>> 1 file changed, 11 insertions(+), 10 deletions(-) >>>> >>>> diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >>>> index 8134966..4cfa109 100644 >>>> --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >>>> +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >>>> @@ -179,6 +179,7 @@ >>>> regulator-name = "vccio_sd"; >>>> regulator-min-microvolt = <3300000>; >>>> regulator-max-microvolt = <3300000>; >>>> + regulator-always-on; >>> >>> the rest below looks pretty straight forward, but why does vccio_sd >>> need to be always on? >>> >>> I've checked the reload's schematics but did not find any further users >>> of vccio_sd that may warant this attribute. >> >> It looks like the card detect line is pulled up externally to vcc_sd, >> which isn't always-on either, so you probably do want this - on the >> (unrelated) rk3288 TV box I've been hacking on, I discovered that >> powering off the sdmmc-supply domain also kills the internal pull-up and >> leaves sdmmc_cd floating. The resulting stochastic card polling >> mechanism is amusing, but probably undesirable ;) > > Hmm, are you mixing up vcc_sd and vccio_sd? > > vccio_sd is the io supply (vqmmc in mmc-terms) to the mmc-host itself > while vcc_sd is the actual card supply (vmmc in mmc-terms). Yes, that is what I meant, although I was implicitly assuming the case where the MMC host driver has already turned off vcc_sd due to no card being present. I'll double-check, but I'm 99% certain that *unlike* Firefly, the Hotack board I've got (seemingly a straight implementation of the "Box" reference design based on what I've managed to reverse-engineer from scouring the internet) has no external pull-ups for anything on its microSD socket, so is entirely reliant on everything being pulled up internally to SDMMC0_VDD, i.e. vccio_sd. > After looking through some schematics, the pull-up to vcc_sd seems to be > the common pattern for rk3288 devices. So I guess this means the fixed > regulator vcc_sd should get an regulator-always-on instead to stabilize > the card-detect? That might make sense, especially where vcc_sd is just vcc_io behind a MOSFET switch, so turning it "off" when there's no card to draw power anyway probably doesn't achieve much. Plus if you can then rely on vcc_sd not going away it might be worth disabling the internal pull-ups which are still being set by all the sdmmc_* pinctrl configs as well. Robin. >>>> }; >>>> >>>> vdd10_lcd: REG6 { >>>> @@ -187,24 +188,23 @@ >>>> regulator-max-microvolt = <1000000>; >>>> }; >>>> >>>> - vcca_18: REG7 { >>>> - regulator-name = "vcca_18"; >>>> - regulator-min-microvolt = <1800000>; >>>> - regulator-max-microvolt = <1800000>; >>>> - regulator-always-on; >>>> + vcca_33: REG7 { >>>> + regulator-name = "vcca_33"; >>>> + regulator-min-microvolt = <3300000>; >>>> + regulator-max-microvolt = <3300000>; >>>> }; >>>> >>>> - vcca_33: REG8 { >>>> - regulator-name = "vcca_33"; >>>> + vcc_lan: REG8 { >>>> + regulator-name = "vcc_lan"; >>>> regulator-min-microvolt = <3300000>; >>>> regulator-max-microvolt = <3300000>; >>>> - regulator-always-on; >>>> }; >>>> >>>> - vcc_lan: REG9 { >>>> - regulator-name = "vcca_lan"; >>>> + vccio_pmu: REG9 { >>>> + regulator-name = "vccio_pmu"; >>>> regulator-min-microvolt = <3300000>; >>>> regulator-max-microvolt = <3300000>; >>>> + regulator-always-on; >>>> }; >>>> >>>> vdd_10: REG10 { >>>> @@ -218,6 +218,7 @@ >>>> regulator-name = "vcc_18"; >>>> regulator-min-microvolt = <1800000>; >>>> regulator-max-microvolt = <1800000>; >>>> + regulator-always-on; >>>> }; >>>> >>>> vcc18_lcd: REG12 { >>>> >>> >>> >>> >>> _______________________________________________ >>> linux-arm-kernel mailing list >>> linux-arm-kernel@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >>> >> >> >> > > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] ARM: dts: rockchip: correct regular setting for act8846 2017-05-24 12:27 ` Robin Murphy @ 2017-05-26 8:35 ` Eddie Cai 0 siblings, 0 replies; 10+ messages in thread From: Eddie Cai @ 2017-05-26 8:35 UTC (permalink / raw) To: Robin Murphy Cc: Heiko Stuebner, mark.rutland, devicetree, linux, linux-kernel, linux-rockchip, robh+dt, linux-arm-kernel 2017-05-24 20:27 GMT+08:00 Robin Murphy <robin.murphy@arm.com>: > On 24/05/17 12:34, Heiko Stuebner wrote: >> Am Mittwoch, 24. Mai 2017, 11:26:10 CEST schrieb Robin Murphy: >>> On 24/05/17 09:17, Heiko Stuebner wrote: >>>> Hi Eddie, >>>> >>>> Am Mittwoch, 24. Mai 2017, 15:33:41 CEST schrieb Eddie Cai: >>>>> the previous setting of act8846 is just copy from firefly board. but >>>>> the reload board is a little different from firefly board. let's correct >>>>> it. >>>>> >>>>> Signed-off-by: Eddie Cai <eddie.cai.linux@gmail.com> >>>>> --- >>>>> arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi | 21 +++++++++++---------- >>>>> 1 file changed, 11 insertions(+), 10 deletions(-) >>>>> >>>>> diff --git a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >>>>> index 8134966..4cfa109 100644 >>>>> --- a/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >>>>> +++ b/arch/arm/boot/dts/rk3288-firefly-reload-core.dtsi >>>>> @@ -179,6 +179,7 @@ >>>>> regulator-name = "vccio_sd"; >>>>> regulator-min-microvolt = <3300000>; >>>>> regulator-max-microvolt = <3300000>; >>>>> + regulator-always-on; >>>> >>>> the rest below looks pretty straight forward, but why does vccio_sd >>>> need to be always on? >>>> >>>> I've checked the reload's schematics but did not find any further users >>>> of vccio_sd that may warant this attribute. >>> >>> It looks like the card detect line is pulled up externally to vcc_sd, >>> which isn't always-on either, so you probably do want this - on the >>> (unrelated) rk3288 TV box I've been hacking on, I discovered that >>> powering off the sdmmc-supply domain also kills the internal pull-up and >>> leaves sdmmc_cd floating. The resulting stochastic card polling >>> mechanism is amusing, but probably undesirable ;) >> >> Hmm, are you mixing up vcc_sd and vccio_sd? >> >> vccio_sd is the io supply (vqmmc in mmc-terms) to the mmc-host itself >> while vcc_sd is the actual card supply (vmmc in mmc-terms). > > Yes, that is what I meant, although I was implicitly assuming the case > where the MMC host driver has already turned off vcc_sd due to no card > being present. I'll double-check, but I'm 99% certain that *unlike* > Firefly, the Hotack board I've got (seemingly a straight implementation > of the "Box" reference design based on what I've managed to > reverse-engineer from scouring the internet) has no external pull-ups > for anything on its microSD socket, so is entirely reliant on everything > being pulled up internally to SDMMC0_VDD, i.e. vccio_sd. > >> After looking through some schematics, the pull-up to vcc_sd seems to be >> the common pattern for rk3288 devices. So I guess this means the fixed >> regulator vcc_sd should get an regulator-always-on instead to stabilize >> the card-detect? > > That might make sense, especially where vcc_sd is just vcc_io behind a > MOSFET switch, so turning it "off" when there's no card to draw power > anyway probably doesn't achieve much. Plus if you can then rely on > vcc_sd not going away it might be worth disabling the internal pull-ups > which are still being set by all the sdmmc_* pinctrl configs as well. the host might want to reset the card power when the card controller hang up. it won't work if we add regulator-always-on to vcc_sd. So i would still prefer to add regulator-always-on to vccio_sd instead of vcc_sd > > Robin. > >>>>> }; >>>>> >>>>> vdd10_lcd: REG6 { >>>>> @@ -187,24 +188,23 @@ >>>>> regulator-max-microvolt = <1000000>; >>>>> }; >>>>> >>>>> - vcca_18: REG7 { >>>>> - regulator-name = "vcca_18"; >>>>> - regulator-min-microvolt = <1800000>; >>>>> - regulator-max-microvolt = <1800000>; >>>>> - regulator-always-on; >>>>> + vcca_33: REG7 { >>>>> + regulator-name = "vcca_33"; >>>>> + regulator-min-microvolt = <3300000>; >>>>> + regulator-max-microvolt = <3300000>; >>>>> }; >>>>> >>>>> - vcca_33: REG8 { >>>>> - regulator-name = "vcca_33"; >>>>> + vcc_lan: REG8 { >>>>> + regulator-name = "vcc_lan"; >>>>> regulator-min-microvolt = <3300000>; >>>>> regulator-max-microvolt = <3300000>; >>>>> - regulator-always-on; >>>>> }; >>>>> >>>>> - vcc_lan: REG9 { >>>>> - regulator-name = "vcca_lan"; >>>>> + vccio_pmu: REG9 { >>>>> + regulator-name = "vccio_pmu"; >>>>> regulator-min-microvolt = <3300000>; >>>>> regulator-max-microvolt = <3300000>; >>>>> + regulator-always-on; >>>>> }; >>>>> >>>>> vdd_10: REG10 { >>>>> @@ -218,6 +218,7 @@ >>>>> regulator-name = "vcc_18"; >>>>> regulator-min-microvolt = <1800000>; >>>>> regulator-max-microvolt = <1800000>; >>>>> + regulator-always-on; >>>>> }; >>>>> >>>>> vcc18_lcd: REG12 { >>>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> linux-arm-kernel mailing list >>>> linux-arm-kernel@lists.infradead.org >>>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >>>> >>> >>> >>> >> >> > ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-05-26 8:35 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-24 7:33 [PATCH] ARM: dts: rockchip: correct regular setting for act8846 Eddie Cai
[not found] ` <1495611221-6749-1-git-send-email-eddie.cai.linux-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-24 8:17 ` Heiko Stuebner
2017-05-24 8:44 ` Eddie Cai
2017-05-24 8:47 ` Heiko Stuebner
2017-05-24 8:50 ` Eddie Cai
[not found] ` <CAJrj+DMU5XP9vHt60F8Uf7BTfv13DQQUoVXs0Fv2nKbWH8xKYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-24 8:55 ` Heiko Stuebner
2017-05-24 10:26 ` Robin Murphy
[not found] ` <010ca6dc-e1f7-fb6d-7a22-056d4e1eeef2-5wv7dgnIgG8@public.gmane.org>
2017-05-24 11:34 ` Heiko Stuebner
2017-05-24 12:27 ` Robin Murphy
2017-05-26 8:35 ` Eddie Cai
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).