Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3732142pxj; Mon, 7 Jun 2021 19:27:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxr0H5qNMHBRgCjx0Y0r79J7dsdRo04Hrg7DjBRxzHsYot9NxD56J8jxVAzBj25NKiixcf/ X-Received: by 2002:a05:6402:cb4:: with SMTP id cn20mr22602726edb.334.1623119247185; Mon, 07 Jun 2021 19:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623119247; cv=none; d=google.com; s=arc-20160816; b=yBujMUz35UDlkiCLNSds/loCj96grxiJLyL24H13U3kFaJuLnvopRS/EGcI3cPj4bJ wPz4v1Xlm3nNUZ2Tg6Hu2hh2MYMVZFba2PQmrMdnhBDfdysHow/RIGrS7gFOvrJX2K6G GBzDL9jI3r5Vf4xyb7gcLnNnTiqyFvGuTXlEUd/Q8NRI4dDuLGX483Xn7dTdkSHs3CFw wVeBHHVzacHeGlDg7IyEXEhx/Ndy94Y9W3YWK3r5IAoCx2GrrrYsXYUyZ7vhkEYRxKJi NWdubJJTdae0ttRP5n4eq0QdKyauLiJUwyk+DlOfyqJCnQmmYr4btJfPDFt7+berISmB GD1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1VEhzVmk5NUoOFMZfaMQYlMs28fEUDs6uxsxojma03A=; b=cLnRPVaWGoq6TYAk0drg4exAvaKVD5+0WQ66COBTgaB8uy2Fi8ECX6fHkYvHyR4aLL iRrFl1YS6VxFz9cikrGEYwt3L2329klvsX9GjD6Cmy+ZMHzzR342TM8aZHoF8RStyqmw IiKN9dXdcgOjq/1bZ72miRevdO9uIh0LMFVbBC28wWkUHJbaje/d/r2oITRrIpJ8oKVB 6/D9FosbjZwHuejbAr6LnuU0VVrOPaacyCQNjNfo99s+XjcGjPipWssKSjmV6SQpG6Ve 42qIh7SsZ8tIF1eud/EV9PRKKJZxyYdMcaCQe53RBD5Ro1kBsztHoi3bluN3VP3rgCts oVPA== 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 c11si16259651edw.275.2021.06.07.19.27.04; Mon, 07 Jun 2021 19:27:27 -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 S231289AbhFHC1j (ORCPT + 99 others); Mon, 7 Jun 2021 22:27:39 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:42210 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbhFHC1i (ORCPT ); Mon, 7 Jun 2021 22:27:38 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 1582BpMG065091; Tue, 8 Jun 2021 10:11:51 +0800 (GMT-8) (envelope-from steven_lee@aspeedtech.com) Received: from aspeedtech.com (192.168.100.253) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 8 Jun 2021 10:25:40 +0800 Date: Tue, 8 Jun 2021 10:25:32 +0800 From: Steven Lee To: Andrew Jeffery CC: Linus Walleij , Bartosz Golaszewski , Rob Herring , Joel Stanley , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , "moderated list:ARM/ASPEED MACHINE SUPPORT" , open list , Hongwei Zhang , Ryan Chen , Billy Tsai Subject: Re: [PATCH v4 3/7] ARM: dts: aspeed-g6: Add SGPIO node. Message-ID: <20210608022531.GA2948@aspeedtech.com> References: <20210607071514.11727-1-steven_lee@aspeedtech.com> <20210607071514.11727-4-steven_lee@aspeedtech.com> <5277db96-4eb8-4794-a1fa-6a5bc40bffb7@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <5277db96-4eb8-4794-a1fa-6a5bc40bffb7@www.fastmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [192.168.100.253] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 1582BpMG065091 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 06/08/2021 07:28, Andrew Jeffery wrote: > On Mon, 7 Jun 2021, at 16:45, Steven Lee wrote: > > AST2600 supports 2 SGPIO master interfaces one with 128 pins another one > > with 80 pins. > > > > Signed-off-by: Steven Lee > > --- > > arch/arm/boot/dts/aspeed-g6.dtsi | 30 ++++++++++++++++++++++++++++++ > > 1 file changed, 30 insertions(+) > > > > diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi > > index f96607b7b4e2..c09b24824b6d 100644 > > --- a/arch/arm/boot/dts/aspeed-g6.dtsi > > +++ b/arch/arm/boot/dts/aspeed-g6.dtsi > > @@ -377,6 +377,36 @@ > > #interrupt-cells = <2>; > > }; > > > > + sgpiom0: sgpiom@1e780500 { > > + #gpio-cells = <2>; > > + gpio-controller; > > + compatible = "aspeed,ast2600-sgpiom-128"; > > + reg = <0x1e780500 0x100>; > > + interrupts = ; > > + ngpios = <128>; > > Doesn't this affect the way the data is presented on the bus? > I add ngpios in aspeed-g6.dtsi as it can be overridden by dts files and driver won't return error if users only add status = "okay" in dts files without adding ngpios property. I will remove the property from aspeed-g6.dtsi if we don't need a default value for ngpios. > My understanding is this should be defined by each platform, not in the dtsi. Having said that, it appears it is specified in aspeed-g5.dtsi (as the value 8?). > I will remove the property from aspeed-g5 in a separate patch. Thanks, Steven > > + 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-80"; > > + reg = <0x1e780600 0x100>; > > + interrupts = ; > > + ngpios = <80>; > > As above. > > Andrew