Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2928924pxp; Mon, 14 Mar 2022 07:35:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzy7gAl9Z5rhx/3wzCLt44H9s0PEdcVjGDUrCDViqhz5JheAkRdFErvA1Mr+ofT8VJEj2B X-Received: by 2002:a05:6402:35d2:b0:416:4c38:1537 with SMTP id z18-20020a05640235d200b004164c381537mr21243852edc.260.1647268536863; Mon, 14 Mar 2022 07:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647268536; cv=none; d=google.com; s=arc-20160816; b=XaxbE3j0T1SujUgS1xYFuEzNbo+7VDtQRB9mKLOir8iE/d9y2xz/DM1lPySwIg31Fn egFbaccCUBZ/vsjL6iDUR66o21mAKQZJg+0YWgUFMSIKAol4G8R84y3mRP2A/Oqtc0tb ZVlVGlhpbClbuZhSxf6/Bdti/SFIIE7Zc/cwUVkydAdthJVE6ZmHNddQfweznH86nZwI Acd1jhWaFyrCfNSdYI8+no+RsKplvorxmNAZg/m8VoL7Ho4yV2dsBc9bhZHb3WuvWAE2 Bi9m45ZywgTeWzEulKBQ6t8BhZbm7ys2GuOV394on9mHnFAebT09t+IMvtzsKx2hydSj TcvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UPZIGRUhEgeZEuYwXHCw/OeVuq+IZh/TeJF0FMiXACE=; b=V6r4nAbrLvE3e+aQPkiWEz/Z4leUSXeLhbzLSrrR835XMuGSiIkHLVe8o04WOFRLSS NhiG1K336O+VB8TklVU35EVQk/Q5mslLFvP5FHi4wgcJUdTPriXFTfl8yFsDN6EChzyj jCl3WSWR7YAlFzQnHA4y4UTsy9xnPYPgXcvFSLcEacuXlHSiNmXxBSrB1CRDfNZfusix fzgNMTrHHGPy4ThmaCW5FzskRtang7gY+y22YexuHqE/4EhaFtQKYGjSBQEBrC4tnHgJ RvL4/7pwaz1gCrCfVm2FNTJLC7lJrpQSUfJeZLYYebVnI1hcBEeAasYy6hQkyLgilzkq /Hrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="BV/vKH25"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a50c385000000b00416c8674d59si6954690edf.56.2022.03.14.07.35.01; Mon, 14 Mar 2022 07:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b="BV/vKH25"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237708AbiCNIpl (ORCPT + 99 others); Mon, 14 Mar 2022 04:45:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237652AbiCNIpi (ORCPT ); Mon, 14 Mar 2022 04:45:38 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3172C39B87; Mon, 14 Mar 2022 01:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UPZIGRUhEgeZEuYwXHCw/OeVuq+IZh/TeJF0FMiXACE=; b=BV/vKH253XxeLkp6IbqfcpZ1rl 40Y+NeW2y/S4VNuyNVdBVdeWBqWWEU3aNH9RNLxoAQSEhilcJFIMm93Yf3s/AlJvTSBaHIyEw/4M+ VPsvmgRTWsSTXWDlTjXkUiFATMRhQKsvoqJ8JRIZl1WkcL7dssNb0G5EH7ZOuxMFtp/0=; Received: from p200300daa7204f006c015a90d6b6c4d6.dip0.t-ipconnect.de ([2003:da:a720:4f00:6c01:5a90:d6b6:c4d6] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nTgJS-0002UN-Of; Mon, 14 Mar 2022 09:44:22 +0100 From: Felix Fietkau To: soc@kernel.org, Rob Herring , Matthias Brugger Cc: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v10 6/6] ARM: dts: Add PCIe support for Airoha EN7523 Date: Mon, 14 Mar 2022 09:44:08 +0100 Message-Id: <20220314084409.84394-7-nbd@nbd.name> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314084409.84394-1-nbd@nbd.name> References: <20220314084409.84394-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This uses the MediaTek MT7622 PCIe driver, since the PCIe IP block is nearly identical to the one in MT7622 Signed-off-by: Felix Fietkau --- arch/arm/boot/dts/en7523-evb.dts | 8 +++++ arch/arm/boot/dts/en7523.dtsi | 58 ++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/arch/arm/boot/dts/en7523-evb.dts b/arch/arm/boot/dts/en7523-evb.dts index a8d8bb0419a0..f23a25cce119 100644 --- a/arch/arm/boot/dts/en7523-evb.dts +++ b/arch/arm/boot/dts/en7523-evb.dts @@ -33,3 +33,11 @@ &gpio0 { &gpio1 { status = "okay"; }; + +&pcie0 { + status = "okay"; +}; + +&pcie1 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/en7523.dtsi b/arch/arm/boot/dts/en7523.dtsi index 2e705b87b6c1..7f839331a777 100644 --- a/arch/arm/boot/dts/en7523.dtsi +++ b/arch/arm/boot/dts/en7523.dtsi @@ -143,4 +143,62 @@ gpio1: gpio@1fbf0270 { gpio-controller; #gpio-cells = <2>; }; + + pcie0: pcie@1fa91000 { + compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie"; + device_type = "pci"; + reg = <0x1fa91000 0x1000>; + reg-names = "port0"; + linux,pci-domain = <0>; + #address-cells = <3>; + #size-cells = <2>; + interrupts = ; + interrupt-names = "pcie_irq"; + clocks = <&scu EN7523_CLK_PCIE>; + clock-names = "sys_ck0"; + bus-range = <0x00 0xff>; + ranges = <0x82000000 0 0x20000000 0x20000000 0 0x8000000>; + status = "disabled"; + + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc0 0>, + <0 0 0 2 &pcie_intc0 1>, + <0 0 0 3 &pcie_intc0 2>, + <0 0 0 4 &pcie_intc0 3>; + pcie_intc0: interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; + + pcie1: pcie@1fa92000 { + compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie"; + device_type = "pci"; + reg = <0x1fa92000 0x1000>; + reg-names = "port1"; + linux,pci-domain = <1>; + #address-cells = <3>; + #size-cells = <2>; + interrupts = ; + interrupt-names = "pcie_irq"; + clocks = <&scu EN7523_CLK_PCIE>; + clock-names = "sys_ck1"; + bus-range = <0x00 0xff>; + ranges = <0x82000000 0 0x28000000 0x28000000 0 0x8000000>; + status = "disabled"; + + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie_intc1 0>, + <0 0 0 2 &pcie_intc1 1>, + <0 0 0 3 &pcie_intc1 2>, + <0 0 0 4 &pcie_intc1 3>; + pcie_intc1: interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + }; }; -- 2.35.1