From patchwork Thu Jul 20 11:46:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huqiang Qin X-Patchwork-Id: 123217 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp3058889vqt; Thu, 20 Jul 2023 04:51:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFcPCb0vOp8FhKKVzngZsWCtqgi8SsAyqGVDmKhVqzknPzvNYzl4GGmDnZ+/OpmslKDK3NO X-Received: by 2002:a17:906:259:b0:988:882b:9a3 with SMTP id 25-20020a170906025900b00988882b09a3mr4601049ejl.36.1689853864391; Thu, 20 Jul 2023 04:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689853864; cv=none; d=google.com; s=arc-20160816; b=VZfkDe8+1UqC5DxNq2f4LwwORW5oHzQ9LeZyxDKtgOjMcJHEvITUzDHixBqnnmDeM5 cRTeIWZ6VDw6a6wEs+V3ALhQA6kAPSMADssBWZs2aBlFzSjRKlfB/uUpp8YEgpKmPhq3 PX8ScxsC5OLU7T1b07lx4SVqZ2A82nGbKycn5ZxSIYhfcAlnaAZejuoDrPri3bQj4Lpp xrZs6eCISqOXqGjboKxhqK7iQQrjiVCOo8my5wkjpa0o1+zpSTr8nDBz7OKm6hiwi5wc SfjRobXRI27+2IthoRSwMQlCrtF2MAfN3EwBBPtojMhNyOK+lv973o/HYwdGqKpwTtqw EoPg== 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=QBb+gydZrv6EEmafk7ECNRgdkojHT7hf2PBrmRW7eEs=; fh=jSY1LC37QoJsMEXwVxeun9IciEihJHnNssx1zncMCbc=; b=hS3QWyAsEaxU7cpLhPRjY54chfydQgySYAy/MKZzcyNmdNnm+AxhwchFNNnxB/VqpI 0gWbM+Uvtiel8y6uWZ60SovC70CzW9/5/7afuu8Sra+OoXLSP7xj/5el42IWxUTnkduc Gs5Wnia350YXQqT0RpdVYtO97VQxnTX6y32tNhyYqQnMv8DYut5sgQlaEU9hQImkCVlb tX3FUF9tb7fp6jwpwrnPag+UdrD5/+S8QSiZRGVUR/Pt09jb4jN5JR5fP0Mgol1gOjaW hNDBNl3O9jcLTNSR7OB4v+9wsl4AA81ac4z4W/rn/Z1MnP4wb0d6dlWItfssrxiZrvfZ RYMg== 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 ot8-20020a170906ccc800b00992a9b11cf2si551316ejb.787.2023.07.20.04.50.38; Thu, 20 Jul 2023 04:51:04 -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 S230426AbjGTLsH (ORCPT + 99 others); Thu, 20 Jul 2023 07:48:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbjGTLrv (ORCPT ); Thu, 20 Jul 2023 07:47:51 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4BD5197; Thu, 20 Jul 2023 04:47:05 -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 19:46:45 +0800 From: Huqiang Qin To: , , , , , , CC: , , , , Huqiang Qin Subject: [PATCH V2] arm64: dts: Add gpio_intc node and pinctrl node for Amlogic C3 SoCs Date: Thu, 20 Jul 2023 19:46:39 +0800 Message-ID: <20230720114639.833436-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: 1771940205282608197 X-GMAIL-MSGID: 1771940205282608197 Add gpio interrupt controller device and pinctrl device. Signed-off-by: Huqiang Qin Reviewed-by: Dmitry Rokosov --- V1 -> V2: Nodes are sorted by address offset. arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi index 60ad4f3eef9d..5a3725f6cf3d 100644 --- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi +++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi @@ -72,6 +72,32 @@ apb4: bus@fe000000 { #size-cells = <2>; ranges = <0x0 0x0 0x0 0xfe000000 0x0 0x480000>; + 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>; + }; + }; + + 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>; + }; + uart_b: serial@7a000 { compatible = "amlogic,meson-s4-uart", "amlogic,meson-ao-uart";