Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3128983ybg; Mon, 28 Oct 2019 07:57:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwthVGO3dKk8au74mBs7HU+36I/us9DKmt0pdxDcPdQHqbiNk+z+YjcReUgm0E+YOo5SJgf X-Received: by 2002:aa7:c1cb:: with SMTP id d11mr20142454edp.40.1572274645595; Mon, 28 Oct 2019 07:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572274645; cv=none; d=google.com; s=arc-20160816; b=MKgS16e1kJlRgCiwUPFMcl1ZRr1gRKrSWyM5klm7XwOuFVIx4/Q00I+b5vK/KWgh4r imiuox0Oz+3swSWfOzATMmr4ySLVINpuTje1XSX58IOa09s1nLOMg/AvgTT8hSKzSZly Ry659ddo88XIJsmc9u346uwd+z+nyC01eXaUMxfLuQEu2z/91GUdi4eGsvWcnwzh1fa9 gWxG5Yi4XAA6VSQaVfODh/kKOVbtMSjq9HvVzFjpCoATONlWRBHwrUTcGXSt2JVw248Y faaHqA5w3/2MGBFRiZ3rNSvjTjoVwKh25GHQuzL+nhPuigGGlpYMN3FtTMGdDq5vloF8 6vMA== 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=5AROJUMVZGKSoE2vGRQXmf2LkwFNK7zPrAgD5mftEro=; b=RQw293om7nLAOC0axOZNIsPT/+cRGYyvqiS9o1ankTOmxhb7APoR84W/8+pAV7cHBe yaSt5be4MmPiYFTwFN8dMAwoXFtPi3vHe/36lqSO6NoEUN7Criu19w5gRGfEyBWWshj0 vjdtb7FPbccAzlWalHD1qwkNl+Crm2HMRBfM8+0YXi6w7Q0ZECnts0bH3/PWm5cjcwX7 K5XjxqL1ecrgrs9KNYDeqqCksequ2psuIX5IMvEeX73m/jDAXwHNjoYNq897odYT0L3Q bJfDJAbrmcUqO3vW3s5k0SXHvQdS8T2i4zhw4wPSjYn2N08OVorY9gg05g0ERq3CK/XI E/gA== 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 w54si7872525edd.427.2019.10.28.07.57.01; Mon, 28 Oct 2019 07:57:25 -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 S1730151AbfJ1DQN (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:13 -0400 Received: from inva021.nxp.com ([92.121.34.21]:54402 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726877AbfJ1DQL (ORCPT ); Sun, 27 Oct 2019 23:16:11 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 674E52009F2; Mon, 28 Oct 2019 04:16:10 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 30143200179; Mon, 28 Oct 2019 04:16:06 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1551A40318; Mon, 28 Oct 2019 11:16:00 +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 3/9] ARM: imx: Add serial number support for i.MX6SLL Date: Mon, 28 Oct 2019 11:12:44 +0800 Message-Id: <1572232370-31580-4-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.MX6SLL has a 64-bit SoC unique ID stored in OCOTP, it can be used as SoC serial number, see below example: root@imx6sll:~# cat /sys/devices/soc0/serial_number E766F1D25EC2D286 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 54e5ab3..f41ad93 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -151,6 +151,7 @@ struct device * __init imx_soc_device_init(void) soc_id = "i.MX6ULZ"; break; case MXC_CPU_IMX6SLL: + ocotp_compat = "fsl,imx6sll-ocotp"; soc_id = "i.MX6SLL"; break; case MXC_CPU_IMX7D: -- 2.7.4