Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2821AC61DA4 for ; Mon, 6 Feb 2023 10:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230060AbjBFKrI (ORCPT ); Mon, 6 Feb 2023 05:47:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbjBFKrE (ORCPT ); Mon, 6 Feb 2023 05:47:04 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B42F67ECB; Mon, 6 Feb 2023 02:47:02 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 316AWraR024641; Mon, 6 Feb 2023 10:46:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=xAsARIK/Y+VpAP9rjIN4rTSRSloLBI9oMpTEM1fDrg4=; b=mm5qftUpSCvaiwacRocwhHLh/nORDffNNsOlYTrdqUKsHl5m1t3YnCABNypKJyI+quS0 1vWPHzBACHlUubQXhJG3khGf+veWnK9v6Zdo2Dg57hs112nmJKzhUf1v71cryokvA/az kjRtqUR+MBYvAn1fUBqy+nDv3UFFbolKB6E/qyRQIosaxzAq+iz++52LVmnf8tzkVlTm 1x/c4qNnitKRgYKtTSyXrPXOP82aOzAiG27G8vnR+Dv12e2kvp72e788AE0106Pjc5wZ pmcdGfs1Y2lp+Bu0q4dHLbBX/7VoeTr5dHhwEjoxBuRpOYsDnXuPLoT45UPBj+ldj8dH Yw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3nhcqxunw6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Feb 2023 10:46:42 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 316AkfGE021626 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 6 Feb 2023 10:46:41 GMT Received: from [10.50.61.251] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 6 Feb 2023 02:46:33 -0800 Message-ID: <44fc5dff-b6f4-f5d4-f3be-42e4421e70b4@quicinc.com> Date: Mon, 6 Feb 2023 16:16:24 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH V6 3/7] dt-bindings: pinctrl: qcom: Add support for IPQ9574 To: Kathiravan T , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , References: <20230202150619.22425-1-quic_devipriy@quicinc.com> <20230202150619.22425-4-quic_devipriy@quicinc.com> Content-Language: en-US From: Devi Priya In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: KtmCMP8raP4Z8tXvjqD_VoseiUSpWb4g X-Proofpoint-GUID: KtmCMP8raP4Z8tXvjqD_VoseiUSpWb4g X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-02-06_05,2023-02-06_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 suspectscore=0 clxscore=1015 mlxscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 phishscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302060093 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for taking time to review the patch On 2/3/2023 11:20 AM, Kathiravan T wrote: > > On 2/2/2023 8:36 PM, Devi Priya wrote: >> Add new binding document for pinctrl on IPQ9574 >> >> Reviewed-by: Krzysztof Kozlowski >> Co-developed-by: Anusha Rao >> Signed-off-by: Anusha Rao >> Signed-off-by: Devi Priya >> --- >>   .../bindings/pinctrl/qcom,ipq9574-tlmm.yaml   | 137 ++++++++++++++++++ >>   1 file changed, 137 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..053b15ccb7a5 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,ipq9574-tlmm.yaml >> @@ -0,0 +1,137 @@ >> +# 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: >> +  - Bjorn Andersson >> +  - Krzysztof Kozlowski >> + >> +description: >> +  Top Level Mode Multiplexer pin controller in Qualcomm IPQ9574 SoC. >> + >> +properties: >> +  compatible: >> +    const: qcom,ipq9574-tlmm >> + >> +  reg: >> +    maxItems: 1 >> + >> +  interrupts: >> +    maxItems: 1 >> + >> +  interrupt-controller: true >> +  "#interrupt-cells": true >> +  gpio-controller: true >> +  "#gpio-cells": true >> +  gpio-ranges: true >> +  wakeup-parent: true >> + >> +  gpio-reserved-ranges: >> +    minItems: 1 >> +    maxItems: 33 >> + >> +  gpio-line-names: >> +    maxItems: 65 >> + >> +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: [ qdsd_cmd, qdsd_data0, qdsd_data1, qdsd_data2, >> qdsd_cmd, >> +                      qdsd_data0, qdsd_data1, qdsd_data2, qdsd_data3, >> sdc1_clk, >> +                      sdc1_cmd, sdc1_data, sdc2_clk, sdc2_cmd, >> sdc2_data ] >> +        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_pdm0, 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, > > > Given that, In driver everything is grouped under a single name 'pwm', > are these pwm function names as still valid? Yes correct. Have updated the bindings accordingly in V7 > > >> +                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, >> +                qdss_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 ] >> + >> +      bias-pull-down: true >> +      bias-pull-up: true >> +      bias-disable: true >> +      drive-strength: true >> +      input-enable: true >> +      output-high: true >> +      output-low: true >> + >> +    required: >> +      - pins >> + >> +    additionalProperties: false >> + >> +allOf: >> +  - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml# >> + >> +required: >> +  - compatible >> +  - reg >> + >> +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"; >> +            function = "blsp2_uart"; >> +            drive-strength = <8>; >> +            bias-pull-down; >> +        }; >> +    }; Best Regards, Devi Priya