Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3227714rdb; Tue, 6 Feb 2024 10:43:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0irtsMGzIxI3F1Zw7amsKnRHBN10AhjGS2pveuQ6zPd3gHAMyWkwyM4UwAXtBhL7V/6Zp X-Received: by 2002:a05:620a:460f:b0:785:6585:bd98 with SMTP id br15-20020a05620a460f00b007856585bd98mr4383642qkb.4.1707245008027; Tue, 06 Feb 2024 10:43:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707245008; cv=pass; d=google.com; s=arc-20160816; b=Ga+H+04lSIR4dhst5bTzobyfY4tR3s0uNysyuxdoLpOR2+Xq39wNxDwgwwyCcVdHwJ 0d91VEHnrDsUW++kmc2crzQJKcfIfIpGp4Dt6j0HwRsG07hSeF/dXEUEJfOjMSQDQo8g rwc9SP/qXKDfrf2abT/cZg8/vcRxF5f5RoDf69AQUzuo7mdkeukjaWKs3KY48O7rXTw2 7USYjRHI3MF3aOW+hG/rQldBxgVUi+N1VxqBth/ifKNohd1BDmtBN5JY9m0l5BlUsuMJ lLGjdvE26UIpR1Z4DsLy8yh2+HufRpVwh+qYx5BbPlpl7IgnPPcol4HsvY8ofUfvNokC 5h+A== 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:from:date:dkim-signature; bh=5MVQlLWiXRtMOaHs5A3I5y3Mxcc7wvCBulr/07zcQyg=; fh=qa5DILLyCA/V3/0bZgIdrDJugtQH6zswy6cQyl3gBlc=; b=qcAJl7+tW5Al82+JDejy4kHL5lPGht3/cRuwOztxO91+OMQMHFlxhqdWSqTzFXoMrt 8w7V1B2KNnUR0I4uL7wnvjfAfrTAY60YIeQSY31EkDml6KV6GHVHe6TUYOr9hYce6r+D RVM308FoTQZHbMxSxNkcN38YQupNe9gIEHpko3QaCCxWYvW1JsqR0JOPsedAp+7K2lhY EnFGzi8tf/95mkp4WirU+lm85hUtRa9ziwvI2axS7rApaDSHqcIbqRyc/YnmuiqwWv6r ldaMx7HfoSY7A6+3HmARNCdzEBofn6W3SAcvdnJCB9hAJ1tRLLNjkPXRFAfQMNyCKZT1 pl9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YYatzYeT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCVuhoMcU4vJqj2teCMyexTFi+T+2M7lx3HjZ80GUIlfwCvZkMF/Qu+WEZjYO2b6VQMcIxPaEnwtRdH48HtL/fD6emcOzpjbf0X/1zzvCA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bj17-20020a05620a191100b007833ac2b003si3237050qkb.378.2024.02.06.10.43.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 10:43:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55468-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=@kernel.org header.s=k20201202 header.b=YYatzYeT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-55468-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55468-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C6B5C1C22FE5 for ; Tue, 6 Feb 2024 18:43:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57585134D2; Tue, 6 Feb 2024 18:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YYatzYeT" 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 78FB7DDCF; Tue, 6 Feb 2024 18:43:09 +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=1707244989; cv=none; b=Z3aRHfm1lZyonW1y7MPLev6Mmp+ee5QZWPpGqYSDuIhoroCsjvajOHVJFgd/f4dk99HPxFknsSAc48ju05dl1MsiEcInopvA+cAi7FbGaUxtjXfg4bkX8XeeZalDmiL2Ajz0atA/Tuw11DzwH20otnEEy0x+A8aPNs3YyzDKtjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707244989; c=relaxed/simple; bh=b8iiNmOxD0YSZRAXkjUpo5Bj7K1mUidd9Bi4uo8nVYE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ptcgRHgMc4J74WgEtKi7Rl1pehq/N+C/6wdjgSfvGNCdSg00WPt0tzDNlwnNrE8uxzJihs2AU33EctHr98PUVP5wpCeMnNu0TNq6SzHSoB5jOh1UKPSIS6CClAjSReXXMokF1vkkaF6YEntyf9cZSmOh5wVBnPwqOhQFwNqcXzg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YYatzYeT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1E06C433C7; Tue, 6 Feb 2024 18:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707244989; bh=b8iiNmOxD0YSZRAXkjUpo5Bj7K1mUidd9Bi4uo8nVYE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YYatzYeTjSOJMl3yYbLE926+PErs/nE/D8+JB+OZLPPymTr2qQp0fE8/NfA1Kkq7p 6B6Ok33LCm9VU/Y/g+tz4MZoDf9IAH2hTq38poE/STBvgOKXRbpeZHlqXGuxlezhhq 3XM6jO0cnIjaXypc2XERjyS3qlEB0rJ17M7o/pGbbm1DaDoPLekeABJUqXaqeQjbD9 Heux0j0VHAvbGpDtWI2dw6gxtvnHzjwp1PcQP69q5zo5nT6lqYLbTTaVbW8G0KCck0 qXPRimIzR8CWO7g+7yTnbO5Q0rCjjd4CvnQsaUmMAm9tKQsAAeqAPpPAWgMSZR7EhG jwjRU4jop5E3g== Date: Tue, 6 Feb 2024 18:43:05 +0000 From: Rob Herring To: Markus Schneider-Pargmann Cc: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , Santosh Shilimkar , Andrew Davis , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] dt-bindings: hwinfo: ti,k3-socinfo: Add nvmem-cells Message-ID: <20240206184305.GA1875492-robh@kernel.org> References: <20240206143711.2410135-1-msp@baylibre.com> <20240206143711.2410135-3-msp@baylibre.com> 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: <20240206143711.2410135-3-msp@baylibre.com> On Tue, Feb 06, 2024 at 03:37:09PM +0100, Markus Schneider-Pargmann wrote: > The information k3-socinfo requires is stored in an efuse area. This > area is required by other devices/drivers as well, so using nvmem-cells > can be a cleaner way to describe which information are used. > > If nvmem-cells are supplied, the address range is not required. > Cells chipvariant, chippartno and chipmanufacturer are introduced to > cover all required information. > > Signed-off-by: Markus Schneider-Pargmann > Reviewed-by: Andrew Davis > --- > .../bindings/hwinfo/ti,k3-socinfo.yaml | 23 ++++++++++++++++++- > 1 file changed, 22 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/hwinfo/ti,k3-socinfo.yaml b/Documentation/devicetree/bindings/hwinfo/ti,k3-socinfo.yaml > index dada28b47ea0..f085b7275b7d 100644 > --- a/Documentation/devicetree/bindings/hwinfo/ti,k3-socinfo.yaml > +++ b/Documentation/devicetree/bindings/hwinfo/ti,k3-socinfo.yaml > @@ -26,9 +26,24 @@ properties: > reg: > maxItems: 1 > > + nvmem-cells: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + > + nvmem-cell-names: > + items: > + - const: chipvariant > + - const: chippartno > + - const: chipmanufacturer > + > required: > - compatible > - - reg > + > +oneOf: > + - required: > + - reg > + - required: > + - nvmem-cells > + - nvmem-cell-names > > additionalProperties: false > > @@ -38,3 +53,9 @@ examples: > compatible = "ti,am654-chipid"; > reg = <0x43000014 0x4>; > }; > + - | > + chipid: chipid@14 { > + compatible = "ti,am654-chipid"; This isn't compatible if you have a completely different way to access it. > + nvmem-cells = <&chip_variant>, <&chip_partno>, <&chip_manufacturer>; > + nvmem-cell-names = "chipvariant", "chippartno", "chipmanufacturer"; > + }; > -- > 2.43.0 >