From patchwork Wed Jan 31 02:36:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 126303 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp291655ljc; Tue, 30 Jan 2018 18:36:32 -0800 (PST) X-Google-Smtp-Source: AH8x224dTQQ+qoRHJVMpTMbBs9nvHwB6dmCMcdDCYGbs6WPBIQUdhS0xTIPn6RzgxX8ssslUN7KB X-Received: by 10.98.64.9 with SMTP id n9mr32625643pfa.194.1517366192231; Tue, 30 Jan 2018 18:36:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517366192; cv=none; d=google.com; s=arc-20160816; b=dtlV/VQ3EokbO9XO6EfZUzwufLuCdOz6eqLUJ2Fie0s68rI2FvN6AQfif+XMuajrGK Sqkd05eB9Y5tnWeE4kwtpWjsDgfqfFoWYtLO65lxui8OO9HqKOVj2+qFYLdJvUhtEO2b yV1bS8n+a/X4glHnQGvkCBf0GNkk1fq26Y9rRnBkNBbg289oVe80OPyTmV6rKLEjcuky ipx/QmLaqk9axLM+MXZxngyc72HKTVIdxfz5IMVSBa/FSiuSp73T6VIxATBzNmywqUvj LJm1diEyOU2ohiHg46HZxCqVgW4bOO+SLoXc+JFhbeYlBkG8yw/RzqxxqLBlDYwSTkXE V9gQ== 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 k10-v6si3605379pln.378.2018.01.30.18.36.31; Tue, 30 Jan 2018 18:36:32 -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 S1753435AbeAaCga (ORCPT + 28 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