Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4306919pxk; Tue, 29 Sep 2020 22:23:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN+bHFsZ7EgPb1kldwqtZOXjl3p/828egw9YEQNAoOn/OYVYTm+tR00h2hhvTRPMAjWO03 X-Received: by 2002:a50:9b5e:: with SMTP id a30mr863116edj.49.1601443390059; Tue, 29 Sep 2020 22:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601443390; cv=none; d=google.com; s=arc-20160816; b=lvPCv/ooXIRL3SEVlHoMb2oRZLOUOAJJfRgRwTkQNogKEOhjTQxnaFSELBscT2PnB2 8zOltIcLlh0sRtwLD+K/bZKVJh0Sgw7niAwiVmwcOAQ3G1yyKyJ9Dah+XU800/qw+l3y Qi3sQvrSHmYZgf2wza/2dNcoM86peuFQnWMlS+9DvwLp7r9KHOKsrAjAWkXm3qITQuXf 1WXnCd2rKaUrwExSnGrGDCfYSMq0XiNaecbsN46KljPdr6QjjScsoK+qI+ynpsnUJ8Ir kv8NWXHJWGLW3jjJwoRw+sqUeGPi6gR77s6syUuG7EhdEEPEFKZEJlcxqi4ZuzFMz2SK RXDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=43zWxccUPQgKaAuWiPqbOrkcVlqwOKps20H/tEmiNzo=; b=CE7XX9Px7qy+9IBuj92hh7/zcxdWFHNS0LRyCZAF1Slc1FgTOZbBVHapF5vO+ktUxP c6iVuOQqhMitXCBDiDz2Hf8/NsVyL6s+2JVhIdtAyoaUYthxor79RWSZU5Os7mLDJjuS KE474lNDuF7LdXcuMZzQiXXk9st2LAUXXqeJXiDD1KdM7MWJV6pIBxoER65rOzErYRWk Pq4ZOd2FfdbUnaav+W0X1P5v+dOR1vu/iLuYvxTw4ntIoLZMGC+x2AbWTr5Zq5/PgrtA n/PMZ3aQuKtwaUofzZNqLDH7nOSMuEcAu/JhpWt7MDZTtObYXV7gliNpBdMzKfSod+w4 wA1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 t22si420475eji.298.2020.09.29.22.22.45; Tue, 29 Sep 2020 22:23:10 -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; 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 S1725710AbgI3FTh (ORCPT + 99 others); Wed, 30 Sep 2020 01:19:37 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:46611 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbgI3FTg (ORCPT ); Wed, 30 Sep 2020 01:19:36 -0400 X-Greylist: delayed 451 seconds by postgrey-1.27 at vger.kernel.org; Wed, 30 Sep 2020 01:19:35 EDT Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 08U4qiuH080185; Wed, 30 Sep 2020 12:52:44 +0800 (GMT-8) (envelope-from billy_tsai@aspeedtech.com) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 08U4pwZv080126; Wed, 30 Sep 2020 12:51:58 +0800 (GMT-8) (envelope-from billy_tsai@aspeedtech.com) Received: from localhost.localdomain (192.168.10.9) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Sep 2020 13:11:21 +0800 From: Billy Tsai To: , , , , , , CC: Subject: [PATCH] ARM: dts: aspeed-g6: Add sgpiom/sgpios node Date: Wed, 30 Sep 2020 13:11:13 +0800 Message-ID: <20200930051113.32465-1-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.10.9] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 08U4pwZv080126 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit add two sgpiom and two sgpios node into aspeed-g6.dtsi and change the register range of gpio0 to fix the hardware design. Signed-off-by: Billy Tsai --- arch/arm/boot/dts/aspeed-g6.dtsi | 51 +++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index 97ca743363d7..00237daec2a1 100644 --- a/arch/arm/boot/dts/aspeed-g6.dtsi +++ b/arch/arm/boot/dts/aspeed-g6.dtsi @@ -357,7 +357,7 @@ #gpio-cells = <2>; gpio-controller; compatible = "aspeed,ast2600-gpio"; - reg = <0x1e780000 0x800>; + reg = <0x1e780000 0x500>; interrupts = ; gpio-ranges = <&pinctrl 0 0 208>; ngpios = <208>; @@ -365,6 +365,55 @@ interrupt-controller; #interrupt-cells = <2>; }; + sgpiom0: sgpiom@1e780500 { + #gpio-cells = <2>; + gpio-controller; + compatible = "aspeed,ast2600-sgpiom"; + reg = <0x1e780500 0x100>; + interrupts = ; + ngpios = <128>; + clocks = <&syscon ASPEED_CLK_APB2>; + interrupt-controller; + bus-frequency = <12000000>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sgpm1_default>; + status = "disabled"; + }; + + sgpiom1: sgpiom@1e780600 { + #gpio-cells = <2>; + gpio-controller; + compatible = "aspeed,ast2600-sgpiom"; + reg = <0x1e780600 0x100>; + interrupts = ; + ngpios = <80>; + clocks = <&syscon ASPEED_CLK_APB2>; + interrupt-controller; + bus-frequency = <12000000>; + + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sgpm2_default>; + status = "disabled"; + }; + + sgpios0: sgpios@1e780700 { + #gpio-cells = <2>; + gpio-controller; + compatible = "aspeed,ast2600-sgpios"; + reg = <0x1e780700 0x40>; + interrupts = ; + clocks = <&syscon ASPEED_CLK_APB2>; + }; + + sgpios1: sgpios@1e780740 { + #gpio-cells = <2>; + gpio-controller; + compatible = "aspeed,ast2600-sgpios"; + reg = <0x1e780740 0x40>; + interrupts = ; + clocks = <&syscon ASPEED_CLK_APB2>; + }; gpio1: gpio@1e780800 { #gpio-cells = <2>; -- 2.17.1