Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp235885rdb; Sat, 17 Feb 2024 06:26:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVLsBbE/fPyiaNK9EK+/Es6ZfedORo5tjQSbqYtdtPjLgRF0DChakh7BVDr9q2831yqrF4qbDreR4resYD/E8tmnHjMPfWuTCWdzrSHRA== X-Google-Smtp-Source: AGHT+IHf13V7VJK5PEBW4sXKrsqogc7TmpPQ6rivdMcJCx94qUeayH1ujhZAB4fGyG2ZNhXIU9Vh X-Received: by 2002:a05:6a20:9c8d:b0:1a0:77ef:f203 with SMTP id mj13-20020a056a209c8d00b001a077eff203mr9569249pzb.6.1708179960991; Sat, 17 Feb 2024 06:26:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708179960; cv=pass; d=google.com; s=arc-20160816; b=xbiTGdoTp32o5UJ7K2ZzFhQbCPKKODtY73nZl0jGSlI8OShheUAegAI0+K4OMfLCqa gkdQI7OO0ICno/w3kfKMlzbSk+LhwylVFmBU4IjNze2E9fRSDlLK3z3Ut3lF66996Er7 5ye1eu2Tc6lVWxW+YZrBuFueTLF6uE/M21cSWEnI8RY8vN2T2LWdmuqIcFagjvtTZ+0y cy6USMot7jrlJzM2ejgEiaVMFMV+8WoJSpG/7By88mbjcxXy+nAbkVe8x0o0AgPvRInj WqP5+idFIuzCqogUZZyVXo6pO0bEIy/yq2/KQPfbzcB/z5FstcI9RPnG3r/VlVlAIpKH BOLw== 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=fF5uDWeurLttXmHaU9CD+Ktxf1MKzf5HJ8Edg4i9z9c=; fh=D/8swZ1CiQdT5+4ThrLJq3iPNf/k2YUbYrAtwwjuSNM=; b=hz7eMN25UweeOo7YUKCxZZWRlovhrkhKF73V1tF4D0UIhuTTdwn/HcOZj/wjeFY5Fa 1zV6FNEPG2BZoCmXTHmWVAAUOPHU2mKje3trMCVWGpAZ7CPi1266gPyoxy4JU9xKa1wU r6GG1mLbJaQiPzzn8ZrFHOPViRFT5kw0X2lW4Bw2TqjAxKXhCk9v9XCJ0E35WNQfmrec 2QcO1UZUNa9C2Dn6I0eXfFBCAQzVSb5tfGvGtzXH2A7Z8J6TAfnizVHhq0G1XA1vtJeO DQIavhaA5JI/fHhfwDhgLSuX+LZTzgE9zzlsvVs7xn5eqKd54Hn3fbHu4sM8J/+co1Ge 6mLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Da2zZdvZ; 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-69902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69902-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. [147.75.48.161]) by mx.google.com with ESMTPS id gt3-20020a17090af2c300b002955c8628ecsi1664082pjb.31.2024.02.17.06.26.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 06:26:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69902-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=@linaro.org header.s=google header.b=Da2zZdvZ; 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-69902-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69902-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 6E8B6B21B01 for ; Sat, 17 Feb 2024 14:25:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01E4E7B3DC; Sat, 17 Feb 2024 14:25:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Da2zZdvZ" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.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 1E89522094 for ; Sat, 17 Feb 2024 14:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708179935; cv=none; b=afX1CK2gIeb9P+k9QpIIPOBuqRx+k+G3hLz6JSnUNIuJNfyesS583ZHFJG1jeeF96Pkui25LOpvpxU6wuoY/Vp31Bj5IWqx70RINaq3HWUvhZMsFPFqv6p38lfnGouEs88K99eLwae8EDwBHhGmLvus1pvzuO1gSvMPUh2oHjPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708179935; c=relaxed/simple; bh=LROwsAATd5dVSDId910ZrwLoi4+UrXOjNRDAAiRmhCo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=FeGSYIEyvE9c6o59pOcUJS7HKwZqm62zW7hZeGl9LRUd15RA9iFSFkI7aZPeB1atxoOvqNhYRcQamKlVAN/HZxjHtSDTsPu/s0WxUzDxXbIIN6vcbcqeQ7MIwLjFOm6umeLWnviTC2aA/3TaK80s4MdCBniHhQW85etKlhKQ2Ak= 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=Da2zZdvZ; arc=none smtp.client-ip=209.85.208.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-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-563c2b2bddbso3385564a12.1 for ; Sat, 17 Feb 2024 06:25:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708179932; x=1708784732; 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=fF5uDWeurLttXmHaU9CD+Ktxf1MKzf5HJ8Edg4i9z9c=; b=Da2zZdvZb5Nf+Wl+z1sHk/S+6SUKV2LFTNl/9epfPi7sZD4eGy0n2SIT1317Hj91TR 12GxSc5QKYnbhqNhw/0RV5zJNkYqeS6Q0V1gFtbllO0MlvKzYTasuqJVoMMkCIRgv5kf A8sNRltHFVLedrb8VkHd8QMydTaBPUBGqj578971kwTcp/rVFSzurFfEtQ8okNw1fCqw j3oCb0T3m9FNvxoDVr3ec2gBo5weL0o0Nh+z2S7QKb2Lj0RqdgaRrykNWYchCV/lmziU BOBsVViIZIceGliPPlOwUJQvHCxUpKMN6t4nKzXs0N3KJ6BcdnlB1zgpf78MZnqkAx2+ lM6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708179932; x=1708784732; 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=fF5uDWeurLttXmHaU9CD+Ktxf1MKzf5HJ8Edg4i9z9c=; b=HhnN8LM7JEd6HmVn2e1TIE3sZ1vp4VV/QhPKoO33NjEpoG6HynpK48TFgAkssRsZNr 2cvU7nJ1z3riQYwJTco49he0NOeVtK74wUxYAn0BgQQzsPIyUpzfFaY7XfYYOGueYrp3 2p47BNETZQOqotgb5fIdFrGa2BBJfuUtDKYd+6PWvRWHc/UY8yldH2CayZUISwD6Vq1o 8YMyXVpgFndkNpZI6x2vYM40AI27nozzMcwWYzaw7RxfSrW4JLPXv6n5LGxagjnSjTFu Bjl+iCIPr5UUoGfR9qdAoWaodd7Sz69FflPlGp3LEoWwWI/Au7Sf+D+/hZIw/w4TW1rJ HgqQ== X-Forwarded-Encrypted: i=1; AJvYcCVbhqixd9u0AzdgOf0hAahyNkXawlPz4/2+7bqYhQgqnVO6VgTNKWTXHYG+22DQORfe0EqjBKwpJsetxNeAJtODR+8Fj1EwseaKQDA0 X-Gm-Message-State: AOJu0YxVbqAWfNvfBLfxvLrTbE59cFubv3GbiptkQce+dUHSJ/WOAe12 gF+5mtTo/v84MFDme+06jXt41YR32oXhfLLdSuIKfg0vbl256GgKwFEUC1sYNNM= X-Received: by 2002:a17:906:d8b4:b0:a3d:7d6b:612e with SMTP id qc20-20020a170906d8b400b00a3d7d6b612emr5275743ejb.23.1708179932427; Sat, 17 Feb 2024 06:25:32 -0800 (PST) Received: from [192.168.0.22] ([78.10.207.130]) by smtp.gmail.com with ESMTPSA id ss3-20020a170907c00300b00a3d32341280sm1011435ejc.181.2024.02.17.06.25.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Feb 2024 06:25:31 -0800 (PST) Message-ID: Date: Sat, 17 Feb 2024 15:25:30 +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 , Rob Herring 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 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/RjI2AnjIq5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QcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. Best regards, Krzysztof