Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1007775lqp; Fri, 22 Mar 2024 02:45:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfq79InBozV6GbgKWR/G6Ps6Kg3YK+/C9FudqsxxNEDtzu+wIjY/lub7FiFEsZR4WAEhgtgv27rPF4ZhlCtlGGpOZTsk60ee+xL+fx4g== X-Google-Smtp-Source: AGHT+IHkj4VKGc9zernOlo4id2sSQqh68Dty7EZeIO7OopgIPaf4/b61S7ORvPr3Zv32YGEAHilh X-Received: by 2002:a05:620a:15b1:b0:78a:2581:5033 with SMTP id f17-20020a05620a15b100b0078a25815033mr1854897qkk.35.1711100758346; Fri, 22 Mar 2024 02:45:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711100758; cv=pass; d=google.com; s=arc-20160816; b=i0vkA1CqBi0+bI4CEgB9PnSXMIhmW466TVM6a/yEkH14zJwyyrYD2njimp9bhG2sbv WZZmE2oNomz1FHhHO8wIgkF9H3rSFGvnop++u02orpPp2LoWECHwTG8wNKBMB8cCTzMJ yOTXZEOvo0+bTnDfgT2ImpV/DBNjsphluN1ZmCmQJmSCYZxnexLEUaX6/LgWZ4oc8sey eZO02+YSGXs0MXI6iJk2Pwzy25hWq744ChvqvFWn/qd7Usz5ly0IKkM0EI+VRg1dlMQG UkKciGdO5EcHf/Dr8xN7/2jdo9rcvA8hPzuCDi4YuLBP2+ISmedWkevgZXa1AwNQx1hb dy3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:date:from:dkim-signature; bh=AlmUZX1oKnCqPJXsSuCW5CozYj1wJFSEFEeiu59yIp4=; fh=2MrEeovoyyg+0I0o5oCXoUkHQ1TErUmlEdESbIOjCP4=; b=dEL5YalO3fF53wYhq9Fvrm3bSzom2vljmt5CvjRxH7G7/oK1EvOiV8espHd9N2+Gxh XgIcrRkNvv/EemumtwX5kfYBJICEbomCaedMsV4WugNOnFORKhd39fLhCH41sKNimFcF zu2ujEJ//0EUGejkD0nofIQZTF9QdLhaLy7NJ5+tXu+FiXMnLD9mZlzKoZpwOdskWyCM ZxH+Zt2MqV7sCHGJw9S6WfkJyudOc75gziq2DFIFA50hrdgplHUAJi5cvRrDZzPpGeLI bl3CPd79qgSQhRA8twvpxO8zoKy1wVxQEKLj88NZp+HyfKuSDfn4r3jkI9MsZWGjn8xi 4YEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="RT/bx1Bo"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-111242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b5-20020a05620a088500b00789d592491fsi1592471qka.265.2024.03.22.02.45.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 02:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="RT/bx1Bo"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-111242-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 08FF91C2168D for ; Fri, 22 Mar 2024 09:45:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 31D9D224EE; Fri, 22 Mar 2024 09:45:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RT/bx1Bo" Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87B2D20DDB; Fri, 22 Mar 2024 09:45:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711100733; cv=none; b=EtBlWd9YReNIIjnZlZlByyO/ZGEPm8CpE3qGfMg6k0JIpSaUdGz8fvzMjxNA4spEq4HBDiSF+JFchQsMrLvbjKYNqof8ipZJgAzw+tAUneCx1TBBvMsHeqg/77JypuiYgTiJuS1TZaM3t21K/ZS94p4WtMtKn4w8WKKkJBF2Pag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711100733; c=relaxed/simple; bh=A4FOGLlvtuthBYiub+mR8yfwfnfz1i/GHCFLNMfFHSs=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xw0IQtJlDA8Upd0+6IJ/VM6ODRmeeHkttKqKx9nbwz+UlA69aAGdiRNcd6zVFZKZrafM/WAMhGcR2k08nR3up3HvACFoGo0M/rMJ5J7oj1ByJeIwrmejy8N7HGgKXL5N3nyV0FnK5wFfUoD9fsifOJf5qEI+oTG4zUoXcJtkWS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=RT/bx1Bo; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-56bdf81706aso756225a12.2; Fri, 22 Mar 2024 02:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711100730; x=1711705530; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=AlmUZX1oKnCqPJXsSuCW5CozYj1wJFSEFEeiu59yIp4=; b=RT/bx1BoKmV/H07F2KB3VAiCTU9NK5DSdzkM3LbD6svSDVKB/RT0wKdPy8PT/gljED uXuc0C0pKXug4Plzo7ycf3C4ZNFqNvIgP58E/0ORjbRS43S1AjxZptd0EIpabsGmDWE4 zNwz9U9Zl5byqu+a7KQaLpBxXGD0Z2fMIHrtOFTdQF8SoL+ryMdTn+zY73dnt8xhqE/o 4OY0YfPd2j1KzUc3pxFrBtuLW+wfEZRy2mpotH7Jw/zZB3fAcZGz8f83FANPWZei5bW2 R4HQs/6aWBDij5eif2tTjdRBXoD24mcWH8KC0AI0LiJhWCit/b6UDC91PmFdcfXv9jOF RxHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711100730; x=1711705530; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AlmUZX1oKnCqPJXsSuCW5CozYj1wJFSEFEeiu59yIp4=; b=EhIk2jv5hTv7M4wJu/xN+KHzAbG3B19AVDWqFnylEt9uTbgYME9Y9r4F7FU5Bv5wvE wgl6QdvqTF6NczEtVQ7/8eNdaPeH9ZNScGDDSeJnfP+tHmlyy3fBXxxOemTyTr2mSZcf 7B1H3BF/Kzoiofcb0RIvp6+QqsQ38GeCNxyFtEmk83O/SG74wBzDBCWJCQyfaLZQdcjs 5Br2DMkql0ytV1HcC/kuwY9QRtCmuc2RhrANpZOkio4PzkMDoraqGtLSs/D1u/BqbgkV Ioba8PxMdfH667hdLV54EJpElHTi23I5LM0HSYHGTwYOykYZqYBQTT42lv1dkY8RUZyM Kgog== X-Forwarded-Encrypted: i=1; AJvYcCXpNWu0Vf9LtwVNot9Un1ytWdEiEb3qFUAuCbNkwkNvvxS/qTrQEg2l0/H+I82umBN28GwFfl06KKZrGpYgG7TK9U9ksDHOV3qoQpS9+oltZ8s3OMgewBvgzF/G8mCy+KDPoVDDX384oQkX5cHoSOFWvElHUJTYbGiKN64WbxjGNmykNvHa+CKmCdK2NIhx8i9fTaQhQ9nT3pzGrkTHCR2ljA== X-Gm-Message-State: AOJu0YztxUAwaEANpQ3Z1EDFk3asbgxs/THwOaB4G/U6VqV2AGX/fnDA 4hbZxy5CsryIfCH16U0eOfFh5qOlKrlTE4jvPWbpoLHSdxSC2sxV X-Received: by 2002:a50:cd1c:0:b0:56b:6ec6:af2f with SMTP id z28-20020a50cd1c000000b0056b6ec6af2fmr1179534edi.6.1711100729462; Fri, 22 Mar 2024 02:45:29 -0700 (PDT) Received: from bhlegrsu.conti.de ([2a02:908:2525:6ea0::11c2]) by smtp.gmail.com with ESMTPSA id b9-20020aa7d489000000b00568ba57983csm839426edr.0.2024.03.22.02.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 02:45:29 -0700 (PDT) From: Wadim Mueller X-Google-Original-From: Wadim Mueller Date: Fri, 22 Mar 2024 10:45:26 +0100 To: Krzysztof Kozlowski Cc: Wadim Mueller , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Greg Kroah-Hartman , Jiri Slaby , Chester Lin , Andreas =?iso-8859-1?Q?F=E4rber?= , Matthias Brugger , NXP S32 Linux Team , Tim Harvey , Marco Felsch , Gregor Herburger , Marek Vasut , Joao Paulo Goncalves , Markus Niebel , Matthias Schiffer , Stefan Wahren , Bjorn Helgaas , Philippe Schenker , Yannic Moog , Li Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v3 3/4] dt-bindings: mmc: fsl-imx-esdhc: add NXP S32G3 support Message-ID: <20240322094526.GA7097@bhlegrsu.conti.de> References: <20240321154108.146223-1-wafgo01@gmail.com> <20240321154108.146223-4-wafgo01@gmail.com> <00174dc3-65a7-4a2e-b48d-a974336a3f18@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00174dc3-65a7-4a2e-b48d-a974336a3f18@linaro.org> On Thu, Mar 21, 2024 at 06:53:34PM +0100, Krzysztof Kozlowski wrote: > On 21/03/2024 16:41, Wadim Mueller wrote: > > Add a compatible string for the SDHC binding of NXP S32G3 platforms. Here > > we use "nxp,s32g2-usdhc" as fallback since the s32g2-usdhc > > driver works also on S32G3 platforms. > > > > Signed-off-by: Wadim Mueller > > --- > > Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml > > index 82eb7a24c857..b42b4368fa4e 100644 > > --- a/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml > > +++ b/Documentation/devicetree/bindings/mmc/fsl-imx-esdhc.yaml > > @@ -35,6 +35,7 @@ properties: > > - fsl,imx8mm-usdhc > > - fsl,imxrt1050-usdhc > > - nxp,s32g2-usdhc > > + - nxp,s32g3-usdhc > > - items: > > - const: fsl,imx50-esdhc > > - const: fsl,imx53-esdhc > > @@ -90,6 +91,9 @@ properties: > > - enum: > > - fsl,imxrt1170-usdhc > > - const: fsl,imxrt1050-usdhc > > + - items: > > + - const: nxp,s32g3-usdhc > > + - const: nxp,s32g2-usdhc > > No, that's just wrong. G3 is not and is compatible with G2? There is no > dualism here. Either it is or it is not. Not both. > I am trying to understand your statement but I am not sure whether I get it right. Let me try to explain what I understand is wrong with this patch. Having nxp,s32g2-usdhc and nxp,s32g2-usdhc in one enum > > - nxp,s32g2-usdhc > > + - nxp,s32g3-usdhc would mean that those are __not__ compatible with each other, whereas the anouther item > > + - items: > > + - const: nxp,s32g3-usdhc > > + - const: nxp,s32g2-usdhc > where both const entries are side by side means that those are compatible. Which is paradox. Is this undersanding correct? So if I want to have the follwing im my DTS for the mmc node usdhc0: mmc@402f0000 { compatible = "nxp,s32g3-usdhc", "nxp,s32g2-usdhc"; ... } The schema update should contain just this part? i@@ -90,6 +90,9 @@ properties: - enum: - fsl,imxrt1170-usdhc - const: fsl,imxrt1050-usdhc + - items: + - const: nxp,s32g3-usdhc + - const: nxp,s32g2-usdhc reg: maxItems: 1 Is this correct? With this patch in place I dont see any issues with an "make CHECK_DTBS=y freescale/s32g399a-rdb3.dtb" as well as "make dt_binding_check dtbs_check" seems to be OK with this. Thanks for your guidence so far, much appreciated! Best Regard Wadim > Best regards, > Krzysztof >