Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3032387ybg; Mon, 28 Oct 2019 06:25:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqweM/5oC1XI039PrDKo+l+LPGHEAnTROUvcgDPCYa7AkzVCWJqHr3G2Q9iKH2BZ5VmTQjXl X-Received: by 2002:aa7:c1cb:: with SMTP id d11mr19664962edp.40.1572269113189; Mon, 28 Oct 2019 06:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572269113; cv=none; d=google.com; s=arc-20160816; b=JeJK9XuhNHHFzGe1i593N/JjssmvqEKGGNk7xi/UY+hyzXA0tcY5yUBAqc7jxRrj4v NyBqZWBI3UhMuLHIzR9zNoKu23zTNejvOSuw0uAUC9EYuorfZAwdFyMYE/bMcEdc6itr xay4Cmh3sKhNGWEUfrI9OLe/8CXUq+yf9Z9y0UzdUqb3ZhHxqXjoQeUXhkaoMW42cDjC STu0+rzX8DRUd1ekiEKXmxzIo94GvdZaecKPM0tyK+XfIZet4qg9qMoGvpppGAOIyI3N cT32mOoRrgWDgspGiKVV+S0VXxWCw9gSglkY04cVo6DJ0bS3TKZBCup2Z/5pn9CIXlu5 cGWw== 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=jEJlcoQOeBxBNT/6pvBdr45sReglbny2KzvQzg9+fj0=; b=MBcLd/uvx5TfPEHYFKvaeUH45jQOsERsLv7a+MCKMtK3kQRV2bvksd/NDzwLckJKYg RzmN7SgJATSzEV/E9+uoPPpMGZFYYQEX+iW5/YVvx6K03Z8nNdVrnHSj8h07MrHxA+cK PE4TR2YOiyIKOckei6GxaWmQ4d932ZZ+iv88V121M8TZLGotQ9XOTqzXdqE7a5Fw7Nnf LG74u6lXWEwt8gT7LI9SWDz6Gs+SA9bvshTTno1ZpNQEPd2FidlGJoIWzCbYUBQZ94iV 8l1GnFqTUw4GQWWWuvaWKlHu44L3fZ5BFAe5YTmRoUa2JSIXDRxpG6cXpyPxRQs7gW9q 9Gew== 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 nr22si6221736ejb.16.2019.10.28.06.24.46; Mon, 28 Oct 2019 06:25:13 -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 S1730122AbfJ1DQ3 (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:29 -0400 Received: from inva020.nxp.com ([92.121.34.13]:40248 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730161AbfJ1DQR (ORCPT ); Sun, 27 Oct 2019 23:16:17 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0D7681A0C3F; 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 C11881A06B7; Mon, 28 Oct 2019 04:16:11 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 5A03940310; Mon, 28 Oct 2019 11:16:05 +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 8/9] ARM: imx: Add serial number support for i.MX6SX Date: Mon, 28 Oct 2019 11:12:49 +0800 Message-Id: <1572232370-31580-9-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.MX6SX has a 64-bit SoC unique ID stored in OCOTP, it can be used as SoC serial number, see below example: root@imx6qpdlsolox:~# cat /sys/devices/soc0/serial_number 986540983AE87921 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 eb65eff..17cfa86 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -136,6 +136,7 @@ struct device * __init imx_soc_device_init(void) soc_id = "i.MX6DL"; break; case MXC_CPU_IMX6SX: + ocotp_compat = "fsl,imx6sx-ocotp"; soc_id = "i.MX6SX"; break; case MXC_CPU_IMX6Q: -- 2.7.4