Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp225359lqt; Thu, 18 Apr 2024 13:10:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpqiHNTEUdqA5YZjHtvQUwgjv0mAYPv5SnjXcO5TPwk/5H8Yqs+zRHXGz62XuKgg6AmhxGnvX10POUJOi9PLac77CYrGsia25PsMYbtg== X-Google-Smtp-Source: AGHT+IEWA4Ytc8n19pRwCLtHkB8rKqDPHuQeKik3RYxcKWQ5YSgDHquKfAoon0ItKd+G6gM5aVgi X-Received: by 2002:a05:6a20:ba20:b0:1aa:583e:17c8 with SMTP id fa32-20020a056a20ba2000b001aa583e17c8mr285461pzb.52.1713471038997; Thu, 18 Apr 2024 13:10:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713471038; cv=pass; d=google.com; s=arc-20160816; b=uJFkfgx9zfxjdVPZHa0zLu0WXZ23FffMf+On61cWc99ASAAMnbTE9cr4b3YM4223cz O2Z5+ydNmPtRvIBBlzP3vvsHZ//TUjyrQgHiFpI6NA8Qc469QztYn1pkDsqQS69JbSmy EwHvfVvAlLdwpPwQcqJN8v5WdFCTqbw0wbFrZl5W93BohpXkpvTRQzcKubJB220bPRgd bRtVq/pJfVFR+zZEyS/e+X5ruAs/+7IjIHbA4XlHbvU6NSi/oqIRNFULLHTXiusrwHci 7kO5ZVIBJ6qZm+dP+qTgjskiH2x2nTGGmgQjAwFzwKcXwfXcd/UsmqSO4yLYDRixwtjf ffew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=lv3QaDK/NUrWU3jghGCW+dwFuQC0jin9cwOoWM8AKDY=; fh=6fOzVszXaDF3sM899/2123rwpIgIMU9MMeGxdJnbPwg=; b=cAMIh8B4EuagFncxE5OApxDehqQIk6JXMiG6pG4F6gqRGxqCAOli4uDNcdqRhBGEyz xNYA+xaHeV/pePRyfwQVe3n3FPf/l2MbyPViDijE4OTKVNU/FM6g9JK8D/S94giuJ7Wl Ve20oCyIA9GAL0fpVy7W6G9okkS8xtmZ4y8tusupYS6EpAgTPgke5LwMx+/84xjHofa4 SbEoCMZqe9n6u2xe9XTLiSc+2XD7jnri0xajoLUP6BFXAQJ+FlQRd7cB2ymFXQ5CMzYZ atSj7z1DjF9UK2ZVQ6yrkVC0yjbPXHDQ854WiRx5Ro3b0dcv08fFEULEWIdexw2IuXMn n7aQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rUWltMsZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150732-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z3-20020a170903018300b001e676f0626csi2038181plg.246.2024.04.18.13.10.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 13:10:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150732-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rUWltMsZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-150732-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150732-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E582282A23 for ; Thu, 18 Apr 2024 20:10:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED19919069E; Thu, 18 Apr 2024 20:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rUWltMsZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1142719067C; Thu, 18 Apr 2024 20:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713471009; cv=none; b=YcdtAs/DLLjxBFvgimjR925XNsXrrVpT3WKGZBZkDDQ8FSUn0OIBhPXeotb+v0zsyWP7fjWJh6gChyexvJx3R+Twahsqlp5X+7rEHFZufdbqrwtJu6DP1hx1Z9Itlz/QEsl2dwk4peLj0511ySY+B5p8JLGrYpb7z3J+T9u8+7A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713471009; c=relaxed/simple; bh=h4USdSWrObqaShpccdjzCvfL0FvhrtPROlPptuSSiLI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=B+nmLi9st8xgDhyCcdBev0LNDn23nNUekSfhaDDKTNCruK7Ymvju0aDxW7N/ooQtps82sa1dmjKePsbC7iyVRMOapm1dWcmztUmMV2202DvpPwADw7ZVxglBnH2gTO0o48e5d0qs3cX0BrLEVHfbxq46UHro1loGFosX3K+26OE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rUWltMsZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2035C113CC; Thu, 18 Apr 2024 20:10:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713471008; bh=h4USdSWrObqaShpccdjzCvfL0FvhrtPROlPptuSSiLI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=rUWltMsZ6VPntRp6y4U+QHQ+4xtS8rjX4+FYb4cin/PwkgpuIEgaAApMw+10WVMZW yFzAUfWLwjc2Qos6kfN+zHy1sS6f3x0UixcWRjNnoWHzewCbM63yFa1Nad+qpSHnVS tlNch7Wy0LBufrSrjVDLNDnVwhlfMwkHjeErHgTVFOc5NKJU1M0/NxfsY8RecMFLyL sfqbbKWXtjw3Y6jrGxN/MP9cyC6FcHpMFEesVOotyLEcNyMBXwkbGXrgYcd8H3bt6R +KNo0WHZm5vMj5nXvUzd60jy4AYqocwtW/Bp9WQB777z39u9nIraRrWO4TWfgIMwDn nrg4ztiOLNBWQ== From: "Rob Herring (Arm)" Date: Thu, 18 Apr 2024 15:09:25 -0500 Subject: [PATCH 1/2] arm64: dts: freescale: ls1028a: Fix embedded PCI interrupt mapping Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240418-dt-ls1028a-pci-fixes-v1-1-95f17405e481@kernel.org> References: <20240418-dt-ls1028a-pci-fixes-v1-0-95f17405e481@kernel.org> In-Reply-To: <20240418-dt-ls1028a-pci-fixes-v1-0-95f17405e481@kernel.org> To: Shawn Guo , Li Yang , Krzysztof Kozlowski , Conor Dooley , Richard Cochran Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org X-Mailer: b4 0.14-dev PCI devices should use PCI interrupt binding for their interrupts assuming they function as standard PCI interrupts. The embedded PCI devices in the LS1028a are mapping the interrupts directly to the host interrupt controller. While that works here, it is unusual. Based on the reference manual, there is not any INTC or INTD to map, so only INTA and INTB are mapped. Signed-off-by: Rob Herring (Arm) --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index ae534c23b970..8f8179924851 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -1099,6 +1099,10 @@ pcie@1f0000000 { /* Integrated Endpoint Root Complex */ 0xc2000000 0x1 0xf8230000 0x1 0xf8230000 0x0 0x020000 /* BAR4 (PF5) - non-prefetchable memory */ 0x82000000 0x1 0xfc000000 0x1 0xfc000000 0x0 0x400000>; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0000 0 0 1 &gic 0 0 GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>, + <0000 0 0 2 &gic 0 0 GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; enetc_port0: ethernet@0,0 { compatible = "fsl,enetc"; @@ -1143,7 +1147,7 @@ ethernet@0,4 { mscc_felix: ethernet-switch@0,5 { reg = <0x000500 0 0 0 0>; /* IEP INT_B */ - interrupts = ; + interrupts = <2>; status = "disabled"; mscc_felix_ports: ports { @@ -1216,7 +1220,7 @@ fixed-link { rcec@1f,0 { reg = <0x00f800 0 0 0 0>; /* IEP INT_A */ - interrupts = ; + interrupts = <1>; }; }; -- 2.43.0