Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3129119ybg; Mon, 28 Oct 2019 07:57:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUTKz8akDr1ZNi53TO0XP4UT4TccayktMDmSgtpzYQPt4uWpaoqk4cnFoCFOTXy6/z+mAC X-Received: by 2002:a50:b6e1:: with SMTP id f30mr19947045ede.212.1572274654286; Mon, 28 Oct 2019 07:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572274654; cv=none; d=google.com; s=arc-20160816; b=mCbtAnWHs+s3wWusoMSLGx65szpNa5TT8SPhGOBX5cn9OCpLRWSjwUtlY5xSl6ZCFj lJZMxDyI8WdAGQ7/VLjbSIhQORhtuPZbMLjqp7EBpdaz+Dijx+zfdzGHhSMoL+CNgwjr PK0EU1O1ey1vpioGrvysqsGtjeTNZSmw1D+RxGSP9tWE9tXYgeW/5gwFgpgjGXjzEkwz CsWaJUs/W0BisHg2nXC+4BMFDYWyaK8tRW5IOxbfhZHBwUbloI53juhnJ7k/GYaAN8Jx KWC9XHvugfYuqXNaxvd4rb06jYdAM0javenZSeHXkkKUln0HsRSS3MK10v3j3GvH9K5J nbpg== 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=i1vm0QsyXp55TRelfj3LB/zz/fo+vyw299IQK0FWmFo=; b=CRtwDgOyKt5dUOhjoB63CHyVGOf75yexN+WYR1HV/wp4IE2fgAr882/bvv5W+N8CX6 8mu9pvmEO6WLJQgOEft3TvXjZEVGapGBbRhLmO5wk6bb9sjPAYO64o9HF6QpiN/qt4vB ouGw024IWgKxn0ycXcP+jN8AHPgK9WMtQKLb6z7t92hsIoFrQGg+zOSKUNPHrEti5AxX 15pe/PQqfKRYZ22kn08LfMk6LWxLNW+Ax9bwpMeabKmbGoQ1zXUov3b+auzHo47AYwUT fE/mxu6NS6p8v371Oq9bfAjQQtNDbpZeazv0GIFeljb1WFzin7WTwqO+Zq3+K2O3EC7a 7qgQ== 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 s20si7888192edd.294.2019.10.28.07.57.10; Mon, 28 Oct 2019 07:57:34 -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 S1730330AbfJ1DQX (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:23 -0400 Received: from inva020.nxp.com ([92.121.34.13]:40288 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730182AbfJ1DQS (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 4A5D31A0B42; 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 0A3A11A0B20; 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 592FD40334; Mon, 28 Oct 2019 11:16:03 +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 6/9] ARM: imx: Add serial number support for i.MX6ULZ Date: Mon, 28 Oct 2019 11:12:47 +0800 Message-Id: <1572232370-31580-7-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.MX6ULZ 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 8797AEF098CAB901 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 1e8150e..1274b52 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -150,6 +150,7 @@ struct device * __init imx_soc_device_init(void) soc_id = "i.MX6ULL"; break; case MXC_CPU_IMX6ULZ: + ocotp_compat = "fsl,imx6ul-ocotp"; soc_id = "i.MX6ULZ"; break; case MXC_CPU_IMX6SLL: -- 2.7.4