Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3023283ybg; Mon, 28 Oct 2019 06:16:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPcrpWVi5vqI5kjcI12tem0EB5dSwoQsPqtK44A/jPnPw7Ddvf8L9gaHdJE/UQdOhY0TfF X-Received: by 2002:a17:906:5407:: with SMTP id q7mr16787596ejo.24.1572268610782; Mon, 28 Oct 2019 06:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572268610; cv=none; d=google.com; s=arc-20160816; b=I2ez/lMESWldizpzZxM4aVS0KpyRhlmM9pcC4ZB7wqPV4HVfkVjBIIHgpLYSgNL38P FxnBYSszy5IF9+BJorLgdyoSZ6+vPzhAVbYqyV69o1jzNfpE+JrzIB/nU1FtCCWko5ij 9/iUSD9kSrnvy+z435cSUkwQjqmxqqGH77mtC/Wp2k4ef+y+/aGHSHVTukiuAisZ3IfI Ws14jqIDasLbDR+Fk+0MlyEkF9LCPjaQzApcPhMW+0Y7DSq7Wz6xE/lPlb1IMCJLZTP4 Nmo9VrrlaYPfw7jr+9Xfzl0jGm704djKf+8po+A2ud3wg/4EVUDNQWSFn3QBUQTY7S/M L4HA== 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=hNX+IGrxPqdklRqGShw/33oS1CD6CBrw2hvLDOsaF9I=; b=PstlbP9rL3rtFMzEv1Dr1VRpIdZXKIwHoRBDILqiGBFiVYfr1TLgWQXJsgXlhkicXF kLV+iTNfeqlfCS2dWGhon+XWk0O6hcKCsiJMLZZioJRUnYn25Ccsptuk6cutR0wkNYql Xv/UNvUyanMZA5K5DBQH7zIrHYjAg/4brMEW2fFaOM84dEXxIf63pJxPiquv5+GMs1bd 83QaAF7YC/FaloNdz2FfCgkrf35ArOdcv43OAeXO0FUluKGQfNDDk0YAprEsAvWZkLBw 6BbzzZw+H9Fgbz8RzeN4bHlX1VWc1VFP4g2LC9IzQjfUJD3MHLT30ad26l7Zlj4d5Sr+ x0Kg== 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 k51si7668117edb.411.2019.10.28.06.16.27; Mon, 28 Oct 2019 06:16:50 -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 S1730092AbfJ1DQL (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:11 -0400 Received: from inva020.nxp.com ([92.121.34.13]:39716 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbfJ1DQL (ORCPT ); Sun, 27 Oct 2019 23:16:11 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3BFC21A0B05; 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 inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id EE5721A0B0E; Mon, 28 Oct 2019 04:16:05 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 83F1D40309; Mon, 28 Oct 2019 11:15:58 +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 2/9] ARM: imx: Add serial number support for i.MX6DL Date: Mon, 28 Oct 2019 11:12:43 +0800 Message-Id: <1572232370-31580-3-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.MX6DL 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 706519D4D72D7859 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 3293c1d..54e5ab3 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -131,6 +131,7 @@ struct device * __init imx_soc_device_init(void) soc_id = "i.MX6SL"; break; case MXC_CPU_IMX6DL: + ocotp_compat = "fsl,imx6q-ocotp"; soc_id = "i.MX6DL"; break; case MXC_CPU_IMX6SX: -- 2.7.4