From patchwork Wed Sep 8 08:23:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12480587 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 605E3C433EF for ; Wed, 8 Sep 2021 08:26:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D4A960ED8 for ; Wed, 8 Sep 2021 08:26:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2D4A960ED8 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bpoZ26fzoBLyRETIK9f83t3RaJv+nhRgkbS9rB+xMLk=; b=xB6MCFxf3O3Ulc qzv9Y8nXUPWl/Mz7vY9UxOrot7aofyaZLjnlGVqs6mBZ+Od0hc5xPNCnTqeMkc61p1RqhQX4txAMO h4r2dmU7egI13S/lKI55Hivk+FfV1y/qzmKeUMpTH4LejSpwyv3RxOYHXflqG2iUSdlCZ1Sg6Nlls n5JtuEGhvTP054+SJqmYLfk0aSgZycufNtNbKmxLNl73X5Zo9m7SDKeDCoBkwbGC97/wik7n1W3+l jYmcdZp5MA/fQkoOU9hFsBgB35Ax9aJOaMX5i3kvncc+y6eOVIORIv0lkTfqok4ocPrcV5EfpuV+K UL2RtnC6SHiAp1WXXgow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNssz-00696T-WD; Wed, 08 Sep 2021 08:24:50 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNssl-006948-2q for linux-arm-kernel@lists.infradead.org; Wed, 08 Sep 2021 08:24:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1631089474; x=1662625474; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BXf+FHnpR4fs4FVTvZ+v1Xc+qNyyi3KSxfT/XPNM5OY=; b=dQQGKA8OORkIdwQFbIex1y6vurt6tByKK//Z0hmbPr8BDD2gAL+kqnS9 wi4I3NJdjSZa8rwYg+2znRSmCuFRxCRiicG3myHs07njQD+fxOsSVZb4G nP3/5lITbo79Yi/I4DMNbq/TrKCVDAYsPtWIVgorYYe9F0TIVI+wCUOo9 ytg0RabxB1TSF/YX3LuRRdNGCGjgzyETvT4Gk954ms4lnPTqbZoqKZLEz dX5IIUtsQgk74bq9cTc2JP39n1Lkg3Tdo+v9DIwGEi4M9Ru0M7Hz1kiBv LRfzi92P7WfqI9lr3cF/Jl9nkL67MIjavV6unHJzWus1k08edRHPjA87a Q==; IronPort-SDR: jpBvov4PZ1S5fLl1Azf7gojmJ3Ykyg1BR7maJa/wGdsU1UZORud/K2Bh9xhSVOV9uljzjAcYft HrYJ6HsP9WKo5o/Ldwft00WgbFdVt7cl/g7QqbWGcDY+nyfLEy/AMf8MG9j5zreswwfF8sRw6L C2DJm4t8jBxWfHjUTjYbOND3CSKR772hq/susIKOhWp+5qF0EFma6Ek3o1zNjqWRswWhKmaPqX 8stWkJjIVhTo04Otzm/cg2hvicYQySOxryBh9BH8gwm5tRY8QeenfrTBUSdyTPIs1YrTIriidl eYVuWnpXSB3wy/knpaeOQhE8 X-IronPort-AV: E=Sophos;i="5.85,277,1624345200"; d="scan'208";a="143286314" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 08 Sep 2021 01:24:32 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Wed, 8 Sep 2021 01:24:32 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Wed, 8 Sep 2021 01:24:29 -0700 From: Claudiu Beznea To: , , CC: , , , Claudiu Beznea Subject: [PATCH v2 1/2] dt-bindings: microchip,eic: add bindings Date: Wed, 8 Sep 2021 11:23:49 +0300 Message-ID: <20210908082350.106948-2-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210908082350.106948-1-claudiu.beznea@microchip.com> References: <20210908082350.106948-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210908_012435_178134_8FBBB57F X-CRM114-Status: GOOD ( 13.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add DT bindings for Microchip External Interrupt Controller. Signed-off-by: Claudiu Beznea --- .../interrupt-controller/microchip,eic.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml b/Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml new file mode 100644 index 000000000000..917a35e97b7a --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/microchip,eic.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/microchip,eic.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip External Interrupt Controller + +maintainers: + - Claudiu Beznea + +description: + This interrupt controller is found in Microchip SoCs (SAMA7G5) and provides + support for handling up to 2 external interrupt lines. + +properties: + compatible: + enum: + - microchip,sama7g5-eic + + reg: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + description: + The first cell is the input IRQ number (between 0 and 1), the second cell + is the trigger type as defined in interrupt.txt present in this directory. + + interrupts: + description: | + Contains the GIC SPI IRQs mapped to the external interrupt lines. They + should be specified sequentially from output 0 to output 1. + minItems: 2 + maxItems: 2 + + clocks: + maxItems: 1 + + clock-names: + const: pclk + +required: + - compatible + - reg + - interrupt-controller + - '#interrupt-cells' + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + eic: interrupt-controller@e1628000 { + compatible = "microchip,sama7g5-eic"; + reg = <0xe1628000 0x100>; + interrupt-parent = <&gic>; + interrupt-controller; + #interrupt-cells = <3>; + interrupts = , + ; + clocks = <&pmc PMC_TYPE_PERIPHERAL 37>; + clock-names = "pclk"; + }; + +...