From patchwork Thu Oct 1 07:07:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1374868 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C245235Ftz9sVk for ; Thu, 1 Oct 2020 17:09:58 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=TIa1RkHv; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C24522PPWzDqTk for ; Thu, 1 Oct 2020 17:09:58 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4C244t2Zc1zDqTD for ; Thu, 1 Oct 2020 17:09:50 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=TIa1RkHv; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4C244g2P3Cz9sVL; Thu, 1 Oct 2020 17:09:38 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1601536189; bh=f3zPZZyR6f95+auFc5w2vErRgwo5uHfwoR4WsYrrAzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TIa1RkHv1RHINo0XC83JBk/MHzpNnpPY089E8FQjhngEeRf2+wNmaNjC8Ba9R5Vlz oRLiA+KQXDh6n2v3SSPj+JE0DY+DhOP9arqWaU/BRrDwps9jKNNovh4TyhS1y9kuYo PcC+izA/G3lPu1c9zSE7ymYl0iacHb6HIX8QzpM7qzmVRShh/PqBhG7JwpWaiWWJ0h 82xKXo4PsHvU4DuT/odZ8w2djGehP2n+Jx7+pkpCeUok/+m7doc3Qhasca0P/2Qhpc ux5kvjUvaUqZ6pfglZZdQ7qjqI80CsAFHXQSGuWLyP1CFi9mknN0ZY2uobg4y1ZHOw tQbEv0nDa9T3w== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 1 Oct 2020 17:07:56 +1000 Message-Id: <20201001070814.102735-3-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201001070814.102735-1-amitay@ozlabs.org> References: <20201001070814.102735-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 02/20] dts: Add p10 device tree X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Joel Stanley --- Makefile.am | 2 +- p10.dts.m4 | 652 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 653 insertions(+), 1 deletion(-) create mode 100644 p10.dts.m4 diff --git a/Makefile.am b/Makefile.am index dce09ab..d4f7dc1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,7 +60,7 @@ DT = fake.dts fake-backend.dts fake2.dts fake2-backend.dts \ p8-fsi.dts p8-i2c.dts p8-kernel.dts \ p9w-fsi.dts p9r-fsi.dts p9z-fsi.dts bmc-kernel.dts \ bmc-sbefifo.dts \ - p8-host.dts p9-host.dts p8.dts p9.dts + p8-host.dts p9-host.dts p8.dts p9.dts p10.dts DT_sources = $(DT:.dts=.dtb.S) DT_headers = $(DT:.dts=.dt.h) diff --git a/p10.dts.m4 b/p10.dts.m4 new file mode 100644 index 0000000..aee608f --- /dev/null +++ b/p10.dts.m4 @@ -0,0 +1,652 @@ +define(`CONCAT', `$1$2')dnl + +dnl +dnl CORE([index]) +dnl +define(`THREAD', +` + thread@$1 { + reg = <0x00>; + compatible = "ibm,power-thread", "ibm,power10-thread"; + index = <0x$1>; + }; +')dnl + +dnl +dnl CORE([index]) +dnl +define(`CORE', +` + core@0 { + #address-cells = <0x01>; + #size-cells = <0x00>; + reg = <0x00 0x00 0xfffff>; + compatible = "ibm,power-core", "ibm,power10-core"; + index = <0x$1>; + + THREAD(0) + THREAD(1) + THREAD(2) + THREAD(3) + }; +')dnl + +dnl +dnl CHIPLET__([index]) +dnl +define(`CHIPLET__', +`define(`addr', CONCAT($1, 000000))dnl + + CONCAT(chiplet@, addr) { + reg = <0x00 CONCAT(0x,addr) 0xfffff>; + compatible = "ibm,power10-chiplet"; + index = <0x$1>; + +')dnl + +dnl +dnl CHIPLET_([index]) +dnl +define(`CHIPLET_', +`define(`addr', CONCAT($1, 000000))dnl + + CONCAT(chiplet@, addr) { + #address-cells = <0x02>; + #size-cells = <0x01>; + reg = <0x00 CONCAT(0x,addr) 0xfffff>; + compatible = "ibm,power10-chiplet"; + index = <0x$1>; + +')dnl + +dnl +dnl EQ_([index]) +dnl +define(`EQ_', +`define(`chiplet_id', CONCAT(1, $1))dnl +define(`addr', CONCAT(chiplet_id, 000000))dnl + + eq@$1 { + #address-cells = <0x02>; + #size-cells = <0x01>; + reg = <0x00 CONCAT(0x,addr) 0xfffff>; + compatible = "ibm,power10-eq"; + index = <$1>; + +')dnl + +dnl +dnl EX_([eq_index, ex_index]) +dnl +define(`EX_', +`define(`chiplet_id', CONCAT(1, $1))dnl +define(`addr', CONCAT(chiplet_id, 000000))dnl + + ex@$2 { + #address-cells = <0x02>; + #size-cells = <0x01>; + reg = <0x00 CONCAT(0x,addr) 0xfffff>; + compatible = "ibm,power10-ex"; + index = <$2>; + +')dnl + +dnl +dnl CHIP([index]) +dnl +define(`CHIP', +` + mem$1 { + index = < 0x$1 >; + }; + + proc$1 { + compatible = "ibm,power-proc", "ibm,power10-proc"; + index = < 0x$1 >; + + fsi { + index = < 0x$1 >; + }; + + pib { + #address-cells = < 0x02 >; + #size-cells = < 0x01 >; + index = < 0x$1 >; + + adu@90000 { + compatible = "ibm,power10-adu"; + reg = < 0x00 0x90000 0x50 >; + system-path = "/mem$1"; + }; + + htm@5012880 { + compatible = "ibm,power10-nhtm"; + reg = < 0x00 0x5012880 0x40 >; + index = < 0x$1 >; + }; + + htm@50128C0 { + compatible = "ibm,power10-nhtm"; + reg = < 0x00 0x50128c0 0x40 >; + index = < 0x$1 >; + }; + + CHIPLET_(1) + tp@0 { + reg = < 0x00 0x1000000 0xfffff >; + compatible = "ibm,power10-tp"; + index = < 0x00 >; + }; + }; + + CHIPLET__(2) + n0 { + compatible = "ibm,power10-nest"; + index = < 0x00 >; + + capp0 { + compatible = "ibm,power10-capp"; + index = < 0x00 >; + }; + }; + }; + + CHIPLET__(3) + n1 { + compatible = "ibm,power10-nest"; + index = < 0x01 >; + + mcs2 { + compatible = "ibm,power10-mcs"; + index = < 0x02 >; + }; + + mcs3 { + compatible = "ibm,power10-mcs"; + index = < 0x03 >; + }; + }; + }; + + CHIPLET__(4) + n2 { + compatible = "ibm,power10-nest"; + index = < 0x02 >; + + capp1 { + compatible = "ibm,power10-capp"; + index = < 0x01 >; + }; + }; + }; + + CHIPLET__(5) + n3 { + compatible = "ibm,power10-nest"; + index = < 0x03 >; + + mcs0 { + compatible = "ibm,power10-mcs"; + index = < 0x00 >; + }; + + mcs1 { + compatible = "ibm,power10-mcs"; + index = < 0x01 >; + }; + }; + }; + + CHIPLET_(6) + xbus$1_0: xbus@0 { + compatible = "ibm,power10-xbus"; + index = < 0x01 >; + reg = < 0x00 0x6000000 0xfffff >; + }; + }; + + CHIPLET_(7) + mc@0 { + reg = < 0x00 0x7000000 0xfffff >; + compatible = "ibm,power10-mc"; + index = < 0x00 >; + + mca0 { + compatible = "ibm,power10-mca"; + index = < 0x00 >; + }; + + mca1 { + compatible = "ibm,power10-mca"; + index = < 0x01 >; + }; + + mca2 { + compatible = "ibm,power10-mca"; + index = < 0x02 >; + }; + + mca3 { + compatible = "ibm,power10-mca"; + index = < 0x03 >; + }; + + mcbist { + compatible = "ibm,power10-mcbist"; + index = < 0x00 >; + }; + }; + }; + + CHIPLET_(8) + mc@1 { + reg = < 0x00 0x8000000 0xfffff >; + compatible = "ibm,power10-mc"; + index = < 0x01 >; + + mca0 { + compatible = "ibm,power10-mca"; + index = < 0x04 >; + }; + + mca1 { + compatible = "ibm,power10-mca"; + index = < 0x05 >; + }; + + mca2 { + compatible = "ibm,power10-mca"; + index = < 0x06 >; + }; + + mca3 { + compatible = "ibm,power10-mca"; + index = < 0x07 >; + }; + + mcbist { + compatible = "ibm,power10-mcbist"; + index = < 0x01 >; + }; + }; + }; + + CHIPLET_(9) + obus@0 { + reg = < 0x00 0x9000000 0xfffff >; + compatible = "ibm,power10-obus"; + index = < 0x00 >; + }; + + obrick0 { + compatible = "ibm,power10-obus_brick"; + index = < 0x00 >; + }; + + obrick1 { + compatible = "ibm,power10-obus_brick"; + index = < 0x01 >; + }; + + obrick2 { + compatible = "ibm,power10-obus_brick"; + index = < 0x02 >; + }; + }; + + CHIPLET_(c) + obus@3 { + reg = < 0x00 0xc000000 0xfffff >; + compatible = "ibm,power10-obus"; + index = < 0x03 >; + }; + + obrick0 { + compatible = "ibm,power10-obus_brick"; + index = < 0x09 >; + }; + + obrick1 { + compatible = "ibm,power10-obus_brick"; + index = < 0x0a >; + }; + + obrick2 { + compatible = "ibm,power10-obus_brick"; + index = < 0x0b >; + }; + }; + + CHIPLET_(d) + pec@d000000 { + reg = < 0x00 0xd000000 0xfffff >; + compatible = "ibm,power10-pec"; + index = < 0x00 >; + }; + + phb0 { + compatible = "ibm,power10-phb"; + index = < 0x00 >; + }; + + phb1 { + compatible = "ibm,power10-phb"; + index = < 0x01 >; + }; + }; + + CHIPLET_(e) + pec@e000000 { + reg = < 0x00 0xe000000 0xfffff >; + compatible = "ibm,power10-pec"; + index = < 0x01 >; + }; + + phb0 { + compatible = "ibm,power10-phb"; + index = < 0x02 >; + }; + + phb1 { + compatible = "ibm,power10-phb"; + index = < 0x03 >; + }; + }; + + CHIPLET_(f) + pec@f000000 { + reg = < 0x00 0xf000000 0xfffff >; + compatible = "ibm,power10-pec"; + index = < 0x02 >; + }; + + phb0 { + compatible = "ibm,power10-phb"; + index = < 0x04 >; + }; + + phb1 { + compatible = "ibm,power10-phb"; + index = < 0x05 >; + }; + }; + + CHIPLET_(10) + EQ_(0) + EX_(0,0) + CHIPLET_(20) + CORE(00) + }; + + CHIPLET_(21) + CORE(01) + }; + }; + + EX_(0,1) + CHIPLET_(22) + CORE(02) + }; + + CHIPLET_(23) + CORE(03) + }; + }; + }; + }; + + CHIPLET_(11) + EQ_(1) + EX_(1,0) + CHIPLET_(24) + CORE(04) + }; + + CHIPLET_(25) + CORE(05) + }; + }; + + EX_(1,1) + CHIPLET_(26) + CORE(06) + }; + + CHIPLET_(27) + CORE(07) + }; + }; + }; + }; + + CHIPLET_(12) + EQ_(2) + EX_(2,0) + CHIPLET_(28) + CORE(08) + }; + + CHIPLET_(29) + CORE(09) + }; + }; + + EX_(2,1) + CHIPLET_(2a) + CORE(0a) + }; + + CHIPLET_(2b) + CORE(0b) + }; + }; + }; + }; + + CHIPLET_(13) + EQ_(3) + EX_(3,0) + CHIPLET_(2c) + CORE(0c) + }; + + CHIPLET_(2d) + CORE(0d) + }; + }; + + EX_(3,1) + CHIPLET_(2e) + CORE(0e) + }; + + CHIPLET_(2f) + CORE(0f) + }; + }; + }; + }; + + CHIPLET_(14) + EQ_(4) + EX_(4,0) + CHIPLET_(30) + CORE(10) + }; + + CHIPLET_(31) + CORE(11) + }; + }; + + EX_(4,1) + CHIPLET_(32) + CORE(12) + }; + + CHIPLET_(33) + CORE(13) + }; + }; + }; + }; + + CHIPLET_(15) + EQ_(5) + EX_(5,0) + CHIPLET_(34) + CORE(14) + }; + + CHIPLET_(35) + CORE(15) + }; + }; + + EX_(5,1) + CHIPLET_(36) + CORE(16) + }; + + CHIPLET_(37) + CORE(17) + }; + }; + }; + }; + + nv0 { + compatible = "ibm,power10-nv"; + index = < 0x00 >; + }; + + nv1 { + compatible = "ibm,power10-nv"; + index = < 0x01 >; + }; + + nv2 { + compatible = "ibm,power10-nv"; + index = < 0x02 >; + }; + + nv3 { + compatible = "ibm,power10-nv"; + index = < 0x03 >; + }; + + nv4 { + compatible = "ibm,power10-nv"; + index = < 0x04 >; + }; + + nv5 { + compatible = "ibm,power10-nv"; + index = < 0x05 >; + }; + + occ0 { + compatible = "ibm,power10-occ"; + index = < 0x00 >; + }; + + sbe0 { + compatible = "ibm,power10-sbe"; + index = < 0x00 >; + }; + + ppe0 { + compatible = "ibm,power10-ppe"; + index = < 0x00 >; + }; + + ppe1 { + compatible = "ibm,power10-ppe"; + index = < 0x0a >; + }; + + ppe2 { + compatible = "ibm,power10-ppe"; + index = < 0x0d >; + }; + + ppe3 { + compatible = "ibm,power10-ppe"; + index = < 0x14 >; + }; + + ppe4 { + compatible = "ibm,power10-ppe"; + index = < 0x19 >; + }; + + ppe5 { + compatible = "ibm,power10-ppe"; + index = < 0x1e >; + }; + + ppe6 { + compatible = "ibm,power10-ppe"; + index = < 0x28 >; + }; + + ppe7 { + compatible = "ibm,power10-ppe"; + index = < 0x29 >; + }; + + ppe8 { + compatible = "ibm,power10-ppe"; + index = < 0x2a >; + }; + + ppe9 { + compatible = "ibm,power10-ppe"; + index = < 0x2b >; + }; + + ppe10 { + compatible = "ibm,power10-ppe"; + index = < 0x2c >; + }; + + ppe11 { + compatible = "ibm,power10-ppe"; + index = < 0x2d >; + }; + + ppe12 { + compatible = "ibm,power10-ppe"; + index = < 0x2e >; + }; + + ppe13 { + compatible = "ibm,power10-ppe"; + index = < 0x32 >; + }; + + ppe14 { + compatible = "ibm,power10-ppe"; + index = < 0x34 >; + }; + + ppe15 { + compatible = "ibm,power10-ppe"; + index = < 0x38 >; + }; + }; + }; +')dnl + +/dts-v1/; + +/ { + CHIP(0) + CHIP(1) + CHIP(2) + CHIP(3) + CHIP(4) + CHIP(5) + CHIP(6) + CHIP(7) +};