Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp793118pxa; Wed, 5 Aug 2020 12:55:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB71oOc2bRZBC/5HqkNujtJiIStszG/GyV4ZpHOpirtSPujzdabZ5K6Eax2hguFVdNIWgn X-Received: by 2002:a17:906:b015:: with SMTP id v21mr889779ejy.507.1596657338171; Wed, 05 Aug 2020 12:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596657338; cv=none; d=google.com; s=arc-20160816; b=HMClDA4USMe+3xSzIArBIesJQXvzJmeInR0nNKi25h0f5bfzlCARQsNfVwNa6x7Ugo cjcygxffpquJzq2l2HJHbeAsfbNl7saGZyqxXgfKjcyV4BhLK1gaev5XRE/00z+LDyDo MuXUrsWYukdsoS6n2vVDimtuIhNLqjYxfb7dTqMNHZG9tTIXa0k0rFuyLo1jgljS4FZf SZkT9H6Z2LvChzc736HNdkPpItpkc5Mdpc6N9uoCWNOgCDRsKm3LDrMUYREk7uR9ow26 E8eaT7Cx8X9nYtRCuWBC9lRqoGehRNC3sSXdK83PgkFVTh9UAC8uDmSdPDd1PVZyodBz /vMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=IXl0op0XvQYTvwb5bcKNryRkXDVpBLnZpOMVzhjZNkQ=; b=W11gRg0q1n8VGjDET+nHQSxZYBsQG2jEWjbCWYazsdu5QeDPTZ4wm3FrqSr/gFbNoR cnczmv47dpcecB6mw8Yuh7uI2h3VPFceTtQowzLBOC/oR6A20+BigdfixoH5L/qILHbS M2+BDL6uirGo7eJHWVPlf7qiNvqYV3jVafbUq1knYeMMSP3idXNxhbA8eXJPmKcZv4zb e8dcHG6DF7s1rLjSRr0IrF3XjwPHQVbm3gENcadUcvmbDFlsdevuqzCD8Wu7ZRAwRIn5 tPKiZn/QZViiC4Q3czzv9SsdcgasSmwdzLNKDiXy+jGj8b0e69dJNpS/eFBJy00qLp4N baww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=EkQQ89yO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s27si2295608edi.266.2020.08.05.12.55.15; Wed, 05 Aug 2020 12:55:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=EkQQ89yO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728137AbgHETwH (ORCPT + 99 others); Wed, 5 Aug 2020 15:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728067AbgHEQvq (ORCPT ); Wed, 5 Aug 2020 12:51:46 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57BE3C0617AA for ; Wed, 5 Aug 2020 04:01:23 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id m8so15638642pfh.3 for ; Wed, 05 Aug 2020 04:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IXl0op0XvQYTvwb5bcKNryRkXDVpBLnZpOMVzhjZNkQ=; b=EkQQ89yOe1EY9nCbVWZoj+93xO0UKBjV3pPJai1tGnUiFF0YVCdf8dXYFZQB9ONXtR ep47VBzoQ6jmxkdmei8O1tV8rewHUskV5pgNaUV3mfnLbFe/qmGR8zOxPkqx/ZrF0iIS LOlEzVbCSII1vSt3mVT+9npv7i8tO6fEvWnA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IXl0op0XvQYTvwb5bcKNryRkXDVpBLnZpOMVzhjZNkQ=; b=pZy2eMLWJ4LaBUd0/TSo2ngwYE4CtqeBoD6jSELz1yA8jU3FSHLdKqdcRM6VguXI+R Iza1Ab5u3zWr66cjeo6vibvoLwxuHrVy+P6JhZ7VSieH/BrnJnaPMTzZQTtKsFhTPyzp uC6jYBq0t6EVQBvxGN5WHF0mLPLvZ9rXcrWhx5TXpdk1agi0VMga87wvsRVdpxRFyvgD tqGr4S3106iyv5Ry1bc/0wSj1TA0M+A/IoZVuevZV4WcQVvk9vcKhN4A/ay1JpZHnysP eZGoC8O7gSJfmkX46oPgu61zFWUQCb5dcsaYKmsmpCSURWgR9A3b+PS2QCEiohUMAZ2N 12Fw== X-Gm-Message-State: AOAM533wFlSpQ0U6bvG2dzJJMK7RmNEHkUFdZ6Z5qVqoq+I7D4q7cKGJ TV2rXNfKfP4BC2aotWkDlm3SMg== X-Received: by 2002:a63:b74f:: with SMTP id w15mr2581625pgt.314.1596625281526; Wed, 05 Aug 2020 04:01:21 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id fv21sm2583142pjb.16.2020.08.05.04.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Aug 2020 04:01:20 -0700 (PDT) From: Daniel Palmer To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, tglx@linutronix.de, jason@lakedaemon.net, maz@kernel.org, robh+dt@kernel.org, arnd@arndb.de, Daniel Palmer Subject: [PATCH 0/3] irqchip: mstar: msc313 intc driver Date: Wed, 5 Aug 2020 20:00:49 +0900 Message-Id: <20200805110052.2655487-1-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver adds support for the interrupt controllers present between the various IP blocks and the ARM GIC in MStar/SigmaStar Armv7 SoCs. All of the chips so far have two instances of this controller. One instance controls what are called "IRQ" interrupts by the vendor code I have seen. The other instance controls what are called "FIQ" interrupts by the vendor code. Presumably because they can be FIQ interrupts. Right now the FIQ bypass is disabled in the GIC so they operate just the same as the IRQ interrupts. The register layouts are the same for both. The FIQ one needs to have the status bit cleared on EOI so that difference is handled by a compatible string difference. I initially made this an RFC because this is my first interrupt controller driver and I expect to have made a bunch of mistakes. I've cleaned this up a bit since then but I still expect it's not 100% correct. Especially the offset to map the INTC interrupt to the GIC interrupt. Daniel Palmer (3): dt: bindings: interrupt-controller: Add binding description for msc313-intc irqchip: mstar: msc313-intc interrupt controller driver ARM: mstar: Add interrupt controller to base dtsi .../mstar,msc313-intc.yaml | 79 +++++++ MAINTAINERS | 2 + arch/arm/boot/dts/mstar-v7.dtsi | 20 ++ drivers/irqchip/Makefile | 1 + drivers/irqchip/irq-msc313-intc.c | 210 ++++++++++++++++++ 5 files changed, 312 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mstar,msc313-intc.yaml create mode 100644 drivers/irqchip/irq-msc313-intc.c -- 2.27.0