Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2136891pxb; Sat, 28 Aug 2021 05:42:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ09IwNPWdV65AedULZQwx8aPhxsvYO1kceokv0WlwmVPGX//OjTtSygzj9eZ+1Gb6ICuC X-Received: by 2002:a6b:fc17:: with SMTP id r23mr11425266ioh.89.1630154532676; Sat, 28 Aug 2021 05:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630154532; cv=none; d=google.com; s=arc-20160816; b=vEYiTs59+XtL/4FO1ucHkPGROm3jq4VZpHavm9fZVVsQ3++SiygcFrMe/4bYek0Qus rVgPYmDsuLbZ2carYGqb/v15ja0mxTYSh6zyvs8pGkEY6rnONtRcfcwwa80somHLP+UQ J3yerlnwL1366SeAZbSEItP+JdQiZVlJDQbt67kzS5OP4kGTyz9pq1sq+rRumQxeGq5S ImnFWK4BlXYYDUWjiHmmdpuOYDJ946GcXOXJGmNhxfN+xC5onlJ9Piag4zsbHuNKSsgf Amo/PKbapNzOiSZsAJl7D+9VHFR9aYuhvzb3DN2gbTR/4TkdRFQVO+tnnyk/bmELS28b LTcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=gmAgiMktEZBGjc2xZUx2haV6c7JcZjY3owYZNr9Yv4k=; b=jx0wCCz9MJvQUpLttoMJJ2C3vEtUJ0M67BoSzbUajYXRENAu0H/e5HIuUtxqxaFR8O 5A6/N9xp0zt0d98r3uDF8e7LWbnBRn/ezW2NifAc+WWRG0dqRgqvLqY+sJSkM/P7pJXc m6tiycTcM3wUvWbO4+oXEomq9pwKfn9D08fmi3aY3NrBHu+jMNQ6rshqfZ2YvztJafcN eAIYZztJhN3uUSql3KQnqUKCUKM8WC5lIaOrbY6CfReyOisONTgLNn5SPHoLeE2h2Nu5 p5mf7lWzXu4qZvQOMc98qtQHq+22vCrtS1Pv3Pmnmib+9PJ4R0ZvsHR85sSD80cnFDgD jftQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y28si8854267iot.48.2021.08.28.05.42.01; Sat, 28 Aug 2021 05:42:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234286AbhH1MlG (ORCPT + 99 others); Sat, 28 Aug 2021 08:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234258AbhH1MlB (ORCPT ); Sat, 28 Aug 2021 08:41:01 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [IPv6:2001:4b7a:2000:18::165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADE24C061756 for ; Sat, 28 Aug 2021 05:40:10 -0700 (PDT) Received: from [192.168.1.101] (83.6.168.105.neoplus.adsl.tpnet.pl [83.6.168.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r1.th.seeweb.it (Postfix) with ESMTPSA id 50CFD20123; Sat, 28 Aug 2021 14:40:08 +0200 (CEST) Subject: Re: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM6350 pinctrl bindings To: Maulik Shah , Bjorn Andersson Cc: ~postmarketos/upstreaming@lists.sr.ht, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Andy Gross , Linus Walleij , Rob Herring , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210820203751.232645-1-konrad.dybcio@somainline.org> <20210820203751.232645-2-konrad.dybcio@somainline.org> <82cb4d2d-f347-b823-fa4c-4c2b0c0bfb0c@codeaurora.org> From: Konrad Dybcio Message-ID: <07862c1f-f7c0-51c5-b2a5-60c164a53700@somainline.org> Date: Sat, 28 Aug 2021 14:40:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <82cb4d2d-f347-b823-fa4c-4c2b0c0bfb0c@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> +        #include >>> +        pinctrl@f100000 { >>> +                compatible = "qcom,sm6350-tlmm"; >>> +                reg = <0x0f100000 0x300000>; >>> +                interrupts = , >>> +                            , >>> +                            , >>> +                            , >>> +                            , >>> +                            , >>> +                            , >>> +                            , >>> +                            ; >>> +                gpio-controller; >>> +                #gpio-cells = <2>; >>> +                interrupt-controller; >>> +                #interrupt-cells = <2>; >>> +                gpio-ranges = <&tlmm 0 0 156>; >> Shouldn't this be 157? Yes, it should. Good catch. >> >>> + >>> +                gpio-wo-subnode-state { >>> +                        pins = "gpio1"; >>> +                        function = "gpio"; >>> +                }; >>> + >>> +                uart-w-subnodes-state { >>> +                        rx { >>> +                                pins = "gpio25"; >>> +                                function = "qup13_f2"; >>> +                                bias-disable; >>> +                        }; >>> + >>> +                        tx { >>> +                                pins = "gpio26"; >>> +                                function = "qup13_f2"; >>> +                                bias-disable; >>> +                        }; >>> +                }; >>> +        }; >>> +... >>> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml >>> index 3b37cf102d41..99975122a2ce 100644 >>> --- a/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml >>> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,tlmm-common.yaml >>> @@ -17,7 +17,7 @@ properties: >>>     interrupts: >>>       description: >>>         Specifies the TLMM summary IRQ >>> -    maxItems: 1 >>> +    maxItems: 9 >> Is this to support direct connected interrupts? >> >> Don't you need to add minItems: 1, to permit the other bindings to not >> define these? I think that's what Rob's automatic reply complains about >> at least. >> >> >> PS. Any plans to work up support for direct connected interrupts? I >> think that and "egpio" is the only downstream delta these days... That >> said, I don't know if anyone actually uses direct connected interrupts? I haven't really gotten into that piece yet, trying to get the platform up first.. > > Using .wakeirq_dual_edge_errata = true, in pinctrl-sm6350.c (msm_pinctrl_soc_data structure) in [1] should help. The direct connect interrupt were added to support dual edge in downstream driver but in upstream setting this flag should help. > > This was used in sc7180 but should apply SM6350 too. > > That way you don't need other TLMM interrupts to be listed here. > > [1] https://patchwork.kernel.org/project/linux-arm-msm/patch/20210820203751.232645-3-konrad.dybcio@somainline.org/ > > Thanks, > Maulik > Thanks, I'll check and respin a v2 with that. Konrad