* [PATCH 2/2] ARM: dts: hummingboard: Setup pwm lines @ 2015-03-02 20:03 Russell King [not found] ` <E1YSWZL-0002Aw-B5-eh5Bv4kxaXIANfyc6IWni62ZND6+EDdj@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Russell King @ 2015-03-02 20:03 UTC (permalink / raw) To: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: Shawn Guo, Sascha Hauer, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala, Rabeeh Khoury From: Rabeeh Khoury <rabeeh-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> Setup pwm lines as follows - pwm1: In case HummingBoard base carrier; this pin drives through a serial capacitor the mono out of the audio jack. In case HummingBoard pro the this pad can be reached by wiring to C8 capacitors on the board. pwm2: Setup pwm2 on gpio-1 but leave the default function of the iopad as a gpio. The user can change the io pad mux in user space and therefore use this function on gpio-1 (pin number 7 on the 26 pin header). pwm3,pwm4: unused Signed-off-by: Rabeeh Khoury <rabeeh-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> [tweaked alias for pwm pinctrl group --rmk] Signed-off-by: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> --- For acks please. arch/arm/boot/dts/imx6qdl-hummingboard.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi index 93588c987d2c..c0dc5948fa3c 100644 --- a/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi +++ b/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi @@ -164,6 +164,10 @@ >; }; + pinctrl_hummingboard_pwm1: pwm1grp { + fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>; + }; + pinctrl_hummingboard_spdif: hummingboard-spdif { fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; }; @@ -203,6 +207,25 @@ }; }; +&pwm1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hummingboard_pwm1>; + status = "okay"; +}; + +&pwm2 { + pinctrl-names = "default"; + status = "okay"; +}; + +&pwm3 { + status = "disabled"; +}; + +&pwm4 { + status = "disabled"; +}; + &spdif { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hummingboard_spdif>; -- 1.8.3.1 -- 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] 6+ messages in thread
[parent not found: <E1YSWZL-0002Aw-B5-eh5Bv4kxaXIANfyc6IWni62ZND6+EDdj@public.gmane.org>]
* Re: [PATCH 2/2] ARM: dts: hummingboard: Setup pwm lines [not found] ` <E1YSWZL-0002Aw-B5-eh5Bv4kxaXIANfyc6IWni62ZND6+EDdj@public.gmane.org> @ 2015-03-03 10:42 ` Philipp Zabel [not found] ` <1425379336.3146.38.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2015-03-23 18:06 ` Rabeeh Khoury 1 sibling, 1 reply; 6+ messages in thread From: Philipp Zabel @ 2015-03-03 10:42 UTC (permalink / raw) To: Russell King, Sascha Hauer Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Mark Rutland, Pawel Moll, Ian Campbell, Rabeeh Khoury, Rob Herring, Kumar Gala, Shawn Guo Am Montag, den 02.03.2015, 20:03 +0000 schrieb Russell King: > From: Rabeeh Khoury <rabeeh-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> > > Setup pwm lines as follows - > pwm1: In case HummingBoard base carrier; this pin drives through a serial > capacitor the mono out of the audio jack. > In case HummingBoard pro the this pad can be reached by wiring to > C8 capacitors on the board. > pwm2: Setup pwm2 on gpio-1 but leave the default function of the iopad as > a gpio. > The user can change the io pad mux in user space and therefore use > this function on gpio-1 (pin number 7 on the 26 pin header). > pwm3,pwm4: unused > > Signed-off-by: Rabeeh Khoury <rabeeh-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> > [tweaked alias for pwm pinctrl group --rmk] > Signed-off-by: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > --- > For acks please. > > arch/arm/boot/dts/imx6qdl-hummingboard.dtsi | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi > index 93588c987d2c..c0dc5948fa3c 100644 > --- a/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi > @@ -164,6 +164,10 @@ > >; > }; > > + pinctrl_hummingboard_pwm1: pwm1grp { > + fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>; > + }; > + > pinctrl_hummingboard_spdif: hummingboard-spdif { > fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; > }; > @@ -203,6 +207,25 @@ > }; > }; > > +&pwm1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_hummingboard_pwm1>; > + status = "okay"; > +}; > + > +&pwm2 { > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&pwm3 { > + status = "disabled"; > +}; > + > +&pwm4 { > + status = "disabled"; > +}; I wanted to point out these two are superfluous since pwm3/4 are disabled in the dtsi by default, but I just learned they aren't. Should we add status = "disabled" to unusable (because not externally connected) PWMs, and if so, shouldn't that be done in the dtsi already? regards Philipp -- 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] 6+ messages in thread
[parent not found: <1425379336.3146.38.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>]
* Re: [PATCH 2/2] ARM: dts: hummingboard: Setup pwm lines [not found] ` <1425379336.3146.38.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> @ 2015-03-09 15:40 ` Russell King - ARM Linux [not found] ` <20150309154004.GR8656-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> 2015-03-30 3:54 ` Shawn Guo 1 sibling, 1 reply; 6+ messages in thread From: Russell King - ARM Linux @ 2015-03-09 15:40 UTC (permalink / raw) To: Philipp Zabel Cc: Sascha Hauer, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Mark Rutland, Pawel Moll, Ian Campbell, Rabeeh Khoury, Rob Herring, Kumar Gala, Shawn Guo On Tue, Mar 03, 2015 at 11:42:16AM +0100, Philipp Zabel wrote: > I wanted to point out these two are superfluous since pwm3/4 are > disabled in the dtsi by default, but I just learned they aren't. > > Should we add status = "disabled" to unusable (because not externally > connected) PWMs, and if so, shouldn't that be done in the dtsi already? I guess it should, but we'd first need to ensure that none of the existing platforms would break through changing that (eg, through a missing status = "okay" entry). -- FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up according to speedtest.net. -- 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] 6+ messages in thread
[parent not found: <20150309154004.GR8656-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>]
* Re: [PATCH 2/2] ARM: dts: hummingboard: Setup pwm lines [not found] ` <20150309154004.GR8656-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> @ 2015-03-09 16:39 ` Philipp Zabel 0 siblings, 0 replies; 6+ messages in thread From: Philipp Zabel @ 2015-03-09 16:39 UTC (permalink / raw) To: Russell King - ARM Linux Cc: Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA, Pawel Moll, Ian Campbell, Rabeeh Khoury, Rob Herring, Sascha Hauer, Kumar Gala, Shawn Guo, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Am Montag, den 09.03.2015, 15:40 +0000 schrieb Russell King - ARM Linux: > On Tue, Mar 03, 2015 at 11:42:16AM +0100, Philipp Zabel wrote: > > I wanted to point out these two are superfluous since pwm3/4 are > > disabled in the dtsi by default, but I just learned they aren't. > > > > Should we add status = "disabled" to unusable (because not externally > > connected) PWMs, and if so, shouldn't that be done in the dtsi already? > > I guess it should, but we'd first need to ensure that none of the > existing platforms would break through changing that (eg, through > a missing status = "okay" entry). A grep \&pwm arch/arm/boot/dts/imx6* yields: * imx6dl-aristainetos_4.dts - needs pwm1 * imx6dl-aristainetos_7.dts - needs pwm3 imx6dl-riotboard.dts - already enables pwm1-4 imx6dl-tx6dl-comtft.dts - already enables pwm2 imx6dl-tx6u-801x.dts - pwm2 enabled in imx6qdl-tx6.dtsi imx6dl-tx6u-811x.dts - already enables pwm1, pwm2 enabled in imx6qdl-tx6.dtsi * imx6qdl-cubox-i.dtsi - needs pwm1 imx6qdl-gw52xx.dtsi - already enables pwm4 imx6qdl-gw53xx.dtsi - already enables pwm4 imx6qdl-gw54xx.dtsi - already enables pwm4 imx6qdl-nitrogen6x.dtsi - already enables pwm1, 3, and 4 imx6qdl-sabreauto.dtsi - already enables pwm3 imx6qdl-sabrelite.dtsi - already enables pwm1, 3, and 4 imx6qdl-sabresd.dtsi - already enables pwm1 imx6q-tx6q-1010-comtft.dts - pwm2 enabled in imx6qdl-tx6.dtsi imx6q-tx6q-1010.dts - pwm2 enabled in imx6qdl-tx6.dtsi imx6q-tx6q-1020-comtft.dts - pwm2 enabled in imx6qdl-tx6.dtsi imx6q-tx6q-1020.dts - pwm2 enabled in imx6qdl-tx6.dtsi imx6q-tx6q-1110.dts - enables pwm1, pwm2 enabled in imx6qdl-tx6.dtsi imx6sl-evk.dts - enables pwm1 imx6sx-sdb.dts - enables pwm3 Did I miss anything? I'll send a patch for those three. regards Philipp -- 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] 6+ messages in thread
* Re: [PATCH 2/2] ARM: dts: hummingboard: Setup pwm lines [not found] ` <1425379336.3146.38.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2015-03-09 15:40 ` Russell King - ARM Linux @ 2015-03-30 3:54 ` Shawn Guo 1 sibling, 0 replies; 6+ messages in thread From: Shawn Guo @ 2015-03-30 3:54 UTC (permalink / raw) To: Philipp Zabel Cc: Russell King, Sascha Hauer, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Mark Rutland, Pawel Moll, Ian Campbell, Rabeeh Khoury, Rob Herring, Kumar Gala On Tue, Mar 03, 2015 at 11:42:16AM +0100, Philipp Zabel wrote: > > +&pwm3 { > > + status = "disabled"; > > +}; > > + > > +&pwm4 { > > + status = "disabled"; > > +}; > > I wanted to point out these two are superfluous since pwm3/4 are > disabled in the dtsi by default, but I just learned they aren't. > > Should we add status = "disabled" to unusable (because not externally > connected) PWMs, and if so, shouldn't that be done in the dtsi already? Thanks Philipp for your patch "ARM: dts: imx6qdl: disable PWMs by default". Therefore I dropped pwm3/4 and applied the patch. Shawn -- 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] 6+ messages in thread
* Re: [PATCH 2/2] ARM: dts: hummingboard: Setup pwm lines [not found] ` <E1YSWZL-0002Aw-B5-eh5Bv4kxaXIANfyc6IWni62ZND6+EDdj@public.gmane.org> 2015-03-03 10:42 ` Philipp Zabel @ 2015-03-23 18:06 ` Rabeeh Khoury 1 sibling, 0 replies; 6+ messages in thread From: Rabeeh Khoury @ 2015-03-23 18:06 UTC (permalink / raw) To: Russell King, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: Shawn Guo, Sascha Hauer, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell, Kumar Gala On 03/02/2015 10:03 PM, Russell King wrote: > From: Rabeeh Khoury <rabeeh-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> > > Setup pwm lines as follows - > pwm1: In case HummingBoard base carrier; this pin drives through a serial > capacitor the mono out of the audio jack. > In case HummingBoard pro the this pad can be reached by wiring to > C8 capacitors on the board. > pwm2: Setup pwm2 on gpio-1 but leave the default function of the iopad as > a gpio. > The user can change the io pad mux in user space and therefore use > this function on gpio-1 (pin number 7 on the 26 pin header). > pwm3,pwm4: unused > > Signed-off-by: Rabeeh Khoury <rabeeh-UBr1pzP51AyaMJb+Lgu22Q@public.gmane.org> > [tweaked alias for pwm pinctrl group --rmk] > Signed-off-by: Russell King <rmk+kernel-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> > --- > For acks please. Ack. > > arch/arm/boot/dts/imx6qdl-hummingboard.dtsi | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi b/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi > index 93588c987d2c..c0dc5948fa3c 100644 > --- a/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi > @@ -164,6 +164,10 @@ > >; > }; > > + pinctrl_hummingboard_pwm1: pwm1grp { > + fsl,pins = <MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b1>; > + }; > + > pinctrl_hummingboard_spdif: hummingboard-spdif { > fsl,pins = <MX6QDL_PAD_GPIO_17__SPDIF_OUT 0x13091>; > }; > @@ -203,6 +207,25 @@ > }; > }; > > +&pwm1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_hummingboard_pwm1>; > + status = "okay"; > +}; > + > +&pwm2 { > + pinctrl-names = "default"; > + status = "okay"; > +}; > + > +&pwm3 { > + status = "disabled"; > +}; > + > +&pwm4 { > + status = "disabled"; > +}; > + > &spdif { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_hummingboard_spdif>; -- 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] 6+ messages in thread
end of thread, other threads:[~2015-03-30 3:54 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-03-02 20:03 [PATCH 2/2] ARM: dts: hummingboard: Setup pwm lines Russell King [not found] ` <E1YSWZL-0002Aw-B5-eh5Bv4kxaXIANfyc6IWni62ZND6+EDdj@public.gmane.org> 2015-03-03 10:42 ` Philipp Zabel [not found] ` <1425379336.3146.38.camel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2015-03-09 15:40 ` Russell King - ARM Linux [not found] ` <20150309154004.GR8656-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> 2015-03-09 16:39 ` Philipp Zabel 2015-03-30 3:54 ` Shawn Guo 2015-03-23 18:06 ` Rabeeh Khoury
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).