From patchwork Tue Jan 26 04:26:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 370577 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp4615831jam; Mon, 25 Jan 2021 20:56:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyK7rnCrKDqaeSdn0utF0eiwKRNNqsVdofkw2S233nxssJzk1GKcP7btriBnKRXX9mqqJD+ X-Received: by 2002:a17:906:bc8f:: with SMTP id lv15mr2308087ejb.180.1611636990605; Mon, 25 Jan 2021 20:56:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611636990; cv=none; d=google.com; s=arc-20160816; b=u42Rof3xZO0oNHwtKV1f74AuBbb7SzjLJblDS9eRhoh7ZKDYlsV6aOdFPD4H9kcl9n qWhh/FUGDVgHigMe/mJHQ7S0pQAFi532yJirrOuzhiAI1jQwyqHaTNBnQBVSlS0t9Wml rvtzdfmKwnfswHXJ20KoVNuIXcbrvYXixQAjDTKpO/Qs6JRfnGuAaVSn1mCiTaSekK41 hSqKAm8xaIJHCNuSBPTXE28Zj7JDPDF8ukvIOZ2HqRcvdIoLiOkqhdTS2AZawnz3K8+b aCSlzK0QzEcMzN18vTFFVj6JAkdmzfismtA0dziRyRGRtKroTrRsk14PB2a2xTsTIMKN k1bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7OfSmxia+d3pqBmg2qua9BIWvPfSArrmZHl7lfwH9bI=; b=ooB5hOvi/6e9PLucYppANKOHdTfE11sC/VzKvH3/dgdf9RKxRnlrnDzU27LQf15+6D s0w/FFppTNAeIbG0DsClTODLT3rRqh8Rbhl3XlxzR0doZy6mEvXKGzCEEVQfIlnlFwXV F3sRV2PIiZC0+xcvbL4IXzE+KZ6pgIlDzxTMDZlVmIYHLChoTiVIq9GNM6K2LGYhEGKP ucn181oLsG572rICyB4tQOY+CdzoHrGpXmOXIcjOY/5NTUP0E5vmgJ2WTO7Rn8BzkP5x IXwK+VZSdbCnzE1tsbw4LV2MzkfUvdji1wA3aB6LKF5faTg7Ux5z/p3IaaWkvLG59sno hAVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m/+KjqM5"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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. [23.128.96.18]) by mx.google.com with ESMTP id r12si8403643edp.3.2021.01.25.20.56.30; Mon, 25 Jan 2021 20:56:30 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m/+KjqM5"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1729005AbhAZEyh (ORCPT + 6 others); Mon, 25 Jan 2021 23:54:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729719AbhAZE2W (ORCPT ); Mon, 25 Jan 2021 23:28:22 -0500 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98AB0C061786 for ; Mon, 25 Jan 2021 20:26:49 -0800 (PST) Received: by mail-oi1-x230.google.com with SMTP id w124so17263388oia.6 for ; Mon, 25 Jan 2021 20:26:49 -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:mime-version :content-transfer-encoding; bh=7OfSmxia+d3pqBmg2qua9BIWvPfSArrmZHl7lfwH9bI=; b=m/+KjqM5Hx+G7dpkXv2YKNv2H2FKgj16d8e49AOFfqtI8ojbKwxLyV1BwuN3jgH8sR 2tHPgGOIqQYMqT7VybYxf4p4+QWDfpHsSovRGXaZJS4Kp8EI/AQ8yvIhZssSSfAvkfLw ErbX1J+b9l4o0crsP13U33C69sAY0H3Y18Uaoi8tfF7GNgbgibsrVGVzE62Cj5NBiNqL sEf5TWbT/ur1c0WXwvpqITkDO8j9cxy1d6M6oItz7DXudrcyiemiBg3aqoJSK7JqhRf+ WHZnkE91LhaMw4sZjLR1K77jX1zUWW9ewfWV11hYDMISzVGwz8FggRWb1kOsJtI0IA5K kIVg== 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=7OfSmxia+d3pqBmg2qua9BIWvPfSArrmZHl7lfwH9bI=; b=qKo+xuZl8vVZwn7v7Pz/iWzKaQvERfqWRcdtD9RIChO18Lu0G1UvRQD7HaynCTj9zj Xcnt7vGUPp2IRX9VF+bWlW8af89LTPpwi5TtntU/Ykgzn5iswftE2SXlnVyqBkeCrVh+ vs1YqwvULN+K8FNXgHzmO4lY0DR3bH7LqDQlqRRXmBujQj9KMqA+w+4cwagZoORKike3 s+xaNONcFyttLzjh1VL85G2CQkDIe8/U3zCuLVpWDsl9KzX/UseMDPW944yASxj8MTI9 W1hTiWGtWknyj3sYkU+kjC6lkv/FyszPFYdd4t9NxiIt7fNy0fPqSHPVmFWrpb0iPb1V a3ww== X-Gm-Message-State: AOAM533CNLBPOi+WtWZAwxG4gYYqT/TmI1Sd7YV6M3Ldx/n9CUMnZDgp HuiDElYT7dpgoJkwzHyF5oU0kQ== X-Received: by 2002:aca:5088:: with SMTP id e130mr2069256oib.78.1611635208790; Mon, 25 Jan 2021 20:26:48 -0800 (PST) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id w129sm3930638oig.23.2021.01.25.20.26.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 20:26:48 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Linus Walleij , Rob Herring Cc: linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH v2 1/3] dt-bindings: pinctrl: qcom: Define common TLMM binding Date: Mon, 25 Jan 2021 20:26:48 -0800 Message-Id: <20210126042650.1725176-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Several properties are shared between all TLMM bindings. By providing a common binding to define these properties each platform's binding can be reduced to just listing which of these properties should be checked for - or further specified. Reviewed-by: Vinod Koul Signed-off-by: Bjorn Andersson --- Changes since v1: - Dropped "phandle", as Rob pushed this to the dt-schema instead - Expanded the "TLMM" abbreviation .../bindings/pinctrl/qcom,tlmm-common.yaml | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml -- 2.29.2 Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml new file mode 100644 index 000000000000..3b37cf102d41 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml @@ -0,0 +1,85 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/qcom,tlmm-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. Top Level Mode Multiplexer (TLMM) definitions + +maintainers: + - Bjorn Andersson + +description: + This defines the common properties used to describe all Qualcomm Top Level + Mode Multiplexer bindings and pinconf/pinmux states for these. + +properties: + interrupts: + description: + Specifies the TLMM summary IRQ + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + description: + Specifies the PIN numbers and Flags, as defined in defined in + include/dt-bindings/interrupt-controller/irq.h + const: 2 + + gpio-controller: true + + '#gpio-cells': + description: + Specifying the pin number and flags, as defined in + include/dt-bindings/gpio/gpio.h + const: 2 + + gpio-ranges: + maxItems: 1 + + wakeup-parent: + description: + Specifying the interrupt-controller used to wake up the system when the + TLMM block has been powered down. + maxItems: 1 + + gpio-reserved-ranges: + description: + Pins can be reserved for trusted applications and thereby unaccessible + from the OS. This property can be used to mark the pins which resources + should not be accessed by the OS. Please see the ../gpio/gpio.txt for more + information. + +required: + - interrupts + - interrupt-controller + - '#interrupt-cells' + - gpio-controller + - '#gpio-cells' + - gpio-ranges + +additionalProperties: true + +$defs: + qcom-tlmm-state: + allOf: + - $ref: pincfg-node.yaml# + - $ref: pinmux-node.yaml# + + properties: + drive-strength: + enum: [2, 4, 6, 8, 10, 12, 14, 16] + default: 2 + description: + Selects the drive strength for the specified pins, in mA. + + bias-pull-down: true + bias-pull-up: true + bias-disable: true + input-enable: true + output-high: true + output-low: true + + additionalProperties: true +...