From patchwork Wed Jun 28 09:15:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 113746 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8796196vqr; Wed, 28 Jun 2023 02:50:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bxZuyHSNmHxUdYWbT+WwMECPNmV2cUuQcwImGArvDEPs/75N7bIGf4hSWTJFKBs+n6m/X X-Received: by 2002:a17:90b:364d:b0:262:f76d:b29c with SMTP id nh13-20020a17090b364d00b00262f76db29cmr4053193pjb.2.1687945848208; Wed, 28 Jun 2023 02:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687945848; cv=none; d=google.com; s=arc-20160816; b=rj/hPMCEmKVwQpIUeNjWbiIbmInzsoHwUQq0WnzmpppK2QfVd/9Nyalt4QqTx3OEVP Qo5uwLIpkv/WmVkppgTa7UiNO7aD87Bd3Vq62w5QI+aOMmCw0RDGB+SN+N72fW0y7t1Q KTEyVk1wtAQmKFrk+WbYi3hpfWo6aoT0gIFyW4SO+Iqhe2T25veQKz41GHo37LGMreFC al2VYE/Ly1fihohZpBoDQiX4wErspDKkVEHV9Hmuiz4q1CrgQfDl9SRehqDbjIgZjztC Njx4PO7pXwLAosCeBsfXppiiT1sTD8VIbioMimjcG2tdy02CovFafCcvEEoV4O7PHQb4 GiKQ== 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; bh=QlB2M/TcZHm9Dkh8tBA7wjUpb4h6ACofDWh+A1gAWdk=; fh=k7ETyw+aHRchnd6dKPcwVvq7qVrh82q5IThQAOs5BF8=; b=QQkywjpahUF2d2hx0Vde8WRz7bJMrCpj54xME+4YKLydGKlQPTagfbh4+30JQo4pJv sQ6nyCloRVz3v1viJ6hMEVE3AXaJHPwIClTM/+yAWSOJO3MzMDbB2LNoQnhoASzV7gNt 292O0jGK98IfdXTGscJb/as2VAMYIJscvtnngV1q6AJvk9OsHJlRO5Gd/YLut5t/oQnw 3o2/mBwy7uoO2j7vYaiuKWupv6Ywz6mi6y3/+8uaIKcmVXuX6xBfa6m7HaneDIjWMula Lgqcxl1iGefz3p2YYLKHOxyJMwTjQlRCofgVTMTgmV9T/2fCSo5EMIQH76pzP4IF57SD TDIw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b10-20020a17090a8c8a00b0025337db9e19si8712852pjo.156.2023.06.28.02.50.35; Wed, 28 Jun 2023 02:50:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231378AbjF1J0D (ORCPT + 99 others); Wed, 28 Jun 2023 05:26:03 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:22114 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233699AbjF1JQq (ORCPT ); Wed, 28 Jun 2023 05:16:46 -0400 Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Wed, 28 Jun 2023 17:16:10 +0800 From: Huqiang Qin To: , , , , , , , , , CC: , , , , Huqiang Qin Subject: [PATCH V2 1/2] dt-bindings: interrupt-controller: Add support for Amlogic-C3 SoCs Date: Wed, 28 Jun 2023 17:15:32 +0800 Message-ID: <20230628091533.3884385-2-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230628091533.3884385-1-huqiang.qin@amlogic.com> References: <20230628091533.3884385-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.28.11.83] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769939505340361452?= X-GMAIL-MSGID: =?utf-8?q?1769939505340361452?= Update dt-binding document for GPIO interrupt controller of Amlogic-C3 SoCs Signed-off-by: Huqiang Qin Acked-by: Conor Dooley Acked-by: Martin Blumenstingl --- .../bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml index e84e4f33b358..3d06db98e978 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/amlogic,meson-gpio-intc.yaml @@ -35,6 +35,7 @@ properties: - amlogic,meson-sm1-gpio-intc - amlogic,meson-a1-gpio-intc - amlogic,meson-s4-gpio-intc + - amlogic,c3-gpio-intc - const: amlogic,meson-gpio-intc reg: From patchwork Wed Jun 28 09:15:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 113736 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp8788938vqr; Wed, 28 Jun 2023 02:32:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+xBkpU2XdkZ9MvFA+62X+2SLFnjp4Nvnxn9kS1SzoEPO6Z3jivIBoHRwbBVfaK2T7VFxo X-Received: by 2002:a2e:b4b8:0:b0:2b6:9969:d0ab with SMTP id q24-20020a2eb4b8000000b002b69969d0abmr2737751ljm.4.1687944779598; Wed, 28 Jun 2023 02:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687944779; cv=none; d=google.com; s=arc-20160816; b=Xmthi2Y14rq6QlWI9zHVqDtnFOhzr62VABicDc8UtKKYudwt8q+p/Hy05PVZE03jDS /5VPTw0hMTGu7HGNhlDApixpGen/H/YrHA0t6fvZhjZA0FzqWvWSaMQ0PgycMfxEuT42 FpTSlypx67ykZ1Yio0qTPHOnXskk7iYZ9UgNf6fvR4GZFGi3Qblbzls5woES4HD5Ewno yioezBmi51HrRDLj4Gy+djW/8KAcQw981hQGjfh0K4AdQisM5ESU77HB3SXKolpKLKoM XSSlld3oPbp+7HMjS0IHwiOpk38g9FI6iCRdMOehvYCy/W5vcweOaLLbHmozE96f8TYP iaiQ== 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; bh=vGCVllH+y5ytBS5C200cIgse7YjarqOwjLXMb1F5F8c=; fh=k7ETyw+aHRchnd6dKPcwVvq7qVrh82q5IThQAOs5BF8=; b=S79UdcS8IPivOpTib+CLKj+TqZ3qU0XlnVVlk3K2fy6PcI8IFRwCznrsfKrtq/FCSp Wby3qGyJKAzeB4UlY84pspRDLCS2TYpuyBxj+4lI4qfTrS9E4/bXOc1mSyb8ZMygUS/V WKUVN6vutu+aV0wIDDJb78mIC4ymCR/N8ujoCd6rdRG9FQfV0RlL0ItYs3Sn5MD+SsMF nDYj1rVglJSiecjfDttyS1yHGlV6DghRZX25TBZjoXBW9RuC0DjzAFrJEM77BcR57V+1 2j4v08T8fbkpcLIQynZn1/fCdIxwh2BOKkDzRTRpdBIICxaTZ0xI4bAxrtbVwpsWHVU3 WpOg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q26-20020aa7da9a000000b0051db87d7184si805745eds.308.2023.06.28.02.32.33; Wed, 28 Jun 2023 02:32:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232276AbjF1J0s (ORCPT + 99 others); Wed, 28 Jun 2023 05:26:48 -0400 Received: from mail-sh.amlogic.com ([58.32.228.43]:22191 "EHLO mail-sh.amlogic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235315AbjF1JSB (ORCPT ); Wed, 28 Jun 2023 05:18:01 -0400 Received: from rd02-sz.amlogic.software (10.28.11.83) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2507.13; Wed, 28 Jun 2023 17:16:11 +0800 From: Huqiang Qin To: , , , , , , , , , CC: , , , , Huqiang Qin Subject: [PATCH V2 2/2] irqchip: Add support for Amlogic-C3 SoCs Date: Wed, 28 Jun 2023 17:15:33 +0800 Message-ID: <20230628091533.3884385-3-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230628091533.3884385-1-huqiang.qin@amlogic.com> References: <20230628091533.3884385-1-huqiang.qin@amlogic.com> MIME-Version: 1.0 X-Originating-IP: [10.28.11.83] Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769938385081537667?= X-GMAIL-MSGID: =?utf-8?q?1769938385081537667?= The Amlogic-C3 SoCs support 12 GPIO IRQ lines compared with previous serial chips and have something different, details are as below. IRQ Number: - 54 1 pins on bank TESTN - 53:40 14 pins on bank X - 39:33 7 pins on bank D - 32:27 6 pins on bank A - 26:22 5 pins on bank E - 21:15 7 pins on bank C - 14:0 15 pins on bank B Signed-off-by: Huqiang Qin Acked-by: Martin Blumenstingl --- drivers/irqchip/irq-meson-gpio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c index 7da18ef95211..f88df39f4129 100644 --- a/drivers/irqchip/irq-meson-gpio.c +++ b/drivers/irqchip/irq-meson-gpio.c @@ -150,6 +150,10 @@ static const struct meson_gpio_irq_params s4_params = { INIT_MESON_S4_COMMON_DATA(82) }; +static const struct meson_gpio_irq_params c3_params = { + INIT_MESON_S4_COMMON_DATA(55) +}; + static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = { { .compatible = "amlogic,meson8-gpio-intc", .data = &meson8_params }, { .compatible = "amlogic,meson8b-gpio-intc", .data = &meson8b_params }, @@ -160,6 +164,7 @@ static const struct of_device_id meson_irq_gpio_matches[] __maybe_unused = { { .compatible = "amlogic,meson-sm1-gpio-intc", .data = &sm1_params }, { .compatible = "amlogic,meson-a1-gpio-intc", .data = &a1_params }, { .compatible = "amlogic,meson-s4-gpio-intc", .data = &s4_params }, + { .compatible = "amlogic,c3-gpio-intc", .data = &c3_params }, { } };