Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp419827pxb; Tue, 1 Feb 2022 02:53:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJysyJgP2p2uMl+07HQhFbcY3Z+cmJ9g5Eb5FFh8wKSuP54ydmckWSYzMQZlyPQy663lzk5I X-Received: by 2002:a05:6402:2707:: with SMTP id y7mr24702376edd.329.1643712822307; Tue, 01 Feb 2022 02:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643712822; cv=none; d=google.com; s=arc-20160816; b=weF6sAbsMxFTDui4dnDKnppSzURFQd90Anh9Z+rTyXjHCLKS9e3br5xcKVKbTKV7gB 931PgBDQZOWp1wfdFSZqEMfDos2untt3DuqVfZhyXZw7yuwmDCAa+Klj4nDmE1Ut/mw+ 40MY8wnmBYO12fb6PRlTfaVWsLa+dR0zFGv0ZPEc6lU2gIkZPc8uJ20EJd/IHvFoWtGy JRCGlXNrI/t22mA/1c+sn2k/6oNAPdoA1gM7RHmtHPMKRb8IixFyuriT2gcXfChbaPLG cyaavYBHZoBClMzpcIr99HEA9MjPsv4rshJ0dl48R0PwM+yY/KclGdt+47oJwRCJhzAC h7hg== 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 :dkim-signature; bh=S+gp2c7uepAhlZJciiIL/NF6cYbDHJeJxuzPgMrFY8g=; b=nzH1vlrbDj8+dcwdcOH2kZ89yH895fwulyrWaAhE4JCOGhyfgxgltjgJYIw0k73+DM esjFaysrwnTddKhIV/eA8wQlbnrWx1Um0vRyvTiXzhDNHnQIJxKosHztEopAOY/O2UQH Hq4ophsSm2KbrEuVD4PkM2VxhrBUyHDE8stdx5BrCldMPd6BwfCeXUsKMNPI8O2Ay/bi BCLeDp5YfDkbSJSq/9N5ICw6SklXFYAcvSXWO70+5/jLImVwYIppx4Nau02ul/76ReAz LUq9xmZ1IMcnami3C0rs4YcMsYr3waENdE2xVsHCGyGlTPd63Qv8DaLiIowN8fmBDrTu kbew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=mPN6X6wI; 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 dd21si7457378ejc.160.2022.02.01.02.53.17; Tue, 01 Feb 2022 02:53:42 -0800 (PST) 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=fail header.i=@nbd.name header.s=20160729 header.b=mPN6X6wI; 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 S1355259AbiA3Oyc (ORCPT + 99 others); Sun, 30 Jan 2022 09:54:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347262AbiA3OyV (ORCPT ); Sun, 30 Jan 2022 09:54:21 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A2D5C061714; Sun, 30 Jan 2022 06:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=S+gp2c7uepAhlZJciiIL/NF6cYbDHJeJxuzPgMrFY8g=; b=mPN6X6wIMbhDqic69Dbj6lq9TT r+9w8M1ZEb5HLiZSlx+l6vO4PucxtPPZOMLMzCNo+b2+wXKhEcy2T4hqgnOa4GKXUOT2ZMPTArqCO /h69W0pupxr9gDwD5JS1C71rkVlJJAA7HR2wBlCFGqqK2uO/IR+N5wm45kSDGshlg628=; Received: from p200300daa716f900d40f7dfd86c385e0.dip0.t-ipconnect.de ([2003:da:a716:f900:d40f:7dfd:86c3:85e0] helo=Maecks.lan) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nEBYE-0002if-2f; Sun, 30 Jan 2022 15:51:34 +0100 From: Felix Fietkau To: Rob Herring Cc: soc@kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, john@phrozen.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 13/13] ARM: dts: add GPIO support for Airoha EN7523 Date: Sun, 30 Jan 2022 15:51:16 +0100 Message-Id: <20220130145116.88406-14-nbd@nbd.name> X-Mailer: git-send-email 2.32.0 (Apple Git-132) In-Reply-To: <20220130145116.88406-1-nbd@nbd.name> References: <20220130145116.88406-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Crispin Airoha's GPIO controller on their ARM EN7523 SoCs consists of two banks of 32 GPIOs Signed-off-by: John Crispin Signed-off-by: Felix Fietkau --- arch/arm/boot/dts/en7523-evb.dts | 8 ++++++++ arch/arm/boot/dts/en7523.dtsi | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/en7523-evb.dts b/arch/arm/boot/dts/en7523-evb.dts index 0a79f5f6c311..cd9cded5b564 100644 --- a/arch/arm/boot/dts/en7523-evb.dts +++ b/arch/arm/boot/dts/en7523-evb.dts @@ -33,3 +33,11 @@ &pcie0 { &pcie1 { status = "okay"; }; + +&gpio0 { + status = "okay"; +}; + +&gpio1 { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/en7523.dtsi b/arch/arm/boot/dts/en7523.dtsi index b897fb6cffd2..8932e2ab96b6 100644 --- a/arch/arm/boot/dts/en7523.dtsi +++ b/arch/arm/boot/dts/en7523.dtsi @@ -3,6 +3,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -123,6 +124,25 @@ uart1: serial@1fbf0000 { status = "okay"; }; + gpio0: gpio@1fbf0200 { + compatible = "airoha,en7523-gpio"; + reg = <0x1fbf0204 0x4>, + <0x1fbf0200 0x4>, + <0x1fbf0220 0x4>, + <0x1fbf0214 0x4>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio1: gpio@1fbf0270 { + compatible = "airoha,en7523-gpio"; + reg = <0x1fbf0270 0x4>, + <0x1fbf0260 0x4>, + <0x1fbf0264 0x4>, + <0x1fbf0278 0x4>; + gpio-controller; + #gpio-cells = <2>; + }; pcie0: pcie@1fa91000 { compatible = "airoha,en7523-pcie", "mediatek,mt7622-pcie"; -- 2.32.0 (Apple Git-132)