* [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board @ 2017-07-05 8:30 Frank Wang 2017-07-05 8:30 ` [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb Frank Wang ` (4 more replies) 0 siblings, 5 replies; 15+ messages in thread From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw) To: heiko Cc: robh+dt, mark.rutland, linux, linux-rockchip, devicetree, linux-kernel, linux-arm-kernel, huangtao, kever.yang, david.wu, finley.xiao, zhangqing, wmc, Frank Wang These series add and enable regulators, gpio-keys, eMMC and other device nodes support for rk3229-evb board. Changes from v1: - Fixed the name and supply for regulator nodes in [PATCH 1/6]. - Deleted some redundant properties of eMMC in [PATCH 4/6]. David Wu (1): ARM: dts: rockchip: enable io-domain for rk3229-evb Finley Xiao (1): ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang (4): ARM: dts: rockchip: add regulator nodes for rk3229-evb ARM: dts: rockchip: enable eMMC for rk3229-evb ARM: dts: rockchip: enable tsadc for rk3229-evb ARM: dts: rockchip: add gpio power-key for rk3229-evb arch/arm/boot/dts/rk3229-evb.dts | 117 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) -- 2.0.0 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb 2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang @ 2017-07-05 8:30 ` Frank Wang [not found] ` <1499243421-21460-2-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-05 8:30 ` [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang ` (3 subsequent siblings) 4 siblings, 1 reply; 15+ messages in thread From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw) To: heiko Cc: robh+dt, mark.rutland, linux, linux-rockchip, devicetree, linux-kernel, linux-arm-kernel, huangtao, kever.yang, david.wu, finley.xiao, zhangqing, wmc, Frank Wang This patch adds regulator info for rk3229-evb board. Signed-off-by: Frank Wang <frank.wang@rock-chips.com> --- arch/arm/boot/dts/rk3229-evb.dts | 69 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index 82e8a53..394be63 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -51,6 +51,15 @@ reg = <0x60000000 0x40000000>; }; + dc_12v: dc-12v-regulator { + compatible = "regulator-fixed"; + regulator-name = "dc_12v"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + }; + ext_gmac: ext_gmac { compatible = "fixed-clock"; clock-frequency = <125000000>; @@ -67,6 +76,7 @@ regulator-name = "vcc_host"; regulator-always-on; regulator-boot-on; + vin-supply = <&vcc_sys>; }; vcc_phy: vcc-phy-regulator { @@ -77,6 +87,57 @@ regulator-max-microvolt = <1800000>; regulator-always-on; regulator-boot-on; + vin-supply = <&vccio_1v8>; + }; + + vcc_sys: vcc-sys-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_12v>; + }; + + vccio_1v8: vccio-1v8-regulator { + compatible = "regulator-fixed"; + regulator-name = "vccio_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + vin-supply = <&vcc_sys>; + }; + + vccio_3v3: vccio-3v3-regulator { + compatible = "regulator-fixed"; + regulator-name = "vccio_3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + vin-supply = <&vcc_sys>; + }; + + vdd_arm: vdd-arm-regulator { + compatible = "pwm-regulator"; + pwms = <&pwm1 0 25000 1>; + regulator-name = "vdd_arm"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1400000>; + regulator-always-on; + regulator-boot-on; + pwm-supply = <&vcc_sys>; + }; + + vdd_log: vdd-log-regulator { + compatible = "pwm-regulator"; + pwms = <&pwm2 0 25000 1>; + regulator-name = "vdd_log"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + regulator-boot-on; + pwm-supply = <&vcc_sys>; }; }; @@ -104,6 +165,14 @@ }; }; +&pwm1 { + status = "okay"; +}; + +&pwm2 { + status = "okay"; +}; + &uart2 { status = "okay"; }; -- 2.0.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <1499243421-21460-2-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb [not found] ` <1499243421-21460-2-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2017-07-12 23:53 ` Heiko Stuebner 0 siblings, 0 replies; 15+ messages in thread From: Heiko Stuebner @ 2017-07-12 23:53 UTC (permalink / raw) To: Frank Wang Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw Am Mittwoch, 5. Juli 2017, 16:30:16 CEST schrieb Frank Wang: > This patch adds regulator info for rk3229-evb board. > > Signed-off-by: Frank Wang <frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> applied for 4.14 Thanks for fixing up the regulator tree 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] 15+ messages in thread
* [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb 2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang 2017-07-05 8:30 ` [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb Frank Wang @ 2017-07-05 8:30 ` Frank Wang [not found] ` <1499243421-21460-3-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-05 8:30 ` [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb Frank Wang ` (2 subsequent siblings) 4 siblings, 1 reply; 15+ messages in thread From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw) To: heiko Cc: mark.rutland, devicetree, huangtao, wmc, zhangqing, linux, linux-kernel, kever.yang, linux-rockchip, robh+dt, finley.xiao, david.wu, linux-arm-kernel From: Finley Xiao <finley.xiao@rock-chips.com> This patch adds the cpu-supply property so that cpu can do dvfs on rk3229-evb board. Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com> --- arch/arm/boot/dts/rk3229-evb.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index 394be63..17385d8 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -141,6 +141,10 @@ }; }; +&cpu0 { + cpu-supply = <&vdd_arm>; +}; + &gmac { assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>; assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>; -- 2.0.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <1499243421-21460-3-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb [not found] ` <1499243421-21460-3-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2017-07-12 23:56 ` Heiko Stuebner 0 siblings, 0 replies; 15+ messages in thread From: Heiko Stuebner @ 2017-07-12 23:56 UTC (permalink / raw) To: Frank Wang Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw Am Mittwoch, 5. Juli 2017, 16:30:17 CEST schrieb Frank Wang: > From: Finley Xiao <finley.xiao-TNX95d0MmH7DzftRWevZcw@public.gmane.org> > > This patch adds the cpu-supply property so that cpu can do dvfs > on rk3229-evb board. > > Signed-off-by: Finley Xiao <finley.xiao-TNX95d0MmH7DzftRWevZcw@public.gmane.org> > --- > arch/arm/boot/dts/rk3229-evb.dts | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts > index 394be63..17385d8 100644 > --- a/arch/arm/boot/dts/rk3229-evb.dts > +++ b/arch/arm/boot/dts/rk3229-evb.dts > @@ -141,6 +141,10 @@ > }; > }; > > +&cpu0 { > + cpu-supply = <&vdd_arm>; > +}; > + applied for 4.14 after adding the same for cpu1-cpu3 . The supply is a property of the cpu-core, so each should have the reference even though the Linux cpufreq driver taking the regulator from cpu0. 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] 15+ messages in thread
* [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb 2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang 2017-07-05 8:30 ` [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb Frank Wang 2017-07-05 8:30 ` [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang @ 2017-07-05 8:30 ` Frank Wang [not found] ` <1499243421-21460-4-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-05 8:30 ` [PATCH v2 4/6] ARM: dts: rockchip: enable eMMC " Frank Wang [not found] ` <1499243421-21460-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 4 siblings, 1 reply; 15+ messages in thread From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw) To: heiko Cc: robh+dt, mark.rutland, linux, linux-rockchip, devicetree, linux-kernel, linux-arm-kernel, huangtao, kever.yang, david.wu, finley.xiao, zhangqing, wmc, Frank Wang From: David Wu <david.wu@rock-chips.com> This patch enables io-domain support for rk3229-evb board. The power domain of VCCIO3 is selected from maskrom, so we do not need to configure it. Signed-off-by: David Wu <david.wu@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com> --- arch/arm/boot/dts/rk3229-evb.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index 17385d8..78a3ea1 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -161,6 +161,14 @@ status = "okay"; }; +&io_domains { + status = "okay"; + + vccio1-supply = <&vccio_3v3>; + vccio2-supply = <&vccio_1v8>; + vccio4-supply = <&vccio_3v3>; +}; + &pinctrl { usb { host_vbus_drv: host-vbus-drv { -- 2.0.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <1499243421-21460-4-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb [not found] ` <1499243421-21460-4-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2017-07-06 6:47 ` kbuild test robot [not found] ` <201707061400.5K7lBcIR%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2017-07-13 0:13 ` Heiko Stuebner 1 sibling, 1 reply; 15+ messages in thread From: kbuild test robot @ 2017-07-06 6:47 UTC (permalink / raw) Cc: kbuild-all-JC7UmRfGjtg, heiko-4mtYJXux2i+zQB+pC5nmwQ, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw, Frank Wang [-- Attachment #1: Type: text/plain, Size: 1086 bytes --] Hi David, [auto build test ERROR on rockchip/for-next] [cannot apply to v4.12] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Frank-Wang/ARM-dts-rockchip-add-regulator-nodes-for-rk3229-evb/20170706-094621 base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next config: arm-at91_dt_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): >> Error: arch/arm/boot/dts/rk3229-evb.dts:164.1-12 Label or path io_domains not found FATAL ERROR: Syntax error parsing input tree --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation [-- Attachment #2: .config.gz --] [-- Type: application/gzip, Size: 22761 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <201707061400.5K7lBcIR%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb [not found] ` <201707061400.5K7lBcIR%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @ 2017-07-12 23:49 ` Heiko Stuebner 0 siblings, 0 replies; 15+ messages in thread From: Heiko Stuebner @ 2017-07-12 23:49 UTC (permalink / raw) To: kbuild test robot Cc: Frank Wang, kbuild-all-JC7UmRfGjtg, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw Am Donnerstag, 6. Juli 2017, 14:47:50 CEST schrieb kbuild test robot: > Hi David, > > [auto build test ERROR on rockchip/for-next] > [cannot apply to v4.12] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Frank-Wang/ARM-dts-rockchip-add-regulator-nodes-for-rk3229-evb/20170706-094621 > base: https://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip.git for-next > config: arm-at91_dt_defconfig (attached as .config) > compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 > reproduce: > wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > make.cross ARCH=arm > > All errors (new ones prefixed by >>): > > >> Error: arch/arm/boot/dts/rk3229-evb.dts:164.1-12 Label or path io_domains not found > FATAL ERROR: Syntax error parsing input tree This most likely ok, as this patch builds on top of ARM: dts: rockchip: Add io-domain node for rk3228 https://patchwork.kernel.org/patch/9803973/ which creates the core node referenced here. -- 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] 15+ messages in thread
* Re: [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb [not found] ` <1499243421-21460-4-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-06 6:47 ` kbuild test robot @ 2017-07-13 0:13 ` Heiko Stuebner 1 sibling, 0 replies; 15+ messages in thread From: Heiko Stuebner @ 2017-07-13 0:13 UTC (permalink / raw) To: Frank Wang Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw Am Mittwoch, 5. Juli 2017, 16:30:18 CEST schrieb Frank Wang: > From: David Wu <david.wu-TNX95d0MmH7DzftRWevZcw@public.gmane.org> > > This patch enables io-domain support for rk3229-evb board. > > The power domain of VCCIO3 is selected from maskrom, so we do not > need to configure it. > > Signed-off-by: David Wu <david.wu-TNX95d0MmH7DzftRWevZcw@public.gmane.org> > Signed-off-by: Frank Wang <frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> applied for 4.14 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] 15+ messages in thread
* [PATCH v2 4/6] ARM: dts: rockchip: enable eMMC for rk3229-evb 2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang ` (2 preceding siblings ...) 2017-07-05 8:30 ` [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb Frank Wang @ 2017-07-05 8:30 ` Frank Wang [not found] ` <1499243421-21460-5-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> [not found] ` <1499243421-21460-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 4 siblings, 1 reply; 15+ messages in thread From: Frank Wang @ 2017-07-05 8:30 UTC (permalink / raw) To: heiko Cc: robh+dt, mark.rutland, linux, linux-rockchip, devicetree, linux-kernel, linux-arm-kernel, huangtao, kever.yang, david.wu, finley.xiao, zhangqing, wmc, Frank Wang This patch enables eMMC support for rk3229-evb board. Signed-off-by: Frank Wang <frank.wang@rock-chips.com> --- arch/arm/boot/dts/rk3229-evb.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index 78a3ea1..a51ca01 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -145,6 +145,13 @@ cpu-supply = <&vdd_arm>; }; +&emmc { + cap-mmc-highspeed; + disable-wp; + non-removable; + status = "okay"; +}; + &gmac { assigned-clocks = <&cru SCLK_MAC_EXTCLK>, <&cru SCLK_MAC>; assigned-clock-parents = <&ext_gmac>, <&cru SCLK_MAC_EXTCLK>; -- 2.0.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
[parent not found: <1499243421-21460-5-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [PATCH v2 4/6] ARM: dts: rockchip: enable eMMC for rk3229-evb [not found] ` <1499243421-21460-5-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2017-07-13 0:03 ` Heiko Stuebner 0 siblings, 0 replies; 15+ messages in thread From: Heiko Stuebner @ 2017-07-13 0:03 UTC (permalink / raw) To: Frank Wang Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw Am Mittwoch, 5. Juli 2017, 16:30:19 CEST schrieb Frank Wang: > This patch enables eMMC support for rk3229-evb board. > > Signed-off-by: Frank Wang <frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> applied for 4.14 -- 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] 15+ messages in thread
[parent not found: <1499243421-21460-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* [PATCH v2 5/6] ARM: dts: rockchip: enable tsadc for rk3229-evb [not found] ` <1499243421-21460-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2017-07-05 8:32 ` Frank Wang [not found] ` <1499243544-21726-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-05 8:33 ` [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key " Frank Wang 1 sibling, 1 reply; 15+ messages in thread From: Frank Wang @ 2017-07-05 8:32 UTC (permalink / raw) To: heiko-4mtYJXux2i+zQB+pC5nmwQ Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw, Frank Wang This patch enables the tsadc for rk3229-evb board. The rk3229 evb board uses the CRU to reset the chip since it has not the PMIC to connect it, and TSHUT is low active on evb board. Signed-off-by: Frank Wang <frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> --- arch/arm/boot/dts/rk3229-evb.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index a51ca01..cfcfe2a 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -192,6 +192,11 @@ status = "okay"; }; +&tsadc { + rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */ + status = "okay"; +}; + &uart2 { status = "okay"; }; -- 2.0.0 -- 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 related [flat|nested] 15+ messages in thread
[parent not found: <1499243544-21726-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [PATCH v2 5/6] ARM: dts: rockchip: enable tsadc for rk3229-evb [not found] ` <1499243544-21726-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2017-07-13 0:04 ` Heiko Stuebner 0 siblings, 0 replies; 15+ messages in thread From: Heiko Stuebner @ 2017-07-13 0:04 UTC (permalink / raw) To: Frank Wang Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw Am Mittwoch, 5. Juli 2017, 16:32:24 CEST schrieb Frank Wang: > This patch enables the tsadc for rk3229-evb board. > > The rk3229 evb board uses the CRU to reset the chip since it has not > the PMIC to connect it, and TSHUT is low active on evb board. > > Signed-off-by: Frank Wang <frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> applied for 4.14 -- 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] 15+ messages in thread
* [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key for rk3229-evb [not found] ` <1499243421-21460-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-05 8:32 ` [PATCH v2 5/6] ARM: dts: rockchip: enable tsadc " Frank Wang @ 2017-07-05 8:33 ` Frank Wang [not found] ` <1499243590-21772-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 1 sibling, 1 reply; 15+ messages in thread From: Frank Wang @ 2017-07-05 8:33 UTC (permalink / raw) To: heiko-4mtYJXux2i+zQB+pC5nmwQ Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw, Frank Wang This patch adds gpio power-key support for rk3229-evb board. Signed-off-by: Frank Wang <frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> --- arch/arm/boot/dts/rk3229-evb.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/rk3229-evb.dts b/arch/arm/boot/dts/rk3229-evb.dts index cfcfe2a..a051708 100644 --- a/arch/arm/boot/dts/rk3229-evb.dts +++ b/arch/arm/boot/dts/rk3229-evb.dts @@ -139,6 +139,24 @@ regulator-boot-on; pwm-supply = <&vcc_sys>; }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + autorepeat; + + pinctrl-names = "default"; + pinctrl-0 = <&pwr_key>; + + power_key: power-key { + label = "GPIO Key Power"; + gpios = <&gpio3 23 GPIO_ACTIVE_LOW>; + linux,code = <116>; + debounce-interval = <100>; + wakeup-source; + }; + }; }; &cpu0 { @@ -177,6 +195,12 @@ }; &pinctrl { + keys { + pwr_key: pwr-key { + rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + usb { host_vbus_drv: host-vbus-drv { rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; -- 2.0.0 -- 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 related [flat|nested] 15+ messages in thread
[parent not found: <1499243590-21772-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org>]
* Re: [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key for rk3229-evb [not found] ` <1499243590-21772-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> @ 2017-07-13 0:12 ` Heiko Stuebner 0 siblings, 0 replies; 15+ messages in thread From: Heiko Stuebner @ 2017-07-13 0:12 UTC (permalink / raw) To: Frank Wang Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8, linux-I+IVW8TIWO2tmTQ+vhA3Yw, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, huangtao-TNX95d0MmH7DzftRWevZcw, kever.yang-TNX95d0MmH7DzftRWevZcw, david.wu-TNX95d0MmH7DzftRWevZcw, finley.xiao-TNX95d0MmH7DzftRWevZcw, zhangqing-TNX95d0MmH7DzftRWevZcw, wmc-TNX95d0MmH7DzftRWevZcw Am Mittwoch, 5. Juli 2017, 16:33:10 CEST schrieb Frank Wang: > This patch adds gpio power-key support for rk3229-evb board. > > Signed-off-by: Frank Wang <frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> applied for 4.14 with the following changes: - replaced keycode with KEY_POWER - and included dt-bindings/input/input.h - dropped address and size cells 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] 15+ messages in thread
end of thread, other threads:[~2017-07-13 0:13 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-07-05 8:30 [PATCH v2 0/6] add and enable some device nodes for rk3229-evb board Frank Wang 2017-07-05 8:30 ` [PATCH v2 1/6] ARM: dts: rockchip: add regulator nodes for rk3229-evb Frank Wang [not found] ` <1499243421-21460-2-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-12 23:53 ` Heiko Stuebner 2017-07-05 8:30 ` [PATCH v2 2/6] ARM: dts: rockchip: add cpu-supply property for cpu node of rk3229-evb Frank Wang [not found] ` <1499243421-21460-3-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-12 23:56 ` Heiko Stuebner 2017-07-05 8:30 ` [PATCH v2 3/6] ARM: dts: rockchip: enable io-domain for rk3229-evb Frank Wang [not found] ` <1499243421-21460-4-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-06 6:47 ` kbuild test robot [not found] ` <201707061400.5K7lBcIR%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> 2017-07-12 23:49 ` Heiko Stuebner 2017-07-13 0:13 ` Heiko Stuebner 2017-07-05 8:30 ` [PATCH v2 4/6] ARM: dts: rockchip: enable eMMC " Frank Wang [not found] ` <1499243421-21460-5-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-13 0:03 ` Heiko Stuebner [not found] ` <1499243421-21460-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-05 8:32 ` [PATCH v2 5/6] ARM: dts: rockchip: enable tsadc " Frank Wang [not found] ` <1499243544-21726-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-13 0:04 ` Heiko Stuebner 2017-07-05 8:33 ` [PATCH v2 6/6] ARM: dts: rockchip: add gpio power-key " Frank Wang [not found] ` <1499243590-21772-1-git-send-email-frank.wang-TNX95d0MmH7DzftRWevZcw@public.gmane.org> 2017-07-13 0:12 ` Heiko Stuebner
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).