Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3129533ybg; Mon, 28 Oct 2019 07:58:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzhVGY/8i9ygNvcCYzB9BqiHpHj1GPxAdWs6dZZmIrg7qJeANWFr1Uf7p/CBxDVBCEYsOk X-Received: by 2002:a17:906:4f14:: with SMTP id t20mr9155253eju.239.1572274680596; Mon, 28 Oct 2019 07:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572274680; cv=none; d=google.com; s=arc-20160816; b=ui+mmBbYttJJj6M65NP1b5hlkLCec6G9bvu87h9jfc7d2smQf0b9hTFFtpabahCsyF gd6mw9wLfaeiVg3DWJTMnJmJ6fbqImELc/Vx/fbJZytIrrpZ4YBOWnvTsDzd2S4GdD8V WBOvZ3oamvbPUG7jp1ySxIARHKjJCAdQov0Nw17HVW/8TjV7q68Ud9P1W2FCWdoxW9gk X8w6v9TrPX9cfZGpxzOWnFNnAnLgo02DCpEtORgNz02o6I+LNZ0PfxrP18iw+LLrlPIR zmUvvMmY+PQJkl1YFk2SZcAYOS37RoxliArUi/jQokB2viRO0caBrtVkvq7Hb/B+TNHk pDEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=hdzKAS2twUmTXYCYRdd7ppDQXR6V8g/BGi9en/FH3bU=; b=wxMyTiTM7BgSQjsCj3Dffn4ULPDDG+FiKhEFBbbdO3bDk5kOpqym3Lxz/eFo163MIk Til5aw7hNq+R1RzV//x+4vMuC220msLy+uazv/K1YWEV78ndTTa123mW62q8x0vAs6FV IlJS0FdzuLQ7k1LXvzpVy+p7uaHiwDoAk91fXklCJ6yukE31kQYEbHDT/yswr2S7y0t4 O62yZbtlpPXmYgP2+krNgCBHTCuN0jWcFTFbCadFc1jJGR/aZCI5rOkrL/U8noaiiei1 mX+yzwCzSDXBZlrxSMTkCZDRpaW5byPVNdTCCT3MQ/WNnqYq0vD3FV+luUavgeOXFEfT sLmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bi3si1142964edb.331.2019.10.28.07.57.37; Mon, 28 Oct 2019 07:58:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731153AbfJ1DQ1 (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:27 -0400 Received: from inva020.nxp.com ([92.121.34.13]:40192 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726877AbfJ1DQR (ORCPT ); Sun, 27 Oct 2019 23:16:17 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id AB6791A0B2D; Mon, 28 Oct 2019 04:16:15 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 69E631A0B21; Mon, 28 Oct 2019 04:16:11 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5890A40324; Mon, 28 Oct 2019 11:16:02 +0800 (SGT) From: Anson Huang To: linux@armlinux.org.uk, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, aisheng.dong@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 5/9] ARM: imx: Add serial number support for i.MX6UL Date: Mon, 28 Oct 2019 11:12:46 +0800 Message-Id: <1572232370-31580-6-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572232370-31580-1-git-send-email-Anson.Huang@nxp.com> References: <1572232370-31580-1-git-send-email-Anson.Huang@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org i.MX6UL has a 64-bit SoC unique ID stored in OCOTP, it can be used as SoC serial number, see below example: root@imx6ul7d:~# cat /sys/devices/soc0/serial_number 6738495762ACE932 Signed-off-by: Anson Huang --- arch/arm/mach-imx/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index cdb9d6d..1e8150e 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -142,6 +142,7 @@ struct device * __init imx_soc_device_init(void) soc_id = "i.MX6Q"; break; case MXC_CPU_IMX6UL: + ocotp_compat = "fsl,imx6ul-ocotp"; soc_id = "i.MX6UL"; break; case MXC_CPU_IMX6ULL: -- 2.7.4