Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3715686pxu; Sun, 11 Oct 2020 21:43:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDJk+yCoYAn/Jd09JXNvEk5h6EofighoW0v8WQtTF/T1HTcSv7buYQe5XY+LbtiK2oTTV+ X-Received: by 2002:a17:906:f110:: with SMTP id gv16mr26941241ejb.257.1602477830934; Sun, 11 Oct 2020 21:43:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602477830; cv=none; d=google.com; s=arc-20160816; b=c409xaiNk5NrHrtHWD+GmOcLrJWkuJvbBL64IX2vUYLrfzuKCmzGe01ZyVMoJsjDl1 unc0j6BQ3gUVXICCYKBazG9jFFhvrbOtYU3v2jpgDNu+uPmrKb3VkjsWocvS+tbqktiN Qj9uEyRp00TqdgsJlUJlrG7FnW8ShYkF4tBw9Hn9psw2DkzPtZ3t/Jw0fjaVQ8Hx4QLA JlqQHc6g3C4Lqdu/cPoh5pH9fWq5AC6P2AlTFl89VYqXeHZqhdL6s550l4FZ2wzwJuU3 uflsalTZNyYlf6VffZxhM7JTbcXBpf8VMdugAkUPD5h2kSa9HnHsHpArIKqu567QzHPz lXMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ncLK6lrRd0/Fs/xlesy70AzgCcMjVFlLetfXR6jVFRQ=; b=M2XcMoF7eitOpQasILxflQmO7oSMEuEJNrfPdGmNGUxxrLnUhxyvjOJnV7oE/kn+pL aj/LE6aRcPil3BheUcoh/GXlvHi6UbDjjq1B5P5YRP1QuMSZiQogc1mIfu6qhmqKszj9 tUU0IXbsJMG5hZepCZlTIXew26eA0pbusn78/UytB34bnXmatQ5UVTXFlWlSlc23FanY oMrLOV1d4xlqtSlkq0ygQnXcydsRjex5+755+GL7mSZQow1YJkaH/eRowMugVY128Avn CGdTnfZJkz97h+FjpkuPrkWb3cJFL0JOYPAF3He5T/oXXXywnGsHzpf344IBLUaitqXI e6lQ== 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 da5si14682161edb.362.2020.10.11.21.43.28; Sun, 11 Oct 2020 21:43:50 -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 S1727336AbgJLDdQ (ORCPT + 99 others); Sun, 11 Oct 2020 23:33:16 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:30607 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727169AbgJLDdJ (ORCPT ); Sun, 11 Oct 2020 23:33:09 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 09C3Tp76087376; Mon, 12 Oct 2020 11:29:51 +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; Mon, 12 Oct 2020 11:32:01 +0800 From: Billy Tsai To: , , , , , , , , , , CC: Subject: [PATCH 2/3] Arm: dts: aspeed-g6: Add sgpio node Date: Mon, 12 Oct 2020 11:31:49 +0800 Message-ID: <20201012033150.21056-3-billy_tsai@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201012033150.21056-1-billy_tsai@aspeedtech.com> References: <20201012033150.21056-1-billy_tsai@aspeedtech.com> 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 09C3Tp76087376 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is used to add sgpiom and sgpios nodes and add compatiable string for sgpiom. Signed-off-by: Billy Tsai --- .../devicetree/bindings/gpio/sgpio-aspeed.txt | 8 +-- arch/arm/boot/dts/aspeed-g6.dtsi | 52 +++++++++++++++++++ 2 files changed, 57 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/sgpio-aspeed.txt b/Documentation/devicetree/bindings/gpio/sgpio-aspeed.txt index d4d83916c09d..815d9b5167a5 100644 --- a/Documentation/devicetree/bindings/gpio/sgpio-aspeed.txt +++ b/Documentation/devicetree/bindings/gpio/sgpio-aspeed.txt @@ -1,8 +1,10 @@ Aspeed SGPIO controller Device Tree Bindings -------------------------------------------- -This SGPIO controller is for ASPEED AST2500 SoC, it supports up to 80 full -featured Serial GPIOs. Each of the Serial GPIO pins can be programmed to +This SGPIO controller is for ASPEED AST2500/AST2600 SoC, it supports 2 master. +One is up to 128 SGPIO input ports and 128 output ports concurrently(after AST2600A1) +and Second one is up to 80. +Each of the Serial GPIO pins can be programmed to support the following options: - Support interrupt option for each input port and various interrupt sensitivity option (level-high, level-low, edge-high, edge-low) @@ -14,7 +16,7 @@ support the following options: Required properties: - compatible : Should be one of - "aspeed,ast2400-sgpio", "aspeed,ast2500-sgpio" + "aspeed,ast2400-sgpio", "aspeed,ast2500-sgpio", "aspeed,ast2600-sgpiom" - #gpio-cells : Should be 2, see gpio.txt - reg : Address and length of the register set for the device - gpio-controller : Marks the device node as a GPIO controller diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index ad19dce038ea..cb053a996e87 100644 --- a/arch/arm/boot/dts/aspeed-g6.dtsi +++ b/arch/arm/boot/dts/aspeed-g6.dtsi @@ -366,6 +366,58 @@ #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>; + status = "disabled"; + }; + + sgpios1: sgpios@1e780740 { + #gpio-cells = <2>; + gpio-controller; + compatible = "aspeed,ast2600-sgpios"; + reg = <0x1e780740 0x40>; + interrupts = ; + clocks = <&syscon ASPEED_CLK_APB2>; + status = "disabled"; + }; + gpio1: gpio@1e780800 { #gpio-cells = <2>; gpio-controller; -- 2.17.1