From patchwork Wed Jan 20 22:21:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 367113 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp49184jam; Wed, 20 Jan 2021 15:48:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOpLElkzTV9tmnt2yoSYy5pVOC2KZ7WwVaLUfVPqDHBIAGnq7AOkvug6eSWP3kn63ZFX8E X-Received: by 2002:a17:906:5043:: with SMTP id e3mr7593489ejk.260.1611186514506; Wed, 20 Jan 2021 15:48:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611186514; cv=none; d=google.com; s=arc-20160816; b=R1lJVCIm9lqUsiHmrESZ+h074FStfVXb9679knViC0l+uXckaNaEiL2oq9ZQ0uJlOD SzzzL+0grQ5d+7VbN/FoDaNEoqs1TpIIxpWeQQLuiWc7ZX1KmAsmQogpWy0jIi8qV1gI V8XShyt97nHP+0CcL44hU3Qw51rsK0dD0XgZhU8Cr6ZZB6aPJdjwNd4lWAMjeaEHHwZ1 vysvP2I4Vxa+EL5aVN2d1eaI5qFcrvsKgF1a07ogYtF4gc+lswOYEChYHTbd9Z6zHFfV 0LvG1q0a6x6Xawj6vnYHm+aKhk3c/tYYPsmM3vh0/M1SAVu4ZiGHfiYfyBavjzNPPz/K rVTQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iGiVMVVOzcL1tqI/hMjmyV8ceU57PJkL6kjCCyeH1xE=; b=HgnKvd15r6fH4AU681Hij+zT8CADNYWg4jTGVzIvBxGvKdBwL1tket40x15cJX82wu GXAZLwsdtb2WsVMMasfRWiIQeyLCIXYA9h2g9pVIvMQonmTuI8zfUbIT0Jm+XsjWLBKd Vw0gnpVW5y69+Spv9jGnmTWQIEiRYobojSCw+PI1AhI6BMFZGGgEU7TNiUvYzHwlhz6n BhbihHK6+Rnd5L4qoOKfEDiOHFUwnhfleHkq9McYbkiYXoivSE/VSFhjjHfUN8fAwx11 7iS8ITwo3FTXLw8n8Kg2lEDpGEGeaqDJW46IohcqD0UIJaCtiWAvvM9vvb7Tc9ZCr5Lj Yx6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XWv6Iag9; spf=pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-gpio-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 t14si1523962edd.161.2021.01.20.15.48.34; Wed, 20 Jan 2021 15:48:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-gpio-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=XWv6Iag9; spf=pass (google.com: domain of linux-gpio-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-gpio-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 S1730410AbhATWfe (ORCPT + 3 others); Wed, 20 Jan 2021 17:35:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730356AbhATWWU (ORCPT ); Wed, 20 Jan 2021 17:22:20 -0500 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA0ECC061793 for ; Wed, 20 Jan 2021 14:21:08 -0800 (PST) Received: by mail-ot1-x336.google.com with SMTP id 34so14114280otd.5 for ; Wed, 20 Jan 2021 14:21:08 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=iGiVMVVOzcL1tqI/hMjmyV8ceU57PJkL6kjCCyeH1xE=; b=XWv6Iag94foa1dmPlkoCqDaw9gmEnR7Ck55r+HVYDApfgkIObozUqohfmHNX7wQdPU vYXhrBi2bxJGaVQDFJC/cE5zXRI9+O+LudgWwdjXHsEiTaLAVHwhj63I5XfQXfVMZZzS 6eV/ruq8WBPKMLYgE9jm+pPSBNpvJEhss2qqgTaD9rZwjt1ixkaVSyyCuvUuz8vN2/wr bimDt4NyzKk6Kr2df0LnL/4TejnnMRC5ve5TO3rIGLZbDWiVkeTsDYnJij18Mcv8MZhg KBGGH9d+KZkZQWbyn4Wq+9WCCOKDKllfokM3+fP8D5uZdVOo6ymE62XWdss/qDqA5lL4 6IGw== 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:mime-version:content-transfer-encoding; bh=iGiVMVVOzcL1tqI/hMjmyV8ceU57PJkL6kjCCyeH1xE=; b=K18DFsH14lqr1tS2X7XggocB4Do6ETM4dfUoBm/NDLSH0/qIcpBBt3vWSjO50NukzA mbWolzV2rU8vEgcJ8PEThLczHRxZPV0PohXV7XGpUFZ6VoMQ3pjNRhgGvlEKi7WPtee0 7w0Vk0kLSWEXwVvj/SwCcvSPgtlKAByzTQxIy8+8IHBxYScglB0SBLw64cAI7lJgRzvA w8bUitcRxJ8boh8p86fbuvF+n0xPzLyCCOBu3wt8/bUcJwdhgRckK3VFsvIfMQnWRX7B /8ScdqHgp3MZjbbx7xnvZYmTb+FC2kDGF4qAs+t/2Eus/ogZddfVSWpxNtaHdvOKczy0 jC3w== X-Gm-Message-State: AOAM533i88zWQZbeENhXLV08ji3ID6/mF7BauiOI1Q+EQNRhXpZBxfB1 7KBIadVVa8Jyc2Y7Eq97vybgQQ== X-Received: by 2002:a9d:7b5a:: with SMTP id f26mr3679252oto.95.1611181268071; Wed, 20 Jan 2021 14:21:08 -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 h127sm660819oia.28.2021.01.20.14.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jan 2021 14:21:07 -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 Subject: [PATCH 1/3] dt-bindings: pinctrl: qcom: Define common TLMM binding Date: Wed, 20 Jan 2021 14:21:12 -0800 Message-Id: <20210120222114.1609779-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210120222114.1609779-1-bjorn.andersson@linaro.org> References: <20210120222114.1609779-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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. Signed-off-by: Bjorn Andersson --- .../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: Vinod Koul 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..ab44952418ad --- /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. TLMM definitions + +maintainers: + - Bjorn Andersson + +description: + This defines the common properties used to describe all Qualcomm TLMM + 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 + phandle: true + + additionalProperties: true +...