Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp260052lqt; Thu, 6 Jun 2024 02:46:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDzI3WwD7CDgBG8cJKVVvTxqIR+OYe42thz/dtmSsMSxPKXIcZmPRu8oE8Dts8rYmgOlVGov4egP8ffp2kwSXJXCVsScnXC7bNX5UP0w== X-Google-Smtp-Source: AGHT+IG2r+kVR7MgugQGIcj4OQ2tWgddJKfZxUVGJM4xS1EL5POmi3yYQbF5/jkDN4mNR67wqf/1 X-Received: by 2002:a05:6a20:728f:b0:1b2:6c60:c109 with SMTP id adf61e73a8af0-1b2b6ff70f7mr5542972637.27.1717667181000; Thu, 06 Jun 2024 02:46:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717667180; cv=pass; d=google.com; s=arc-20160816; b=Gek2cIuLTEP/GSlDj6l51milnRjkjPVgKUe9P1yQrCbEEI/9r4X0SHStyjbYpfZzqM yV9ZrCdqxQU3+QxbMWoeK6evJcDalcQuLmqpXfrLaoJsQqyQFFt7KnjKPBZYPRp99Vc3 3F/xakBONpUaLu5ovGgwgBQwjh6K3QKhw51sx++7JIRgI/gB4D0nDGztdiNCNHIXMs0u i8sYSfAn9IVSdbHbja0sEs7rHl8PucuAih21HBDxluxOJAeypZ9x/owggdQISXvF4UKe VFzE4ookK/yECibhMPc8WCsavl5Tf1hdcvEomKgsyyfQL5Kq+uW/zn7jui79OGqHfUVU jcLQ== 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=Vs1gSr2gcN7YL6jwC97RJ5EF+Tcm7IMeKJzckbTjqSY=; fh=03d5mX2mQBHMV6Amfr1RtybHjgD5xczhcKBKkswaVac=; b=Y+HZeCvjjAbgGxwDlH2lmIdoW1P2jNnyPCPlwdvy0/q/eicPeUJk58CCujdZS6+lL9 hNUPwi6pir/9+2H0MAoGReY9AXXiYOhjNRziJx4RTZXx0TETZkDfC/YNUM4RZgIqgJOY JJlMB6wFw37KbN8ZOAZ6Mw/1qH/g0/IqAqQXPknqIuo4ec05ztztbFp6F3Pqdr4GABIC AxXkgsNkcBUUL9FsG2G4qxLqCPtoHks8T7vldxlO31qMqm7GHyLB25IxUYhrsOL+Oob0 J7mnPZVo5BGzezGC5R7gUSkhCEG1EOUdRJjuMxFFSCHLCsj4tXKBm4gdPP9B/gGOKS6R aJww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lPXw5OTu; 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-203960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203960-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f6bd823f00si8786395ad.598.2024.06.06.02.46.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:46:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lPXw5OTu; 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-203960-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203960-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3D8A7B2996F for ; Thu, 6 Jun 2024 09:17:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A22E513E3EA; Thu, 6 Jun 2024 09:12:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lPXw5OTu" Received: from mail-vk1-f170.google.com (mail-vk1-f170.google.com [209.85.221.170]) (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 4A2B113E035; Thu, 6 Jun 2024 09:12:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717665154; cv=none; b=ZG1TxfBw6fLOwwoFi5KkrVEmLbQyiaqj0AK0ZU8Sop9ehbYV0AqySYZDqFdmQBQQ2FuFnWvXE8kPXcNhUBe5QMwU1gz4U4J8cWpbs95J1ox+Ll5CVisf424U9kxCG9Muu9lEts0ukkz2vpMj5EF4pyS6KbjlrefZx816XMNSz+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717665154; c=relaxed/simple; bh=dDDQHCIrnaIoKGZa+oQXHQxgs/K97cc3WjBuqeuiQwQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=q7OokNALBXTbZJb8AqEaYmpG/10ptlx8C76vjTZW9k1tPZX+CZUslu26faG+KlH1IHs8wFcoR30q2fAv9oGVi8Rvqgeys09ataftAB8BmrNMxZLCUl8M8R26bY8+FNM5p9u/ya1TrFkKBVtwzzMYuyVy+brof8+Wzl4773bFlyA= 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=lPXw5OTu; arc=none smtp.client-ip=209.85.221.170 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-vk1-f170.google.com with SMTP id 71dfb90a1353d-4eb0f868f2aso236185e0c.3; Thu, 06 Jun 2024 02:12:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717665152; x=1718269952; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Vs1gSr2gcN7YL6jwC97RJ5EF+Tcm7IMeKJzckbTjqSY=; b=lPXw5OTuhYRFzEFz4L+CLKv+Pc/rOd1O6uQZOQCbzOcRkU0B0JSiLR+fXMwwEgD/Sk BrVqVUHX3NISeMQbJijMPtOTDBrC1BS/OUvILnDeXRxsshb9qS8uOs96s3aLGto8stlF sQY8u8deyltpIXG2AXXmaxt3HiY3i28aFONE1wygi2KG7hikJ/zjWmrqveiRrVP9M9s+ rcf8yAdvohy8XaS1MJgqqS8Z28HXobzzVj+nfnI5mNlepSaW7BOPFSO/h/bpJKGjMrD9 eOtDYxGZA1WepdlyyqlKjbpp6WeaeSGWaP0LcI4ilx2taDLzdSVwT4nSUs9KSIFzEd4u SGfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717665152; x=1718269952; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Vs1gSr2gcN7YL6jwC97RJ5EF+Tcm7IMeKJzckbTjqSY=; b=DSY5C5lp20SHloPPmp323TEJmp8QppbUY5dizOJcktJv+g4PUtEK7b8UtgiVxlSQpA Gz2WaxLiee4u+QbQRzk5k5K0Tm2zSVJXnIQ8kkCgkDN/TPP9ezmilQZ8ZSar+yj3IsAc QFWW8j4Y1CipPK/YCBy7k0xn8/h85kJ9C+yEmne8g3u1Zu00mfcp3GsQl7W+gMo/GWk/ 5la0rUkD5RP8GwOrsSBOLBqrYglMKCGK2RrsBi4kgDcbkGlohodgZPgRwgz3Felxsb+u r1AsMCJjOGfLXmGxqC68nL9YfliaR5MbDihUpOrXXg/VTGVNe0smmLoMQb+iwvu6ZZPN MLtQ== X-Forwarded-Encrypted: i=1; AJvYcCUFl5ShbDgXftkh5SXSJAm1MitMgofaQaHwbY7ASQEQ1a7+V9SmyFx1Imopdzx+AKYTEzvvdskXR5s87sD6XL/ERs/t2MYZA4TSEA/FWliqRuCpOjr9RMrKAjqXBHxSlEFkxCBDVuFlcrh1KNQzUxs44QACGVdoLxgeorIl1m++Gox/EuBrkjPTSo46tezSg2KywJjlPWtWzpB5TbLihNLewgLIIjDt X-Gm-Message-State: AOJu0YyYr8yBbYkhjFFJir9JkxqViPihn78YIQkvCiE+YdW+E8aiksKI K0k/1uCxr+zO+rLuXowLse+rWXzTjKZuFBKw2EnmvW7IKzZ2G4LJ7S1d5D76Y3tmeEHiynDsH8v VHlefYJRgEm+vJ1dvVaabgHYWxhnV4cP+KDU= X-Received: by 2002:a05:6122:a0a:b0:4e9:7e39:cc9f with SMTP id 71dfb90a1353d-4eb3a4a95c3mr6295283e0c.11.1717665150553; Thu, 06 Jun 2024 02:12:30 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240605074936.578687-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240605074936.578687-4-prabhakar.mahadev-lad.rj@bp.renesas.com> <20240606002646.GA3509352-robh@kernel.org> In-Reply-To: <20240606002646.GA3509352-robh@kernel.org> From: "Lad, Prabhakar" Date: Thu, 6 Jun 2024 10:12:04 +0100 Message-ID: Subject: Re: [RFC PATCH 3/4] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support To: Rob Herring Cc: Geert Uytterhoeven , Ulf Hansson , Krzysztof Kozlowski , Conor Dooley , Wolfram Sang , Liam Girdwood , Mark Brown , Magnus Damm , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Fabrizio Castro , Biju Das , Lad Prabhakar Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Rob, Thank you for the review. On Thu, Jun 6, 2024 at 1:26=E2=80=AFAM Rob Herring wrote: > > On Wed, Jun 05, 2024 at 08:49:35AM +0100, Prabhakar wrote: > > From: Lad Prabhakar > > > > The SD/MMC block on the RZ/V2H(P) ("R9A09G057") SoC is similar to that > > of the R-Car Gen3, but it has some differences: > > - HS400 is not supported. > > - It supports the SD_IOVS bit to control the IO voltage level. > > - It supports fixed address mode. > > > > To accommodate these differences, a SoC-specific 'renesas,sdhi-r9a09g05= 7' > > compatible string is added. > > > > A "vqmmc-r9a09g057-regulator" regulator object is added to handle the > > voltage level switch of the SD/MMC pins. > > > > Signed-off-by: Lad Prabhakar > > --- > > .../devicetree/bindings/mmc/renesas,sdhi.yaml | 20 ++++++++++++++++++- > > 1 file changed, 19 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml b/= Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml > > index 3d0e61e59856..154f5767cf03 100644 > > --- a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml > > +++ b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml > > @@ -18,6 +18,7 @@ properties: > > - renesas,sdhi-r7s9210 # SH-Mobile AG5 > > - renesas,sdhi-r8a73a4 # R-Mobile APE6 > > - renesas,sdhi-r8a7740 # R-Mobile A1 > > + - renesas,sdhi-r9a09g057 # RZ/V2H(P) > > - renesas,sdhi-sh73a0 # R-Mobile APE6 > > - items: > > - enum: > > @@ -118,7 +119,9 @@ allOf: > > properties: > > compatible: > > contains: > > - const: renesas,rzg2l-sdhi > > + enum: > > + - renesas,sdhi-r9a09g057 > > + - renesas,rzg2l-sdhi > > then: > > properties: > > clocks: > > @@ -204,6 +207,21 @@ allOf: > > sectioned off to be run by a separate second clock source to a= llow > > the main core clock to be turned off to save power. > > > > + - if: > > + properties: > > + compatible: > > + contains: > > + const: renesas,sdhi-r9a09g057 > > + then: > > + properties: > > + vqmmc-r9a09g057-regulator: > > The node is already conditional on the compatible, so why the chip name? > Then it doesn't work when the 2nd chip needs this. > Are you suggesting to use a generic name "vqmmc-regulator"? Currently depending on the compat value "vqmmc-r9a09g057-regulator" in the driver the corresponding OF data is populated. In future if a different chip needs a regulator which varies slightly to the r9a09g057 chip this will have to have a different OF data. Hence I added the chip name in the regulator. Cheers, Prabhakar