Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3129143ybg; Mon, 28 Oct 2019 07:57:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKgHos9YM0R+56Ps7kPf1VuAsix1CRtB9g06UycntRtO/dLUs3GY/FYaFBodhGINrSoojv X-Received: by 2002:a17:906:3189:: with SMTP id 9mr6571399ejy.21.1572274656017; Mon, 28 Oct 2019 07:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572274656; cv=none; d=google.com; s=arc-20160816; b=Qr+lmnfZXqvXp/E+FSeDgbwUTjrahgYF6dTNVwcA2BmSr6ZnxIj9W+/dUTgojVIu0K r66XE77jMsWnmGjE2BIl0oLn/DkoYPrdb6ZkeGWcy+FMwsWPatk34JGSUq01N2zVnmlF GgqTGYAlT91v5743h2oe3Yk5ya/MvgEs0rF8q3mhudkqv2KIuK2UEOn+/286b0Zpmjd4 swbe/IGbYfUcmcnFe+OeFgjVA8EJNcA+jzwZi7iamY3KU3xvc9QS9njWh8x1W2t0VzC+ oqaACmzbq+4tLuP0NfuLnpExQJLtuhD6MdkHmFNpKP4TagECLWioRxLfTs0YghOu4Ut3 W2lA== 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=0aJi6m0bUIThiEsn0zYLGhfqA7eBLHfoJTzQJawTBoY=; b=sQ7Ejzezt3YrDDhYICT0D6OaN7fPBaaIvbXG5Z0SKXltHvpmns0HZ/ZqvywdGjLeLJ tfsnNnAu6eAhbg+9//9+Hhf3rmkHRd7St9OD2v6KVsZJLRk2du41o6BFLAEt+GpRjLQ7 BT3d+IRV+92mkYCwwTgbZ+pGWEpHKwG53zPOcp7TrjQCCaEt9CqwtnkAoxI2ITZiwUHo wlWtV5uPBCUJ/HlDFfsUeQtSt6awCcMcNmqb2Idy+75mOTtxA0s9b/QB4S9rPT8m+1RY 67f0Uy6xxggxdp1zfG9VrBqGWMCDxaa8RFSALqfXbQI91NzhywEdcioWWq+SCcRuTQhE KpiQ== 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 t8si2228334ejj.328.2019.10.28.07.57.11; Mon, 28 Oct 2019 07:57:36 -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 S1728938AbfJ1DQZ (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:25 -0400 Received: from inva020.nxp.com ([92.121.34.13]:40316 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730185AbfJ1DQS (ORCPT ); Sun, 27 Oct 2019 23:16:18 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 66D7A1A0B2B; Mon, 28 Oct 2019 04:16:16 +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 25F661A0B43; Mon, 28 Oct 2019 04:16:12 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 59BC2402E2; Mon, 28 Oct 2019 11:16:04 +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 7/9] ARM: imx: Add serial number support for i.MX6SL Date: Mon, 28 Oct 2019 11:12:48 +0800 Message-Id: <1572232370-31580-8-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.MX6SL has a 64-bit SoC unique ID stored in OCOTP, it can be used as SoC serial number, see below example: root@imx6sl:~# cat /sys/devices/soc0/serial_number 897BC6578FEAB980 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 1274b52..eb65eff 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -128,6 +128,7 @@ struct device * __init imx_soc_device_init(void) soc_id = "i.MX53"; break; case MXC_CPU_IMX6SL: + ocotp_compat = "fsl,imx6sl-ocotp"; soc_id = "i.MX6SL"; break; case MXC_CPU_IMX6DL: -- 2.7.4