From patchwork Sun Oct 16 17:00:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 3088 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1089111wrs; Sun, 16 Oct 2022 10:03:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM58s+wxNXdhUVC0M9icAdcuzHWI7CeCmp98mSTgg7SiVF5pFACGQjAJEL6H6Q+V3OpoB/lo X-Received: by 2002:a65:590f:0:b0:46b:1a7b:a7d3 with SMTP id f15-20020a65590f000000b0046b1a7ba7d3mr7411112pgu.136.1665939815995; Sun, 16 Oct 2022 10:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665939815; cv=none; d=google.com; s=arc-20160816; b=E94hluMhIb86/FjS4qzF1Otp83SUhNd4uyYAm1RK0LjHXkLMADO6wpojjTZpGHWQc1 jwzkYCePAg8NsCZfXyAahPfE7/TUTIHwuRL+8ncPYf+tMlqFvHQ1tCR5l+FG/veD4EMF X/yvcz+EqfVD5VP9xlZ3ZCDKjKaB8WjTofe07usjd0xqpDuKxT+/l6K1ZauNEOpfKmQ1 R+nS25YbYouQq41baFpbpddqeb2k76Ej0TueITFPhXbul+4N8jxalZBvb9tf9iVAZfVi 1/miBd3iqanwtZ+s15RkbMTNe5LA2vE6FdwBCeNPhePiJqt3TIUIpzFF+vzpHmrOaZGQ 2gOQ== 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=NG30mhHToHQxNxl2utL2ECwMv4QzlmyfMxHel7c8yiw=; b=dP3SL46hmkLeJfMHwwGR0wjZMU8NCKHbM9LPtZeUE5aC9h/BMSYocd0K6UidlBGOr5 PW+YdcCrm3jPN9YcEXK8NlkDiePEWT7pQVKoAZiQOjbU/oMNUh6tFsfHB7XdwvUqsnJQ GoOtEPpMGK1ZT4SoKH0IbiLYKeUnVZrnz2J56yPkoQYb7rk3tptTrcV2uLEewjsF/H2O GQggxcdnplNTND/j+or4RRskGyRSuEUF+h4KQWQe9HBoJ61QhK1CI/0eKf7dOG8hkW7Y XqD7SE480fuIweCTecJ7ZRrxJ5GOQ/OKqIHCLuRhcs9XnMguNXZ9m5OcdLen1zL0iU+c u9LQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vAPmAlXI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a056a00150e00b005631ca6aad7si9415303pfu.258.2022.10.16.10.03.23; Sun, 16 Oct 2022 10:03:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vAPmAlXI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230028AbiJPRC6 (ORCPT + 99 others); Sun, 16 Oct 2022 13:02:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229905AbiJPRCT (ORCPT ); Sun, 16 Oct 2022 13:02:19 -0400 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B5C402EF for ; Sun, 16 Oct 2022 10:02:04 -0700 (PDT) Received: by mail-qv1-xf31.google.com with SMTP id i12so6268542qvs.2 for ; Sun, 16 Oct 2022 10:02:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NG30mhHToHQxNxl2utL2ECwMv4QzlmyfMxHel7c8yiw=; b=vAPmAlXIgEyd9+0xxPeCQ7wsNuC8+7ArHGCrpMQSr8uDn0KXM7eKfCZXmEU+dOXlvJ sLqhdlMZ8T71s6bxE8BEKw6BvnBUrd+xjOk7OB/OaOVtxGAIF3NIMCdBbWEhjmoW+dHy 5LFc9pP/8jL/AHx11dhufwNRW8ybie9/Q3UMhAz9d5FdosjJNUi2wuPaDGkJpaRMFcOC MP4fJys0B4Ks4skrZCflE0s9AiUY0jck7s0Idvq64yRimSEP0R6vifNI/1c8zuuDoPpd S28luwXE5Brsza35TMifRu5PBqUn3cTRnr+MUsozXvnBmNDRWeSyKSi9hqkU0VeBIDUL b65w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NG30mhHToHQxNxl2utL2ECwMv4QzlmyfMxHel7c8yiw=; b=vgol6ttyzk6m5bPUkLkMn7LlmQ2IVBZkRJRCnvD1ORw86ghDQ5/dye6PvcWnR4BDbJ czkQg0QkP/1eBpiCr7gMBOWW3VjFBWziJM9+WLZocss7US9TwsuWcEdqkmlxQHgwCrBJ xce4YWcOoqRf9NeczFrd2qz0+tJoofpZ/ALfO+UV62SR3NVZz+ar7FAFIyM8qysFDVqI rfZ5YGFVYhi2BRsXCg8fssyhmoHm6IhFaTALeg1UfBkLE4gfHACMmIKzdXF+LqZ7gsU7 hZ62tUKfjHq77fCxRwIrphpVDi/tWN/SaVKBwvbncLx+gqrsa5rFuOZcoNRTricluPh5 CJbw== X-Gm-Message-State: ACrzQf1k8AIpbe3SlXV3c+m+rNzCCemPbWEfKTE60kqfuMHkkEA9tmwK BhsTDuKKBY4CxBsLA9P/+M+upQ== X-Received: by 2002:a05:6214:e8d:b0:4b1:acfe:511d with SMTP id hf13-20020a0562140e8d00b004b1acfe511dmr5609182qvb.67.1665939714549; Sun, 16 Oct 2022 10:01:54 -0700 (PDT) Received: from krzk-bin.hsd1.pa.comcast.net ([2601:42:0:3450:9b13:d679:7b5b:6921]) by smtp.gmail.com with ESMTPSA id q6-20020a05620a0d8600b006ce7bb8518bsm7539967qkl.5.2022.10.16.10.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 10:01:53 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Stephan Gerhold , Shawn Guo , Vinod Koul , krishna Lanka , Sivaprakash Murugesan , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Rob Herring Subject: [PATCH v5 12/34] dt-bindings: pinctrl: qcom,ipq6018: use common TLMM schema Date: Sun, 16 Oct 2022 13:00:13 -0400 Message-Id: <20221016170035.35014-13-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221016170035.35014-1-krzysztof.kozlowski@linaro.org> References: <20221016170035.35014-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746864508512742508?= X-GMAIL-MSGID: =?utf-8?q?1746864508512742508?= Reference common Qualcomm TLMM pin controller schema, to bring common properties, other pinctrl schemas and additional checks, like function required only for GPIOs. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Bjorn Andersson Reviewed-by: Rob Herring --- Changes since v4: 1. Drop drive-strength (included by common TLMM node). Changes since v3: 1. Drop properties and required items which are already provided by common TLMM schema. --- .../pinctrl/qcom,ipq6018-pinctrl.yaml | 45 +++---------------- 1 file changed, 7 insertions(+), 38 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml index 735a8786cb13..6c6b14d1efea 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml @@ -20,27 +20,12 @@ properties: reg: maxItems: 1 - interrupts: - description: Specifies the TLMM summary IRQ - maxItems: 1 - + interrupts: true 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 - + "#interrupt-cells": true 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 + "#gpio-cells": true + gpio-ranges: true patternProperties: "-state$": @@ -56,7 +41,7 @@ $defs: description: Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties. - $ref: "/schemas/pinctrl/pincfg-node.yaml" + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state properties: pins: @@ -103,40 +88,24 @@ $defs: sd_write, sec_mi2s, smb_int, ssbi_wtr0, ssbi_wtr1, uim1, uim2, uim3, uim_batt, wcss_bt, wcss_fm, wcss_wlan, webcam1_rst ] - 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 - + drive-strength: true output-high: true - output-low: true required: - pins - - function additionalProperties: false allOf: - - $ref: "pinctrl.yaml#" + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# required: - compatible - reg - - interrupts - - interrupt-controller - - '#interrupt-cells' - - gpio-controller - - '#gpio-cells' - - gpio-ranges additionalProperties: false