From mboxrd@z Thu Jan 1 00:00:00 1970 From: lee.jones@linaro.org (Lee Jones) Date: Wed, 26 Aug 2015 08:30:41 +0100 Subject: [PATCH 2/3] ARM: DT: STi: STiH407: Add c8sectpfe LinuxDVB DT node. In-Reply-To: <1440519730-486-3-git-send-email-peter.griffin@linaro.org> References: <1440519730-486-1-git-send-email-peter.griffin@linaro.org> <1440519730-486-3-git-send-email-peter.griffin@linaro.org> Message-ID: <20150826073041.GT19409@x1> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 25 Aug 2015, Peter Griffin wrote: > This patch adds in the required DT node for the c8sectpfe > Linux DVB demux driver which allows the tsin channels > to be used on an upstream kernel. > > Signed-off-by: Peter Griffin > --- > arch/arm/boot/dts/stihxxx-b2120.dtsi | 38 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi > index 62994ae..1bc018e 100644 > --- a/arch/arm/boot/dts/stihxxx-b2120.dtsi > +++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi > @@ -6,6 +6,10 @@ > * it under the terms of the GNU General Public License version 2 as > * published by the Free Software Foundation. > */ > + > +#include > +#include > + Looks like some of the STi files are a little wavering on convention, but I suggest the extra '\n's are superfluous. > / { > soc { > sbc_serial0: serial at 9530000 { > @@ -85,5 +89,39 @@ > status = "okay"; > }; > > + c8sectpfe at 08a20000 { This should be a device type, not a model number. demodulator at abcdabcd { > + compatible = "st,stih407-c8sectpfe"; To the uninitiated c8sectpfe is pretty indecipherable. How about *-c8sectpfe-demod? > + status = "okay"; > + reg = <0x08a20000 0x10000>, <0x08a00000 0x4000>; > + reg-names = "c8sectpfe", "c8sectpfe-ram"; > + > + interrupts = <0 34 0>, <0 35 0>; Please use the predetermined DEFINES for the flags cell. > + interrupt-names = "c8sectpfe-error-irq", > + "c8sectpfe-idle-irq"; > + > + pinctrl-names = "tsin0-serial", "tsin0-parallel", > + "tsin3-serial", "tsin4-serial", > + "tsin5-serial"; I would put *-names *under* the properties they pertain to and in the same format i.e. one per line in this case, for easy eye-match. > + pinctrl-0 = <&pinctrl_tsin0_serial>; > + pinctrl-1 = <&pinctrl_tsin0_parallel>; > + pinctrl-2 = <&pinctrl_tsin3_serial>; > + pinctrl-3 = <&pinctrl_tsin4_serial_alt3>; > + pinctrl-4 = <&pinctrl_tsin5_serial_alt1>; > + > + clocks = <&clk_s_c0_flexgen CLK_PROC_STFE>; > + clock-names = "c8sectpfe"; > + > + /* tsin0 is TSA on NIMA */ > + tsin0: port at 0 { > + Why the '\n'? > + tsin-num = <0>; > + serial-not-parallel; > + i2c-bus = <&ssc2>; If you are adding this property, I would get Wolfram or one of the DT guys to Ack it. > + rst-gpio = <&pio15 4 0>; Why not use the whole name "reset"? "-gpio" should be "-gpios". So, in full: "reset-gpios"? Flags: GPIO_ACTIVE_HIGH ? > + dvb-card = ; > + }; > + }; > }; > }; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [PATCH 2/3] ARM: DT: STi: STiH407: Add c8sectpfe LinuxDVB DT node. Date: Wed, 26 Aug 2015 08:30:41 +0100 Message-ID: <20150826073041.GT19409@x1> References: <1440519730-486-1-git-send-email-peter.griffin@linaro.org> <1440519730-486-3-git-send-email-peter.griffin@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <1440519730-486-3-git-send-email-peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Peter Griffin Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, srinivas.kandagatla-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, maxime.coquelin-qxv4g6HH51o@public.gmane.org, patrice.chotard-qxv4g6HH51o@public.gmane.org, mchehab-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org, kernel-F5mvAk5X5gdBDgjK7y7TUQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org On Tue, 25 Aug 2015, Peter Griffin wrote: > This patch adds in the required DT node for the c8sectpfe > Linux DVB demux driver which allows the tsin channels > to be used on an upstream kernel. >=20 > Signed-off-by: Peter Griffin > --- > arch/arm/boot/dts/stihxxx-b2120.dtsi | 38 ++++++++++++++++++++++++++= ++++++++++ > 1 file changed, 38 insertions(+) >=20 > diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts= /stihxxx-b2120.dtsi > index 62994ae..1bc018e 100644 > --- a/arch/arm/boot/dts/stihxxx-b2120.dtsi > +++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi > @@ -6,6 +6,10 @@ > * it under the terms of the GNU General Public License version 2 as > * published by the Free Software Foundation. > */ > + > +#include > +#include > + Looks like some of the STi files are a little wavering on convention, but I suggest the extra '\n's are superfluous. > / { > soc { > sbc_serial0: serial@9530000 { > @@ -85,5 +89,39 @@ > status =3D "okay"; > }; > =20 > + c8sectpfe@08a20000 { This should be a device type, not a model number. demodulator@abcdabcd { > + compatible =3D "st,stih407-c8sectpfe"; To the uninitiated c8sectpfe is pretty indecipherable. How about *-c8sectpfe-demod? > + status =3D "okay"; > + reg =3D <0x08a20000 0x10000>, <0x08a00000 0x4000>; > + reg-names =3D "c8sectpfe", "c8sectpfe-ram"; > + > + interrupts =3D <0 34 0>, <0 35 0>; Please use the predetermined DEFINES for the flags cell. > + interrupt-names =3D "c8sectpfe-error-irq", > + "c8sectpfe-idle-irq"; > + > + pinctrl-names =3D "tsin0-serial", "tsin0-parallel", > + "tsin3-serial", "tsin4-serial", > + "tsin5-serial"; I would put *-names *under* the properties they pertain to and in the same format i.e. one per line in this case, for easy eye-match. > + pinctrl-0 =3D <&pinctrl_tsin0_serial>; > + pinctrl-1 =3D <&pinctrl_tsin0_parallel>; > + pinctrl-2 =3D <&pinctrl_tsin3_serial>; > + pinctrl-3 =3D <&pinctrl_tsin4_serial_alt3>; > + pinctrl-4 =3D <&pinctrl_tsin5_serial_alt1>; > + > + clocks =3D <&clk_s_c0_flexgen CLK_PROC_STFE>; > + clock-names =3D "c8sectpfe"; > + > + /* tsin0 is TSA on NIMA */ > + tsin0: port@0 { > + Why the '\n'? > + tsin-num =3D <0>; > + serial-not-parallel; > + i2c-bus =3D <&ssc2>; If you are adding this property, I would get Wolfram or one of the DT guys to Ack it. > + rst-gpio =3D <&pio15 4 0>; Why not use the whole name "reset"? "-gpio" should be "-gpios". So, in full: "reset-gpios"? =46lags: GPIO_ACTIVE_HIGH ? > + dvb-card =3D ; > + }; > + }; > }; > }; --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog -- To unsubscribe from this list: send the line "unsubscribe devicetree" i= n the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756624AbbHZHat (ORCPT ); Wed, 26 Aug 2015 03:30:49 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:37424 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756531AbbHZHar (ORCPT ); Wed, 26 Aug 2015 03:30:47 -0400 Date: Wed, 26 Aug 2015 08:30:41 +0100 From: Lee Jones To: Peter Griffin Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@gmail.com, maxime.coquelin@st.com, patrice.chotard@st.com, mchehab@osg.samsung.com, kernel@stlinux.com, devicetree@vger.kernel.org Subject: Re: [PATCH 2/3] ARM: DT: STi: STiH407: Add c8sectpfe LinuxDVB DT node. Message-ID: <20150826073041.GT19409@x1> References: <1440519730-486-1-git-send-email-peter.griffin@linaro.org> <1440519730-486-3-git-send-email-peter.griffin@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1440519730-486-3-git-send-email-peter.griffin@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 25 Aug 2015, Peter Griffin wrote: > This patch adds in the required DT node for the c8sectpfe > Linux DVB demux driver which allows the tsin channels > to be used on an upstream kernel. > > Signed-off-by: Peter Griffin > --- > arch/arm/boot/dts/stihxxx-b2120.dtsi | 38 ++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/arch/arm/boot/dts/stihxxx-b2120.dtsi b/arch/arm/boot/dts/stihxxx-b2120.dtsi > index 62994ae..1bc018e 100644 > --- a/arch/arm/boot/dts/stihxxx-b2120.dtsi > +++ b/arch/arm/boot/dts/stihxxx-b2120.dtsi > @@ -6,6 +6,10 @@ > * it under the terms of the GNU General Public License version 2 as > * published by the Free Software Foundation. > */ > + > +#include > +#include > + Looks like some of the STi files are a little wavering on convention, but I suggest the extra '\n's are superfluous. > / { > soc { > sbc_serial0: serial@9530000 { > @@ -85,5 +89,39 @@ > status = "okay"; > }; > > + c8sectpfe@08a20000 { This should be a device type, not a model number. demodulator@abcdabcd { > + compatible = "st,stih407-c8sectpfe"; To the uninitiated c8sectpfe is pretty indecipherable. How about *-c8sectpfe-demod? > + status = "okay"; > + reg = <0x08a20000 0x10000>, <0x08a00000 0x4000>; > + reg-names = "c8sectpfe", "c8sectpfe-ram"; > + > + interrupts = <0 34 0>, <0 35 0>; Please use the predetermined DEFINES for the flags cell. > + interrupt-names = "c8sectpfe-error-irq", > + "c8sectpfe-idle-irq"; > + > + pinctrl-names = "tsin0-serial", "tsin0-parallel", > + "tsin3-serial", "tsin4-serial", > + "tsin5-serial"; I would put *-names *under* the properties they pertain to and in the same format i.e. one per line in this case, for easy eye-match. > + pinctrl-0 = <&pinctrl_tsin0_serial>; > + pinctrl-1 = <&pinctrl_tsin0_parallel>; > + pinctrl-2 = <&pinctrl_tsin3_serial>; > + pinctrl-3 = <&pinctrl_tsin4_serial_alt3>; > + pinctrl-4 = <&pinctrl_tsin5_serial_alt1>; > + > + clocks = <&clk_s_c0_flexgen CLK_PROC_STFE>; > + clock-names = "c8sectpfe"; > + > + /* tsin0 is TSA on NIMA */ > + tsin0: port@0 { > + Why the '\n'? > + tsin-num = <0>; > + serial-not-parallel; > + i2c-bus = <&ssc2>; If you are adding this property, I would get Wolfram or one of the DT guys to Ack it. > + rst-gpio = <&pio15 4 0>; Why not use the whole name "reset"? "-gpio" should be "-gpios". So, in full: "reset-gpios"? Flags: GPIO_ACTIVE_HIGH ? > + dvb-card = ; > + }; > + }; > }; > }; -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog