Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757659AbdLVKek convert rfc822-to-8bit (ORCPT ); Fri, 22 Dec 2017 05:34:40 -0500 Received: from mail3.emtrion.de ([80.150.99.69]:57467 "EHLO mail3.emtrion.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757481AbdLVKef (ORCPT ); Fri, 22 Dec 2017 05:34:35 -0500 From: =?iso-8859-1?Q?T=FCrk=2C_Jan?= To: "'Rob Herring'" CC: Mark Rutland , Thierry Reding , David Airlie , Russell King , Shawn Guo , Sascha Hauer , Fabio Estevam , =?iso-8859-1?Q?Andreas_F=E4rber?= , Kevin Hilman , Maxime Ripard , Alexandre Belloni , SZ Lin , Greg Kroah-Hartman , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , LinuxArmKernelMailingListe Date: Fri, 22 Dec 2017 11:34:31 +0100 Subject: Re: [PATCH v2 4/5] ARM: dts: Add support for emtrion emCON-MX6 series Thread-Topic: [PATCH v2 4/5] ARM: dts: Add support for emtrion emCON-MX6 series Thread-Index: AdN7D2p4OorKlfD4Q32SyD+HwNpEPQ== Message-ID: <95F51F4B902CAC40AF459205F6322F01B7FDFECC3C@BMK019S01.emtrion.local> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE x-tm-as-product-ver: SMEX-11.0.0.4283-8.100.1062-23546.002 x-tm-as-result: No--26.925200-8.000000-31 x-tm-as-matchedid: 150567-701625-704425-700685-853813-139010-703523-705386-8 50298-704421-700075-110462-701762-186035-705753-704713-701433-700752-702609 -700918-707788-862883-700624-863596-188019-106420-705178-702404-703179-7028 90-121588-863828-121504-704410-701016-703529-712124-704496-702311-105700-70 4934-703417-704774-709009-707997-703378-702900-702898-139504-705102-712025- 704442-704980-106470-700324-703969-701604-704332-113241-703786-706769-13970 4-708196-706355-121336-705901-703835-853842-703981-705192-704990-848362-700 607-863593-188199-705718-705167-701236-700470-704921-702791-843086-700383-7 01274-139703-850095-851079-148004-148133-20021-20043-42000-42003 x-tm-as-user-approved-sender: No x-tm-as-user-blocked-sender: No Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7003 Lines: 199 > -----Urspr?ngliche Nachricht----- > Von: Rob Herring [mailto:robh@kernel.org] > Gesendet: Freitag, 22. Dezember 2017 00:19 > An: T?rk, Jan > Betreff: Re: [PATCH v2 4/5] ARM: dts: Add support for emtrion emCON-MX6 > series > > On Wed, Dec 20, 2017 at 02:47:04PM +0100, jan.tuerk@emtrion.com wrote: > > From: Jan Tuerk > > > > This patch adds support for the emtrion GmbH emCON-MX6 modules. > > They are available with imx.6 Solo, Dual-Lite, Dual and Quad equipped > > with Memory from 512MB to 2GB (configured by U-Boot). > > > > Our default developer-Kit ships with the Avari baseboard and the EDT > > ETM0700G0BDH6 Display (imx6[q|dl]-emcon-avari). > > > > The devicetree is split into the common part providing all module > > components and the basic support for all SoC versions > > (imx6qdl-emcon.dtsi) and parts which are i.mx6 S|DL and D|Q relevant. > > Finally the support for the avari baseboard in the developer-kit > > configuration is provided by the emcon-avari dts files. > > > > Signed-off-by: Jan Tuerk > > --- > > Changes in v2: > > - Fixed typo (reg_prallel.. --> reg_parallel) > > - Removed trailing new-line > > - Fix uppercase addresses as Rob H. noted > > - Fix warning about lcd@di0 -> rename to disp0 > > - Renamed some nodes regarding Rob H. > > > > Documentation/devicetree/bindings/arm/emtrion.txt | 13 + > > arch/arm/boot/dts/Makefile | 2 + > > arch/arm/boot/dts/imx6dl-emcon-avari.dts | 233 ++++++ > > arch/arm/boot/dts/imx6dl-emcon.dtsi | 37 + > > arch/arm/boot/dts/imx6q-emcon-avari.dts | 233 ++++++ > > arch/arm/boot/dts/imx6q-emcon.dtsi | 37 + > > arch/arm/boot/dts/imx6qdl-emcon.dtsi | 848 > ++++++++++++++++++++++ > > 7 files changed, 1403 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/arm/emtrion.txt > > create mode 100644 arch/arm/boot/dts/imx6dl-emcon-avari.dts > > create mode 100644 arch/arm/boot/dts/imx6dl-emcon.dtsi > > create mode 100644 arch/arm/boot/dts/imx6q-emcon-avari.dts > > create mode 100644 arch/arm/boot/dts/imx6q-emcon.dtsi > > create mode 100644 arch/arm/boot/dts/imx6qdl-emcon.dtsi > > [...] > > > + captouch: touchscreen@38 { > > + reg = <0x38>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_irq_touch2 &pinctrl_emcon_gpio4>; > > + interrupt-parent = <&gpio6>; > > + interrupts = <31 IRQ_TYPE_EDGE_FALLING>; > > + compatible = "edt,edt-ft5406"; > > Put compatible as the first property. > > > + wake-gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; > > + wakeup-source; > > + }; > > +}; > > [...] > > > +&rgb_panel { > > + compatible = "edt,etm0700g0bdh6"; > > + status = "okay"; > > Having compatible here is a bit strange and fragile. It's assuming 2 different > panels have the same common properties. The reason for doing it here is that the devicetree is splitted into 2 Layers (3 with imx6qdl.dtsi). The first Layer (imx6qdl-emcon.dtsi) describes the i.mx6 Module named "emCON-MX6", with all drivers (some are currently disabled) to provide all functionality as defined by its specification. For the RGB port it means that it defaults to 24 bit. However, the "panel" connects the specified backlight pwm and the corresponding enable pin of the display. In the file you're mentioning here the AVARI baseboard is configured and described, which has an 18bit EDT RGB connector. Also the display is an option and might be a different one on customer's hardware. So if custom designs based on our module/baseboard are made, they'll have just to specify the display type actually connected and we'll save the boilerplate of drm + pm connections. > > > > diff --git a/arch/arm/boot/dts/imx6q-emcon.dtsi b/arch/arm/boot/dts/imx6q- > emcon.dtsi > > new file mode 100644 > > index 000000000000..64fc0cd74c05 > > --- /dev/null > > +++ b/arch/arm/boot/dts/imx6q-emcon.dtsi > > @@ -0,0 +1,37 @@ > > +/* > > + * Copyright (C) 2017 emtrion GmbH > > + * Author: Jan Tuerk > > + * > > + * The code contained herein is licensed under the GNU General Public > > + * License. You may obtain a copy of the GNU General Public License > > + * Version 2 or later at the following locations: > > + * > > + * http://www.opensource.org/licenses/gpl-license.html > > + * http://www.gnu.org/copyleft/gpl.html > > You don't need this if... I've got a little different point of view on this since the OSS Europe 2017 - part of gpl2 following. GPLv2-Para1 (=>highlighted<=) : 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an => appropriate copyright notice and disclaimer of warranty; <= keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. After reviewing this I think apparently I should include the Warranty disclaimer as well. Examples could be found in: arch/arm/boot/dts/imx6q-tbs2910.dts and arch/arm/boot/dts/imx6q-zii-rdu2.dts > > > + * > > + * SPDX-License-Identifier: GPL-2.0 > > You have this. > > Also, the rules around this are getting a bit stricter saying the SPDX > tag should be the first line of the file using a C++ style comment. > I'll change it for v3 of this patch however it will end up like this: //SPDX-License... /* * Copyright do you have an reference for that? What I've found so far was telling the format I used. > > + * > > + */ > > + > > +/ { > > + model = "emtrion SoM emCON-MX6 Dual/Quad"; > > + compatible = "emtrion,emcon-mx6","fsl,imx6q"; > > Need a space ^ Ok > > > diff --git a/arch/arm/boot/dts/imx6qdl-emcon.dtsi > b/arch/arm/boot/dts/imx6qdl-emcon.dtsi > > new file mode 100644 > > index 000000000000..f87d8ed6a1b1 > > --- /dev/null > > +++ b/arch/arm/boot/dts/imx6qdl-emcon.dtsi > > @@ -0,0 +1,848 @@ > > +/* > > + * Copyright (C) 2017 emtrion GmbH > > + * Author: Jan Tuerk > > + * > > + * The code contained herein is licensed under the GNU General Public > > + * License. You may obtain a copy of the GNU General Public License > > + * Version 2 or later at the following locations: > > + * > > + * http://www.opensource.org/licenses/gpl-license.html > > + * http://www.gnu.org/copyleft/gpl.html > > + * > > + * SPDX-License-Identifier: GPL-2.0 > > + * > > + */ > > + > > +#include > > +#include > > +#include > > + > > +/ { > > + > > + model = "emtrion SoM emCON-MX6"; > > + compatible = "emtrion,emcon-mx6","fsl,imx6q", "fsl,imx6dl"; > > Need a space ^ Ok Regards Jan --- emtrion GmbH Alter Schlachthof 45 76131 Karlsruhe GERMANY https://www.emtrion.de Amtsgericht Mannheim HRB 110 300 Gesch?ftsf?hrer: Dieter Baur, Ramona Maurer