Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4059234imm; Tue, 11 Sep 2018 06:24:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdameF7AP7BOzEdxaGLZZiGuatYF0SFmD3p5lWQoVUj22eQoKzTOUAPAfHSJ0XxHy3fX9rwJ X-Received: by 2002:a62:7f0c:: with SMTP id a12-v6mr29204109pfd.257.1536672264825; Tue, 11 Sep 2018 06:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536672264; cv=none; d=google.com; s=arc-20160816; b=Swh/g7XkV3GPzcRcNjGUQq66iaqSH9Y3oY14q3yBMTEkrPj7fYjCucn/bIwOZgYAdy O+mc1DfJ1HQ6SVmk9MnBXWEEDLg6K2LuF5sxmfWlmHlUG3bJ00ZYw8USD3HjCl+WWhoy eRm2JKmgSm0W0loByPWLxc+g2pJYbCWz4gXwbAhgkXQbsma7ErZQokoj+gsNb4mgWB/f n3NaB+VwoWNxBA7ih7CPiPVenGMKdx05zMe1XCsGXB8AofPOC884U1G2XwmkRfKw0tut t9RP3tf/T86SXOfQK97yIrIwlV876mC+Is8LvZeHGhJbbOiUr7R3ZdctTw3KEYlKmARt iNdg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=6S50GqVd76P+WDupmy8yKMP/dWFcz6qJF6u5SIh6oKc=; b=xFmYSaSGEiFPJ5Rc7zo++xOo43DeMLWdLZH7fq+CWD/qZRjX/UK4GNid/ftC4cakmb o/rvRK6V/W8WdMJWtMDpZ3ZDKLDMXozrpmsJqj6MLxvaRsXl9vxUGu4/z3CZA4knmawe fysAk8rq5O5rzwPXpAcmXoUApGvRvTUKbBOOb897Ynqz4j/Rm6D/J0tvohSiIEhmQ8/2 NnupYDzx8jpo02BVKV8q2DznfkWXv+5kLErmAVeg/PS5aQXQc+g6aVlUAUVHtMHYMFRZ V1rX8HP3ELLWOMKGF/i+qljqL1Q5+MPUnJ9gKlWLhtI54jUYhPsa0PgPeNXxkrCXmX0T HfWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IG0EBeKz; 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 j21-v6si20641240pgl.8.2018.09.11.06.24.09; Tue, 11 Sep 2018 06:24:24 -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=IG0EBeKz; 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 S1727332AbeIKSXN (ORCPT + 99 others); Tue, 11 Sep 2018 14:23:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:48430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbeIKSXN (ORCPT ); Tue, 11 Sep 2018 14:23:13 -0400 Received: from mail-qk1-f176.google.com (mail-qk1-f176.google.com [209.85.222.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7969C20839; Tue, 11 Sep 2018 13:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536672234; bh=ZSfdyOpKrLF+6zkO6DA2QBDK+CEVBlS0FBvLMjZoyiU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IG0EBeKz/S9z0LB17EkMv0rcxlQhyH4mOW1og7gmc1h3e/zQv2/LD96O1keEXbH8D rnN0llAgZ7rYWkVGr/yhlnMoIO+JHk6hYK3NkHCIvdVHSG7lEXBIe1omDS0sR3Sznl cROWjVyGExmWMcOInyWRBoArspijaKmwmodqvHP0= Received: by mail-qk1-f176.google.com with SMTP id 93-v6so16687905qks.3; Tue, 11 Sep 2018 06:23:54 -0700 (PDT) X-Gm-Message-State: APzg51CUAkeiQJMBitYra18L7QgML7Rw/EDdNAUB6IESiqh2S4fMSIfs S+PIjee6UxiusWJfFp6hX0j+UR/9XkpEFkfZKQ== X-Received: by 2002:a37:169c:: with SMTP id 28-v6mr18381819qkw.184.1536672233664; Tue, 11 Sep 2018 06:23:53 -0700 (PDT) MIME-Version: 1.0 References: <20180910120243.163979-1-lkundrak@v3.sk> <4892b137e9ba100fea7d9d9c7d401d81f33271a7.camel@v3.sk> In-Reply-To: <4892b137e9ba100fea7d9d9c7d401d81f33271a7.camel@v3.sk> From: Rob Herring Date: Tue, 11 Sep 2018 08:23:42 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] DT: marvell,mmp2: add MMC controllers To: Lubomir Rintel Cc: "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Eric Miao , Haojian Zhuang , Mark Rutland 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 On Tue, Sep 11, 2018 at 7:55 AM Lubomir Rintel wrote: > > On Mon, 2018-09-10 at 10:14 -0500, Rob Herring wrote: > > On Mon, Sep 10, 2018 at 7:02 AM Lubomir Rintel > > wrote: > > > > > > There's apparently four of them on a MMP2. > > > > > > Signed-off-by: Lubomir Rintel > > > --- > > > arch/arm/boot/dts/mmp2.dtsi | 40 > > > +++++++++++++++++++++++++++++++++++++ > > > 1 file changed, 40 insertions(+) > > > > > > diff --git a/arch/arm/boot/dts/mmp2.dtsi > > > b/arch/arm/boot/dts/mmp2.dtsi > > > index 766bbb8495b6..51d4a2d70db9 100644 > > > --- a/arch/arm/boot/dts/mmp2.dtsi > > > +++ b/arch/arm/boot/dts/mmp2.dtsi > > > @@ -18,6 +18,10 @@ > > > serial3 = &uart4; > > > i2c0 = &twsi1; > > > i2c1 = &twsi2; > > > + sdhci0 = &mmc1; > > > + sdhci1 = &mmc2; > > > + sdhci2 = &mmc3; > > > + sdhci3 = &mmc4; > > > > Please drop this. MMC nodes don't need an alias and if they did, > > "sdhci" wouldn't be the name. > > Will do. I essentially just cargo-culted this, because I had no idea > which devices need aliases. How do I decide whether an alias is needed? Add them when you find that you actually need them. Serial to get stable tty names. It used to be for the console too, but stdout-path property should be used instead. ethernet for u-boot to determine which interface to net boot from (IIRC). i2c and spi are also for stable /dev names, but that should be handled another way IMO. You can find discussions about it in the archives. Anything else is probably questionable. Rob