From patchwork Thu Jul 20 05:20:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 122981 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2902434vqt; Wed, 19 Jul 2023 22:43:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDrL9BfKM3rVjuPbdYNy7Eqwl2JgTCj3Ft2UJJSQu7iOyzCgvypfp60sJFHCx/hxQiHvZ9 X-Received: by 2002:a19:8c54:0:b0:4f8:4512:c844 with SMTP id i20-20020a198c54000000b004f84512c844mr1384055lfj.48.1689831787731; Wed, 19 Jul 2023 22:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689831787; cv=none; d=google.com; s=arc-20160816; b=TDYBJ5ybk6HOvgg+dZKSAwsb2Zlq6v7MFwAKuUCgBF9m8nO/XQ9XvtyZS5HVvhyU2A +KFcS4kJ7wN3iC7BpN4nRhkQ3rjut/Ihy7QnaJ6r2OOlB+kVLydGFjRVtLMbzYsyASiR kG63D1n5ECLyNKUSBauVfSVzSB/rBpmfPSJENJiVSc1WV4p/eSlgZBSBFh4XQJ9XMY1Q cBKUmyBuQNIGr6LTCApiiuWdQP2t+icLmXG5ig27Bcl0MOn+ddj7czlEJKuKvIjmNfQv UIZNYdCgcJCKC31MRSic6ujCoaaAu9F+B0Ok88MK1z5t+o8md/qm9HidX0A6NTpaIjmZ cMoA== 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 :message-id:date:subject:cc:to:from; bh=7TKj6d0x0yOSADGvu57epc7S2FEkLVvz3aKRYRwIScs=; fh=jSY1LC37QoJsMEXwVxeun9IciEihJHnNssx1zncMCbc=; b=yz7qPIDDt22+BVPqW+AB0J9wqpBokZQ2bV+CBtq3xyXbGlmdI60KJkRqUuu66IjRp0 REubCorgStD4O2cOWPV/f01y7lmE1iPncnRUR+zsEX861DalQbj9eeLZXbEYjhmrBZgC ckob2HdcM/kQiP0kVK0ajs4MuXuhwGqcnx71QUFWv8RCKiwF5iSKjIrg/3B4kpA4fQn2 k3ys/WbuCWABc3Vj+zYW75JRv3sGV+Lr3zxCXSLOX1eAskDrr2fx6EvMyL43YMQidTmr uVvSADMvsDVKaJaPVde6lZQJd6huzKiq349u3EH0DIRPQN02ndI1AgZQN7yfz/7b13q5 HgXg== 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 k16-20020aa7d8d0000000b005218c27b193si295655eds.501.2023.07.19.22.42.30; Wed, 19 Jul 2023 22:43:07 -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 S229553AbjGTFXJ (ORCPT + 99 others); Thu, 20 Jul 2023 01:23:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjGTFXH (ORCPT ); Thu, 20 Jul 2023 01:23:07 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CB4926A0; Wed, 19 Jul 2023 22:21:57 -0700 (PDT) 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; Thu, 20 Jul 2023 13:21:42 +0800 From: Huqiang Qin To: , , , , , , CC: , , , , Huqiang Qin Subject: [PATCH] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs Date: Thu, 20 Jul 2023 13:20:54 +0800 Message-ID: <20230720052054.3909902-1-huqiang.qin@amlogic.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-Originating-IP: [10.28.11.83] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771917056876014590 X-GMAIL-MSGID: 1771917056876014590 Add gpio interrupt controller device and pinctrl device. Signed-off-by: Huqiang Qin --- arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi index 60ad4f3eef9d..4ad9c042f85c 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi @@ -82,6 +82,31 @@ uart_b: serial@7a000 { clock-names = "xtal", "pclk", "baud"; }; + gpio_intc: interrupt-controller@4080 { + compatible = "amlogic,meson-gpio-intc", + "amlogic,c3-gpio-intc"; + reg = <0x0 0x4080 0x0 0x0020>; + interrupt-controller; + #interrupt-cells = <2>; + amlogic,channel-interrupts = + <10 11 12 13 14 15 16 17 18 19 20 21>; + }; + + periphs_pinctrl: pinctrl@4000 { + compatible = "amlogic,c3-periphs-pinctrl"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gpio: bank@4000 { + reg = <0x0 0x4000 0x0 0x004c>, + <0x0 0x4100 0x0 0x01de>; + reg-names = "mux", "gpio"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&periphs_pinctrl 0 0 55>; + }; + }; }; }; };