Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4247875imm; Tue, 25 Sep 2018 14:04:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV60oos8vm7coPjTii4GD0PuhFaM7bL8dC/CCf455d5BwKNhvdZfub2X7kuapMQCG0CmQZWN/ X-Received: by 2002:a63:9409:: with SMTP id m9-v6mr2692451pge.13.1537909454123; Tue, 25 Sep 2018 14:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537909454; cv=none; d=google.com; s=arc-20160816; b=tP/m7l9eUiejbJec/KMCqsOs5aNbJMo0sXgNTUC7Lqg5D25BXKIho2IEyfaBVXXKos GFjoSC8cOTZuNyuyOjId8/HVXJQSKzfm7WmawljF5JDMG/lIN9HjvrQV9o43QBvI7HOb ScZ2y1hUfGe3Zv7RWmzZJ5Sl8GICtmZwWZujQTF0YX7+QXSZ8luBZUOHHVOR/wrqhvi4 y7yWiS3B6z2gyoGW1RihSykQt/blxQBhRavwkBbpkLHfFgCpOXIMN0aZhiYir/b+mCb4 YMNRt6m4d1u4F2kJTEptU4PEgSu+td2IcRvfJnEYZPgnhPzMgpTIzQOhIe/B4A8bfSX2 x9qA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Eyasd9LeN0Hq1bLAqjqNpTccpozPBLiTCraE4fo/jEU=; b=VWwvII5Oz9B8FXjJTiA1thEvV+Dlr+hIdDMNF7daQYNtx3GRE4PXfC9TtvAA5z+ivB lXrY2Qjp3/hLek6EA/H4+n55afeZ8VoQPs7bjwoXW6TCxmoVxDJWDeglwrYPdY5fTV6N MY+5+zQ2XPTV7R/BN2sksQwhsiarPNcrH+TZlUMNO1nq0rucAabVhtfw3NHghVXYZ2nS jVuq/1JOyc7XN7mDnP7wgu3OTDBWF6Pf9g8maM5XRzXpIGTgddjrSM9apkkpvt9Okvmd Xeo+JNyo0hPlk3iI4GyoKUvn7+bBX/PTFt8LuX7tyGqrSeHZTT73oTQA4h39zaFFDl3g 8HRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=bE81JUs2; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8-v6si3280337pgm.331.2018.09.25.14.03.57; Tue, 25 Sep 2018 14:04:14 -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=@chromium.org header.s=google header.b=bE81JUs2; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726944AbeIZDMh (ORCPT + 99 others); Tue, 25 Sep 2018 23:12:37 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46306 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726242AbeIZDMh (ORCPT ); Tue, 25 Sep 2018 23:12:37 -0400 Received: by mail-pg1-f195.google.com with SMTP id b129-v6so12424889pga.13 for ; Tue, 25 Sep 2018 14:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Eyasd9LeN0Hq1bLAqjqNpTccpozPBLiTCraE4fo/jEU=; b=bE81JUs2T6Vh7EI6r0VSoMPyUZLy/eEzJDErbSuRtbczvTgvkadRbGu98ieiOBCrOV +Jw6oVJVEPGZVM0o/mdQeqQpDGqCC4QAe2+vI7XwOpVURTtoStm63FgO5fgtYz3LBCHO Ulpz2qC/aMXhhhRjguZ22nxu2vU8cqw26F2dU= 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:mime-version :content-transfer-encoding; bh=Eyasd9LeN0Hq1bLAqjqNpTccpozPBLiTCraE4fo/jEU=; b=CRuWoy+abCzjj6vv/aAVGdLfAo00vNSgorjEicbVVEsQpQN9gjXMwx/MC/S/gVxBOi ljYDl3iwTl13xwVlBodvXyGahmrukYKi9T3Ne3GywFomzfg1sOv59Duxo9AIzaP/zpPn aCGTB2UgCxpfo/kcG2zBWd4pzwVBM/s2Ib37obb4YY4Vru6B85280fA6xLhEaxtUKKR0 cT9y9BBt37UeRIGVEiXH3HitQJMrSytivbYNz8ZxemQejHadyulOOTFRrLgh9ohfdyuw Bbey2rKfjN4J//UDvZ9GVtJGWoQpN7+aC4RNdRCuzf003jG3+DazPbpskZY7yj/2K5ai ZIVQ== X-Gm-Message-State: ABuFfojNwiQxNIUi4W5EOsk99lK8s2lp4PTxHnMax/hyDSxodUIgD65k dcugQ1/1OHRaTxuQbb/iWTMstA== X-Received: by 2002:a63:fa49:: with SMTP id g9-v6mr2715055pgk.18.1537909390331; Tue, 25 Sep 2018 14:03:10 -0700 (PDT) Received: from mka.mtv.corp.google.com ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id y4-v6sm3704061pfl.188.2018.09.25.14.03.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Sep 2018 14:03:09 -0700 (PDT) From: Matthias Kaehlcke To: Rob Herring , Mark Rutland Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Norris , Matthias Kaehlcke Subject: [PATCH] dt-bindings: Add bindings for aliases node Date: Tue, 25 Sep 2018 14:02:55 -0700 Message-Id: <20180925210255.172734-1-mka@chromium.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a global binding for the 'aliases' node. This includes an initial list of standardized alias names for some hardware components that are commonly found in 'aliases'. Signed-off-by: Matthias Kaehlcke --- Documentation/devicetree/bindings/aliases.txt | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 Documentation/devicetree/bindings/aliases.txt diff --git a/Documentation/devicetree/bindings/aliases.txt b/Documentation/devicetree/bindings/aliases.txt new file mode 100644 index 000000000000..d64ed1c7eb34 --- /dev/null +++ b/Documentation/devicetree/bindings/aliases.txt @@ -0,0 +1,47 @@ +The aliases node +---------------- + +The aliases node contains properties that represent aliases to device tree +nodes. The name of the property is the alias name, the value is the path of +a the device tree node that corresponds to the alias. The path may be +specified as a string or a phandle. + +Alias names are often suffixed with a numeric ID, especially when there may +be multiple instances of the same type. The ID typically corresponds to the +hardware layout, it may also be used by drivers for a stable mapping of +device names and hardware entities. + +Alias names +----------- + +The devicetree specification doesn't require the use of specific alias +names to refer to hardware entities of a given type, however the Linux +kernel aims for a certain level of consistency. + +The following standardized alias names shall be used for their +corresponding hardware components: + + bluetoothN Bluetooth controller + ethernetN Ethernet interface + gpioN GPIO controller + i2cN i2c bus + mmcN MMC bus + rtcN Real time clock + serialN UART port + spiN SPI bus + wifiN Wireless network interface + +The above list is not exhaustive and will be extended over time. Please +send patches to devicetree@vger.kernel.org if you think a hardware +component and its alias name should be on the list. + +Example +------- + +aliases { + bluetooth0 = "/soc/serial@fdf01000/bluetooth"; + rtc0 = &rtc0; + wifi0 = &wlcore; +}; + +(based on arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts) -- 2.19.0.605.g01d371f741-goog