Received: by 10.223.176.5 with SMTP id f5csp747293wra; Tue, 30 Jan 2018 18:58:15 -0800 (PST) X-Google-Smtp-Source: AH8x2247FWcs5PMLDk07BJqLjBM1Z5icDZofLS5I1V2DbkcP348G1wOiyYMbIK+wA6DYm1XkdiJ7 X-Received: by 2002:a17:902:8d81:: with SMTP id v1-v6mr27244240plo.430.1517367494934; Tue, 30 Jan 2018 18:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517367494; cv=none; d=google.com; s=arc-20160816; b=eAd4Xf0pN3N60/2142TlZyk8YxLroaCCb1W4Hk7K6tSdIlZx49LrgHSlo2p/8Ua7Gg ZPvQpu/8vpuaW+d+0t77AkT2rkEVaRvfkhyKK3hYYnMrLIrhXgEpMGwnNo/QSdw7fdsQ tN1fm3UpRnrKQfpTECGzmDQNiAth09NcfX/KUBnHpFlGe3wzrrsV3DMP51Sz5ifU6rZv 8wL75HgqpO5MtuGfXCzpUruLOgjC9IhyyYrfu9/r0CsbpO0xhrCEDrahySGuYDq6byXr phmAWpHovCDcB6GVKM1CFKS4Kuenbz4JnLtA5159Je6cte/T0Xbn060EMhRwd/z5q5jT 2TPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=b5M5ea+tf1ysqR49p6hpQozeiO6JkVyY3LNDLLHmvp0=; b=0EuF84fkSSwU8ybB8bAJt9xqJ9QgaDS9q/0hCRF8LDXT9gt3tWgplaC/Es/N9IdU78 yVmTpGnS+yWlT8+syHB2eTwgOnVxTrt8zpfW+34CkQy7ECDT7tWp5/DTDxXxtrLB10v4 z01M52n/L0TjKT0eAIPqsNxX0oOeGbH2QaCzY3/YILIQyFdKJ3RMG+0ntBXwdKElLDGm H5+g9TcLb4vJwipdWOyfSdxRnjXGmyMU1IgVe7VNymvQR0hEyDBaWAlk4OHl2FRsx0b8 /Zx1cHisBYyjLS/m4DuJ+eK/fiSeZMxjZN8/om66wQwZJRaf+lHsNYyXY0fc+Y14gN4q bSLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UkAz46Rw; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b61-v6si742945plc.265.2018.01.30.18.58.00; Tue, 30 Jan 2018 18:58:14 -0800 (PST) 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=@linaro.org header.s=google header.b=UkAz46Rw; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753426AbeAaCga (ORCPT + 99 others); Tue, 30 Jan 2018 21:36:30 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:41948 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753398AbeAaCg1 (ORCPT ); Tue, 30 Jan 2018 21:36:27 -0500 Received: by mail-pg0-f68.google.com with SMTP id 136so8850586pgd.8 for ; Tue, 30 Jan 2018 18:36:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=b5M5ea+tf1ysqR49p6hpQozeiO6JkVyY3LNDLLHmvp0=; b=UkAz46RwqB1EyE1ghU5QLjSyTDjUXXSqRJ6uIO87+a6Az3/Idq/zQEL1ux1w+SByKi hgfQmk+Oj9vfO/WEBs8aCp8CsV04ZL3VUuGufRihRZ7IdFZC0xcEAEwnoXjQIu3+1GLN htrehaIYV6/0iiUOtLUfLEUa4OJxhK85eiVK8= 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; bh=b5M5ea+tf1ysqR49p6hpQozeiO6JkVyY3LNDLLHmvp0=; b=UzwFrbvQmcD7ZcbzoROuj1gPNnSuo2xNLhg/iubuAwym0lh/brZebiGRrbl9aXVixd u+xJft/Pb/GL9lcMnPfj/ArAC4hKjhj72NhmfjIvDTosVwPT2i1Y+t52lpE27PPt33H1 gvbAOMZUwvFzzcsvEAQPkcMjhhivx7zxRYKswDXMBit5eAfwEvPWWx8M3SzFq1UCUMPG f6OIs8piX1ReAUWxmZ1Ierpoqjct2vmBbIEqHsdkJKzO8HslRFK/vsEQAhhRYY+ZTl5F 0C+52zuedhy90RiosPZ/Z/vk9d59LytXRq0Kh6v+HytpgO1YWH4qN2mxOfcNxh/lSfm/ sTxg== X-Gm-Message-State: AKwxytc4G9Ws8Puvz8tnW8WkDMf07lplryhvj1FYR8T5B2r0SjrTFXPm nWpicJLaE8jTwTSMig+Ze5WSJQ== X-Received: by 10.98.41.68 with SMTP id p65mr10212672pfp.86.1517366187038; Tue, 30 Jan 2018 18:36:27 -0800 (PST) Received: from localhost.localdomain (pat_11.qualcomm.com. [192.35.156.11]) by smtp.gmail.com with ESMTPSA id z2sm24126828pgz.22.2018.01.30.18.36.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Jan 2018 18:36:26 -0800 (PST) From: Stephen Boyd To: Rob Herring , Frank Rowand Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Russell King - ARM Linux , devicetree-spec@vger.kernel.org Subject: [PATCH v5 0/4] OF phandle nexus support + GPIO nexus Date: Tue, 30 Jan 2018 18:36:14 -0800 Message-Id: <20180131023618.14292-1-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.14.GIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a continutation of my phandle remapping/nexus node series from a while ago. I finally got around to writing the documentation in the spec for this, but it's really rough around the edges and could use some review/suggestions to get it into shape. Please review! This is one small chunk of work related to DT overlays for expansion boards. It would be good to have a way to expose #-cells types of providers through a connector in a standard way. So we introduce a way to make "nexus" nodes for these types of properties to remap the consumer number space to the other side of the connector's number space. It's basically a copy of the interrupt nexus implementation, but without the address space matching design and interrupt-parent walking. Changes since v4: * Rebased to v4.15 * Reworded spec patch a bit * Dropped overlay stuff from unittest patch because that's done by dtc now Changes since v3: * Added devicetree spec patch * Rebased to v4.13-rc1 Changes since v2: * Picked up Linus' ack on the gpio core patch * Made const stack arrays static (Rob Herring) * Used of_property_read_u32() instead of open coding (Rob Herring) Changes since v1: * Addition of optional pass-thru parameter * Reduction of strings passed to 1 instead of 3 (or 4 now) * Updated gpio patch for the new function signature * Updated test-case for new funciton signature and pass-thru parameter * Updated kernel-doc to be correct and highlighted difference between this API and of_parse_phandle_with_args() Stephen Boyd (3): Document nexus nodes/specifier remapping of: Support parsing phandle argument lists through a nexus node of: unittest: Add phandle remapping test gpio: Support gpio nexus dt bindings Kernel: drivers/gpio/gpiolib-of.c | 4 +- drivers/of/base.c | 184 ++++++++++++++++++++++++++++ drivers/of/unittest-data/tests-phandle.dtsi | 25 ++++ drivers/of/unittest.c | 120 ++++++++++++++++++ include/linux/of.h | 12 ++ 5 files changed, 343 insertions(+), 2 deletions(-) Spec: source/devicetree-basics.rst | 206 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 206 insertions(+) -- 2.7.4