Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp951743pxu; Sun, 25 Oct 2020 23:21:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCUcdcDaCmX0b8q7CT6ZOvX7NHB70W4ONmvNs5ofVUzKh6bsaZwb3W/EZIVOOnySv7sVbw X-Received: by 2002:a05:6402:104d:: with SMTP id e13mr13958682edu.322.1603693319102; Sun, 25 Oct 2020 23:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603693319; cv=none; d=google.com; s=arc-20160816; b=cZ8Xm7S5vC1y5qIyJQvhVGNMDfOsVNo3usfLjcQSxj59Y0LjgxITl82VQGXLqXhIbk 4bEvV3NZBliDi0ON3LagvofaoV/nsHHnhvI6ZbS4UFEYbWxLYdcsdclsxSF5PQ+LDcSE Dk0fKJBqVxzPxiORQZu0QF36KTNjLWIPwSNuHGI2kpoCVQkxhL2pZA0Vwdy8E4eA9tz/ g9f/LAdN6tbUtiOjq3o2Fc4K/PNDrx/JKxc/Aqr5WDl4zAhWpuvLuz0PbzbB8cCAxnzl /cpgOFVW5u+9cuhMhKofqDvg+UNaVbmwrF9hgSFFPYtq/NsIcnaFJer+BkBJaFtBZxax 2pNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=oLqCGkVxUyCN8ZI7GlPMtX4fYGxBLJXKLhqMOJPqSkI=; b=WTy5yNlhTJG6ND34whCn8XxyU5hpakVBlErfkRf4aDN3/y3kLoZCU6CrLPWMNkEEfM 1Gd5fve9Cz93Yx3Ze3QVLfRXFbhbCOG1zalQHTKcvQcjKbWgHQ3HtS0mnucSVBkbhq8k yD2+MISls8OPA9o55QR4h3B0lqOAugSctyS0FcnzG0vPFZwAk9aNd9AWkT6agKMX0DZp gzcI/MEt/wVLDOPgGuMnVW1jhA8jYvKkuZ1OVADNhzBzfaPyrmAeB+G+H3kbzhpI6yuP GhBRNg2oi7Xu6lyD69BH+Qthbp9IEAoz6XPbbj5d90dYJcC7pc4MiRCjd7dHrkPFFFVG GXfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=A3zdjZnl; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Qbp4D9e8; 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 r11si3979547edb.31.2020.10.25.23.21.36; Sun, 25 Oct 2020 23:21:59 -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; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=A3zdjZnl; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=Qbp4D9e8; 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 S1421159AbgJZBeR (ORCPT + 99 others); Sun, 25 Oct 2020 21:34:17 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:47607 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1419379AbgJZBeR (ORCPT ); Sun, 25 Oct 2020 21:34:17 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id A6C4A580366; Sun, 25 Oct 2020 21:34:15 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Sun, 25 Oct 2020 21:34:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=oLqCGkVxUyCN8ZI7GlPMtX4fYGxBLJX KLhqMOJPqSkI=; b=A3zdjZnlvWtGcmly78TCkHioFlt12memCak2EVM1XUd5FMT hlRX/0C9otvfWrApLGanyl1qMXOFNuOMbGWYuQ/pbHy9ops6ITSXxFjoPD/HalCY nK6tal9qUwj6w7fIdIwgguTgaiSK8TLTduDifEhFcHIzaZQFH7dv7mgq2S18nPEb 9d7aScM06TTfbWUWaD/zbsmPYW94+acZAx119ZFZUHOfmZMtB2GqW14DGQ/fEw6I PaH94wImQGobxNNoJOWIhPbOmqYPWnQiBGHa1IrFgRdPiHKXSGWKmJXwwUK27vTX O5tYpEPh/4YYhdyyKeaewslH1W0Pb8OB9yvpfqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=oLqCGk VxUyCN8ZI7GlPMtX4fYGxBLJXKLhqMOJPqSkI=; b=Qbp4D9e8PrBdK4qvrCOe8S zZ4r/IKlwvc3fADPsHqI7dzjrcUfURG/ZTZqJcWk+exY7xINUw+WccqSWE63GKyx +Vei2axP3ghOI5YE8IN+r6QDra7mglRPqrWnbhghVKqrxOPVLBVUCjBaEOjCBZg5 9nxXaP2ZSsO0aOAFC2vG4KxSZ3rF2ArhdK/XzWnn8oGBkOLrDRz50m33fghS+ENL Wb87OYiDP3ouJzZJeVmP/efydGA/4IIzu1ay1TudZ0sRfD3qzlgXBRfV40KoU7Kl lucv00TUxKwTtgFhcgjKRgU505fqPM8mtoLM8cDmAMpFvI5nMOPrA8tn7b/ln9dw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrkeehgdefjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucggtffrrg htthgvrhhnpeehhfefkefgkeduveehffehieehudejfeejveejfedugfefuedtuedvhefh veeuffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 476B1E050B; Sun, 25 Oct 2020 21:34:13 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-529-g69105b1-fm-20201021.003-g69105b13 Mime-Version: 1.0 Message-Id: <8625b8b4-4b3b-49ce-b35c-5de3920dc5eb@www.fastmail.com> In-Reply-To: References: <20201012033150.21056-1-billy_tsai@aspeedtech.com> <20201012033150.21056-3-billy_tsai@aspeedtech.com> Date: Mon, 26 Oct 2020 12:03:54 +1030 From: "Andrew Jeffery" To: "Joel Stanley" , "Billy Tsai" Cc: "Rob Herring" , devicetree , "Linux ARM" , linux-aspeed , "Linux Kernel Mailing List" , "Linus Walleij" , "Bartosz Golaszewski" , "open list:GPIO SUBSYSTEM" , "OpenBMC Maillist" , BMC-SW Subject: Re: [PATCH 2/3] Arm: dts: aspeed-g6: Add sgpio node Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Oct 2020, at 15:05, Joel Stanley wrote: > On Mon, 12 Oct 2020 at 03:32, Billy Tsai wrote: > > > > This patch is used to add sgpiom and sgpios nodes and add compatiable > > string for sgpiom. > > You also need to add sgpios documentation to the bindings docs. > > Whenever you add new device tree bindings to the kernel tree you > should add documentation for them. > > When preparing patches for submission, use scripts/checkpatch.pl to > check for common issues. It will warn you if you are adding strings > that are not documented. > > Cheers, > > Joel > > > > > 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" > > I think we should add sgpiom strings for the ast2500 (and ast2400?) > too, as this is how they should have been named in the first place: Can we defer this discussion until someone adds support for the slave interface? Maybe the existing compatible could have done with some more thought, but it is what it is, and I don't think we need to muddy the waters further right now? Andrew