Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4613348yba; Mon, 20 May 2019 00:07:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJSs49So7LKrCyjFkB0MuVOVIqLCKarmZcU6eoWdqrzxQVZZEFVuJpR0K2//7aoD/YhbH1 X-Received: by 2002:a62:1b85:: with SMTP id b127mr50487167pfb.165.1558336053654; Mon, 20 May 2019 00:07:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558336053; cv=none; d=google.com; s=arc-20160816; b=wQpnlZYj0yA3XFlMaygQ3OofV6A0WTqiNjCAY1rcDbV7eAIKWGdklJb6+jgMK5NtT9 Iyfe3phbPuaev6BpmjSaUEHbW166wLNexHyPYFGeUYV7rcTo2iy7+wlhglyygmSF5erb ZO4vnafnErF96jr1ZzhbtJQW78rBSFOE71KYhq8xt+NTTOLM7htJSu4tMU9jElXRqaEI OGqgypT9FHQvyznha2LWdFmKlASl9PcEQopEXQ16mjAwfuedfGijhcoYzC6ciRG7FdNa mUyY7DWiDJtpBYrt3KKUb64ezrfeZcZIxw/Vi0b6+OPQzbigtMOPfHqlDpr8z+95fLRL Wn0Q== 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=FV0MQIqx0WiwZguaJeLBti0xurOeIFeCaSAGLBw5x6g=; b=LArdtKV4psgLS8no9NlI5FZe980oAdSyNHysx/XmuT7Q4DrQeuOQ6eQ2XtwMFlyUQN xp1gUXL1XZzRQH41KGJ5Zdehz1zCG+fRCGd+6wwOkE+sJmGzD1u3dv8SSr7Bvw/XB9Sd R2+cpkrrhTk1hjK5+jlsMuNY+zwjLDiMFpGLo1x5SJoxASpBrpR9V60YHo+FMM0bubka aH7cj5vScrZJ0J8pwOxxyjrmwm02VCs6uuofu/vR2UmbKA8EdGCkUgTXJM5X29QaXUhn eZTnRXTQz4ikdfFVwNTCnkdwRJGUE4g7GNM5kGt1F2um7uS1+Nq8mIKvkuqcsPLERx3i 8zqA== 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 q20si19902424pfn.139.2019.05.20.00.07.18; Mon, 20 May 2019 00:07:33 -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 S1730602AbfETGB2 (ORCPT + 99 others); Mon, 20 May 2019 02:01:28 -0400 Received: from inva021.nxp.com ([92.121.34.21]:59294 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730578AbfETGBX (ORCPT ); Mon, 20 May 2019 02:01:23 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6052120016C; Mon, 20 May 2019 08:01:21 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 91E6D200188; Mon, 20 May 2019 08:01:15 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 39802402DF; Mon, 20 May 2019 14:01:08 +0800 (SGT) From: Xiaowei Bao To: robh+dt@kernel.org, mark.rutland@arm.com, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, minghuan.lian@nxp.com, mingkai.hu@nxp.com, zhiqiang.hou@nxp.com, leoyang.li@nxp.com Cc: Xiaowei Bao Subject: [PATCH] powerpc: dts: Fix the bug that intx interrupt not work in P1010RDB-PB Date: Mon, 20 May 2019 13:53:08 +0800 Message-Id: <20190520055308.43907-1-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.14.1 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 Due to the INTA is shared with the active-low PHY2 interrupt on P1010RDB-PA board, so configure P1010RDB-PA's INTA with polarity as active-low, the P1010RDB-PB board is used separately, so configure P1010RDB-PB's INTA with polarity as active-high. The INTX in P1010RDB-PB do not work because of the pcie@0 node fixup will be overwrited by p1010si-post.dtsi file, so we move the pcie@0 node fixup to p1010rdb-pb.dts and p1010rdb-pb_36b.dts. Signed-off-by: Xiaowei Bao --- arch/powerpc/boot/dts/fsl/p1010rdb-pb.dts | 16 ++++++++++++++++ arch/powerpc/boot/dts/fsl/p1010rdb-pb_36b.dts | 16 ++++++++++++++++ arch/powerpc/boot/dts/fsl/p1010rdb.dtsi | 16 ---------------- 3 files changed, 32 insertions(+), 16 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/p1010rdb-pb.dts b/arch/powerpc/boot/dts/fsl/p1010rdb-pb.dts index 37681fd..6d75e5f 100644 --- a/arch/powerpc/boot/dts/fsl/p1010rdb-pb.dts +++ b/arch/powerpc/boot/dts/fsl/p1010rdb-pb.dts @@ -33,3 +33,19 @@ }; /include/ "p1010si-post.dtsi" + +&pci0 { + pcie@0 { + interrupt-map = < + /* IDSEL 0x0 */ + /* + *irq[4:5] are active-high + *irq[6:7] are active-low + */ + 0000 0x0 0x0 0x1 &mpic 0x4 0x2 0x0 0x0 + 0000 0x0 0x0 0x2 &mpic 0x5 0x2 0x0 0x0 + 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0 + 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0 + >; + }; +}; diff --git a/arch/powerpc/boot/dts/fsl/p1010rdb-pb_36b.dts b/arch/powerpc/boot/dts/fsl/p1010rdb-pb_36b.dts index 4cf255f..8359035 100644 --- a/arch/powerpc/boot/dts/fsl/p1010rdb-pb_36b.dts +++ b/arch/powerpc/boot/dts/fsl/p1010rdb-pb_36b.dts @@ -56,3 +56,19 @@ }; /include/ "p1010si-post.dtsi" + +&pci0 { + pcie@0 { + interrupt-map = < + /* IDSEL 0x0 */ + /* + *irq[4:5] are active-high + *irq[6:7] are active-low + */ + 0000 0x0 0x0 0x1 &mpic 0x4 0x2 0x0 0x0 + 0000 0x0 0x0 0x2 &mpic 0x5 0x2 0x0 0x0 + 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0 + 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0 + >; + }; +}; diff --git a/arch/powerpc/boot/dts/fsl/p1010rdb.dtsi b/arch/powerpc/boot/dts/fsl/p1010rdb.dtsi index 2ca9cee..ef49a7d 100644 --- a/arch/powerpc/boot/dts/fsl/p1010rdb.dtsi +++ b/arch/powerpc/boot/dts/fsl/p1010rdb.dtsi @@ -215,19 +215,3 @@ phy-connection-type = "sgmii"; }; }; - -&pci0 { - pcie@0 { - interrupt-map = < - /* IDSEL 0x0 */ - /* - *irq[4:5] are active-high - *irq[6:7] are active-low - */ - 0000 0x0 0x0 0x1 &mpic 0x4 0x2 0x0 0x0 - 0000 0x0 0x0 0x2 &mpic 0x5 0x2 0x0 0x0 - 0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0 - 0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0 - >; - }; -}; -- 1.7.1