Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp969732imm; Fri, 12 Oct 2018 09:32:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV618mdMGGvKIvKpZkErQhYdNwyTV1zFaiIwuH6GIg9PaSaawSr/0/Hu2UIZtfejFMC/iL62X X-Received: by 2002:a63:6054:: with SMTP id u81-v6mr6036924pgb.74.1539361944978; Fri, 12 Oct 2018 09:32:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539361944; cv=none; d=google.com; s=arc-20160816; b=izsH562kAroTsd+iLC9ZwC4cOYeXSAQfhbqd+54ewGqdwoeO7uy65S+DC4NPhH0gJI 1BY8+VCqXS3fy5/HJObgjLTbC/ZHbLKPdRiZUF73Xu2J9adlllzw73S9pFtvVung5y8s GUIDLA3KeVxZRnxzRrRaiU4cKz4Dgqpzn57XmNJt3fHln3Yi0lC2QrnDIdlsu5KzDA05 TkN7+cRUuqmQweVbnnpLi3Det8TlB7BvAgiNbYkYSU0Oa3Hp9hvK6Ly6SQDQmLStzY1c H7vbX6qc3RA4PcGbppXWj9JSffNkCEJy3PrZWHrG+X8JDx/mLI+VQKwhbLfVd615PgT5 sJHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CtHqhucVpoRJ9ZZE2L0WHY7oYNoqXEFljxT1F1BgAiw=; b=i+JGDmPkOJum13EWoFFf67G7FBaqA1fTR+m34u6w2b6QHRyqCWMslW7V7gbu14HC1x ENn2Iv8TDi/jXh6gwnGNezLvvO2jzJ9G1BLqo9HL92pjSqZNUC6SgW49cAkzkSQsI6Gm Izv0Yfv6TnDh75ZbEQJmPJVcy2yrgdll49HJA34+YC2IzUvLCZ1Wo/n47PlsnjV1eqHs VTDDiam4HaF3fCMwNmlseqkE+rHRN0uQhB9Sq+fje/RePukc0my1kXoGHUUKyZVgnkhL aR5pxz3sFR5fzcvylSfi0nND+Vym3OlsbPdYGn7q3wazW+RYHaRowBLIK6skRewErHqw rhnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="llUXA/aD"; 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 k5-v6si1715697pgi.99.2018.10.12.09.32.09; Fri, 12 Oct 2018 09:32: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=@gmail.com header.s=20161025 header.b="llUXA/aD"; 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 S1729139AbeJMAEd (ORCPT + 99 others); Fri, 12 Oct 2018 20:04:33 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:35520 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728744AbeJMAEd (ORCPT ); Fri, 12 Oct 2018 20:04:33 -0400 Received: by mail-ed1-f68.google.com with SMTP id y19-v6so12037580edd.2; Fri, 12 Oct 2018 09:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CtHqhucVpoRJ9ZZE2L0WHY7oYNoqXEFljxT1F1BgAiw=; b=llUXA/aDq4Y7S7zn3jvNEMPiMfbxpLDj/ZZwP3IN2xi8kViqPif50ZSDCRw6rnrUSi q0xvMAMvfWhHDZEnEb2tN2cQnwE0EJF2oWxssz0K9i+Xh3C//2GUP6TSK+aLbVD1o4GX ug5UwmjRxSQpWhCXtGiojLKSl5xCpsAKQScC2+bwYa3PqhyTZNBlyjDpm4SKtw7Waj/5 KhoZPNwjJQBdsIZkzPnYKtDXGN7SYQqEcF6QYkXReYc6W1hujAa0Mx6t3uFsLwaZ4de9 9Glqp3cH1pq2oUtu3RwpzjYCdlkRTb5BCUsWLhHX5lQ0OGzPuT1tCcU9XJ/vCKGwNAQJ DXqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CtHqhucVpoRJ9ZZE2L0WHY7oYNoqXEFljxT1F1BgAiw=; b=kyI+287nA2rswBMPBc3m5gQJAmRLPGhVfIwJonMCj5VetCAWej4NZylW2eXwXQKnDo kKi9J06KlgSWme/o/+5rQqw8iNGUm0OWcO5QlhDNsD6ITEyKSdg3v8mCX9Osb0d/CGxk xyzYKctzdpJmVJYJseGVA/rDZSQanVl1K4nV1N5W+uPjvNAli+rUNUcUzBlKTLEaV86X mf8O7nfG4uvXGsUOJ97NQnUvtgBdMTVNAji1W1e6LsK0eQ68bqHJmcR7K6OJEsw7RPmo mPl8sUsU7J5+K3GRgahefgN/kR//lUT40X7Mys6KKV72dlU5VHmWsdkABAIPyb74IJ58 OctQ== X-Gm-Message-State: ABuFfojW508Wpe1GLPFTSPWfj63T72ElJ3lN6jPUMA3XpnnhnU64WQCg WT7IMWS3mwHX8yZmbPFTXQU= X-Received: by 2002:a17:906:b01:: with SMTP id u1-v6mr8156076ejg.124.1539361874024; Fri, 12 Oct 2018 09:31:14 -0700 (PDT) Received: from debian64.daheim (p200300D5FBC368FCD63D7EFFFEBDE96E.dip0.t-ipconnect.de. [2003:d5:fbc3:68fc:d63d:7eff:febd:e96e]) by smtp.gmail.com with ESMTPSA id e8-v6sm429592ejm.75.2018.10.12.09.31.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Oct 2018 09:31:13 -0700 (PDT) Received: from localhost.daheim ([127.0.0.1] helo=debian64.localnet) by debian64.daheim with esmtp (Exim 4.91) (envelope-from ) id 1gB0LI-0003WH-8I; Fri, 12 Oct 2018 18:31:12 +0200 From: Christian Lamparter To: Matthias Kaehlcke Cc: Brian Norris , Geert Uytterhoeven , Rob Herring , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , linux-wireless , linux-spi , netdev , swboyd@chromium.org, Florian Fainelli Subject: Re: [PATCH] dt-bindings: Add bindings for aliases node Date: Fri, 12 Oct 2018 18:31:11 +0200 Message-ID: <1626442.UsWqDEgn3j@debian64> In-Reply-To: <20181012000837.GP22824@google.com> References: <20180925210255.172734-1-mka@chromium.org> <20181009183141.GA126050@ban.mtv.corp.google.com> <20181012000837.GP22824@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, October 12, 2018 2:08:37 AM CEST Matthias Kaehlcke wrote: > Maybe the doc should include a recommendation to use aliases > sparingly? I'm open to input on that from folks who have a better > understanding of the potential pitfalls I had a similar discussion with the OpenWrt devs over the use of "led-$function" aliases in a DTS. I did a bit of digging and found this wonderful emails from Mark Rutland regarding the general use and abuse of aliases in a reply to a patch by Christer Weinigel "devicetree - document using aliases to set spi bus number." |"If those ports are physically organised and labelled the same, then |using aliases could make sense, to describe the well-defined physical |labels. If you've assigned the numbers artificially, or if the physical |organisation differs across boards, then aliases are not the right tool |for the job. | |In the latter cases we're altering the hardware description to suit an |application, rather than providing the necessary abstraction, which is |the kind of (ab)use of aliases which we want to avoid." And he followed it up with a summary: |Typically, serial ports are much more user-accessible (physically), and |much more directly useful to a user in a generic fashion. They're often |labelled (physically or in a manual) with a number, and we use aliases |to describe those labels to the kernel. The fact that the kernel may use |that to drive its own internal numbering is immaterial to the binding. So the gist of this is that aliases are meant for user-accessible / physically devices/ports/etc... that are labeled as such. And this of course works perfectly for power/status LEDs and such because they usually have little "power" symbols/pictograms/lables near them.