Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2974209rwd; Fri, 16 Jun 2023 10:29:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45JHEL75rWzN3t19/CaGMQkw+hozIEJ4DpHqr7xI3Z2Zy/jEYL/1tgHVsYaX/aYLeSjJiz X-Received: by 2002:a05:6808:19a6:b0:398:342a:f491 with SMTP id bj38-20020a05680819a600b00398342af491mr3461433oib.34.1686936550721; Fri, 16 Jun 2023 10:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686936550; cv=none; d=google.com; s=arc-20160816; b=MfX6c3mSE4mtFHMobW9sh1HQU89xwKPwoTRuDqpyZvXfZPGw/EMa8tMqKLInp2vfNn 9g+dUBFBKxOwggoJVJmZWuEXF0ibVt+x1TfvZe5pf3LCusg+xxvohHEKO1SjDcalolhI Bpkn2AsNAaYHp9yozmwN36BRbQ3FhQF4NxR3VpA/OC0kOX1393I5Uj5S+LkTB7qCfO6t x7NfAwzDQPe6iTx+LaV//Zd2COXwMKc6R9dH7Cfjh4/ewCn2JX51PsjZ//H6XBTd0GoQ cnjxppZb7igRXufvlMJKrOoIUZKReKPjjTsP8V6peIMABRYJZzJRDnx4TQoI2pK0ogJv SNsw== 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=aQIgMlu9FxC0SprfoKqBI7smUP+WICFMmlJXdGytK18=; b=ZWl6DiT23QQ5r5l6WzSct2D9VhT3x5hIXZ8CaxhbXhyCc9MusIplr3G6BCdDEyUX1q xIbzIdVd8Iu7JYF1s0LOobcUDbGhDbxvj2REz2cSocoL6kbX64dF7U9Cvq/Myso+UAkO 6pK4OZGmgVFSm1PvPupzQ98pZNO8+eyQqA/U9OE8z/O+5qbcU09KW782RgUUscS9FCYU 05scnFcRzoL+HV1+gDy48MSJFHw/TVjvXQS5Kzabbobpp3z7RI0EKf0f46AWMEKSJksM lCcgCqkwDpxcfr+Rn3es/fWY0TFD2lB4mbkHQd91KaaCFdV7p1bbXv1NOycWo8lbPYy+ A/Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="msXBX3v/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fz16-20020a17090b025000b002509d96227esi1934945pjb.173.2023.06.16.10.28.56; Fri, 16 Jun 2023 10:29:10 -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=@collabora.com header.s=mail header.b="msXBX3v/"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346105AbjFPRBv (ORCPT + 99 others); Fri, 16 Jun 2023 13:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345381AbjFPRAo (ORCPT ); Fri, 16 Jun 2023 13:00:44 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F69230F9; Fri, 16 Jun 2023 10:00:43 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-215-052.ewe-ip-backbone.de [91.248.215.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 6D92D6606F86; Fri, 16 Jun 2023 18:00:41 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686934841; bh=UUp1ukfBywtwpph0BM+a29Xo/RNDQnnSMjgz7LkN1Zw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=msXBX3v/bw9oWUk68ClxuJHLoBW+kShPYmlyil7ZsQbf/tJHHvGSN+qSQs5ZJKBsi riuH9SBaJNosZrohWiM1K0qh6ovjSLSWnB3ziBnxWyRAnIaufz9qXA3p+9w76Pbe6p 4ly7dPNMxzq2n04Il8SCtFkNUBgO2qTL7Oeiy+uisz2X+kMyEfSExYcQaw78pGpILN et1warkNVV99NGzB/L8F3SShOrizPsunC3vqBU12DcKMgIz3qw9VmsbNmKKsubFcrt Dpj2qDBkTSamasPhK83nxaA+7TUAKIf1utFYdmAPWiwbx2yGqWqcbBqXa7SOZCuLBi Q5cZpNUmhH/KA== Received: by jupiter.universe (Postfix, from userid 1000) id 124BF480596; Fri, 16 Jun 2023 19:00:39 +0200 (CEST) From: Sebastian Reichel To: linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org Cc: Jingoo Han , Gustavo Pimentel , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , 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, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 2/4] dt-bindings: PCI: dwc: rockchip: Add missing legacy-interrupt-controller Date: Fri, 16 Jun 2023 19:00:20 +0200 Message-Id: <20230616170022.76107-3-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230616170022.76107-1-sebastian.reichel@collabora.com> References: <20230616170022.76107-1-sebastian.reichel@collabora.com> 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_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Rockchip RK356x and RK3588 handle legacy interrupts via a ganged interrupts. The RK356x DT implements this via a sub-node named "legacy-interrupt-controller", just like a couple of other PCIe implementations. This adds proper documentation for this and updates the example to avoid regressions. Signed-off-by: Sebastian Reichel --- .../bindings/pci/rockchip-dw-pcie.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml index 98e45d2d8dfe..bf81d306cc80 100644 --- a/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml +++ b/Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml @@ -67,6 +67,22 @@ properties: - const: legacy - const: err + legacy-interrupt-controller: + description: Interrupt controller node for handling legacy PCI interrupts. + type: object + properties: + "#address-cells": + const: 0 + + "#interrupt-cells": + const: 1 + + "interrupt-controller": true + + interrupts: + items: + - description: combined legacy interrupt + msi-map: true num-lanes: true @@ -148,6 +164,14 @@ examples: reset-names = "pipe"; #address-cells = <3>; #size-cells = <2>; + + legacy-interrupt-controller { + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-parent = <&gic>; + interrupts = ; + }; }; }; ... -- 2.39.2