Received: by 10.192.165.148 with SMTP id m20csp439097imm; Fri, 4 May 2018 00:04:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr9f3vrpJUkUWX7Rub2eUUgOF1XST//S6dENk6iwFA6Wb0lxkvF7HFfO6jVrDfI3CAN2HHo X-Received: by 2002:a65:5a07:: with SMTP id y7-v6mr21504000pgs.15.1525417471328; Fri, 04 May 2018 00:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525417471; cv=none; d=google.com; s=arc-20160816; b=mgVCr9wjk/uq1SXqb5FlKab2U16JONXrPS0lQFw34DZs8fuGjEvghWOTYBxup5Y+4k K4GPzUzrOqbKZBlrD25/lBD2fPR76aAeELgcnCvGJgpm/H2IJo8F9ixG5DXhN8ljQ/P2 e8RD/6j6LkOBdCvqPwCIA3W3UViRjZtTOiAuAbC8YdGnrX/v/TCAAeffFG8adNe4AOmv aboQlpEhsooQEy/xTDwZQMhXZZO+erqTsS4Jwsb+Q1xIyCSWGWQK4RJUA9j8Dw/k2ED0 xBahdkpGwurBqJd0ansifT3eq+MOpeuID6nNYapxIcAtzjIttaY773leKVXQS96PMIF8 U0jA== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=lCK/d+naXnbghgnBdry3Z4UudeQ5u4P/a93rh0KlidQ=; b=n5S8SorGdOmvMhP6hpw5mzcm593WnwJt8zGWIaeVhSeiBH5flTPfnGboBwWdHs4hIJ tqGbMZVKyoCXCoCzZSI4j7bAlYrQUUD93T3ZZkKEnoLrlx6tTZTN783n/5jWnT+B9nb6 S2CbN5XcQjFmjlSMNfHf7K/8l/t17YEL79syMTwTF1+j+arKYk0pFLh3peEGkY3el9J0 yReSet625ZvXVKtvlfz4dWElZWxcIEe/ZP9mHyux6bNCvCfoFhRN0reeRIfBJppRf09Z 08duL+MOWWnK9K8t2DifheecgAwYjUhDa3V29gjOS89q3tyRQYYq6NhUGTxvY8cipr13 ELjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=d2ThlTYD; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a92-v6si15752727pla.291.2018.05.04.00.04.15; Fri, 04 May 2018 00:04:31 -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; dkim=pass header.i=@kernel.org header.s=default header.b=d2ThlTYD; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751344AbeEDHEC (ORCPT + 99 others); Fri, 4 May 2018 03:04:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:55152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbeEDHD6 (ORCPT ); Fri, 4 May 2018 03:03:58 -0400 Received: from dragon (unknown [45.56.152.81]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1FB7621707; Fri, 4 May 2018 07:03:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1525417437; bh=QlX6ufbsoSbE9QFPmV4UUevmXsPs14WoFL2f6AOLFYw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d2ThlTYDlDR1794AD4/O6NNN3Or3Eu6BF+JODi6UaCabIdFAvitfOFhzTo3J1JBRe Qsqq4EKencbEmXNUnao8QNhFbUSg7MZEpLrrMlHYtBspOwH6e0OQG1c8Ii3rRNOTYJ 0sE4JeoQGc7iK05Jf5uRytyD0ek+1kItAwYi+8n0= Date: Fri, 4 May 2018 15:03:40 +0800 From: Shawn Guo To: =?iso-8859-1?B?VPxyayw=?= Jan Cc: Rob Herring , Mark Rutland , Thierry Reding , David Airlie , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Russell King , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , LinuxArmKernelMailingListe Subject: Re: [PATCH v4 6/7] ARM: dts: Add support for emtrion emCON-MX6 series Message-ID: <20180504070339.GS3443@dragon> References: <20180420125108.14197-1-jan.tuerk@emtrion.com> <20180427132445.3458-1-jan.tuerk@emtrion.com> <20180427132445.3458-7-jan.tuerk@emtrion.com> <20180428031231.GB3693@dragon> <95F51F4B902CAC40AF459205F6322F01B83109E5C3@BMK019S01.emtrion.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <95F51F4B902CAC40AF459205F6322F01B83109E5C3@BMK019S01.emtrion.local> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 03, 2018 at 12:00:06PM +0200, T?rk, Jan wrote: > > > +/ { > > > + aliases { > > > + mmc0 = &usdhc3; > > > + mmc2 = &usdhc1; > > > + mmc1 = &usdhc2; > > > + mmc3 = &usdhc4; > > > + boardID = &boardID; > > > > Why do you need this boardID alias? > I wanted to have a generic entry point to address the board-id on all CPU-modules with their different SoC's resulting in different devicetree paths. > Also as it now has the generic "gpio@3a" name, there would be no other way in differencing the board Identifying GPIO-expander from an additionally > attached one (except platform code etc.) > With the alias every code could look up the information required over the alias path with the same piece of code. Okay. But no uppercase please. Otherwise, you introduce the following DTC warnings (with W=1 switch) we are trying to clean up. Warning (alias_paths): /aliases: aliases property name must include only lowercase and '-' > > > > > + }; > > > &pinctrl_nor_flash > > > + &pinctrl_usdhc2 > > > + &pinctrl_spdif_out &pinctrl_spdif_in > > > + &pinctrl_cpi1 &pinctrl_cpi2 > > > + >; > > > > Again, please do not put consumer device specific pins in hog group. > > Also, it's confusing to have the same pinctrl in both hog and consumer device > > node, like pinctrl_nor_flash and pinctrl_usdhc2 here. > > About pinctrl_nor_flash I fully agree, that's a mistake. > pinctrl_usdhc2 is not connected on the avari, and therefore not enabled. > As told before it is added to the Hog group to force the default pinmuxing without enabling the hardware itself. If you want to do such default pinmuxing, please do it in your firmware. We generally do not want to use hog group too much, because that makes it difficult to find out which client devices consume which pins. > > > > > > +}; > > > +&i2c1 { > > > + clock-frequency = <100000>; > > > + pinctrl-names = "default"; > > > + pinctrl-0 = <&pinctrl_i2c1>; > > > + status = "okay"; > > > + > > > + rtc: rtc@68 { > > > > Is the label actually used? If yes, I would suggest a more specific name like > > ds1307. > Really? Why should it be a generic name for "gpio" and "pmic" but not a generic name for an "rtc" chip? I'm talking about label not node name. That said I was suggesting something like: ds1307: rtc@68 > > > > > > + compatible = "dallas,ds1307"; > > > + reg = <0x68>; > > > + }; Shawn