From patchwork Thu Apr 30 03:05:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1279889 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (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 49CKyy2QCgz9sSd for ; Thu, 30 Apr 2020 13:06:18 +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=fAGWPv0I; 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 49CKyx1MjHzDrBm for ; Thu, 30 Apr 2020 13:06:17 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49CKyW3dLZzDr8t for ; Thu, 30 Apr 2020 13:05:55 +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=fAGWPv0I; 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 49CKyV4s6Wz9sSd; Thu, 30 Apr 2020 13:05:54 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1588215954; bh=zACoKkQahugGBDMAD41tk1S5ko+/jKI8CcqL5eUdkJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fAGWPv0IMJHwUUXMPzOk4u+oPmNgj3odwd6o2ONk+1Vy8heBdjUYwynrz/wCTHbP5 Rr+4GXsruLsCUexIRefPL4UWzZtQujygLP96suJG8eXSyb15xG/+2kxRjTeJ6YWV9S z9oGs94TJcSMooyAfEsiwAaXO09Na12WAbwoeTBDXaU0QtTNAmmdKZ5zMxD4NlxaPr LFfOx8w3xCQ6HE4qjnkr33VjubQmwUsPbfPJQezx0sntzffc9RqByF4EDkaQrYa/G4 +aBXf+2M8ciE6o97RXLH0P7iKvwc3Vpi/SKwNJT1tWk3Hm/yQYRBPw8KqkmcCVJG8W IUUDw7w78K1vw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 30 Apr 2020 13:05:37 +1000 Message-Id: <20200430030544.234289-5-amitay@ozlabs.org> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200430030544.234289-1-amitay@ozlabs.org> References: <20200430030544.234289-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH 04/11] dts: Populate all possible chips in bmc-cronus 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: Alistair Popple --- bmc-cronus.dts.m4 | 73 +++++++++++++++++++---------------------------- 1 file changed, 29 insertions(+), 44 deletions(-) diff --git a/bmc-cronus.dts.m4 b/bmc-cronus.dts.m4 index b9173b2..1ec49b5 100644 --- a/bmc-cronus.dts.m4 +++ b/bmc-cronus.dts.m4 @@ -1,67 +1,52 @@ -/dts-v1/; - -/ { - fsi0 { - compatible = "ibm,cronus-fsi"; - index = <0x0>; - system-path = "/proc0/fsi"; - }; - - pib0 { - compatible = "ibm,cronus-pib"; - index = <0x0>; - system-path = "/proc0/pib"; - }; - - fsi1 { +dnl +dnl CHIP([index]) +dnl +define(`CHIP', +` + fsi$1 { compatible = "ibm,cronus-fsi"; - index = <0x1>; - system-path = "/proc1/fsi"; + index = <0x$1>; + system-path = "/proc$1/fsi"; }; - pib1 { + pib$1 { compatible = "ibm,cronus-pib"; - index = <0x1>; - system-path = "/proc1/pib"; + index = <0x$1>; + system-path = "/proc$1/pib"; }; - sbefifo0 { - index = <0x0>; + sbefifo$1 { compatible = "ibm,cronus-sbefifo"; + index = <0x$1>; sbefifo-chipop { compatible = "ibm,sbefifo-chipop"; - index = <0x0>; + index = <0x$1>; }; sbefifo-mem { compatible = "ibm,sbefifo-mem"; - system-path = "/mem0"; + index = <0x$1>; + system-path = "/mem$1"; }; sbefifo-pba { compatible = "ibm,sbefifo-mem-pba"; - system-path = "/mempba0"; + index = <0x$1>; + system-path = "/mempba$1"; }; }; +')dnl - sbefifo1 { - index = <0x1>; - compatible = "ibm,cronus-sbefifo"; - - sbefifo-chipop { - compatible = "ibm,sbefifo-chipop"; - index = <0x1>; - }; - - sbefifo-mem { - compatible = "ibm,sbefifo-mem"; - system-path = "/mem1"; - }; +/dts-v1/; - sbefifo-pba { - compatible = "ibm,sbefifo-mem-pba"; - system-path = "/mempba1"; - }; - }; +/ { + CHIP(0) + CHIP(1) + CHIP(2) + CHIP(3) + CHIP(4) + CHIP(5) + CHIP(6) + CHIP(7) };