Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3381466pxu; Mon, 30 Nov 2020 01:35:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqc+m5sdTfxw3611Vs8YLc7GtQB8xazrDWDpIIJfWT54MOa/ffvsPh5DqRzKHkMNRpM1Qu X-Received: by 2002:a17:907:6e6:: with SMTP id yh6mr6078549ejb.512.1606728931451; Mon, 30 Nov 2020 01:35:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606728931; cv=none; d=google.com; s=arc-20160816; b=AEYOJoMCAUg6q8UkMOQoif6ZLFQXOrplJ5dYv3xIa7bsBZ0qJvWckvg309KWUtgkGC 7qaKX4/JgkfVyUHYakKun716ZZcyMyEre4/pQlKl7uRce0b3Oc0IibkhYzbEgtq7zRbO TvuQX+uQrSwLpRchtJTOLaEA15kxWh0wyfaI+F2Cobkqh1jPRceamL+n4SQnN3FZwNU/ u5qngNVyzbrjQ7zr78XuA+CrBb+9VwkyZW3QGd6ZpdjjaTD9M2p7ZadsxjNlOtNMMb4c jhKBkh4Pwcg3HdjbyGSCferbCFEKMD+MYuWqmhEDswqZKkl+Pnjn9vYBd5gU+9XYJLt1 Vi/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/kcSklInhM4vrAcdAvBUWol1/+p4spjyO9UkZbMTEMo=; b=vLRy/JjVOqeM4jMXv0OCDzWdZT+Cfy7yuYBUEtfB7ZWmgPzAuZbn6fxSLlZ7wKfC2Z JPwzme3baH5aKSMW5gppUKh+pTymn0m1hrFlT0XKv/h8RGFbd/fB4rwAX2wmEyMVXYxJ 9oILRAdPiCW7BcA5e7EuJnAEp7/u2Eq5ScLYUkBPnT4j6NldyWDh9zjZNqc4sE6Rh89D DMS+YVvGIibky4NtkNBylyHRYs7lpLIF15fE27PiZEsJKEW+uvuuRJ2Ehn2JI/UkjHLc bd090xGzKRIO1a5AeCh6dU5K4pBciVgYSBDqkD0bo8OR0np+J0RJijXO5rjvZxLuLu6d gHDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wPG5J7kW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bx16si3866891edb.470.2020.11.30.01.35.08; Mon, 30 Nov 2020 01:35:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wPG5J7kW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727238AbgK3JdZ (ORCPT + 99 others); Mon, 30 Nov 2020 04:33:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:52602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726756AbgK3JdZ (ORCPT ); Mon, 30 Nov 2020 04:33:25 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F0E62076E; Mon, 30 Nov 2020 09:32:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606728764; bh=qpt/omNfokXd4Bg6icgGXINwG61fMEflfl5dg8+HUM8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wPG5J7kWWr3HvZ3duEoSEyllmcXyvG2Ep0josjchXYuE3nmPQSaYKNQtkCWmj2MFv gHqahlE8bDoDsu8Zs24IU7585Lcv95CqgtClRxcL+3vPcFzEO9MhtuAToWlyrs4vzv re2QeZuG867MJge1PD90MLnGfz0UXlfCCElHHDiM= Date: Mon, 30 Nov 2020 17:32:39 +0800 From: Shawn Guo To: Ivan Zaentsev Cc: Russell King , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Evgeny Boger , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ARM: mxs: Add serial number support for i.MX23, i.MX28 SoCs Message-ID: <20201130093238.GE4072@dragon> References: <20201116165826.51570-1-ivan.zaentsev@wirenboard.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201116165826.51570-1-ivan.zaentsev@wirenboard.ru> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 16, 2020 at 07:58:26PM +0300, Ivan Zaentsev wrote: > i.MX23 and i.MX28 SoCs unique identifiers are factory-programmed > in On-Chip OTP memory. i.MX28's 64-bit unique id is in > HW_OCOTP_OPS2:HW_OCOTP_OPS3 (see MCIMX28 Ref. Man., sec. 20.4.22-23). > > i.MX23 provides 32-bit long unique id in HW_OCOTP_OPS3. > Though not clearly documented, there is a clue in sec. 35.9.3. > > The unique id is reported in /sys/devices/soc0/serial_number > and in /proc/cpuinfo > > Signed-off-by: Ivan Zaentsev > Suggested-by: Evgeny Boger Applied, thanks.