Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp237022lqs; Mon, 4 Mar 2024 23:43:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVI1tAe3KCL366jRYbC4WmTrE5fMJ7dwzn270nqIOziQ29NKzIDK8lrRJjRN2OWj/xwU9ij3zy7QXTKg/2jx8cDMyFZoNRrj/yMwd0avA== X-Google-Smtp-Source: AGHT+IHyPnSANAWxH8V0f6PcPNvvMAyA3ZVjL4xVTSEUByv2UROkSqxRzpN9GcIgWbW+WNyd4uzi X-Received: by 2002:a17:906:1c81:b0:a45:98f3:997e with SMTP id g1-20020a1709061c8100b00a4598f3997emr1373262ejh.7.1709624600634; Mon, 04 Mar 2024 23:43:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709624600; cv=pass; d=google.com; s=arc-20160816; b=rWF9v5i9q6hneEVWBX0WeIx2BB/lSuF5YYv17voW2/llDll0ewiq3KER2wQKQfoZAp FgdVuti77jnaaFz6zSjS5levmk+V++mb7CqqJaqIAI3vr9QTR4HRFZbxdQhatIvH9eX0 v+4ukNptLxCcLoiRbMQww0gAFvU0d8qqEOWPbNZjBbT/wTUTZ3uZYLKv7JuxI4nOFfzV NAg4d9Mzn73QkQXmqWQ/MGDxW4fLrby3Egyo1AcQvGuT1l098k17drTC8jZR0ctTbmXO 7OaUQ2gXhGKQXQ5jNdDYRZ7a/sueR/YEjTFMMawZW7sAfzKgswkHQSVHma4L/UJsAedw KK/g== 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:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=AlDJ7kh3O0zrMMWsz44HvinNJM2mBd0ElOmtZs1RiZU=; fh=cTvTMlacgFMwD01YEvhTCRW9xpfadnXEIdYBlseKNTo=; b=XIkCh/yNWggPxv5P5AgCCOdmf4z7RYHNyml3Apxfb2Jy+MvZWwML77QmUSb7w90pxS 4KgZsq6/orHGLiL4+lFY274nnBORbUhBMXYA3z+Ccyh73ueKUbG1WipQjmCpyJQsjR0d t+xJ3gd8VNKWhYQceHu1A9ODgStaY3e9enmzspwYrWZ/83l3NG//DSbtdDlEhrKrvIUt iCEXVnqXkNHk8wnNPE7bJK5U7tsBTANLqe31MqQI2Tm4MVzp07AK7CnnXFas92FegCyY 9xWvL2hJbV/Mtf2a0Cqr43bQeQbSTOwME8FLIIzZA3PhOg4LZ9aYV4V1z6nqhBWifIVk /5UA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HgQuaLYh; 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-91826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91826-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m21-20020a170906581500b00a3ef81bc5d7si4926008ejq.770.2024.03.04.23.43.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 23:43:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HgQuaLYh; 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-91826-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91826-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0FD1C1F21FE4 for ; Tue, 5 Mar 2024 07:43:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C7917E78B; Tue, 5 Mar 2024 07:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HgQuaLYh" Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (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 40E537E770 for ; Tue, 5 Mar 2024 07:43:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709624590; cv=none; b=oTuYXY5MEFEeeULJJmJ9hVIOdxU4EEWoIhlR44Mp/rpNWesySuTIYICwD5kCo4f5rZ2fvi1UvHSaBXPqm+3X3++WfJWZiguUgo2CGjSyr1Y/EtxsjnQwTv8H2nzvN3Lv69rzvH+Qh48vqjEoJ/HGfgJtwmvafahLvuOKbhxJcNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709624590; c=relaxed/simple; bh=XzAMOJp2cnaLDfXMCu21thXIzE0KzbK3HQKIo/jV4Wc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YG0fnxqVTk//Jo23kUBHQfHiXysxsGrmagUG4i3908AFitQBYFqsxyaiNpyJc/874toWeLQBGXzqnTta08SuFyJYU1D3KEzURipcLKtZ6YDUn+oTVVcB+B6vw7nsJ8ucrUE3/jXTwYpJaZisqqGETX8Rt497EE9WLWKkAbmiFNc= 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=HgQuaLYh; arc=none smtp.client-ip=209.85.218.50 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-f50.google.com with SMTP id a640c23a62f3a-a456ab934eeso214188066b.0 for ; Mon, 04 Mar 2024 23:43:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709624586; x=1710229386; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AlDJ7kh3O0zrMMWsz44HvinNJM2mBd0ElOmtZs1RiZU=; b=HgQuaLYh2mQ/RXefX1ZeZQMPAQbo3e/KZAwmynh3wtqHos5c7zXSGR66uFEZv4oN7x mEJfDr9YuIHbt+d1v54RXA6jyexKAfVTYSkfYwwSIOgCOXyk0ksoCPiqLVBmzT88igm/ WeX6gvxqOpO91MH85eb/CeiaItr+vyS+9rItK1tBwCE51RJwfr1+r3U/6H2naHgMgS7W UKDXvvLI5/U8ouJAaF2Qx/ekAgIp6lOZ/yU56DdhT5zXarGYecslRhkFfA1Pewe6e+vF q0AMlOkJH1aKc+adBm5KPuwoFdIHh1KFLr6bWRiXsY048G4WkjP1MFNPVFNpFxbxt8+v efbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709624586; x=1710229386; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AlDJ7kh3O0zrMMWsz44HvinNJM2mBd0ElOmtZs1RiZU=; b=p4YJPZzq1sKE/tyuuJO87y6/0itBuzNw3OpctJYh3GLEJW4f9hD/5ZAPKDEvTSTzpl fVJe0CAiYswMV9N9oksrPD4vNAcQU0/LTpa1WLD52uJLy+qS5oukkm8qlM9MiGt5pPMW RFMbJ1RzCSM+cXkaFHcu+OEvH/cd8dxW/TP9RlMyQNKDof+hjcThVKfFiK2xx7iPLQoS 8NnLG8DfXWgXOMZj8jZkOj6Hn970ggP1xV8pPJZ4n7tH9v33pkjhmACJCGXqtaiMdNfl xTbZHy2dkq9n17rJ6pu7isw93QniC0jBtb36uhw0VxStsaHJc368hFWsVItUWw8EEN7p 2Dxg== X-Forwarded-Encrypted: i=1; AJvYcCVDMfYrV0KJljorG7w0f2t2SI3bIdQUonyi2NgJl6s4QUunTJNA7/DWnWmKJQUTfNEelqRYWfLzfbRq/21WhXGpsi/tcft57oc2023X X-Gm-Message-State: AOJu0Yylj+90OblVlLzyA8Im4inekFtahuHh5rhGyqzyCapRpSYAJxKj ZH+uQZcUKA3i20kBv4Ntu3FvcDHOqt7GrvN1FV7KzlQCaodRthG1zTNuRZWXdFw= X-Received: by 2002:a17:906:1cc2:b0:a44:4578:c79d with SMTP id i2-20020a1709061cc200b00a444578c79dmr6044633ejh.4.1709624586499; Mon, 04 Mar 2024 23:43:06 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id jw11-20020a170906e94b00b00a455d78be5bsm1763376ejb.9.2024.03.04.23.43.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Mar 2024 23:43:06 -0800 (PST) Message-ID: <48902771-5d3b-448a-8a74-ac18fb4f1a86@linaro.org> Date: Tue, 5 Mar 2024 08:43:03 +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 2/4] dt-bindings: hwinfo: ti,k3-socinfo: Add nvmem-cells Content-Language: en-US To: Markus Schneider-Pargmann Cc: Rob Herring , 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 References: <20240206143711.2410135-1-msp@baylibre.com> <20240206143711.2410135-3-msp@baylibre.com> <20240206184305.GA1875492-robh@kernel.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/B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+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/03/2024 11:36, Markus Schneider-Pargmann wrote: > Hi, > > On Sat, Feb 17, 2024 at 03:25:30PM +0100, Krzysztof Kozlowski wrote: >> On 14/02/2024 10:31, Markus Schneider-Pargmann wrote: >>> Hi Rob, >>> >>> On Tue, Feb 06, 2024 at 06:43:05PM +0000, Rob Herring wrote: >>>> 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. >>> >>> Thanks, it is not entirely clear to me how I could go forward with this? >>> Are you suggesting to use a different compatible? Or is it something >>> else I could do to proceed with this conversion? >> >> What you claim now, is that you have one device with entirely different >> interfaces and programming model. So either this is not the same device >> or you just wrote bindings to whatever you have in driver. >> >> Nothing in commit msg explains this. >> >> What you should do? Depends. If you just write bindings for driver, then >> stop. It's a NAK. Instead write bindings for hardware. >> >> If the first choice, just the hardware is somehow like this, then >> explain in commit msg and device description, how this device can be >> connected over other bus, not MMIO. You can draw some schematics in >> commit msg explaining architecture etc. > > Sorry the information provided in the commit message is not very clear. > > The basic access to the registes is still MMIO. nvmem is used to have a > better abstraction and cleaner description of the hardware. > > Currently most of the data is exported using the parent syscon device. > The relevant data is read-only and contained in a single register with > offset 0x14: > - Chip variant > - Chip part number > - Chip manufacturer > > There are more read-only registers in this section of address space. > These are relevant to other components as they define the operating > points for example. For the OPP table relevant are chip variant and chip > speed (which is in a different register). > > Instead of devices refering to this whole register range of 0x20000 in Whaaaaat? > size, I would like to introduce this nvmem abstraction in between that > describes the information and can directly be referenced by the devices > that depend on it. In this case the above mentioned register with offset > 0x14 is instead described as nvmem-layout like this: > > nvmem-layout { > compatible = "fixed-layout"; > #address-cells = <1>; > #size-cells = <1>; > > chip_manufacturer: jtagidmfg@14 { > reg = <0x14 0x2>; > bits = <1 11>; > }; > > chip_partno: jtagidpartno@15 { > reg = <0x15 0x3>; > bits = <4 16>; > }; > > chip_variant: jtagidvariant@17 { > reg = <0x17 0x1>; > bits = <4 4>; > }; > > chip_speed: jtaguseridspeed@18 { > reg = <0x18 0x4>; > bits = <6 5>; > }; > > The underlying registers are still the same but they are not hidden > by the syscon phandles anymore. > > The device that consumes this data would now use > > nvmem-cells = <&chip_variant>, <&chip_speed>; > nvmem-cell-names = "chipvariant", "chipspeed"; > > instead of > > syscon = <&wkup_conf>; syscon allows you this as well - via phandle arguments. nvmem is for non-volatile memory, like OCOTP and eFUSE. This is not for accessing regular MMIO registers of system-controller, regardless whether they are read-only or not (regmap handles this nicely, BTW). Although probably Apple efuses and few others can confuse here. It still looks like you convert regular system-controller block into nvmem, because you prefer that Linux driver abstraction... Best regards, Krzysztof