Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8662468rwp; Wed, 19 Jul 2023 13:20:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEwvjcjmttqKUvj4p91mh3+PF/Z0qbRzlPpm8lG6ELUzQXh0wg6BZQ2JDqWu074dfmMGK+G X-Received: by 2002:a05:6808:20a4:b0:3a1:a57d:fa71 with SMTP id s36-20020a05680820a400b003a1a57dfa71mr25222044oiw.32.1689798043093; Wed, 19 Jul 2023 13:20:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689798043; cv=none; d=google.com; s=arc-20160816; b=xr/Tw8bX68+Pk7jxGpcqhT8aSF0t81aAPllYJlCSjvXzHjKwkcZmGR9VJ71Pu+WFh1 UP5umcqHbOAbuSfjYOFfP+ySa+QhEvKtppxOuq9AdkFHJQIH6E4HTGj15l+1/hTpYrj7 cAQoofl9veBHf/ihp2HzqmPz96HSpDuzKiobnc4+nlHQwITNEYiu3ylVSOwxvtPjxQe2 zXksOfR74tLqdlzSE2zqsJAxUm8nJD5djyB5xFxmCvOHEDPgJ1T559/9MfTOyY0nV7ad JWFit1BvehNs5gWHqhMnKck1XoyTK4oLjjnE41Ndk2HJJzw+qGl4EccZEJHfPGQZUE0q 2I1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EYqEsRhED06LXXtlxP2UZr3z6BNMGqY4K3h4yl+jN90=; fh=IUX22+CJXPv7QAymP84iTG2FGDPZgOP12QiLIvaZafM=; b=BPrwOXLutoJ7gCChqqCIQmj1Dkvu0xQny0mo6kPvxj6ai+8u+CXj+wYCfsUUo3AWaE id9d1IzAwnGBqlqR5pZ35H5eu1qJrEsVgpennDwpYu72iQVl+k0jCV+JdtgVhIARjgr9 ilOJg1OnL9LcbkOBVkKmc4qRIiazGYhgdTACH5mNRVMTLyC2F65HJTsq8UxBuc4N2qEs s3jwhHji5ehZGxRzfJy1bnagaPEG2ptwI4idJ5ndA5zxx8ErZosO3ozBU3h8jbVj74O2 Z6MfkQznX6aCoAGoa/z9An5M96Cjc8v++PKDGTmMxjQ9KHTWCgvkx+ZbSulwMwzdxiqs o0Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BcblMrxa; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a634741000000b0054fd88c3598si3987910pgk.35.2023.07.19.13.20.29; Wed, 19 Jul 2023 13:20:43 -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=@kernel.org header.s=k20201202 header.b=BcblMrxa; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230022AbjGSUQP (ORCPT + 99 others); Wed, 19 Jul 2023 16:16:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjGSUQN (ORCPT ); Wed, 19 Jul 2023 16:16:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8C9BF0; Wed, 19 Jul 2023 13:16:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (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 dfw.source.kernel.org (Postfix) with ESMTPS id 694B06181D; Wed, 19 Jul 2023 20:16:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B680C433C8; Wed, 19 Jul 2023 20:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689797767; bh=j6e92Ndx74FH6PByjJZ4j4e9GQ6FFdbXxvBk/vDjsh4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BcblMrxaFpGR37DZykDQc/fmqAEvgdawVysnDghn2k8i9jjcCpOiLmL47RZv72yaZ 0eOsZtIGNaXz5ljaEGbwjuV+M8O+17gnMjF8eBsQ6Mw2OF12P5AJTJEyAWkXqyF3tk n/BSZYWo5B30L06xg9QjeWT6gbtgR0lkeYutFpwdPKndi1XhHQ5wu0fkpL88dG9Pnw 5T88lbG4jw8lU11jaxaeEjLesIoWPELSSSbql406vsJ33q+q/qitMbs4UhaFrce3+3 wa3vl9Ia5TAjZg+QkRt+WbubnnGmxHQtX/Cf264feEJPKr6OJlEEXA4VP9BQyheZGj CyB3mgp7OQ4Hw== Received: (nullmailer pid 740813 invoked by uid 1000); Wed, 19 Jul 2023 20:16:05 -0000 Date: Wed, 19 Jul 2023 14:16:05 -0600 From: Rob Herring To: Sebastian Reichel Cc: linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, Serge Semin , Jingoo Han , Gustavo Pimentel , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Shawn Lin , Simon Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: Re: [PATCH v3 2/5] dt-bindings: PCI: dwc: rockchip: Fix interrupt-names issue Message-ID: <20230719201605.GA706263-robh@kernel.org> References: <20230717172651.64324-1-sebastian.reichel@collabora.com> <20230717172651.64324-3-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717172651.64324-3-sebastian.reichel@collabora.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 Mon, Jul 17, 2023 at 07:26:48PM +0200, Sebastian Reichel wrote: > The RK356x (and RK3588) have 5 ganged interrupts. For example the > "legacy" interrupt combines "inta/intb/intc/intd" with a register > providing the details. > > Currently the binding is not specifying these interrupts resulting > in a bunch of errors for all rk356x boards using PCIe. > > Fix this by specifying the interrupts and add them to the example > to prevent regressions. > > This changes the reference from snps,dw-pcie.yaml to > snps,dw-pcie-common.yaml, since the interrupts are vendor > specific and should not be listed in the generic file. The > only other bit from the generic binding are the reg-names, > which are overwritten by this binding. > > Signed-off-by: Sebastian Reichel > --- > .../bindings/pci/rockchip-dw-pcie.yaml | 43 ++++++++++++++++++- > 1 file changed, 42 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml > index a4f61ced5e88..7836b9a5547c 100644 > --- a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml > +++ b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml > @@ -17,7 +17,8 @@ description: |+ > snps,dw-pcie.yaml. > > allOf: > - - $ref: /schemas/pci/snps,dw-pcie.yaml# > + - $ref: /schemas/pci/pci-bus.yaml# > + - $ref: /schemas/pci/snps,dw-pcie-common.yaml# > > properties: > compatible: > @@ -60,6 +61,39 @@ properties: > - const: aux > - const: pipe > > + interrupts: > + items: > + - description: > + Combined system interrupt, which is used to signal the following > + interrupts - phy_link_up, dll_link_up, link_req_rst_not, hp_pme, > + hp, hp_msi, link_auto_bw, link_auto_bw_msi, bw_mgt, bw_mgt_msi, > + edma_wr, edma_rd, dpa_sub_upd, rbar_update, link_eq_req, ep_elbi_app > + - description: > + Combined PM interrupt, which is used to signal the following > + interrupts - linkst_in_l1sub, linkst_in_l1, linkst_in_l2, > + linkst_in_l0s, linkst_out_l1sub, linkst_out_l1, linkst_out_l2, > + linkst_out_l0s, pm_dstate_update > + - description: > + Combined message interrupt, which is used to signal the following > + interrupts - ven_msg, unlock_msg, ltr_msg, cfg_pme, cfg_pme_msi, > + pm_pme, pm_to_ack, pm_turnoff, obff_idle, obff_obff, obff_cpu_active > + - description: > + Combined legacy interrupt, which is used to signal the following > + interrupts - inta, intb, intc, intd > + - description: > + Combined error interrupt, which is used to signal the following > + interrupts - aer_rc_err, aer_rc_err_msi, rx_cpl_timeout, > + tx_cpl_timeout, cor_err_sent, nf_err_sent, f_err_sent, cor_err_rx, > + nf_err_rx, f_err_rx, radm_qoverflow I'm confused. It is really up to the integrator on how each of these interrupts are combined? I thought it was a bit more fixed than that. Rob