From patchwork Thu May 24 17:50:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 920030 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 40sH5h4xLbz9ry1 for ; Fri, 25 May 2018 03:52:24 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031167AbeEXRuk (ORCPT ); Thu, 24 May 2018 13:50:40 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:41479 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031150AbeEXRug (ORCPT ); Thu, 24 May 2018 13:50:36 -0400 Received: by mail-yw0-f195.google.com with SMTP id u71-v6so836443ywf.8; Thu, 24 May 2018 10:50:36 -0700 (PDT) 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; bh=CJeYDD9vOqDf9s/qcBXtz1esgVuGo62aEFZUJaijlu0=; b=hBTh7MVrfUz3CXjtfovOV+4QWgdkBtssVnMsuFGhQNGZx7iRcgawiPni0vjnCGaj2E nIzpVt4zGUZvValrKVMa1mzcyclYe8ie32A36/VyI0iqQR80hKb2aS2c3OJP+CwoGTco iULKIsu18ypU5KwqhKPEmIm4AbM+gA20MX0qbgCHhkppmLbKfqi0X5upmqCTTYL8NMWh /fGGxlcNH8hdJRrhawE72ByEyrz6tjBoF9O5n9+eTOBU36nKwFIJzw84BIvsx53IoafG 3caLOuBj1xpdivtoI/cSKrltmxraYa1iTjhiLK4Okz8X6fcENeipZp/0Slpv9vkUChFg IcoA== X-Gm-Message-State: ALKqPwdDhTdwBACHMUD1wPfRQuFtDPg+CeODQv8ME70BrH34Qu0UX/oB GGxfYCSiKkKGFAridbrOow== X-Google-Smtp-Source: AB8JxZqlbREOEOJRxXH2sa/RZVRqrN4m8EsV7N9dIO6GtZG+Cr6zKREtCdQkwGZR/F3ZqP25YJjonA== X-Received: by 2002:a81:8a04:: with SMTP id a4-v6mr4562159ywg.140.1527184235829; Thu, 24 May 2018 10:50:35 -0700 (PDT) Received: from localhost.localdomain (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.googlemail.com with ESMTPSA id v73-v6sm9183814ywa.92.2018.05.24.10.50.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 May 2018 10:50:35 -0700 (PDT) From: Rob Herring To: Greg Kroah-Hartman , Linus Walleij , Alexander Graf , Bjorn Andersson , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Joerg Roedel , Robin Murphy , Mark Brown , Frank Rowand Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, boot-architecture@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/8] dt-bindings: pinctrl: add a 'pinctrl-use-default' property Date: Thu, 24 May 2018 12:50:19 -0500 Message-Id: <20180524175024.19874-4-robh@kernel.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524175024.19874-1-robh@kernel.org> References: <20180524175024.19874-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Pin setup may be optional in some cases such as the reset default works or the pin setup is done by the bootloader. In these cases, it is optional for the OS to support managing the pin controller and pin setup. In order to support this scenario, add a property 'pinctrl-use-default' to indicate that the pin configuration is optional. Signed-off-by: Rob Herring --- .../devicetree/bindings/pinctrl/pinctrl-bindings.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt b/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt index ad9bbbba36e9..cef2b5855d60 100644 --- a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt @@ -103,6 +103,12 @@ Optional properties: #pinctrl-cells: Number of pin control cells in addition to the index within the pin controller device instance +pinctrl-use-default: Boolean. Indicates that the OS can use the boot default + pin configuration. This allows using an OS that does not have a + driver for the pin controller. This property can be set either + globally for the pin controller or in child nodes for individual + pin group control. + Pin controller devices should contain the pin configuration nodes that client devices reference.