Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp392638lqs; Thu, 13 Jun 2024 13:08:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr2c0R04vWaS3wk5hlK3RV1mUjWG0l/YpIYI77MzihYVDbwFXTyOPOw0VH2KbnRrJEdlZORtUZFAAJpjSXe8kEfpymOnAYrr682+W4AA== X-Google-Smtp-Source: AGHT+IFJTkuF4YL+eCQDrgGMg9aCAXchRie7mxK+mlx5CwC8SZmjvPjlmLXgAcHfp2Cdi/9tBF/5 X-Received: by 2002:a17:902:e5c8:b0:1f7:4ff:d03 with SMTP id d9443c01a7336-1f862a0af57mr6940705ad.67.1718309299084; Thu, 13 Jun 2024 13:08:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718309299; cv=pass; d=google.com; s=arc-20160816; b=yHDI3ZaTD5GoeejSgt3IkAnavXBQF29Ls/hlznEBAKOZZhak2R5EAMDJRoJAuM5Z54 UJWl3GWV799apyNYfooXnrvpz7wnSm976yJJwWzs7JS6e709vkqgAdCgbPwJTbdUmSLv 7sJJJUMG74PKPHz7rJVT86ptcE8FOfiHk4/mNf1XUbObT3vv52BbM70oZ2hebiSPVoMp QebY8IiChI5swjnKij4dmGf3VSgvtDnvN44HXHkJ011HARtOZBKjDqUAHy0k9kI62mxt 3eT/AVsgqF8ecEPMofOoVGGAwgU/zb6TeO5pzU6fO+Z0w5KY/SNIQI4QhQIeaoXxz+5V waLA== 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=BogF9nI9mdQ4Yf3OJb0dTYQ8tCsJvpMMjSk/cieXopo=; fh=E11wxiLD46I8t3uaRwdifOHjBQI11rp49LGZe9fC834=; b=zcGG/XDVH1HZlQUcgVpfuyujkz6LOZv7xEjkP/x9Bbt+f8FrVMOpRaWw6LayNjQOA4 i4BE9xeACAbB62jMAHEdBbN2pwV3uWTGUmJysmLDKNyFslmQUExdOkkR5mfJAJ9IQxUe 1RNYa9E41AahNE4qxhr18sSaszYMf7/N3IYiAVlBTuzntQrAKMVsr6ghO6BCEmSu07Xn 3TJa0wDNIl1rQb5bWm8249AEbmqpuesuPqlYyz1AFAGgt9Xe7r1SHERqNNc+9iMf5r9Q ea8ZDXJ0qF6wDQGF8KoAyDPr5bRCR9fC/AdJJnHumb01QFLUo4tALP1ZS4bUpiz0gKqr MRJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DlEuq7k7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213967-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213967-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f855effc3asi19525035ad.484.2024.06.13.13.08.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 13:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213967-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DlEuq7k7; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213967-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213967-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 0565A283193 for ; Thu, 13 Jun 2024 20:07:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86419137756; Thu, 13 Jun 2024 20:06:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DlEuq7k7" 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 9571657C8D; Thu, 13 Jun 2024 20:06:58 +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=1718309218; cv=none; b=t9IDmMw9zFJEklXjxl6W4GlGnFR+B8uHAAHZn0R4dkx5p/qFQRXbosN0cU3wAA0bk8vCaWA1x+moEc+OxX/qXS9Mqki+PhnQXKoZ75aj/u6fgU68Z10oEKccmB5mulp5g9tdAOZvQAhH3nuuwSSnmD///iz+wX1Uwv4j6Ovzhss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718309218; c=relaxed/simple; bh=k7uhUnd2YjV9SjYh5H4FEETcIbU38E9IRN7qo9tzQak=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=ohPbWdsKRmH8cqvbKD2jwGOixTeOZtYNNn3yuNCbbEKM9O2T3iu6rs7jK8jyETQX7NBLJdEVyutTdJdvxp7FA8U/ENbtseckfGiYoaehU1VUvt55Is3fh+in6NGidkY0JBsMxBopwOhB/QFt0uhA17R0y58ddnWXius5CerfRsQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DlEuq7k7; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B8A1C4AF1D; Thu, 13 Jun 2024 20:06:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718309218; bh=k7uhUnd2YjV9SjYh5H4FEETcIbU38E9IRN7qo9tzQak=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DlEuq7k7xrWfF+/uNxHPvjM8TTeMBhwxJQ8nyfU7Qt4wrrLUOPT8f7o2SJUbi+lXW umpOfL7+joOMEVeowV2j/m+wTJmeSdBV9zubEgsL9wLZxaJJPPIF84ttDeorkEWHHh oakBQMHx+ZsgzZRPETNoukfAl/W+MX7QonMTUtKHkU9QhoTEy7/+e3AJUMxHfGgBID oX8qBbkBFZG0R4awJ9Gczy0UGewwkhvTqZsjwv1oQc6N6WbUwg+180FaME/yKmIh2u 3igJcS9QrhVLvmDvQ0DhrIO1E150txoTgq2NoCGlF6E2mMnVVd3ChnFQwxCVlu5Bcn a0psAPDI0+Aeg== Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2ebe785b234so13847661fa.1; Thu, 13 Jun 2024 13:06:58 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCVyETfAYDEsJr879ZJqipkOGD6JggVww8VXcOT3tQv2gYpitVeJ2IZr93VHoXUn9CjDCI156OomVXG9DbR2neN3AOxdUTYZ+ZuglL654LW0cZcUQJnY821Ejh98mYrUm6eM06nHU4W78M0kRXJ1AlIynnMe/hx/SwQMz9tC4OI5/FkFhqhcqiw5ktkACJwpbEbgDeyIAbOU7/4W/HJu9JZVclELpxKA X-Gm-Message-State: AOJu0YzgSc349G/OamnWNNY/ZmjOgTnERRbnTc/+oJVnOt52ZAbIoVV0 3rdX590FuF+2xhHobKcSgveZZjozzoDb6YIM275Xw3E+hD9H9X4kAePYbOxjQc/piP4cc8jzmgO PHMZr7bg31Xj9ySoNiz2vvMHUQw== X-Received: by 2002:a2e:9dda:0:b0:2e1:2169:a5cc with SMTP id 38308e7fff4ca-2ec0e46d9e8mr5397851fa.15.1718309216375; Thu, 13 Jun 2024 13:06:56 -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: From: Rob Herring Date: Thu, 13 Jun 2024 14:06:43 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 3/4] dt-bindings: mmc: renesas,sdhi: Document RZ/V2H(P) support To: "Lad, Prabhakar" 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 On Thu, Jun 6, 2024 at 3:12=E2=80=AFAM Lad, Prabhakar wrote: > > Hi Rob, > > Thank you for the review. > > On Thu, Jun 6, 2024 at 1:26=E2=80=AFAM Rob Herring wrot= e: > > > > 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 tha= t > > > 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-r9a09g= 057' > > > 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= allow > > > 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"? Yes, but "regulator-vqmmc" or just "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. Yes, compatible values distinguish different chips, not node names. Rob