Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1197563lqp; Fri, 22 Mar 2024 08:07:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVM7DLdtXQX78j6Jv+bmlmC+FrIyv6LZ6Sg1cBjCFleQ2VQz5e+JIHcYZ2kaKoqqXV0rgdU7Q7EKKdC4Oh/DSYqWDX1W9VaEo8mkAf0ig== X-Google-Smtp-Source: AGHT+IEEBXuRnvdfraHxS9uxGH8XMUOe0hx0BAd8Lb5+Y5P3MWjaCrR6Yrepr5WeU+MrpSNUKbHK X-Received: by 2002:a05:6a20:89a8:b0:1a3:4591:1e9a with SMTP id h40-20020a056a2089a800b001a345911e9amr2431797pzg.61.1711120057587; Fri, 22 Mar 2024 08:07:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711120057; cv=pass; d=google.com; s=arc-20160816; b=jYAkPR5DV+lZOFPkCFwLSbZ6sJwZfgMACL+n5YHWpjSCV7tOLhh108+ed2yeaVP/cd LtVT0RTHsDReIdHXBW4z00a920SQWr4h5Iz1VmDWM+FGkQmnlvGU4CuQPx9SgwqqFmWn bXrtS0qxZg0Jeh9khGr6FPH5y2aYOOdVKIANWsISq53tu0y301L+aYaYCXwm/vgTTbLX VnPryQprcD0Yn4dyJ+ChI2JlSIP2X07YuKSal/PIseWiEbVTsj+zI23dfCPZwnzAkWZk IJcIi3EGWq9Zb6yyq2RM8muiVHkCz8+zYlyQcfwX5Iai4S5JcBFufc2Xw1qhhp4zUoRd e41Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=YYKS5KJg3lRASq82tox31NEtiC4E3JWUe9CPtzuJId4=; fh=J339w7y3UnbJESF5L0/Y/oDq7YAotQ6LBaAEHqNfnJA=; b=xrG9k15BA/78f4Qu145oSfs0pWKyT5jyabI3LY21a2TCbZ58efwJCnLdAEFM7NcRvg NBd275XflWjL1I3S8NZMGP4ZOeWa7oLoulQK6g69k0v7oAgFPoQZZh8AirnoNd9npArK hEop0zBrDe7OGHjj0kJOeSHrmAeSZ4793g74xW1pn+d6pRTRjiBZla3KBLcl0CT5HoTl 5UlUhYkqvKIfTYw4JYQfNyjJJboI8V88zCytWCx5I1rF/9pnoyQK1mPCqKAItXz9hPAN lM0NGCUaTv3DMz/On8r1rfdRgmFYDyS0Is9gYHSILfVPVVqi57ttnvvZaumygElxzuSj R8Cg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PuHsPXeR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-111671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y19-20020a631813000000b005e4a4aa2528si2207147pgl.48.2024.03.22.08.07.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 08:07:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PuHsPXeR; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-111671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CFAACB233B0 for ; Fri, 22 Mar 2024 15:02:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A35FA4D134; Fri, 22 Mar 2024 15:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PuHsPXeR" Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (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 A960E482F3 for ; Fri, 22 Mar 2024 15:02:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711119753; cv=none; b=XWgnjWOfyxerphVFXbf1oq4bDi3JQuXkhCF3YnFsB664rswMAMMg7OITzKyjza9lku5LV6OwGTOCozgivyLgYBVhbSWgkiVs6lRqtmKx79alv+xpAUyMT5nTmv5dkzITQOWd1ZXp2DssSuPTzIEhKvjuk4ZDCZUurNECsg/doQs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711119753; c=relaxed/simple; bh=13VYmmRjtYhc7yWBpuY9K29jKbTHtGh4LZSU9Bbvxl4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bwxwYeAVShrfkpFY/+fA7OXNW/FGIbU+n+I5xbRDAsyDwIEkewLaKahZEiFeGY2LvaJOV/aI6XM+8H3QbxYNXkaDG0LeRkyku2T29oBR9In/Z4HmC8riG03Yev+GgZ4csjMNi9Y+7PufTcpDjg4RyrF6uLC3w4iFp4R7XZdetbo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=PuHsPXeR; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a466e53f8c0so314181066b.1 for ; Fri, 22 Mar 2024 08:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711119750; x=1711724550; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=YYKS5KJg3lRASq82tox31NEtiC4E3JWUe9CPtzuJId4=; b=PuHsPXeRbn1WojIL2sxdMesvGbECylZQMjRaqfV5oUZhxJpDiVdRjyPAtTu/0RuPEX y1Tvmeshi1iOUh/vM83i5CPcZ12EC4U6oPQJr0g013pQaMBcaS39gdB9uDSf/UHaRCfB zr5qehxuvJVH+KRoRK9K+GoEd+e1//zzL8aVVxBySdFeWdWOe2w0SsfiZXYIguVBKAwN LA4IwEcMS+I3tenPF5XK9kfdOqaSbyi4/3Abv5AOGdR7gYJJt0uS19vF0wLlhrflXQcu I/U+4VYEfp67SS8BBoRX2vr7E8ZyCW5l9CAN5DtDJK3hYin/DhugZEUFqK1uKBexUMze GdAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711119750; x=1711724550; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YYKS5KJg3lRASq82tox31NEtiC4E3JWUe9CPtzuJId4=; b=fzMQNQTk3yECGYK5+YpeWxk9aZl7PEGubM0rY2HyAOxZSo8Dbp5szDAAUch2MqyRth hqe9MPjlRqSS8ZX8kCuCBeqKB1DLu+MEm2kdiWHMaR5nsKO0Cd6ShMifoF94NJy/4ICD i80EnvtKDxPYBfw9hyehB8AtUyHlLIC0O0lTuX/7NRsjgQVCFOarBS8IuX0bBN7txVvI TO3SFHGIMZXdboPWbeCa7EASndPfLL5w1MsQcHLUqk6d+GCaJpeLARajJZARZcfVxAfw PZ6+H823lm7Dzgz34feY5x5sBUbALtypIl85HWbb5/LJrAGjLkb2T+kvNMVbOhSt3Ywe knVA== X-Forwarded-Encrypted: i=1; AJvYcCUhLWOiJY4tdaDrKk4iBgFg/zUBGQlQtL2PqRobCp0GWBHDOK7kfS3Tu1RmIFXZEJohfGe7tzoqW3cjCKBuxfjKpm0IHcxjGG1CtOsN X-Gm-Message-State: AOJu0YzTZBQcu4v4XiXwB1+PDy7fxTA6gumhiFR6lmDt+ZhWsjahzqfQ aQIdHkZbTzolwuR/ClkLPYZXAjvvhPHFOBml4TBsLSKqooa5MtoaDC561XJnyJ8= X-Received: by 2002:a17:906:11d2:b0:a46:da84:471a with SMTP id o18-20020a17090611d200b00a46da84471amr1865858eja.63.1711119749877; Fri, 22 Mar 2024 08:02:29 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id s24-20020a170906169800b00a46aba003eesm1087947ejd.215.2024.03.22.08.02.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 08:02:29 -0700 (PDT) Message-ID: Date: Fri, 22 Mar 2024 16:02:23 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 3/4] dt-bindings: mmc: fsl-imx-esdhc: add NXP S32G3 support To: Wadim Mueller Cc: 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 , =?UTF-8?Q?Andreas_F=C3=A4rber?= , 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 References: <20240321154108.146223-1-wafgo01@gmail.com> <20240321154108.146223-4-wafgo01@gmail.com> <00174dc3-65a7-4a2e-b48d-a974336a3f18@linaro.org> <20240322094526.GA7097@bhlegrsu.conti.de> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bP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gsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240322094526.GA7097@bhlegrsu.conti.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/03/2024 10:45, Wadim Mueller wrote: > 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? Yes, you placed the same compatible in two separate places. It has two separate meanings. > > 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? Yes. Best regards, Krzysztof