Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9202640rwl; Wed, 11 Jan 2023 02:52:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXv8SqdycihUCnVY4SoosAHSbrieKLllkFRwxcfULltX8F1kQjLq/kbuXBwxpRgEnL1DrRPh X-Received: by 2002:a05:6a00:b91:b0:581:6f06:659 with SMTP id g17-20020a056a000b9100b005816f060659mr70919370pfj.6.1673434339804; Wed, 11 Jan 2023 02:52:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673434339; cv=none; d=google.com; s=arc-20160816; b=IYQ+cJJlmAumuVPxxLVXRVmfQrVdF1g2g+m7zX2RbqnKkZl1G71OM1f9L6BnICfjoe rGXeTq9fz7di+/bqVzXKWndRWIP3/4sxLd4JamLxMnFdIb8qHSxcQ4IcOM8hpN82V8T3 H7220asAvFE4kdPzr4Vm3tDFQOmvfnKdfDA/PVRMthz3uEV3sgiPkdwDxqlIWJFUkJ15 ArSemZa8FIJxK4bXBNoEuYY6uhcePxTRFwp6kn37eC3OG9ux66fcu7Jluq+QWgp0VSjH 9/s7/haWBGR7KbMMtnfTN9j+DinN9x2c3NHbEZ93o4NxaGGqTYOBJyeCklzTCHqW+eZ7 LTUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=73HQio63W0EpBnT1hsIGdzOvUrTEv6vdD18QgBbVEx8=; b=LLNGHFQ6fJjtrOvNzFpfZwysYondwa9NozexXqOldSO//BmhnA/ko7UlyIFge2lMka FwuW8efElUFxFwTwoyON11SDZSbkLThFR4NZ0yTNSJkhGaiu8rGgtOHC4BxYpbLbkwdu /HXW1ExzWIE0T+SpcPAiRn3QeF6JzrwAicEV/Yh1W5cw+NF3HWC9F/BclImiwhyguND4 7+reCPAQOxfs+1NA9Cw/85I0DatXSjcaJpyHg4aYqf3yIuFufgAVpjEu0BNC9Ai/F5BH Xov7loBX8dorrnou9pw6GnZnvPbTd1MRMKGCaolpuwyOHf9dXTSfDTCm6cXuqQ+SgT4H oMEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ee5ZQ3Qc; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a056a00218c00b005750d19295esi14157645pfi.369.2023.01.11.02.52.13; Wed, 11 Jan 2023 02:52:19 -0800 (PST) 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=ee5ZQ3Qc; 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 S235915AbjAKJnL (ORCPT + 53 others); Wed, 11 Jan 2023 04:43:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238034AbjAKJmk (ORCPT ); Wed, 11 Jan 2023 04:42:40 -0500 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 042DF1A383 for ; Wed, 11 Jan 2023 01:39:05 -0800 (PST) Received: by mail-wm1-x332.google.com with SMTP id g19-20020a05600c4ed300b003d9eb1dbc0aso9188740wmq.3 for ; Wed, 11 Jan 2023 01:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=73HQio63W0EpBnT1hsIGdzOvUrTEv6vdD18QgBbVEx8=; b=ee5ZQ3Qca93OxEnpffZ5ppRQb+HbqrTgeoi7mYumKz4+GzednjSsbQDPYSiAkTuoRQ 8IZp7gbLAf858ivd0EvWTlVi1VJS6FDn8foAhfshIUY5AxAKDg4hABVcCbTZl0pw6iPN kcieNluNtsNh6KmiZHgwLbmtez/esntTp7YF6x8zueN1rG9Fk57SEIvWjuvBracm6PcM 8pzKEObTv55fb4PgtKyJTPzjUA7lQW/rWcMrN4juHCp+f7u3Srrj/Po7tAVsQeSPrBi1 JTunCPNE2Q8/im4AvLt3ztJlCyKIIwib5SKNNup1h0bahDGJWPceqeql0FqDZhZWsGdY Hhlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=73HQio63W0EpBnT1hsIGdzOvUrTEv6vdD18QgBbVEx8=; b=YP+dfvTxA/L4XYUz24qJ3OQDcoTpRdKWtkC2XRLqPc0KdlcYlSWgBo+XTMGK+sn16p oxEY4z95vjIVllIFTk/uKc78mu2UoJIVOamIyugINxalM0WGHHcWdl2vjBXEXvI8FOrc SVW8HoQDc7r8U4TeJs9q3Bd9+Jl5P9q8Ml6FVq7uUAUjtCMraDXkEONx4yvuFZQWM9eU 6Obd3dkiEkrl2h1dtaSYJKpM9rsXaY/binp1q3zqO8Dp0FywtL+sS/yBk4yQXiC1AZu5 3hJzNmUlQsvQ6pYsypGnA/E3y2NXmRd+quozI4Ig54R4UL3NTT0jGaeXNGredMTRhq1j gjYQ== X-Gm-Message-State: AFqh2kp/XFhmhcFCPfo3pWKB9wNUKodMn2wU8N0AAlr4//J9Buga183q +Jx06VbMo7ZyQLCi3I0X3Pj5+A== X-Received: by 2002:a05:600c:5006:b0:3d2:3eda:dd1 with SMTP id n6-20020a05600c500600b003d23eda0dd1mr52275256wmr.17.1673429944253; Wed, 11 Jan 2023 01:39:04 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id h10-20020a05600c2caa00b003cfd58409desm23274210wmc.13.2023.01.11.01.39.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Jan 2023 01:39:03 -0800 (PST) Message-ID: Date: Wed, 11 Jan 2023 10:39:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 3/7] dt-bindings: pinctrl: qcom: Add ipq9574 pinctrl bindings Content-Language: en-US To: devi priya , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, catalin.marinas@arm.com, will@kernel.org, p.zabel@pengutronix.de, shawnguo@kernel.org, arnd@arndb.de, marcel.ziswiler@toradex.com, dmitry.baryshkov@linaro.org, nfraprado@collabora.com, broonie@kernel.org, tdas@codeaurora.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: quic_srichara@quicinc.com, quic_gokulsri@quicinc.com, quic_sjaganat@quicinc.com, quic_kathirav@quicinc.com, quic_arajkuma@quicinc.com, quic_anusha@quicinc.com, quic_poovendh@quicinc.com References: <20230110121316.24892-1-quic_devipriy@quicinc.com> <20230110121316.24892-4-quic_devipriy@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <20230110121316.24892-4-quic_devipriy@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 On 10/01/2023 13:13, devi priya wrote: > Add device tree binding documentation details for ipq9574 > pinctrl driver > Subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. > Co-developed-by: Anusha Rao > Signed-off-by: Anusha Rao > Signed-off-by: devi priya > --- > .../bindings/pinctrl/qcom,ipq9574-tlmm.yaml | 129 ++++++++++++++++++ > 1 file changed, 129 insertions(+) > create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml > > diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml > new file mode 100644 > index 000000000000..f9cb457bc18d > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml > @@ -0,0 +1,129 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/qcom,ipq9574-tlmm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Technologies, Inc. IPQ9574 TLMM block > + > +maintainers: > + - Anusha > + > +description: | > + This binding describes the Top Level Mode Multiplexer block found in the > + IPQ9574 platform. No, please rebase on recent changes. You started your work on some old bindings so your binding likely includes all issues we fixed. > + > +allOf: > + - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# > + > +properties: > + compatible: > + const: qcom,ipq9574-tlmm > + > + reg: > + maxItems: 1 > + > + interrupts: true > + interrupt-controller: true > + "#interrupt-cells": true > + gpio-controller: true > + gpio-reserved-ranges: true > + "#gpio-cells": true > + gpio-ranges: true > + wakeup-parent: true Missing gpio-line-names and constraints for ranges. Look at other bindings. > + > +required: > + - compatible > + - reg > + > +additionalProperties: false > + > +patternProperties: > + "-state$": > + oneOf: > + - $ref: "#/$defs/qcom-ipq9574-tlmm-state" > + - patternProperties: > + "-pins$": > + $ref: "#/$defs/qcom-ipq9574-tlmm-state" > + additionalProperties: false > + > +$defs: > + qcom-ipq9574-tlmm-state: > + type: object > + description: > + Pinctrl node's client devices use subnodes for desired pin configuration. > + Client device subnodes use below standard properties. > + $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state > + > + properties: > + pins: > + description: > + List of gpio pins affected by the properties specified in this > + subnode. > + items: > + oneOf: > + - pattern: "^gpio([0-9]|[1-5][0-9]|6[0-4])$" > + - enum: [ sdc1_clk, sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, > + sdc2_data, qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, > + qdsd_data3 ] These are ordered by name. > + minItems: 1 > + maxItems: 8 > + > + function: > + description: > + Specify the alternative function to be configured for the specified > + pins. > + > + enum: [ atest_char, atest_char0, atest_char1, atest_char2, atest_char3, > + audio_pdm1, audio_pri, audio_sec, blsp0_spi, blsp0_uart, > + blsp1_i2c, blsp1_spi, blsp1_uart, blsp2_i2c, blsp2_spi, > + blsp2_uart, blsp3_i2c, blsp3_spi, blsp3_uart, blsp4_i2c, > + blsp4_spi, blsp4_uart, blsp5_i2c, blsp5_uart, cri_trng0, > + cri_trng1, cri_trng3, cxc0, cxc1, dbg_out, dwc_ddrphy, > + gcc_plltest, gcc_tlmm, mac00, mac01, mac10, mac11, mdc, > + mdio, pcie0_clk, pcie0_wake, pcie1_clk, pcie1_wake, pcie2_clk, > + pcie2_wake, pcie3_clk, pcie3_wake, prng_rosc0, prng_rosc1, > + prng_rosc2, prng_rosc3, pta1_0, pta1_1, pta1_2, pta20, pta21, > + pwm00, pwm01, pwm02, pwm03, pwm04, pwm10, pwm11, pwm12, pwm13, > + pwm14, pwm20, pwm21, pwm22, pwm23, pwm24, pwm30, pwm31, pwm32, > + pwm33, qdss_cti_trig_in_a0, qdss_cti_trig_in_a1, qdss_cti_trig_in_b0, > + qdss_cti_trig_in_b1, qdss_cti_trig_out_a0, qdss_cti_trig_out_a1, > + qdss_cti_trig_out_b0, qdss_cti_trig_out_b1, qdss_traceclk_a, > + qdss_traceclk_b, qdss_tracectl_a, qdss_tracectl_b, qdss_tracedata_a, > + dss_tracedata_b, qdss_tracedata_b, qspi_clk, qspi_cs, qspi_data, > + rx0, rx1, sdc_clk, sdc_cmd, sdc_data, sdc_rclk, tsens_max, > + wci20, wci21, wsa_swrm, audio_pdm0 ] These too > + > + bias-disable: true > + bias-pull-down: true > + bias-pull-up: true > + drive-strength: true > + input-enable: true > + output-high: true > + output-low: true > + > + required: > + - pins > + > + additionalProperties: false > + > +examples: > + - | > + #include > + tlmm: pinctrl@1000000 { > + compatible = "qcom,ipq9574-tlmm"; > + reg = <0x01000000 0x300000>; > + interrupts = ; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + gpio-ranges = <&tlmm 0 0 65>; > + > + uart2-state { > + pins = "gpio34", "gpio35"; Wrong indentation. > + function = "blsp2_uart"; > + drive-strength = <8>; > + bias-pull-down; > + }; > + }; Best regards, Krzysztof