Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3129040ybg; Mon, 28 Oct 2019 07:57:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOzlgHCbuwDNrGlrLhN3DIslwbkMyiBiISE3tjumz0OLZjVL2Hrhiuz6yDafwj87xqb7e3 X-Received: by 2002:a50:eacc:: with SMTP id u12mr20112231edp.290.1572274649657; Mon, 28 Oct 2019 07:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572274649; cv=none; d=google.com; s=arc-20160816; b=ahNJ3QebbWAeqhYHQK42EhDnS2nWsDktaNkQEB9ylrAEhRudd7kJAFQzAIq+g9Yxzk ygOXBNZRwSbB4Q81idacYiW1VrCO8RhzMM8VEXJl9l/ofZ00ENdtTJXJGcUA6xflUtU5 E3N5T7IkTTZ2g9ueKuMfS69QuQKkcf26PoJJOMhF9Mj2YSi15MKbnT0nUZ5STyJaAdGM uYVsT7DDcPBhKN1vp3OdqAP5xKhP4uSq660Rf+TOm22hglh/ZWrKbUZONDHOxF63o0iy 3L5gUnYys5BFHAH+V0JTs7JXcqnC2hNfqTjdSh5V0zu7xTt9PwnABlEcJAf54iKBRMGD tjSw== 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=9wuG+Jsn2C4SFV0EMsPubB6cyWCCZObfVG8zqsO1+J8=; b=SRbWRkStx81z1yltGP6CQYVdOzolkVdAUsLdNAd1RntSxRrgOsOO80i8b0LzI7ECrW UP9ETpt7EtnHuURtWpgAft+3nIoCuHIK86C+WaztC9+AA+iYIkDwmCqNS/bd3vFlH8jv vco/GckKeZ5I8GRDtIaw9UUfFh58jDnhofHO+39i37PXBgkMAN1cx8mEyWJR0CD2DDCh DB1o08r67NokWc89ujugcUb6rA0QcH+QIo4xYZhBdP2yS9257kCv+7uL9eW1W1TJFt5s IOinVc+oFwewT+DRgVFsESMR8/bKgYxfn+gIAkZyCWLOIVlBuvkhVXZrnfLqTjd/YRxr 9Jcg== 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 u2si6542448ejj.410.2019.10.28.07.57.06; Mon, 28 Oct 2019 07:57:29 -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 S1726895AbfJ1DQR (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:17 -0400 Received: from inva021.nxp.com ([92.121.34.21]:54790 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730136AbfJ1DQO (ORCPT ); Sun, 27 Oct 2019 23:16:14 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E2E6B200A21; Mon, 28 Oct 2019 04:16:12 +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 9FDF82007E1; Mon, 28 Oct 2019 04:16:08 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5876A4031F; Mon, 28 Oct 2019 11:16:01 +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 4/9] ARM: imx: Add serial number support for i.MX6ULL Date: Mon, 28 Oct 2019 11:12:45 +0800 Message-Id: <1572232370-31580-5-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.MX6ULL 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 39323198138A8620 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 f41ad93..cdb9d6d 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -145,6 +145,7 @@ struct device * __init imx_soc_device_init(void) soc_id = "i.MX6UL"; break; case MXC_CPU_IMX6ULL: + ocotp_compat = "fsl,imx6ul-ocotp"; soc_id = "i.MX6ULL"; break; case MXC_CPU_IMX6ULZ: -- 2.7.4