Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp549930rdb; Fri, 6 Oct 2023 10:57:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFo3vLYePqOEVG2RB8vLvTE8K9JRI2Lc3RndZ9lhdmguqeQ0oZ5ls+dvYgY4w+DbIELo33i X-Received: by 2002:a05:6a20:a11f:b0:15d:d250:d240 with SMTP id q31-20020a056a20a11f00b0015dd250d240mr10033981pzk.50.1696615060542; Fri, 06 Oct 2023 10:57:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696615060; cv=none; d=google.com; s=arc-20160816; b=qzKmkJCwtxif4sPFIhh/k/8HWLiLljL+SlwDRWDwQ8JOVLk8z3Tr3LbSdfBR1vML/4 +sQyo5wSVGZzgCqxlpIlNKqdH57wI3IYhDvfUPj6hCC45LP/U+lNt7i4lshvPRI0+5mc yzmC05lFRFBhcsAU+fngXIiQMjduWl7KEe3nZHQK3VT19GAZopZuUiywjGZDqzrjZucr dqmKw7dOC4x6Puq3lBVhqWR4CzG3yeDxRskfYKjmdXCiIwun/u092Cle8mpJbt7avdEh UWzIjyxquL5rC8wqdHi15c07W+cYCNeP344S/UnDSuHK1eUogthzFWOab9dRUywOLRNy ftrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=T7/xIpeOpVPoNRP+dxe2lBVu2zkQlUDroQAy4fD91yI=; fh=+hSOmSU1LuRCpEPBdGKMpIoWfOicpOtDNkWyTqMe0+8=; b=SGVPoBe7DLW++1sVCzeY4yyaK2uq5L9+SI8HmUZSZQY2nivGnhltj74VZVbrGY5Cni TwXai3HL7tIflYYxIpa7JKvDFuRGxVI0Q/qVllLyCbudYMRapwpC3DxSuo3nXSG7Ot37 f+eMNue7iGG7wjxHXZamaZdYQkHsAKVpzCRt2SloBSG7kTh4nAwX/EW93651j+mURaCc uFFGjpWS3QIyurnhD+VFmTwB7SwK1NA8B0vXfAwL8CiB/d0kDqX/YEkURc4VTTvpFuSo rMGgL5kj0ChWK5Fp76SKS64+M3/RiIZdjmokHrbCUqVL45eNzXF+l4ig9HahvWOt+NYh b8TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ExVRjuA7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a21-20020a63e855000000b005740ab95917si427740pgk.45.2023.10.06.10.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 10:57:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ExVRjuA7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id BCECC80F66B5; Fri, 6 Oct 2023 10:57:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233127AbjJFR5C (ORCPT + 99 others); Fri, 6 Oct 2023 13:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233134AbjJFR47 (ORCPT ); Fri, 6 Oct 2023 13:56:59 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC178106; Fri, 6 Oct 2023 10:56:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0AAFC433C8; Fri, 6 Oct 2023 17:56:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696615017; bh=M7cM0uzrZk4lKMKjA93C2oMjoATI9WLt5iEp4Pa0My4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ExVRjuA7T/H0LaeJ0jyf3NZMtrc0lM6wOK+ekvS3Hq8ZCLXMYeoBcRONIckkYnR9e R9KWM6wDzcE5q6jwvZF8lMhKkQ1lgD5XgMAmF7JJPxu8HLrXCruZvJdtW+N4EFMC/7 +MgEyPdqIsG0GVwqs1Zo00lHWuag9pWExwjTRXjr6/1rfLAWPo85X4OULjN1ooa7MU QE2wvKipHSHuTUa2DvBuP+DGUrlVwrPA7dr5beW5tSBoKlXJNaQzu4hKecZwWebxPT cSOeYmHLA64elgkUGOYkMirnChTWEZcTn5lG+t94KgeZRNsGwZCdyYGcGdRGZ4Z1JF KS5ex2P3lOVhA== Received: (nullmailer pid 70487 invoked by uid 1000); Fri, 06 Oct 2023 17:56:54 -0000 Date: Fri, 6 Oct 2023 12:56:54 -0500 From: Rob Herring To: Martin Kaiser Cc: Alexandre Torgue , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin , linux-arm-kernel@lists.infradead.org, Conor Dooley , Linus Walleij , Magnus Damm , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH] dt-bindings: pinctrl: st,stm32: fix phandle-array warning Message-ID: <169661501435.70432.16755877986670034633.robh@kernel.org> References: <20231006082247.3830719-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006082247.3830719-1-martin@kaiser.cx> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 06 Oct 2023 10:57:17 -0700 (PDT) X-Spam-Level: ** On Fri, 06 Oct 2023 10:22:48 +0200, Martin Kaiser wrote: > make CHECK_DTBS=y st/stm32f469-disco.dtb > > brings up a warning about a missing argument: > > stm32f469-disco.dtb: pinctrl@40020000: st,syscfg:0: [21, 8] is too short > > The description of the third entry indicates that this entry is optional. > The code in stm32_pctrl_dt_setup_irq parses st,syscfg and treats the third > entry as optional. It defaults to 0xf if not present in the devicetree. > > Update the schema to require at least two entries, use the same syntax as > the description of renesas,ipmmu-main in > Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml. > > Signed-off-by: Martin Kaiser > --- > > I tested the following cases, all of them returned the expected result: > > st,syscfg = <&syscfg>; (too short) > st,syscfg = <&syscfg 0x8>; (ok) > st,syscfg = <&syscfg 0x8 0x0>; (ok) > st,syscfg = <&syscfg 0x8 0x0 0x0>; (too long) > > .../devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Acked-by: Rob Herring