Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp618737pxb; Wed, 11 Nov 2020 11:48:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwiRM/GPO8wmg2INADBdeSg96Sv3yQVBEBs+efO+YwKj/jgNnDFHldX+WP3QkxMfecqTcw X-Received: by 2002:aa7:cc8f:: with SMTP id p15mr1300091edt.240.1605124134884; Wed, 11 Nov 2020 11:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605124134; cv=none; d=google.com; s=arc-20160816; b=qBcpcMpzoJwvq1/G3lhkaxhj4GmCv8Oq3ZmNQzGGWy/v0BdQwaqKvv+kQNR8xHVenq iIbpg7ji7MGybCQQvTsQjj0F7Z4zKzirFvm2PAwCzfiUnf3pPgMxQQtF/rHI2xkuJ+mG ayTEa1ElVn6WN1ioB/sLx60xJ3zt1ItkK+BbD3yMmWlzrPqkaosgY/FVBG/o8qpsOOm2 AqzJpt/uMzepfmqnTz/qqOhRl/77yQjdlpPw04wGzQUIqf8uQ/EgSD8XitfCh9llSmnc kxwZz9Wt/3l/IQRBOgj2wW8CT718eqJxsSluLXWNLTRVoNXeqI1oK8RrYn6p7XIW41Hy yXyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zsnBQdrhUa/QAa8uquu/neDEB5Nejqa8rlSSCbSFDAQ=; b=gtbRsC4Mk26XSk8GWXKcV3s3nNFr+n5AH/RipV6WfxoiXLYr6liEkUzBRR6IyBzOiV uY8dXF78tj3rMHT7v7uhIMSC3Hh4GyMfll/S9DWEe7NB2cezAIrYMSOPO1Ek2F16Bc+w H2qd8SHR5ATAdoqPM6H44ULUM2Eg/CmNND9IfZAa2smERVMeY0oPH/DiJBOrgK9uGcZK e1m4hRrNfqisA1hcDkxNMuPLPlWAs2qO52Tqe7WlkwZ09iAoa7sSPO8Tv3EYBAWi17KF zunhSiz7soPxPBhsrsAZl1z/9GGSb4E2qqn3WbokNAKX3dqTk0b6XNbyETDZHJuwz4jw duew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iNm0A2Zs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p3si2239549edp.84.2020.11.11.11.48.30; Wed, 11 Nov 2020 11:48:54 -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=@gmail.com header.s=20161025 header.b=iNm0A2Zs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbgKKTrD (ORCPT + 99 others); Wed, 11 Nov 2020 14:47:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725984AbgKKTrD (ORCPT ); Wed, 11 Nov 2020 14:47:03 -0500 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 900B7C0613D1 for ; Wed, 11 Nov 2020 11:47:02 -0800 (PST) Received: by mail-lf1-x141.google.com with SMTP id w142so4807026lff.8 for ; Wed, 11 Nov 2020 11:47:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zsnBQdrhUa/QAa8uquu/neDEB5Nejqa8rlSSCbSFDAQ=; b=iNm0A2ZsPVgUGNhmnm4Bsq7zInrL2JjhQcdACsrOt9mYmndn330XWcOtDuEG39alzm J3le2lMvlL2vfgGnxs5xrjbezCTd3D5AJGj7jRLxD4S/HIWq/nQLuBADwTKyKgRs/IUv jD+EM4LjRL/Q9K3jsw/2rekEsb4EH47OKl2F+lQT3VfUH8eeH5eDDxFbPG7ThwG0JVdg 9a9mUo7wGX4cbPBOtCP7UYYdXchgNjo+zlaojJQOQmTVsz6QSCpi3YBtbuCM/M6qC0vA UUegdcAwXhSrItUwjZVL5yXqMJYipcJVH6IL//pKZtKQA+ZaPTbireRNJfZgT9v1ybtj UpFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zsnBQdrhUa/QAa8uquu/neDEB5Nejqa8rlSSCbSFDAQ=; b=htn74PFD4BxuTsrPWnFOvnLGqWWa4TUpoS+y+OAXp6eJlz7y1xmDvslZmntKPQTLS9 Und+kkA0IVryk3w76GjYikR/MXj1sJl1YMCRK4jpEGH6Uw9et9xz+YedLEN5l0egwD2u 9RBILA3i4oeYfAWsEVRFw5fPhE7j4HwkaJOa/dnSSKSqc4X7F/N2rOA0c0/utWtet1Uk Z1xSfA1EMX3r3VumlXcyrMb/Es2hJM6PTon7csHNutRvR8LpOOKLytBbKvS9wgBjroxC 7paTAxwM5mWULlWjFaeL8LaQbDocQ3FdBcTBzVqLVrq87kvEhCVsrVmuZMe161VmtDEg BfHA== X-Gm-Message-State: AOAM533wfCyG3bc2LVmuB5dgTQTjJLwaUtO6E4vd9tbRrmATQP7dlLdn 2gfeTR8gTvatQyE7wxahfv4sOEjwR9j6jm0OkAM= X-Received: by 2002:ac2:418e:: with SMTP id z14mr9881908lfh.25.1605124020958; Wed, 11 Nov 2020 11:47:00 -0800 (PST) MIME-Version: 1.0 References: <20201111051859.2776-1-ivan.zaentsev@wirenboard.ru> In-Reply-To: <20201111051859.2776-1-ivan.zaentsev@wirenboard.ru> From: Fabio Estevam Date: Wed, 11 Nov 2020 16:46:49 -0300 Message-ID: Subject: Re: [PATCH] ARM: mxs: Add serial number support for i.MX23, i.MX28 SoCs To: Ivan Zaentsev Cc: Russell King , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Evgeny Boger , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ivan, On Wed, Nov 11, 2020 at 2:19 AM 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 It looks good, thanks: Reviewed-by: Fabio Estevam