Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4029653rwn; Sun, 11 Sep 2022 03:45:29 -0700 (PDT) X-Google-Smtp-Source: AA6agR7NqiArUyc0R/i7AGRAXbs5PSFIcejiKdkrMxNIVjwJr8sxRnewBh3EIv+r6tk3GWWWz/tL X-Received: by 2002:a17:90a:b00f:b0:1f7:67c6:5df5 with SMTP id x15-20020a17090ab00f00b001f767c65df5mr18249442pjq.59.1662893129608; Sun, 11 Sep 2022 03:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662893129; cv=none; d=google.com; s=arc-20160816; b=QlKLv5/A1GYX8QKDjOFpeeXg/c7Wf4sFmSKKaC5ARgrCAOM6sumwb65W5XdxpLhPiG cq951LxGX153oJvhtd8IIkgVpgLOAtE7DitIPoSDOOoH1TYShUtmoaaY1+PscPsb/3B6 rVqTtu0ZUGs1N69hxlzpBtap9fBeSPl08GcM2yMn2CPxLNGmBA8xZsw4LilyDoDehRi5 WCrtAbGPkCfWEVF5igPLqNz1Wb/doGStXdoUKvBfoPW9kS1kvW943v7D2Ls04yc46aDe ZLMdd4+aphz3lxDT9WLkOXFxLR/vfCG1b9KMdJwDSS8Xg3PGIgjWOxE76SRjY9Pc1Mst OUrQ== 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=4VyNYHLc58kEh2P/K9NXghyAtDEjJgTR+B1iQusmQxg=; b=G1chEIA6grFeF/uKX/Wy82758yBLmAoBMrslo+jApAXiOvl3s56AT+yXLKoTNlFg8Z cbdFKG2QF1KMM4zycnPa1wpPHIUMr9MrfXpIGK+kHG6RD44Gs+9FpW0JotdpV2W9NdjO D77No91sh6tnD5Mre29B0PS/U5CskviP+MO4q4mz0i0i3cPL6JjpmLUImo9l8GQzWHTF C7BuSX3Yt+Jao2KUF5D2OdM1j02tdaFMY1hrhV+dMzoUGjye4fnQLFnmfVtiu6RQRwFp LbuIAUEuJKE3EMFfy2I8mzTGsMgM+IVQSU9o7OmAAKoojPlRMDmmkfS8iblXmIkBZEXw vwXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nH3wIj8i; 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 s22-20020a63e816000000b004349119ea7bsi5976088pgh.401.2022.09.11.03.45.18; Sun, 11 Sep 2022 03:45:29 -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=nH3wIj8i; 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 S230121AbiIKK0M (ORCPT + 99 others); Sun, 11 Sep 2022 06:26:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbiIKK0J (ORCPT ); Sun, 11 Sep 2022 06:26:09 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FD1F3AB33 for ; Sun, 11 Sep 2022 03:26:04 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id bq23so10259124lfb.7 for ; Sun, 11 Sep 2022 03:26:04 -0700 (PDT) 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; bh=4VyNYHLc58kEh2P/K9NXghyAtDEjJgTR+B1iQusmQxg=; b=nH3wIj8in1OwkcbzzoaJYk+gxADLp4qilU60WYJCv2w6Mgj5SjAMTXS507zsEIjXlX l6e7UlVcIpHBKXTkDhU6TjwpoOiI1l2lYX7NEXYinlBI78BrJGvGHgeWr95imFTOV0tf ZIFDd9N28nhE0CACE7L4luskezeUB+2go4WmGkWTjH9cu7b18wgwAxtPCR7OMLqg/I3S 5nbzN/JZRrM/iiN3x0j0IxpcgnBMi/LOP3U4bWyubOPzfonYj5OPV1if3o3cQzGQk9XL sxmwG6dTaINV4Sp4KJiH4qjq1cyco4/rEo8tk6CLzTNkuvYeYSu5snHnb8aKqKdSct0B tdHw== 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; bh=4VyNYHLc58kEh2P/K9NXghyAtDEjJgTR+B1iQusmQxg=; b=BHZ8HHlLlgX8NQOYxQjUhB50HBW+4WOKtRtR3jlxBp9Hlh2c1WCCEfpp7ZAjRofb/s r3z7PQnrssKcOZ2Zd/XfYjlqfrewyyrelG4BUGrADJX33vXSyYagXWLtZHfljD+tGMVM q/8WU6cYEUjZhxDfDFvY4469R2wYcS0S1O5gQUsc09V9MKgX8uM9N7Dq79qAckUm1p0/ KApQO0wE6j24zEkDVJQTiInJKfk3UFJdYLpJEOLBQLXs5SN6h4lX8MAMJMq53BbBDj5u v7ZDc4vVJLUWwHPAcbAkE//gsyM4UE/g+0zYtIBOaOHxYdKeDh8QDik6eawqKUcmf/TM WvqQ== X-Gm-Message-State: ACgBeo3tUbTsVl6KR6NgjNUYCrOJyqTaGz/PGgutn1dlwzVDG6PomjOY jL3wxqi3eGSz2b70BpIn/UHxIQ== X-Received: by 2002:a05:6512:168d:b0:491:3206:b63 with SMTP id bu13-20020a056512168d00b0049132060b63mr6907746lfb.149.1662891962958; Sun, 11 Sep 2022 03:26:02 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id t7-20020a19ad07000000b004949761d330sm562793lfc.128.2022.09.11.03.26.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Sep 2022 03:26:02 -0700 (PDT) Message-ID: <6f2ec41a-a6fa-dce7-66ee-e9ac3d3ab6f5@linaro.org> Date: Sun, 11 Sep 2022 12:26:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v3 7/9] arm64: dts: qcom: sm6115: Add basic soc dtsi Content-Language: en-US To: Iskren Chernev , Bjorn Andersson , Rob Herring Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , linux-kernel@vger.kernel.org References: <20220910143213.477261-1-iskren.chernev@gmail.com> <20220910143213.477261-8-iskren.chernev@gmail.com> <7e5eb29f-913a-7540-c618-fb6c5a493d5d@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 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,T_SCC_BODY_TEXT_LINE 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 11/09/2022 12:22, Iskren Chernev wrote: > basic-state { // this matches the first state in oneOf > pins: "gpio1"; > funciton: "normal"; > }; > > nested-state { > some-pins { // this matches the second state in oneOf > pins: "gpio1"; > funciton: "normal"; > }; > other-pins { > pins: "gpio2" > funciton: "normal"; > }; > } > > // but also, matching second state in oneOf > nested-basic-state { > pinconf { > pins: "gpio1"; > funciton: "normal"; > }; > }; > }; > > So I'm saying, we should either choose basic-state and nested-state, in which > case we don't need the "^pinconf$" variant, or we can have nested-state and > nested-basic-state, in which case we don't need the 1st case of the oneOf. Ah, I get it. > > Otherwise people have to choose between basic-state and nested-basic-state, > which are equivalent in semantics. Yeah, I can drop pinconf. I put it in the PMIC because it was used, but I don't find it for TLMM pinctrl nodes. > > On a tangent -- why specifying the .* regex of pinctrl subnodes has effect on > pinctrl references in other nodes. I.e I don't understand why this fix fixes > the issue (but it does). Because it works on DTB and finds linux,phandle. This might be some bug in dtschema, but anyway better to have a bit stricter patterns in bindings. Best regards, Krzysztof