Message ID | 20240201172224.574238-2-alexey.klimov@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-48581-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2719:b0:106:209c:c626 with SMTP id hl25csp314962dyb; Thu, 1 Feb 2024 09:24:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IH7k+TlVBC/ciG+H55S23tdjVcLM0nTgnJ+wmQ7lQviLHgO7/fR+w03H+7ssT9kJgKeOtR+ X-Received: by 2002:a05:6a00:2d01:b0:6dd:8211:9ff0 with SMTP id fa1-20020a056a002d0100b006dd82119ff0mr6818235pfb.18.1706808276784; Thu, 01 Feb 2024 09:24:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706808276; cv=pass; d=google.com; s=arc-20160816; b=zuB7IsOqeoSydtg0HMvfgXBu2V5VxZCW3Vcn8tBH1ZYTw6SISWCsLPKOCavcIcfKBM WetmXpGFqZxd21V7kibKzBVAb8g1kMQ55BIp+U6DXmRwQ/7SWeq6xOBitQEDrripNroL G5YRjk3yBifQKxUFMSHEjUYUQT+oa1Lygy4UwcxiKs1Pl2ZiUyesVR0qD70CPg+JH6oo 2d9SBgwoDlwgo9/iJ06nt+MWstMqjTzVpvgmdLTGBgM1/iHL2tFxpYjhNJf3dc8+4i4c 7VDjSGA0otKMWm7roVn5v0PShRb9bAhHgr3QZIFykq1j0Y2nc9eb0TNKC2s6L5EykFpv clCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=oqglFOjWZ32x4zOs0EjnPV29zDu0VG4eHKNa8brIj7Y=; fh=O2pXOTeFcr2A9sjJgCaQIOol4QqGB6l/s3va5tptriI=; b=TfEdNqqZ418JCQed1100maeSASf/yJSqPyeaM8rZdJHujkftqWrhNd/qUYYI1QK3sd B/LB4QVaTRHgjbn5Z2LQtQuhqiNrm4dpO10U/gwQavKYGmcgmVcenUPRI+jSUwEMFMee GfdEjFpPqgAlHD5T5afhmCv76AVQNn8B/mUND1NYjWnp+D25qq9xb/1SwppT9b7ObhD1 ciCBAmEGMcjqEWRKwhXrPm3FOoi8W5+8zf0sjebQAq2wetdtUD3w92tRevFEAe3ev0CR lGPAWAcaJIMUFsHrR4dH02tT6F1bRCvtqibEHctWoQeBFYZfIsKi+YNlaME82ADdujMb yrVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qYLvcazJ; 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-48581-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48581-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWJAI7qR2qj5Kn6v1LvwHO+UnCQDbSTByHhDkppsQb0fo5hCFQ+NKBcwgj7wxMmgsVc84tCOGFalN5nvMCVfdOYfM9/pA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e19-20020aa78c53000000b006ddd3208911si12092174pfd.155.2024.02.01.09.24.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:24:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48581-ouuuleilei=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=@linaro.org header.s=google header.b=qYLvcazJ; 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-48581-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48581-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3985729342A for <ouuuleilei@gmail.com>; Thu, 1 Feb 2024 17:23:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED2676306C; Thu, 1 Feb 2024 17:22:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qYLvcazJ" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 531F11649B1 for <linux-kernel@vger.kernel.org>; Thu, 1 Feb 2024 17:22:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706808150; cv=none; b=ixdJuTxNPy9YKFmU11nluGszlpnkDceRVogBEDhJRXuE35pFF9NVMkDxfKruKQBfCNQSo6UNDjF+fvg0Inv1er5mUkMA+uG1aBCsjasLOBWsYV4BCf18bQEYJm2Owu7kGJl7fuidA1BkVDQ7T1Ui5Ky3PyZ3msaeP6KXMHJ3oQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706808150; c=relaxed/simple; bh=iDCSG6+vZGjXW16iEBck9mBM4JX3eHfODAFknyZfAVk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F40nTGqna+Ex/2J4yKJZEwFzQgF3j+8eCRtOySyxzI9oZTlG2e1qGnK+T7qJHZnModTUckQ82o8cqkTHBEMIWwNGLJu10TqA7dbqxbkZxHx+J/dBqZ0fKH8EMobx/d7x0cnKzP8/V8OQNlUUMlIrYaCUqdJe9/tgh/Vzbkq5xwc= 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=qYLvcazJ; arc=none smtp.client-ip=209.85.221.53 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-wr1-f53.google.com with SMTP id ffacd0b85a97d-33b1b21c020so316952f8f.0 for <linux-kernel@vger.kernel.org>; Thu, 01 Feb 2024 09:22:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706808146; x=1707412946; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oqglFOjWZ32x4zOs0EjnPV29zDu0VG4eHKNa8brIj7Y=; b=qYLvcazJXx9p1dsjfC4x3p4+WU6KaSWRfplTM09YKt39xVXh/U02MWuxPOJ5pSuLXU psgKIpfC2SKYQcE5lk/H3oiguKfGMXOY+ywA3lA6v7yJQ7FemX/K3BA0s16WGFv7OvsJ mof1WqDul2HQMI6wnFrLngMQYL7JfViw4n+dZFFn7uHIPGg48/PRhtYr8Cm2GRSn88KC 6HTWXHVpPEA+Nv94R8T37phfBsOBx5LVwv730ypeJMSTeYCWCOcTCuPqH+JLw6Aw/UxL psntcE2484BlFH7xfIJilb9nlv7vJpUcW0gI1NzfqEP0yNcX+NLYrddfRqQaP5LoYjw1 WeCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706808146; x=1707412946; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oqglFOjWZ32x4zOs0EjnPV29zDu0VG4eHKNa8brIj7Y=; b=uh7Uus4LEdSBE/FItglqdqvekBX0CdI+fuSM1eQ6OtpD2MMtuP7vAe+6P5IllXR5+D Hq62Ei49BFBt+6xlK1z3n6Xq3FFzCq/TCe+4J+clUZI/44mSq8zdoKjFChAsiGa+pL+V K7nSyrtDd2Sl98olBTBdaKbG4BzdSzWzSIpFqz8ysrwvjr+tKPd6eu7bLXVR3y4Fqm1q w6lPsdg0u36sBz7MITGFHr+j67yc7gTyjUd9KiNAnBK3Xs3cW5wAWWWl4MtgoUzhFb7Z p8EJLDUNhqMrqiechuRXEzETTBDt/oyvPthr77XPfdBD9ezNGGegbtjoY4/owXU95BB+ 0HaQ== X-Gm-Message-State: AOJu0YzG2f+M4qviuGtas53E2SYltUL64cgKvBp13j4UAbljmyf6g/jj AC2LF0xsjXcCk36NEn/fC+Po6zt+y7Jud2wFWe7Npeaq9p6bXst0+B1o44Kmg6g= X-Received: by 2002:adf:ea0e:0:b0:33b:17fe:7eb7 with SMTP id q14-20020adfea0e000000b0033b17fe7eb7mr1680144wrm.68.1706808146473; Thu, 01 Feb 2024 09:22:26 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWgDLUJomtN15g1opxXiG5rl9OiizKz5aXqpR/8NPTgDztCPLP6LXlX7gvUorVckRh6tNcOnnHb/o9tfpkM9Z9nXJtRde1/rnPToLU4WUCqTTg56TI7h+7qCLL+cwtpNiii/y4BAUVp8R5A5lAhaFi71FzU1lq+B0HMMnnWl4BaAXVB1pNLC0h2f40vEcIf05wcoiseoVEXcRQQEeqwQ1/OiVHDNsSmjoQhjfWyFUNG7Qj5K1qcogJ6HfnD9Cpymu/+hh/oApC8rwDaM34+QXVfkwy5VYC35jZbwHFUBtgBp2sGXrOr911JQNer/YMppGebUoNHOq6kkFWMWOPWVUTpFxG5fyAZYZ6WYQ+2hPd5BckOWVXUEXTJj+dAw41ZlzCDAWc205uhF6sEfynnmz2Jii+xyhiVGdGOR6Ts0UFRfG84GcQ01K6T0gn8XbbMCN/carFJhdlx2T/DEviVD4FNPqykzGpWkBQnPqdN5dQ98JB3fHeSzpuCE9Eu2ImZCpAQae60DxPOawrxrGrQnm+gXgAMLgdFV+iN3uWhtOMMO8MUymNISDmDh4XTZYODt2A= Received: from tux.Home ([2a02:c7c:7213:c700:e992:6869:474c:a63f]) by smtp.gmail.com with ESMTPSA id f15-20020a056000036f00b00337d84efaf7sm16733582wrf.74.2024.02.01.09.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 09:22:26 -0800 (PST) From: Alexey Klimov <alexey.klimov@linaro.org> To: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, linux-samsung-soc@vger.kernel.org, semen.protsenko@linaro.org, peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, klimov.linux@gmail.com, kernel-team@android.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, arnd@arndb.de Subject: [PATCH 2/4] arm64: dts: exynos: gs101: add chipid node Date: Thu, 1 Feb 2024 17:22:22 +0000 Message-ID: <20240201172224.574238-2-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240201172224.574238-1-alexey.klimov@linaro.org> References: <20240201172224.574238-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789718195457096406 X-GMAIL-MSGID: 1789718195457096406 |
Series | [1/4] dt-bindings: hwinfo: samsung,exynos-chipid: add gs101-chipid compatible | |
Commit Message
Alexey Klimov
Feb. 1, 2024, 5:22 p.m. UTC
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
---
arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +++++
1 file changed, 5 insertions(+)
Comments
Hi Alexey & Krysztof, On Thu, 1 Feb 2024 at 17:22, Alexey Klimov <alexey.klimov@linaro.org> wrote: > > Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> > --- > arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > index d838e3a7af6e..156fec2575bc 100644 > --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi > +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > @@ -283,6 +283,11 @@ soc: soc@0 { > #size-cells = <1>; > ranges = <0x0 0x0 0x0 0x40000000>; > > + chipid@10000000 { > + compatible = "google,gs101-chipid"; > + reg = <0x10000000 0xd000>; > + }; > + I was wondering about the 0xd000 size here, as most upstream platforms use a chipid size of 0x100 or 0x24. I see the downstream gs101 kernel also uses 0xd000. Looking a bit more, that is because gs-chipid.c also has support for dumping other areas of the OTP SFR bank like asv table (offset 0x9000) hpm_asv (offset 0xa000) and hw_tune (0xc000). I checked Exynos850 and that also has ASV tables at those same offsets above, but it currently uses a chipid size of 0x100 upstream. Exynos-asv.c driver is part of exynos-chipid.c upstream so it seems reasonable to have the increased size including those SFR registers. Currently exynos-asv.c driver only supports Exynos5422 upstream. @Krzysztof - From a process PoV what is the best/correct thing to do here? Have the increased size in DT that includes ASV parts of the OTP bank from the get-go? Thanks, Peter.
On 05/02/2024 15:36, Peter Griffin wrote: > Hi Alexey & Krysztof, > > On Thu, 1 Feb 2024 at 17:22, Alexey Klimov <alexey.klimov@linaro.org> wrote: >> >> Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> >> --- >> arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> index d838e3a7af6e..156fec2575bc 100644 >> --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >> @@ -283,6 +283,11 @@ soc: soc@0 { >> #size-cells = <1>; >> ranges = <0x0 0x0 0x0 0x40000000>; >> >> + chipid@10000000 { >> + compatible = "google,gs101-chipid"; >> + reg = <0x10000000 0xd000>; >> + }; >> + > > I was wondering about the 0xd000 size here, as most upstream platforms > use a chipid size of 0x100 or 0x24. I see the downstream gs101 kernel > also uses 0xd000. Looking a bit more, that is because gs-chipid.c also > has support for dumping other areas of the OTP SFR bank like asv table > (offset 0x9000) hpm_asv (offset 0xa000) and hw_tune (0xc000). > > I checked Exynos850 and that also has ASV tables at those same offsets > above, but it currently uses a chipid size of 0x100 upstream. > Exynos-asv.c driver is part of exynos-chipid.c upstream so it seems > reasonable to have the increased size including those SFR registers. > Currently exynos-asv.c driver only supports Exynos5422 upstream. > > @Krzysztof - From a process PoV what is the best/correct thing to do > here? Have the increased size in DT that includes ASV parts of the OTP > bank from the get-go? ChipID so far had only size of 0x30 or something like that. What you refer to does not look like old ChipID but full blown OTP, which also includes ChipID. Although I am not entirely sure about that, either. Depends whether they share clocks, for example. I don't have any GS101 information so I don't know what's there. It seems you ask me to give you decision based on guessing... If you have one block, so if there is OTP, which contains ChipID, then define OTP. Not ChipID+OTP. I think Exynos850 DTSI is wrong here. That's OTP block, not ChipID. Best regards, Krzysztof
On 01/02/2024 18:22, Alexey Klimov wrote: > Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> > --- > arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > index d838e3a7af6e..156fec2575bc 100644 > --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi > +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > @@ -283,6 +283,11 @@ soc: soc@0 { > #size-cells = <1>; > ranges = <0x0 0x0 0x0 0x40000000>; > > + chipid@10000000 { > + compatible = "google,gs101-chipid"; > + reg = <0x10000000 0xd000>; ChipID has size around 0x20 or 0x30, not 0xd000. Maybe you are defining some other device like OTP? Best regards, Krzysztof
Hi Krzysztof, Thanks for your feedback. On Tue, 6 Feb 2024 at 10:10, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > On 05/02/2024 15:36, Peter Griffin wrote: > > Hi Alexey & Krysztof, > > > > On Thu, 1 Feb 2024 at 17:22, Alexey Klimov <alexey.klimov@linaro.org> wrote: > >> > >> Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> > >> --- > >> arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +++++ > >> 1 file changed, 5 insertions(+) > >> > >> diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > >> index d838e3a7af6e..156fec2575bc 100644 > >> --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi > >> +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi > >> @@ -283,6 +283,11 @@ soc: soc@0 { > >> #size-cells = <1>; > >> ranges = <0x0 0x0 0x0 0x40000000>; > >> > >> + chipid@10000000 { > >> + compatible = "google,gs101-chipid"; > >> + reg = <0x10000000 0xd000>; > >> + }; > >> + > > > > I was wondering about the 0xd000 size here, as most upstream platforms > > use a chipid size of 0x100 or 0x24. I see the downstream gs101 kernel > > also uses 0xd000. Looking a bit more, that is because gs-chipid.c also > > has support for dumping other areas of the OTP SFR bank like asv table > > (offset 0x9000) hpm_asv (offset 0xa000) and hw_tune (0xc000). > > > > I checked Exynos850 and that also has ASV tables at those same offsets > > above, but it currently uses a chipid size of 0x100 upstream. > > Exynos-asv.c driver is part of exynos-chipid.c upstream so it seems > > reasonable to have the increased size including those SFR registers. > > Currently exynos-asv.c driver only supports Exynos5422 upstream. > > > > @Krzysztof - From a process PoV what is the best/correct thing to do > > here? Have the increased size in DT that includes ASV parts of the OTP > > bank from the get-go? > > ChipID so far had only size of 0x30 or something like that. What you > refer to does not look like old ChipID but full blown OTP, which also > includes ChipID. OK so in some previous Exynos SoCs chipid had its own separate memory mapped SFRs as well as being present in the OTP area? > Although I am not entirely sure about that, either. > Depends whether they share clocks, for example. This address is the OTP area, and I can't see chipid regs mentioned anywhere else in the memory map other than OTP. Unfortunately there are lots of separate docs for different IP blocks, so it isn't just a case of searching a giant SoC TRM pdf. e850 though looks to be the same (the address defined in DT is the otp area), that is one large PDF and the chipid regs aren't mentioned anywhere else, Given the chipid reg offset is the same (0x10000000) for exynosautov9.dtsi, exynosautov920.dtsi, exynos850.dtsi, exynos7885 and exynos5433 I suspect this could be the same for all those SoCs as well. > > I don't have any GS101 information so I don't know what's there. It > seems you ask me to give you decision based on guessing... If you have > one block, so if there is OTP, which contains ChipID, then define OTP. I believe there is one block that contains ChipID, therefore based on the above info we should define full OTP size? > Not ChipID+OTP. > > I think Exynos850 DTSI is wrong here. That's OTP block, not ChipID. Yes agreed, and quite possibly the other Exynos SoCs as well. Thanks, Peter.
On 07/02/2024 15:11, Peter Griffin wrote: > Hi Krzysztof, > > Thanks for your feedback. > > On Tue, 6 Feb 2024 at 10:10, Krzysztof Kozlowski > <krzysztof.kozlowski@linaro.org> wrote: >> >> On 05/02/2024 15:36, Peter Griffin wrote: >>> Hi Alexey & Krysztof, >>> >>> On Thu, 1 Feb 2024 at 17:22, Alexey Klimov <alexey.klimov@linaro.org> wrote: >>>> >>>> Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org> >>>> --- >>>> arch/arm64/boot/dts/exynos/google/gs101.dtsi | 5 +++++ >>>> 1 file changed, 5 insertions(+) >>>> >>>> diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >>>> index d838e3a7af6e..156fec2575bc 100644 >>>> --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi >>>> +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi >>>> @@ -283,6 +283,11 @@ soc: soc@0 { >>>> #size-cells = <1>; >>>> ranges = <0x0 0x0 0x0 0x40000000>; >>>> >>>> + chipid@10000000 { >>>> + compatible = "google,gs101-chipid"; >>>> + reg = <0x10000000 0xd000>; >>>> + }; >>>> + >>> >>> I was wondering about the 0xd000 size here, as most upstream platforms >>> use a chipid size of 0x100 or 0x24. I see the downstream gs101 kernel >>> also uses 0xd000. Looking a bit more, that is because gs-chipid.c also >>> has support for dumping other areas of the OTP SFR bank like asv table >>> (offset 0x9000) hpm_asv (offset 0xa000) and hw_tune (0xc000). >>> >>> I checked Exynos850 and that also has ASV tables at those same offsets >>> above, but it currently uses a chipid size of 0x100 upstream. >>> Exynos-asv.c driver is part of exynos-chipid.c upstream so it seems >>> reasonable to have the increased size including those SFR registers. >>> Currently exynos-asv.c driver only supports Exynos5422 upstream. >>> >>> @Krzysztof - From a process PoV what is the best/correct thing to do >>> here? Have the increased size in DT that includes ASV parts of the OTP >>> bank from the get-go? >> >> ChipID so far had only size of 0x30 or something like that. What you >> refer to does not look like old ChipID but full blown OTP, which also >> includes ChipID. > > OK so in some previous Exynos SoCs chipid had its own separate memory > mapped SFRs as well as being present in the OTP area? None of the Exynos I know, have OTP area. There was only chipid. It seems that few newer designs come with OTP, in entirely separate address space. Exynos850 looks like the first which comes with integrated chipid into OTP, so OTP is not separate address. > >> Although I am not entirely sure about that, either. >> Depends whether they share clocks, for example. > > This address is the OTP area, and I can't see chipid regs mentioned > anywhere else in the memory map other than OTP. Unfortunately there > are lots of separate docs for different IP blocks, so it isn't just a > case of searching a giant SoC TRM pdf. > > e850 though looks to be the same (the address defined in DT is the otp > area), that is one large PDF and the chipid regs aren't mentioned > anywhere else, Given the chipid reg offset is the same (0x10000000) > for exynosautov9.dtsi, exynosautov920.dtsi, exynos850.dtsi, exynos7885 > and exynos5433 I suspect this could be the same for all those SoCs as > well. > >> >> I don't have any GS101 information so I don't know what's there. It >> seems you ask me to give you decision based on guessing... If you have >> one block, so if there is OTP, which contains ChipID, then define OTP. > > I believe there is one block that contains ChipID, therefore based on > the above info we should define full OTP size? > >> Not ChipID+OTP. >> >> I think Exynos850 DTSI is wrong here. That's OTP block, not ChipID. > > Yes agreed, and quite possibly the other Exynos SoCs as well. If ChipID and OTP are in the same block (in OTP), then assume they both might need the same clocks or some other resources. Therefore we should not model them as two separate device nodes ChipID and OTP. Instead there should be one device node with entire OTP address space, which should not use ChipID compatible to avoid confusion. Best regards, Krzysztof
diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index d838e3a7af6e..156fec2575bc 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -283,6 +283,11 @@ soc: soc@0 { #size-cells = <1>; ranges = <0x0 0x0 0x0 0x40000000>; + chipid@10000000 { + compatible = "google,gs101-chipid"; + reg = <0x10000000 0xd000>; + }; + cmu_misc: clock-controller@10010000 { compatible = "google,gs101-cmu-misc"; reg = <0x10010000 0x8000>;