Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6660015ybn; Mon, 30 Sep 2019 01:28:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxe3qNr/I+MnSRIW4UXFHrQ05PFDgT1QsT6rYyYbX9AX4K8nF3WpeZlnTb8K6gdJufgTdwu X-Received: by 2002:a17:907:215a:: with SMTP id rk26mr18103175ejb.49.1569832095846; Mon, 30 Sep 2019 01:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569832095; cv=none; d=google.com; s=arc-20160816; b=JXBvPKCyWiE3v+4OAuIgVSGAWWRKhyND+RQWjlWkGy+M7sqf9m2Pje7kL3Os74yylT v6Op85Tenosd6hzEZ+JQ+o019eO/kjvWXYWYARTUP89iZiRrsjflGbJW9raY9B9FMXm3 EQAke1fl5PHdqzlbNMPHI6uak6dNCVOGz3tJoJoFuO4tg5CZn0czjbA5EIH91NsU0CAk iSwDFhx7A5PB5dLGvEqkvoIR8PDXfbTVlatCeikeUQbJkEJMollX2KuARqhjmSss5YDm 188tzzQpQVmLd4NFSxp5gQ4LUfCYepyxA28+FA0KUOwInbFFP38bUI3iXtvHrw90sEx2 n9VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=va99aovAFRHOlC6vRPt9Se3XLSUGzRuP4KUAYfp1WPk=; b=mraNpK/l+jboWOSorzu+LzVMBM0dDiHwFpuzBty7FN11MdBeQb97bB4DaKp26LENyd VCTnmYx2dH9sfn1J/jrWwQsruGLDGJuu+4nQ5o7hzI8dkzJ4Y+eFZXLFsXtCfY3Joy/w K8TYcroLjQjFa6wgOSUUabreF+c/qn7MoySxfbNjGf+ctXdUNGv9LQ9aUBz5uLebAG/q Ok5QFi6T6twq5KgheBPFXI9NSdIquPI55LQ3jcSFhzQnPq9HF4wVKsEadtNZWWZ9XXSB UI4ol5wB9T4H3ryVYg3ZUH8+sy7dhUjL8og6uWcbLzaYlHlGvFgSrix0UNY9Mm9zEgKC VD0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si6717949edb.238.2019.09.30.01.27.51; Mon, 30 Sep 2019 01:28:15 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730015AbfI3I13 (ORCPT + 99 others); Mon, 30 Sep 2019 04:27:29 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:44495 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729254AbfI3I13 (ORCPT ); Mon, 30 Sep 2019 04:27:29 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iEr1b-0003WF-As; Mon, 30 Sep 2019 10:27:19 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iEr1X-0002ak-4t; Mon, 30 Sep 2019 10:27:15 +0200 Date: Mon, 30 Sep 2019 10:27:15 +0200 From: Marco Felsch To: Andreas Kemnade Cc: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, manivannan.sadhasivam@linaro.org, andrew.smirnov@gmail.com, marex@denx.de, angus@akkea.ca, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, j.neuschaefer@gmx.net, Discussions about the Letux Kernel Subject: Re: [PATCH 1/3] ARM: dts: add Netronix E60K02 board common file Message-ID: <20190930082715.mplf5ra35ikqmbyr@pengutronix.de> References: <20190927061423.17278-1-andreas@kemnade.info> <20190927061423.17278-2-andreas@kemnade.info> <20190927094721.w26ggnli4f5a64uv@pengutronix.de> <20190927210807.26439a94@aktux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190927210807.26439a94@aktux> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 10:22:57 up 135 days, 14:41, 87 users, load average: 0.02, 0.05, 0.11 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andreas, On 19-09-27 21:08, Andreas Kemnade wrote: > Hi Marco, > > On Fri, 27 Sep 2019 11:47:21 +0200 > Marco Felsch wrote: > > > Hi Andreas, > > > > thanks for the patch. > > > thanks for the quick review. Most of your comments are clear. > > [...] > > > + wifi_pwrseq: wifi_pwrseq { > > > + compatible = "mmc-pwrseq-simple"; > > > + post-power-on-delay-ms = <20>; > > > + reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; > > > > Can you add a pinctrl-entry here please? The general rule is to mux > > things where you use it. > > > yes, there are many places in my patch where they are added to some > parent devices. > I will fix that. > [...] > > > + leds { > > > + compatible = "gpio-leds"; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_led>; > > > > Please move all muxing you made here into this file or add phandles so > > the dts file need to add only the muxing stuff. This applies to all > > pinctrl you made here. > > > so you disagree with this pattern: > in .dtsi > some_device { > pinctrl-0 = <&pinctrl_some_device>; > }; > > and in .dts (one I sent with this patch series and the tolino/mx6sl one > is not ready-cooked yet, will be part of a later series) > &iomuxc { > pinctrl_some_device: some_devicegrp { > fsl,pins = <...>; > }; > }; > > ? Yes, because IMHO a dtsi is self contained as well as a dts. If it is common for all boards you can move the muxing into the dtsi else it should be done within the dts. > > > + > > > + GLED { > > > + gpios = <&gpio5 7 GPIO_ACTIVE_LOW>; > > > + linux,default-trigger = "timer"; > > > + }; > > > + }; > > > + > > > + gpio-keys { > > > + compatible = "gpio-keys"; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_gpio_keys>; > > > + power { > > > + label = "Power"; > > > + gpios = <&gpio5 8 GPIO_ACTIVE_LOW>; > > > + linux,code = ; > > > > Add missing header: dt-bindings/input/input.h to use this. > > > I am doing this in the .dts but it is probably better to do it here > because it is used here. > > > > + gpio-key,wakeup; > > > + }; > > > + cover { > > > + label = "Cover"; > > > + gpios = <&gpio5 12 GPIO_ACTIVE_LOW>; > > > + linux,code = ; > > > + linux,input-type = <0x05>; /* EV_SW */ > > > > In the header above EV_SW is also specified so please use it here. > > > This pattern is in many files. I took one as an example. It seems that > 50% of devicetree files have this pattern, the other 50% do have the > pattern you proposed (which I like more). So probably EV_SW was not > available in former times? I don't know, checking the git history should bring the answer ;) Anyway, if it is available we should use it. > > > + gpio-key,wakeup; > > > + }; > > > + }; > > > + > > > +}; > > > + > > > + > > > + > > > > Whitespaces > > > > > +&audmux { > > > + pinctrl-names = "default"; > > > + status = "disabled"; > > > > Why you mentioned a pinctrl-names here without the mux? Do we need the > > status line here? The common case is that such devices are off by > > default/the base dt. > > > yes, that things can be removed. > > > +}; > > > + > > > +&snvs_rtc { > > > + status = "disabled"; > > > > Same applies here. > > > > No, seems to be an exception, it does not have a status = "disabled" in > imx6sll.dtsi. Did you mean 6sll or 6ull? Okay, is this baseboard only used with a 6ull? Regards, Marco > > > +}; > > > + > > > +&i2c1 { > > > + clock-frequency = <100000>; > > > + pinctrl-names = "default","sleep"; > > > + pinctrl-0 = <&pinctrl_i2c1 &pinctrl_lm3630a_bl_gpio>; > > > > The &pinctrl_lm3630a_bl_gpio should be moved into the lm3630a node. > > > > > + pinctrl-1 = <&pinctrl_i2c1_sleep>; > > > + status = "okay"; > > > + > > > + lm3630a: lm3630a-i2c@36 { > > > > please name it backlight@36 > > > > > + reg = <0x36>; > > > + status = "ok"; > > > > status lines are always be the last and if it is okay you can drop it > > because the default is okay. > > > well, I added it because the driver was not loaded but later I found out > that the real reason is that module aliases were broken and forgot to > remove that "ok". > > Regards, > Andreas > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |