Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp247711lqf; Fri, 26 Apr 2024 05:52:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWp1N3x3lytzlkgaTxKBp81LNDhLNJcYXvdoLNJwDFJu1/we9QIgosctoTffNL1Fs635iYXSim2gMREo1jlFGtTwW6TGNBuLMzMHHe4Ww== X-Google-Smtp-Source: AGHT+IEeHZnH/PiZQiRpB5O2GbTmU22Uf+lMMkDDtKQUIoHDzUA+GwLrHYgDtAXJ5lS/1AkLwJNP X-Received: by 2002:a05:6402:448c:b0:572:65d3:8084 with SMTP id er12-20020a056402448c00b0057265d38084mr129067edb.1.1714135924020; Fri, 26 Apr 2024 05:52:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714135924; cv=pass; d=google.com; s=arc-20160816; b=kfjlCzeV5ykdXvEDEO/6aoOXhK+AB2mGSynkxWYj0qbCL422TIExmlB1yGChS1KAzN IwOn5pEZMfo9SebmrKJR5/keo5NXG/jlMiyHBcaAP/tSvSX0/iCJTXPEBNtNdT0ILMRq 4eFCNndllrlh65CGXvi6CP1XwLt5da2dpsXR8//g57xv3gkk84glDAFIFQUq/VZ6FcA2 CqTU4iNK65DMdq0ARoVuJ59mW/JEypLCjGCbe7mL6O9k3IrJynmopVy7FhaVoCLB7K8c VIGLuKN8Tnbi/OFs70TDbW/JxWFSdbXrEX6hvN/p9KEQuz+vfaMBMC6g2bDdz8daXOC4 XHvw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=C7edbZ7NMwTLg39d0mj+uf5rqp23pLUcF27EjZiqoOw=; fh=FT8dn277XMssyJMId7ExGPf1a7nVTbNxYPJpUBTUATI=; b=ssLnogrImCbseFk6DpFWUGFBSkZgMz3dm/C14uYApBpYcJv5KlQH345bdct2KVqkwa YSbISu1aOQf9cRfSNuVjF/mXjTxK1/YSDy/McpFcRUuvzxw1+r8wsPqxSZN+61z5SVkg NVrhpXqV+iWkXKK8a0FZ9juJyJF1Y8nx0hiQYzyhO9/DgTNkBQB07jjUu/MvKuI07N77 zeJnmdsfSitQFkx3rv5laNqROSQslcKfk6WFHw998jhvS2/Chwa9IgRaQqqigQA1fjT2 g5uMZpgEdiRUdZl1EQ8KdB0NnixuJZuGpVIz6LV33mDwiy7HqPQsOaq+OVuikynGJrb+ VV+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uo+FlEzK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id if20-20020a0564025d9400b0056e2a14f4adsi10510512edb.626.2024.04.26.05.52.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 05:52:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uo+FlEzK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-160000-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160000-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BCEBF1F229FD for ; Fri, 26 Apr 2024 12:52:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEDE7146A8E; Fri, 26 Apr 2024 12:51:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uo+FlEzK" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E632213E88A; Fri, 26 Apr 2024 12:51:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714135917; cv=none; b=VM/7n+lti8erbVmuTAuVQtR2ha5xd29I4nI0/N77RcMwcoXatGLHVOd+Lllt+XzUefTszgidsCE7Ldp1eNDDO+r+Z3Ia9eWdYqnE2vmRbFDrHOoTafl90+dTvLEX/fOTESCDhgmlXJE1Ln4BWz2dW/vK0uqLT2lQSXAiNgW96oU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714135917; c=relaxed/simple; bh=C7edbZ7NMwTLg39d0mj+uf5rqp23pLUcF27EjZiqoOw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=uw6Xqgi41sMufpPnUH8nAsbt5ihUr4d0VURN96iZA3pFMjB7VU583tBQbyRe000y8BcwUoXuBataHv/VK2I3yxSjm6GVyqEuTdzNDU9CwrBTRa0uj2b+WbcJICc/Y8vaiSufOooz8Blwe3LM8u8xw79lGwYptJoaKSSfMEsxxrg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uo+FlEzK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B200C113CD; Fri, 26 Apr 2024 12:51:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714135916; bh=C7edbZ7NMwTLg39d0mj+uf5rqp23pLUcF27EjZiqoOw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uo+FlEzKuyJ+Dk4AFWz7hPEpdj2h80DNRmcM2eLlbvNHrQeNHWNbL3X05aLtBOHoi U2EYj8QjTRPdzmWCX2JUjcYRoeH3AjrS1v02ND6lY/zruUaglTt4zKXFChriaK4n2N 8JMgydGQ9tWxrYV8+A4QYo4PtuI10Ae0YwldXYkf1kCgTxNd+ggqh2s/CQVStaWuCY ANAfjYvtRsIpXbqVgn+GahpWfJbfC2GU4ScgJ8MLIjguPxaB7dU1wcWaKPS18oIDjm sCZPVnkETN5iAAn1tGhHh4ajPuCSNf6LAQw+SAa9K4u4QOPiaM7y1NzO6sA4BGYvBU FrXwH1QYczXhA== Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2de232989aaso23670841fa.1; Fri, 26 Apr 2024 05:51:56 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCX/nhnPmvOH+E1SnF/AGBO3zvfNhxnQMyjz99EtupxeonQt+jyoInjC/NliATN/7si4mhS+j/9ZAGANr36E/zZtScvffGuHWpm/9pMmD/ujMuA39h3Gj8DY96GhpvB+YRie0jCWGyq/Tg== X-Gm-Message-State: AOJu0YyK8LOyrA8OpMtUjJ0fEBgSLqLXacnTjTtWjH/EWdlFjs3b3S2O ptIe0q2pHnOu9DiAS4cEwK8p0Xn0JuHkK5kqgV/EEUeMyJa9CQ2nvouSvMUaHdI7CyZG60rbO+W jstKuqnMUcFfy4JXdP9+8eFSydg== X-Received: by 2002:a05:651c:210b:b0:2d8:4637:4062 with SMTP id a11-20020a05651c210b00b002d846374062mr1933367ljq.28.1714135914731; Fri, 26 Apr 2024 05:51:54 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240425074835.760134-1-patrick.delaunay@foss.st.com> <20240425163035.GA2783061-robh@kernel.org> <28aeb8b1-72f1-4dd9-b433-f5b693150475@foss.st.com> In-Reply-To: <28aeb8b1-72f1-4dd9-b433-f5b693150475@foss.st.com> From: Rob Herring Date: Fri, 26 Apr 2024 07:51:40 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/3] ARM: st: use a correct pwr compatible for stm32mp15 To: Patrick DELAUNAY Cc: Alexandre TORGUE , Liam Girdwood , Mark Brown , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Olivier Moysan , Arnaud Pouliquen , Pascal Paillet , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 26, 2024 at 6:42=E2=80=AFAM Patrick DELAUNAY wrote: > > Hi, > > On 4/25/24 18:30, Rob Herring wrote: > > On Thu, Apr 25, 2024 at 09:48:31AM +0200, Patrick Delaunay wrote: > >> This patchset removes the unexpected comma in the PWR compatible > >> "st,stm32mp1,pwr-reg" and uses a new compatible "st,stm32mp1-pwr-reg" > >> in STM3MP15 device trees. > > Why? I don't see any warnings from this. Yes, we wouldn't new cases > > following this pattern, but I don't think it is worth maintaining > > support for both strings. We're stuck with it. And the only way to > > maintain forward compatibility is: > > > Yes, no warning because the compatible string are not yet checked by tool= s. What do you mean? There's a schema for it, so it is checked. I ran the tools and there's no warning. If there was a warning, I'd fix the tools in this case. > I propose this patch to avoid the usage of this compatible for other SoC > in STM32MP1 family. > > > I see the invalid compatible string when I reviewed the U-Boot patch to > add the PWR node for STM32MP13 family: > > https://patchwork.ozlabs.org/project/uboot/patch/20240319024534.103299-1-= marex@denx.de/ > Perhaps you should add SoC specific compatible string instead. > So I prefer change the PWR binding before to have the same patch applied > on Linux device tree > > > compatible =3D "st,stm32mp1-pwr-reg", "st,stm32mp1,pwr-reg"; > > > Yes, I will update the SoC patch with you proposal. NO! We don't want to support that. We have *tons* of examples in DT which don't follow recommended patterns and we're stuck with them. This is no different. We can get away with changing node names, but that's about it. Rob