Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3128883ybg; Mon, 28 Oct 2019 07:57:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqykTzF4FsU/0+CR+TYVIECiEgCg3pB7i0OBfdPQYqWo5LUsEsuULqF0J1BlsxJW6B4+XrNY X-Received: by 2002:a05:6402:12d4:: with SMTP id k20mr20365067edx.241.1572274638819; Mon, 28 Oct 2019 07:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572274638; cv=none; d=google.com; s=arc-20160816; b=QKLQzpiIJ6YkMsS2OfRlh/soZr2JVHK3Hx5dulL1ejwLrL7l1eSbdPi6CQsLfwL6wP XGZrZ4UmqQrVSskys9qUvkps9yhnn5s51NBJ8nhDJZtS9B3tAXv2osUwx9eU/+2SIDEx +Po0R/DMhZJ9oobpARS8ICWLcC45wub7oQDD49y9BFELAdNAFhTDYDpFwsHxZrA+vmJ2 Lkvg2gsNjsAylH1xfWjLM9WTs9+coaztEyFTsbYiM/o9CGnfW4DS6dFYmpAIL1Whxctr 57sV/pS+49tZSWffx7zWGCBxwI+gly8jnX6EfUhfvb5S69LixivMllfMX/rUgAueHo+s Jg4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=IqkXrcRcjQ7Lp/W1AyKbxdTl7t3gCIzRBnH4bwtTvwg=; b=gFsukJtO5S8u1r7yzXpf2cF6zQGtgRhyhpjeb8VKWakULKgZY2uT6A7L2OSH5QHyOm O47lj3+aqkSgzaNy2Eno1saVV3YlheAJpazDfDc5trni6++Rcl3rQJJZkdLp5zLwzS93 7F9XURZaOp5tAZtI9Gw/1oGEAVDM5WHkmaM9uWvikG3RIC6K+gpxBF4Q9Q6BU6RKURyR lP3d7Tm42PY5CLx+8IjcaWLXz2doSYdWNz+kMxpcn8prbC34McDZthmR+P8aAAiYa+9G ubN+KhDCciOCLaZD1hJi8Y/XBFHgXUx09Ir4y/+uFf8PaB8kzSQgOYH7Wb01A0ELaa/F QvfQ== 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 w23si5518309ejb.156.2019.10.28.07.56.55; Mon, 28 Oct 2019 07:57:18 -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 S1726539AbfJ1DQI (ORCPT + 99 others); Sun, 27 Oct 2019 23:16:08 -0400 Received: from inva020.nxp.com ([92.121.34.13]:39508 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbfJ1DQI (ORCPT ); Sun, 27 Oct 2019 23:16:08 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 68D1C1A0B11; Mon, 28 Oct 2019 04:16:06 +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 232261A0058; Mon, 28 Oct 2019 04:16:02 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 486EA402F0; Mon, 28 Oct 2019 11:15:56 +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 0/9] Add SoC serial number support for i.MX6/7 SoCs Date: Mon, 28 Oct 2019 11:12:41 +0800 Message-Id: <1572232370-31580-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 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.MX6/7 SoCs have 64-bit unique ID stored in OCOTP bank 0, word 1/2, read them out as SoC serial number which can be used from userspace: root@imx7dsabresd:~# cat /sys/devices/soc0/serial_number 0000028FF618B953 Add support for i.MX6Q/6DL/6SL/6SX/6SLL/6UL/6ULL/6ULZ/7D, as they have same unique ID layout in OCOTP. Anson Huang (9): ARM: imx: Add serial number support for i.MX6Q ARM: imx: Add serial number support for i.MX6DL ARM: imx: Add serial number support for i.MX6SLL ARM: imx: Add serial number support for i.MX6ULL ARM: imx: Add serial number support for i.MX6UL ARM: imx: Add serial number support for i.MX6ULZ ARM: imx: Add serial number support for i.MX6SL ARM: imx: Add serial number support for i.MX6SX ARM: imx: Add serial number support for i.MX7D arch/arm/mach-imx/cpu.c | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) -- 2.7.4