From patchwork Mon Sep 21 02:06:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 11788205 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3211692C for ; Mon, 21 Sep 2020 02:07:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0047C2076B for ; Mon, 21 Sep 2020 02:07:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="PmcswrGH"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eYlxCzG3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0047C2076B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hkWPhU9OVUREyUK9aCVbBleMLoerbJIVdPnVd2+XN4g=; b=PmcswrGH9KmaIbiSNDApZmN4+ cW5it8SFfXUR+Oc7e98gMt9TuXqUM8nDF+XG1qfQ0+G76x1fEHZBQYxIKeBYvjDIStqqNhjexSm3D EY3IgXUJstDYdKmlhhJ7a9m/u6k3q1jj2H971tlySkv/B4eOR9+W9OcvjJkZCfBnGG6Edr5oh8iXU 2e6qdRVBNthx4CRHWeZjTKaNyudl/Q+6Z7wwXWG3D07PAa5o7/MhoPaJSb61Er0O/KCaF9tfGpYda Jd7ASVdTj5U3ekkEro/Sa63O7GgT9okwzCuNz3aOF73opJNZulzmUNRJI2wVtfuDlp0eDWgifS9RY 3lhjmMJdg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKBER-0006o8-GV; Mon, 21 Sep 2020 02:07:07 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKBEM-0006mm-N9 for linux-arm-kernel@lists.infradead.org; Mon, 21 Sep 2020 02:07:04 +0000 Received: by mail-pf1-x442.google.com with SMTP id z19so7931813pfn.8 for ; Sun, 20 Sep 2020 19:07:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6ZBN0qam3KgL2f4eIo4gvxv/2fMq0yNCUR67qzpJ44o=; b=eYlxCzG3q+dLrtkzv78Xe9/D1ULWer8POMSh+JPmuSRr1PZgjPZAEzwk5ewa4n1hv8 dOrTBD9LkmRveY9GPvZ5WpiqgEMZ27Ic005QuQnPcgeSYB32910pf+wm5kbAomQNNBJW 3m2/MGETD/7PpgKpMfh2YEWN5+p4FOtBUHsrd2IG90UM+evWRYRIoViNGAlQ0h8MeR06 MNyjd1OMi7UwgiDnzmmqzQn92GO155J44uaNXEtjj0IYC+Gh9TyuUqgYk2wdKzRWiQiQ Cm6CmtbXUvAD3X5+N0s6YrL8xwhmI4xXKRbPBP5IE10/hfIMSVpxYzQ9hT0VLoiZPNEj QVWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=6ZBN0qam3KgL2f4eIo4gvxv/2fMq0yNCUR67qzpJ44o=; b=Gb6/qVpS+wl8nnjVJoZzJN3QCUGyRa9dWDyY6ksEWgNNX3XyPEO9QnTNuovOCxfnvW n5EVQmkEsXBMpyTDFzULFXuO7h4jatgD33EXl1genlusn0Vj+xktyJCprsDU1SVKxtNj 9h5jyBVYnFMw02Q/cGULLNKAz/nU3Vglle4E8JWUlcSPMtjL5apRkzkNfKkY1B37PyMU YUqGDPXaGdqvfEtzCmE0lVWqWSdfkZK/abaWq0YCkXAqQlUlREGHRzPHs09Ms6Yon+Gg 154VQLWDvk6rBMAibWNKmg0nF0cqj6dJy+tAF1Nu8iBf14OmgGdKQ68RaYqgBJSHhLxg XGhw== X-Gm-Message-State: AOAM532lGkoIuM2h3sIj8pxMZ/NEO79JrsDiC4Dxjq49AHE5NjnSPLE9 1b219zXmH8GSozz7WJ6sHmM= X-Google-Smtp-Source: ABdhPJw38ty61aFKFx63xp4FzU69FkqkTnUY05r8RWw7YxGpgH4OKHJWjyCUMLxi0d03p2+XhAY9EA== X-Received: by 2002:a17:902:8341:b029:d2:29fc:c400 with SMTP id z1-20020a1709028341b02900d229fcc400mr1125275pln.5.1600654020258; Sun, 20 Sep 2020 19:07:00 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id z23sm10212045pfj.177.2020.09.20.19.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Sep 2020 19:06:59 -0700 (PDT) From: Joel Stanley To: Rob Herring Subject: [PATCH v2 2/3] soc: aspeed: Add soc info driver Date: Mon, 21 Sep 2020 11:36:40 +0930 Message-Id: <20200921020641.48733-3-joel@jms.id.au> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921020641.48733-1-joel@jms.id.au> References: <20200921020641.48733-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200920_220702_815370_C59DA152 X-CRM114-Status: GOOD ( 24.28 ) X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [joel.stan[at]gmail.com] -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This adds a SOC_BUS info driver for the ASPEED platform. The full ID table is preserved in this commit message in case someone finds a need to change the implemntation in the future. { "AST1100-A0", 0x00000200 }, { "AST1100-A1", 0x00000201 }, { "AST1100-A2", 0x00000202 }, { "AST1100-A3", 0x00000202 }, { "AST2050-A0", 0x00000200 }, { "AST2050-A1", 0x00000201 }, { "AST2050-A2", 0x00000202 }, { "AST2050-A3", 0x00000202 }, { "AST2100-A0", 0x00000300 }, { "AST2100-A1", 0x00000301 }, { "AST2100-A2", 0x00000302 }, { "AST2100-A3", 0x00000302 }, { "AST2150-A0", 0x00000202 }, { "AST2150-A1", 0x00000202 }, { "AST2200-A0", 0x00000102 }, { "AST2200-A1", 0x00000102 }, { "AST2300-A0", 0x01000003 }, { "AST2300-A1", 0x01010303 }, { "AST1300-A1", 0x01010003 }, { "AST1050-A1", 0x01010203 }, { "AST2400-A0", 0x02000303 }, { "AST2400-A1", 0x02010303 }, { "AST1400-A1", 0x02010103 }, { "AST1250-A1", 0x02010303 }, { "AST2500-A0", 0x04000303 }, { "AST2510-A0", 0x04000103 }, { "AST2520-A0", 0x04000203 }, { "AST2530-A0", 0x04000403 }, { "AST2500-A1", 0x04010303 }, { "AST2510-A1", 0x04010103 }, { "AST2520-A1", 0x04010203 }, { "AST2530-A1", 0x04010403 }, { "AST2500-A2", 0x04030303 }, { "AST2510-A2", 0x04030103 }, { "AST2520-A2", 0x04030203 }, { "AST2530-A2", 0x04030403 }, { "AST2600-A0", 0x05000303 }, { "AST2600-A1", 0x05010303 }, { "AST2600-A2", 0x05020303 }, { "AST2620-A1", 0x05010203 }, { "AST2620-A2", 0x05020203 }, Signed-off-by: Joel Stanley --- v2: - Fix of_node_puts - Skip kasprintf where it's not needed --- drivers/soc/aspeed/Kconfig | 7 ++ drivers/soc/aspeed/Makefile | 1 + drivers/soc/aspeed/aspeed-socinfo.c | 135 ++++++++++++++++++++++++++++ 3 files changed, 143 insertions(+) create mode 100644 drivers/soc/aspeed/aspeed-socinfo.c diff --git a/drivers/soc/aspeed/Kconfig b/drivers/soc/aspeed/Kconfig index 9ce252445605..7ece0675b1fa 100644 --- a/drivers/soc/aspeed/Kconfig +++ b/drivers/soc/aspeed/Kconfig @@ -31,6 +31,13 @@ config ASPEED_P2A_CTRL driver also provides an interface for userspace mappings to a pre-defined region. +config ASPEED_SOCINFO + bool "ASPEED SoC Information driver" + default ARCH_ASPEED + select SOC_BUS + help + Say yes to support decoding of ASPEED BMC information. + endmenu endif diff --git a/drivers/soc/aspeed/Makefile b/drivers/soc/aspeed/Makefile index b64be47f2b1f..fcab7192e1a4 100644 --- a/drivers/soc/aspeed/Makefile +++ b/drivers/soc/aspeed/Makefile @@ -2,3 +2,4 @@ obj-$(CONFIG_ASPEED_LPC_CTRL) += aspeed-lpc-ctrl.o obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o obj-$(CONFIG_ASPEED_P2A_CTRL) += aspeed-p2a-ctrl.o +obj-$(CONFIG_ASPEED_SOCINFO) += aspeed-socinfo.o diff --git a/drivers/soc/aspeed/aspeed-socinfo.c b/drivers/soc/aspeed/aspeed-socinfo.c new file mode 100644 index 000000000000..690810bc4a9b --- /dev/null +++ b/drivers/soc/aspeed/aspeed-socinfo.c @@ -0,0 +1,135 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* Copyright 2019 IBM Corp. */ + +#include +#include +#include +#include +#include +#include +#include + +static struct { + const char *name; + const u32 id; +} const rev_table[] = { + /* AST2400 */ + { "AST2400", 0x02000303 }, + { "AST1400", 0x02010103 }, + { "AST1250", 0x02010303 }, + /* AST2500 */ + { "AST2500", 0x04000303 }, + { "AST2510", 0x04000103 }, + { "AST2520", 0x04000203 }, + { "AST2530", 0x04000403 }, + /* AST2600 */ + { "AST2600", 0x05000303 }, + { "AST2620", 0x05010203 }, +}; + +static const char *siliconid_to_name(u32 siliconid) +{ + unsigned int id = siliconid & 0xff00ffff; + unsigned int i; + + for (i = 0 ; i < ARRAY_SIZE(rev_table) ; ++i) { + if (rev_table[i].id == id) + return rev_table[i].name; + } + + return "Unknown"; +} + +static const char *siliconid_to_rev(u32 siliconid) +{ + unsigned int rev = (siliconid >> 16) & 0xff; + + switch (rev) { + case 0: + return "A0"; + case 1: + return "A1"; + case 3: + return "A2"; + }; + + return "??"; +} + +static int __init aspeed_socinfo_init(void) +{ + struct soc_device_attribute *attrs; + struct soc_device *soc_dev; + struct device_node *np; + void __iomem *reg; + bool has_chipid = false; + u32 siliconid; + u32 chipid[2]; + const char *machine = NULL; + + np = of_find_compatible_node(NULL, NULL, "aspeed,silicon-id"); + if (!of_device_is_available(np)) { + of_node_put(np); + return -ENODEV; + } + + reg = of_iomap(np, 0); + if (!reg) + return -ENODEV; + siliconid = readl(reg); + iounmap(reg); + + /* This is optional, the ast2400 does not have it */ + reg = of_iomap(np, 1); + if (reg) { + has_chipid = true; + chipid[0] = readl(reg); + chipid[1] = readl(reg + 4); + iounmap(reg); + } + of_node_put(np); + + attrs = kzalloc(sizeof(*attrs), GFP_KERNEL); + if (!attrs) + return -ENODEV; + + /* + * Machine: Romulus BMC + * Family: AST2500 + * Revision: A1 + * SoC ID: raw silicon revision id + * Serial Number: 64-bit chipid + */ + + np = of_find_node_by_path("/"); + of_property_read_string(np, "model", &machine); + if (machine) + attrs->machine = kstrdup(machine, GFP_KERNEL); + of_node_put(np); + + attrs->family = siliconid_to_name(siliconid); + attrs->revision = siliconid_to_rev(siliconid); + attrs->soc_id = kasprintf(GFP_KERNEL, "%08x", siliconid); + + if (has_chipid) + attrs->serial_number = kasprintf(GFP_KERNEL, "%08x%08x", + chipid[1], chipid[0]); + + soc_dev = soc_device_register(attrs); + if (IS_ERR(soc_dev)) { + kfree(attrs->family); + kfree(attrs->revision); + kfree(attrs->soc_id); + kfree(attrs->serial_number); + kfree(attrs); + return PTR_ERR(soc_dev); + } + + pr_info("ASPEED BMC %s rev %s (%s)\n", + attrs->family, + attrs->revision, + attrs->soc_id); + + return 0; +} +early_initcall(aspeed_socinfo_init); From patchwork Mon Sep 21 02:06:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 11788207 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 780D692C for ; Mon, 21 Sep 2020 02:07:23 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 46E79207BB for ; Mon, 21 Sep 2020 02:07:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="H08mW+Bv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ziwh1Ovw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 46E79207BB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1P3aOO65mVU6VjLc9vDH+iPS+AeNrJgXyD3SCPIoPsI=; b=H08mW+Bvpql56WT5QXdEIAKd+ HwyAcFbUDazg9jxSDSVwXzS127hrWl+IA1//RhoeeiIK9+nQKdKITQvh25i1NnUCq7XlFBPwiEmLo DhkU4E/liWKWLALPFHDLkt7HSuLUIlWbvgxX5QUQUy7pTZtjnUGHuEM1e92P5drzGkeXm6RF51sWt V2+zkajGUJCGpSdNK/MHcvIdBJOQQTpJoYk04YSmDo7CxfBeOj6T4fQpAAZlAf8HwjRs9V7wR2hKG OFmhPn4LjEqvL9ddDqtq6/k9YTYTQ/tTycnQEbElt5OERK5yyHqSzp1iAaYmmbEqRWwkQFoEluVv2 UiuZR4yFQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKBEX-0006pM-Lz; Mon, 21 Sep 2020 02:07:13 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKBEQ-0006nT-0h for linux-arm-kernel@lists.infradead.org; Mon, 21 Sep 2020 02:07:06 +0000 Received: by mail-pg1-x541.google.com with SMTP id f2so7663191pgd.3 for ; Sun, 20 Sep 2020 19:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sn5K/Ys4ffnC/CyJiVbEeEFS78Vl8Zham2P4UxWGNJU=; b=Ziwh1OvwNb98aRPS1IfvK+ggJXAkMHMBg4+uc9Ms/7iaRLjUQF8zPClYzjeuDO7oUV 8dIjjC/YkKSm587O6rz2kffYu9MhMZzZGzAAfVbeA59WGr7mEeKSNspdC9EyYgSJ45r5 Iv86LPwzePwhw8sRsZ/HWQ0qktukwfJnzI1f1t2NLnSCeUe2b1L5g1tfei4T7XV42PFF EBFZ5cO3w8bCcqinCxJHAzPe9crOg8n3GuhUtT6TwOLw/u59bHwCWGK6mRTVaSRq7Mfx QjnYX/jnvMVaajEsSWtgXZMz/MFUrfVuV6X/hX/0uQnIx+lxOa0LWOldMZNsObDc90Ex nkkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=sn5K/Ys4ffnC/CyJiVbEeEFS78Vl8Zham2P4UxWGNJU=; b=CmyeYzGoaGSMbjHQCiVST06y/Tb1JDTFNuV1q/3XlMkJPr8aJa/a4aq1KB0m5YRgH8 QsI0DFJ/eYMu7WBQe0qCZ5HDi2rexrGM8DVSLBCu4BTInLPU9aemFOfMc9gf+i9RF+uJ w691vcrUuFu6Odmv5H9WKnZudgXJkXuxIwNCKidsXl2NQyqAQl5UomTkVEkY5ww1xWXe uaJuF84tj2il7VUzcsAcNcGVDV/qRjDIp3hwuNLBhliaMr4pm6TRb61J99VQgmVc9A0I 0WNn4YRDMnTLmKPCfapx8EJp4SODGVNEOsbf8Oaiwu3hwPKnCRP9ga5ks9bUOLdunQMB VyoQ== X-Gm-Message-State: AOAM530GUGXPYFSkegf1FKgfdRUISGYTEnn9a7Qw+0Jvx4Lc1T6Bu53C sgUEluIk8YqU6sZBxU6oEh4= X-Google-Smtp-Source: ABdhPJyQx6RC7ogqW+OrOcLs82eHfexrnrEdblukIn9TqL2NrqaIRomxbf3FJgFhwwo+u6IkMry5dQ== X-Received: by 2002:a65:5249:: with SMTP id q9mr8892871pgp.79.1600654023755; Sun, 20 Sep 2020 19:07:03 -0700 (PDT) Received: from localhost.localdomain ([45.124.203.18]) by smtp.gmail.com with ESMTPSA id z23sm10212045pfj.177.2020.09.20.19.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Sep 2020 19:07:02 -0700 (PDT) From: Joel Stanley To: Rob Herring Subject: [PATCH v2 3/3] ARM: dts: aspeed: Add silicon id node Date: Mon, 21 Sep 2020 11:36:41 +0930 Message-Id: <20200921020641.48733-4-joel@jms.id.au> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921020641.48733-1-joel@jms.id.au> References: <20200921020641.48733-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200920_220706_107332_6B44C99E X-CRM114-Status: GOOD ( 12.87 ) X-Spam-Score: 0.4 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:541 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [joel.stan[at]gmail.com] -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This register describes the silicon id and chip unique id. It varies between CPU revisions, but is always part of the SCU. Signed-off-by: Joel Stanley --- v2: Fix whitespace --- arch/arm/boot/dts/aspeed-g4.dtsi | 5 +++++ arch/arm/boot/dts/aspeed-g5.dtsi | 5 +++++ arch/arm/boot/dts/aspeed-g6.dtsi | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g4.dtsi b/arch/arm/boot/dts/aspeed-g4.dtsi index 82f0213e3a3c..b3dafbc8caca 100644 --- a/arch/arm/boot/dts/aspeed-g4.dtsi +++ b/arch/arm/boot/dts/aspeed-g4.dtsi @@ -192,6 +192,11 @@ p2a: p2a-control@2c { status = "disabled"; }; + silicon-id@7c { + compatible = "aspeed,ast2400-silicon-id", "aspeed,silicon-id"; + reg = <0x7c 0x4>; + }; + pinctrl: pinctrl@80 { reg = <0x80 0x18>, <0xa0 0x10>; compatible = "aspeed,ast2400-pinctrl"; diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index 9c91afb2b404..c6862182313a 100644 --- a/arch/arm/boot/dts/aspeed-g5.dtsi +++ b/arch/arm/boot/dts/aspeed-g5.dtsi @@ -239,6 +239,11 @@ p2a: p2a-control@2c { status = "disabled"; }; + silicon-id@7c { + compatible = "aspeed,ast2500-silicon-id", "aspeed,silicon-id"; + reg = <0x7c 0x4 0x150 0x8>; + }; + pinctrl: pinctrl@80 { compatible = "aspeed,ast2500-pinctrl"; reg = <0x80 0x18>, <0xa0 0x10>; diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index b58220a49cbd..1ce3a1f06f7f 100644 --- a/arch/arm/boot/dts/aspeed-g6.dtsi +++ b/arch/arm/boot/dts/aspeed-g6.dtsi @@ -311,6 +311,11 @@ pinctrl: pinctrl { compatible = "aspeed,ast2600-pinctrl"; }; + silicon-id@14 { + compatible = "aspeed,ast2600-silicon-id", "aspeed,silicon-id"; + reg = <0x14 0x4 0x5b0 0x8>; + }; + smp-memram@180 { compatible = "aspeed,ast2600-smpmem"; reg = <0x180 0x40>;