Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp681670iog; Wed, 15 Jun 2022 10:01:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sd0FX5P2tMIc3+HKrSCrqzCoH+5Sl5C4xujm19Fs6BgVdW/vjnwqF5neGomSPaLiFrIkXQ X-Received: by 2002:aa7:dcc4:0:b0:42d:c666:62b5 with SMTP id w4-20020aa7dcc4000000b0042dc66662b5mr924560edu.206.1655312473285; Wed, 15 Jun 2022 10:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655312473; cv=none; d=google.com; s=arc-20160816; b=X+BNqlDl6PKIKw8Z2qNclNCGwGoVuay3GfgFKfxcHz+3iU7zfEZYGVy3gy/X4bIR3k EHX6YX1ttkwg0Zg1ANi/wtYmCwZuoYBgIypbyHn+xWlqWasw+pJLZ9Hu3JaKyyM095nW oUtYNe//2cCQliezn9UZKU5J66M6JexXdQdj4nuhX76t34JOhhKveA93eW+L32Ta7TFg dijwL1UP+mGuMUk7qL0+IXumsezOn34Jgqwx8rj1wzhKYKQK91KNwP4lsYp0EGJ1yYvR gd4xdlv8m5ZwL6pHaJq+T7J+pjjuOJC/Q7/E6twjDB42lE5f4yndQ+hd4r6mXNKAz72d V+BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=O0ZNCzaGbIN6vYx92G4OUm186Sl4b3mFGrPcQiPkGOk=; b=LbwOcNZHVPYrzoEnShkklyZpaUOWyWpJCv86Xv5lIG/SGy2c3fhOSTxnMQdTU5p56C 4dm7SxAoKb5aTBPvEUJrV1kjv6si20Yco1MIOih5JMnF42zRqXrw0UEZBfgD8t59KuEM 7hzL9WI9rgK7rsXDtvzkRUZgwnNZBx/Z2bFANwYKWfQG/ggr5aYTj5OZw9Q0VyAhxmnc lCltLHeOTZ5BRjVMM3ZiC0een6OyU0GqbAhdO4ChGfx1obK3duVbXAzPuQPfiS7vbLXP +rz/wOqtbXF1a9xfvu8e0+T7U1WtZ9DE4uH8ILp8clZlluocZE1wTYxX+48IQOSjV36k wLVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="FWFfE/Tr"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b12-20020a50e38c000000b0042afe8df656si14090975edm.248.2022.06.15.10.00.45; Wed, 15 Jun 2022 10:01:13 -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=pass header.i=@gmail.com header.s=20210112 header.b="FWFfE/Tr"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346250AbiFOQy5 (ORCPT + 99 others); Wed, 15 Jun 2022 12:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbiFOQy4 (ORCPT ); Wed, 15 Jun 2022 12:54:56 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B24A549F92; Wed, 15 Jun 2022 09:54:55 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id m24so16151286wrb.10; Wed, 15 Jun 2022 09:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=O0ZNCzaGbIN6vYx92G4OUm186Sl4b3mFGrPcQiPkGOk=; b=FWFfE/TrOsOqhKNBqDjPUw1E7PsUxALBEn9s+nTsX2df5Hx2wbVhzfUT/DUXRnQpnS y1WJqF+s3WJHsn1DPXWQOQtlbNRQuDyptNEM4nr6MeSafsU1dPtHIULXL+MQ3fGzaqYM NgASYW/jRkv6l0ZagU9DLznhoJ+G23wWKjS9X/eSpnNdUWMKuepQg/hFM8aVnvJVD1i7 58rvgMp5z0X4w/AZZn031OrSvk9Vo3t4oNimvCl2flH1cQxaoO9l5kVRc6IYg6tRnlDV x3SSlYjYWZyFy79oPP8KftfTu34PQzBwjm1YJ8iuURHu1VsErk2pjiDI/K1c6Sr4M1Ce n+JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=O0ZNCzaGbIN6vYx92G4OUm186Sl4b3mFGrPcQiPkGOk=; b=bOLt1jHa9uV/hYBJmdxIIRIXU5qXO0verrYv98jIxBMkT655GTQRBSbhxiF/Fr+Hgz XmzKw10umJv/ZqMACSegUizRWfuWP2GAYBLZzroQClSn0+Z841WUBSaieRCfg+EwHnq2 41en80xQFk0Q/bAZ6MRFwQDVGm1wcvbgFJP3+hD+RKQ7aPMlMwdR7jr4V0jEsxJiKUNB we9uEdfgCDKQhaSuRurfOuh/9OMjJcONtsI9syBkc7azmzW3TZjiwWUl9TJOlHFq5dAQ nSj2oeTqqXcc8FCjEd9TMvCn2SVYQNGpCYPdK7bTn6fsE+yVUA7D/OPWt1y3jGJUjlBq uGzw== X-Gm-Message-State: AJIora/U9SH/j3BwctqCmaiNJ7zzVQkPbOKF7Y6qTHUiIKlYNuqlJ4Fe lB1wPbsxj9IjLCAOSMzdKvY= X-Received: by 2002:adf:e2cb:0:b0:20c:c1bb:9fcb with SMTP id d11-20020adfe2cb000000b0020cc1bb9fcbmr704620wrj.35.1655312094114; Wed, 15 Jun 2022 09:54:54 -0700 (PDT) Received: from [192.168.0.36] ([37.223.143.134]) by smtp.gmail.com with ESMTPSA id p22-20020a1c7416000000b0039c5a765388sm2890998wmc.28.2022.06.15.09.54.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jun 2022 09:54:52 -0700 (PDT) Message-ID: Date: Wed, 15 Jun 2022 18:54:51 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH RESEND v10 3/3] ARM: dts: Add PCIe support for Airoha EN7523 Content-Language: en-US To: Felix Fietkau , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20220615125335.96089-1-nbd@nbd.name> <20220615125335.96089-3-nbd@nbd.name> From: Matthias Brugger In-Reply-To: <20220615125335.96089-3-nbd@nbd.name> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 On 15/06/2022 14:53, Felix Fietkau wrote: > 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 applied to v5.19-next/dts32 Thanks! > --- > 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>; > + }; > + }; > };