Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3129076ybg; Mon, 28 Oct 2019 07:57:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8cy4Ez+uW7gHOFCEW0OaXgXWZThaxO/4MobtT+KoasIm86Y5B1Dn7ZtEZzG4sSRKDSbQz X-Received: by 2002:a17:906:cc94:: with SMTP id oq20mr10503586ejb.263.1572274652435; Mon, 28 Oct 2019 07:57:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572274652; cv=none; d=google.com; s=arc-20160816; b=XYoyUlITKPonMVfPmnirmM4m5owAglBuDNlXHRV5zU+tm9sLhFslm9ittR3rt41Lxh eUvw3INpwOEcL/Mx4YEiRSrVghWnj9saUQ/2638mXrAHkM+daQliukhj43CBN0QOZaPc mduAgiELFCe9TzeIlaOLjKSIE2Iu5U7NDYDCLB1GNY04HsNajCh75bM+32VrWlNVHroS e223uY+V6JUDBiVUhdJO2G0j7pnCZoGW5n0WMzq2qSNo3bXj6ssRjAe2uJotcu96ALez L4ZVjW210cuCFT35HdIBNXi6fXHL/8Se/BT2fj1dsUKMi+Au7kF7zRQh4xWBDsFt/2zJ aFxQ== 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=pNAPhFXcv8kuYg5SIwxWQyvl2pyzFLxGrMkzS1ey0MI=; b=h0JFhleujKhHY+uBmFreVDkQsyImg+KX9n0pu84G2IaAN5PtA7Mk+CwbwMPZaeDphF aD2kkiGHZelK5m4aAWRxl7pw/4kjB+KTgHLEMvpnRdkQVznvbpBGKr5FnHaXNaMJYqVP Mo9UyYa9vKo7vOYh7fXC8mYQPvlvL6kXpd1kA8rHo7sbUZCK8JyK/NOzAbjZnekDZGrz k/BbehfJ5Nvbtll3roTFvEzq2DS59AHo13eHhyJY9KkEDRyfGqB9bKzpJPdwUc/w3TYz Lmce8RsydkXs3wQD1JUj5FDNMGw0eOSKemfvXd1rMYcN2Js/gMg8EH59Ejl57CP4wTvL OrFQ== 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 c30si7939157ede.125.2019.10.28.07.57.08; Mon, 28 Oct 2019 07:57:32 -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 S1730264AbfJ1DQW (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:22 -0400 Received: from inva020.nxp.com ([92.121.34.13]:40406 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730226AbfJ1DQT (ORCPT ); Sun, 27 Oct 2019 23:16:19 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 73BC61A0B20; Mon, 28 Oct 2019 04:16:17 +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 326B71A0B0E; Mon, 28 Oct 2019 04:16:13 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 9CD2D402F0; Mon, 28 Oct 2019 11:16:06 +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 9/9] ARM: imx: Add serial number support for i.MX7D Date: Mon, 28 Oct 2019 11:12:50 +0800 Message-Id: <1572232370-31580-10-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.MX7D has a 64-bit SoC unique ID stored in OCOTP, it can be used as SoC serial number, see below example: root@imx7dsabresd:~# cat /sys/devices/soc0/serial_number 0000028FF618B953 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 17cfa86..d811803 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -160,6 +160,7 @@ struct device * __init imx_soc_device_init(void) soc_id = "i.MX6SLL"; break; case MXC_CPU_IMX7D: + ocotp_compat = "fsl,imx7d-ocotp"; soc_id = "i.MX7D"; break; case MXC_CPU_IMX7ULP: -- 2.7.4