Received: by 10.223.185.116 with SMTP id b49csp8849635wrg; Fri, 2 Mar 2018 08:58:54 -0800 (PST) X-Google-Smtp-Source: AG47ELusoMudbOkmbc6A0naGY1gIgdcuTmtN5E9gpSJpjY/q/TL+Jy7SuiaWlKa/GkdrZfd258OF X-Received: by 10.99.37.7 with SMTP id l7mr80781pgl.212.1520009934825; Fri, 02 Mar 2018 08:58:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520009934; cv=none; d=google.com; s=arc-20160816; b=0voNcfNti/n2P4kStKPL7c1LNg+8rj8u8Mjlf+mMU05iCm4Y4VBnuG/zvPEfJpdKcG 7+SlBouMg3ylBHr5v70A+oznURN3Mpz3dCsP5UFNgxxZpsUYYMRvnnPkRmgAAHd8go05 xJljBZ3QCd5hAlj051h2dSTUsbcNaPARUZQ+ACJj8x6cTAUfmopSdeEymZ6gdKDsx3dM HNoVOBJlnFHFULNR9ligyITj0N7GTFi9ewN1Lv8ffknag+eCoQnPXAkY+tUnzHUnQJlx KT7giZMO0vfw9rYwHztHxwG3NNBqVhgUsnonYl648PPudR1ZZ4Vt3GoNiPAdzKQTf56F XV/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=mCauEW2hxyaDD51EAtVBYtlSntEZ1qo7ZnWdENyFkeM=; b=tcy48a1APHHSVe8+4N1q+/qE2dKF2FqttDungAugSSmF+vK+DiYLvQHWElS07I+ews Caez/vt4cPHA4skrM5FWK4gTD+i/8M2c8ydzVLPhsiGd6Pnt1HXkSfHiERwHcpBcXRqS CMt1gFl+KWSeIKOALH9ybOFSioOTfTov//2bWG2pxRiTLwFpYFDeLKSwQf4Abfzao674 neyianQ7eI/fHGVAyURtDAtmYHsJ95rrSziy+dxZ0SU8JsrhEZHAdlR7Au9BdbNSdIC1 VxSrykjh8Vi4kvNW1+kPat1s6FPH7oE8e0WkO1dzR6GaCTdNxUzsD6Yy3PYji/FuhYh7 yYoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FEuqhXEV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9-v6si5138570pln.492.2018.03.02.08.58.39; Fri, 02 Mar 2018 08:58:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FEuqhXEV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034515AbeCBQ5G (ORCPT + 99 others); Fri, 2 Mar 2018 11:57:06 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:35474 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030599AbeCBQ5D (ORCPT ); Fri, 2 Mar 2018 11:57:03 -0500 Received: by mail-oi0-f67.google.com with SMTP id x10so7497247oig.2; Fri, 02 Mar 2018 08:57:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mCauEW2hxyaDD51EAtVBYtlSntEZ1qo7ZnWdENyFkeM=; b=FEuqhXEVY4G7YX0Xi5XyQOM/hMXghyrQzcEOaU0p0Wb6VFKTuxrN0tlkK62fb0K1k7 T86DuZ+b4n1tNRHFSCyMXrWtLZWELjSXECFS+IhH0d7moozDVvVjE+QvZHx3s3DpKBx9 QxZWKvmFOlEO1Nxe8Z8KxxElmCu36HEdhaJbqdrZCH/IkgzNlo2scsE7fS+v0jgFCw+/ wJ/FvVmX7rWKSNeb0vgEPN5H24a5hzxGECnATWu8GQ+arcmbsqWgOcMkdGEQQHIJ1aoh 2IJd/si52qc9XmWelzui7BfHizL+yz2yvDlkfTEVYw9ofvSWRlyWQaWpegIscCGsqtTS 6esg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mCauEW2hxyaDD51EAtVBYtlSntEZ1qo7ZnWdENyFkeM=; b=YJ6lEqSnFmuEkfXhJeYTSamtJjbKiXrE5p7iyp12hnEdobZGS3b1+b9YBbhbpBtSme nqUSyX787g5BDD0EQ3yEmTCb/1179550ObC99VKd3GYuKA9bevN/HTYhAx424RlSi2as k5ND5IslIPcJN/bCzGACCjKd7YzZQnFxA+dWwtZysTPisiLnz/GpRxaqNi9ieYh1HgXb DBenRnCbk4ir6xknu1RFpWsMLngJheFbNGa7uiOi7s3GwdXron90yjzPlR8zgOiCwZUQ /bBoXzBTqh6RdIvBLPbeMRGHGzzapBCTftrnWZeZe5PpZXtN1cwAcGAqVwQ8aWUEs/dI vnQw== X-Gm-Message-State: APf1xPCsIHXPT8jPgSR0QCCDNWRn5hBIHuWKBdE2ecZIR4P+SODR0IQx KxI5gLH5Yv28mmM53N4+R5zrQXYsi/Z2Av+jVeQ= X-Received: by 10.202.196.80 with SMTP id u77mr4141048oif.9.1520009822677; Fri, 02 Mar 2018 08:57:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.5.137 with HTTP; Fri, 2 Mar 2018 08:57:02 -0800 (PST) In-Reply-To: <20180302121750.12865-1-lukma@denx.de> References: <20180302121750.12865-1-lukma@denx.de> From: Fabio Estevam Date: Fri, 2 Mar 2018 13:57:02 -0300 Message-ID: Subject: Re: [PATCH] ARM: dts: tpc: Device tree description of the TPC board To: Lukasz Majewski Cc: linux-kernel , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Russell King , Rob Herring , Sascha Hauer , Fabio Estevam , Shawn Guo , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lukasz, In addition to Sascha's comments: On Fri, Mar 2, 2018 at 9:17 AM, Lukasz Majewski wrote: > diff --git a/arch/arm/boot/dts/imx6q-kp-tpc.dts b/arch/arm/boot/dts/imx6q-kp-tpc.dts > new file mode 100644 > index 000000000000..955462e778c9 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6q-kp-tpc.dts > @@ -0,0 +1,84 @@ > +/* > + * Copyright 2018 > + * Lukasz Majewski, DENX Software Engineering, lukma@denx.de > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is licensed under the terms of the GNU General Public > + * License version 2. This program is licensed "as is" without > + * any warranty of any kind, whether express or implied. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ > + Please consider using SPDX tag instead. > +/dts-v1/; > + > +#include "imx6q-kp.dtsi" > + > +/ { > + model = "Freescale i.MX6 Quad K+P TPC Board"; > + compatible = "fsl,imx6q-tpc", "fsl,imx6q"; Use the board manufacturer symbol instead. If needed, add an entry for the vendor at Documentation/devicetree/bindings/vendor-prefixes.txt > +}; > + > +&lcd_display { > + display-timings { > + 800x480x60 { > + clock-frequency = <34209000>; > + hactive = <800>; > + vactive = <480>; > + hback-porch = <85>; > + hfront-porch = <15>; > + vback-porch = <34>; > + vfront-porch = <10>; > + hsync-len = <28>; > + vsync-len = <1>; > + hsync-active = <1>; > + vsync-active = <1>; > + de-active = <1>; > + }; > + }; > +}; We prefer to use a compatible panel entry instead of keeping the panel timings inside the dts. > + > +&ipu1_di0_disp0 { > + remote-endpoint = <&lcd_display_in>; > +}; > + > +&can1 { > + status = "disabled"; > +}; > + > +&can2 { > + status = "disabled"; > +}; > + > +&uart1 { > + status = "okay"; > +}; > + > +&uart2 { > + status = "disabled"; > +}; > diff --git a/arch/arm/boot/dts/imx6q-kp.dtsi b/arch/arm/boot/dts/imx6q-kp.dtsi > new file mode 100644 > index 000000000000..47a10fb1d46b > --- /dev/null > +++ b/arch/arm/boot/dts/imx6q-kp.dtsi > @@ -0,0 +1,468 @@ > +/* > + * Copyright 2018 > + * Lukasz Majewski, DENX Software Engineering, lukma@denx.de > + * > + * This file is dual-licensed: you can use it either under the terms > + * of the GPL or the X11 license, at your option. Note that this dual > + * licensing only applies to this file, and not this project as a > + * whole. > + * > + * a) This file is licensed under the terms of the GNU General Public > + * License version 2. This program is licensed "as is" without > + * any warranty of any kind, whether express or implied. > + * > + * Or, alternatively, > + * > + * b) Permission is hereby granted, free of charge, to any person > + * obtaining a copy of this software and associated documentation > + * files (the "Software"), to deal in the Software without > + * restriction, including without limitation the rights to use, > + * copy, modify, merge, publish, distribute, sublicense, and/or > + * sell copies of the Software, and to permit persons to whom the > + * Software is furnished to do so, subject to the following > + * conditions: > + * > + * The above copyright notice and this permission notice shall be > + * included in all copies or substantial portions of the Software. > + * > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, > + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES > + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND > + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT > + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, > + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING > + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR > + * OTHER DEALINGS IN THE SOFTWARE. > + */ SPDX, please. > + leds { > + compatible = "gpio-leds"; > + > + green { > + label = "led1"; > + gpios = <&gpio3 16 0>; gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>; > + linux,default-trigger = "gpio"; > + default-state = "off"; > + }; > + > + red { > + label = "led0"; > + gpios = <&gpio3 23 0>; GPIO_ACTIVE_HIGH > + linux,default-trigger = "gpio"; > + default-state = "off"; > + }; > + }; > + > + memory: memory { > + reg = <0x10000000 0x40000000>; > + }; memory@10000000 otherwise warnings are seen when building with W=1. Make sure that building the dtb with W=1 introduces no warnings. > +&i2c1 { > + clock-frequency = <400000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c1>; > + status = "okay"; > + > + goodix_ts@5d { > + compatible = "goodix,gt911"; > + reg = <0x5d>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ts>; > + No need for these blank lines. > + interrupt-parent = <&gpio1>; > + interrupts = <9 2>; Please use an IRQ flag. > + irq-gpios = <&gpio1 9 0>; GPIO_ACTIVE_HIGH > + reset-gpios = <&gpio5 2 0>; GPIO_ACTIVE_HIGH. > +&i2c2 { > + clock-frequency = <400000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c2>; > + status = "okay"; > + > + codec: sgtl5000@a { > + compatible = "fsl,sgtl5000"; > + #sound-dai-cells = <0>; > + reg = <0x0a>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_codec>; > + No need for these blank lines. > + clocks = <&clks IMX6QDL_CLK_CKO>; > + VDDA-supply = <®_3p3v>; > + VDDIO-supply = <®_3p3v>; > +&uart2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_uart2>; > + fsl,uart-has-rtscts; fsl,uart-has-rtscts has been deprecated. Please use uart-has-rtscts instead.