Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp14123171pxu; Mon, 4 Jan 2021 13:22:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxC08T1zK1kx/Q7GIuJBrW3hxuC69GJNvq1kNrnfTN3SK33zNwNB7tk9pTjAwNEowpHUJbk X-Received: by 2002:a17:907:980f:: with SMTP id ji15mr16613452ejc.411.1609795329501; Mon, 04 Jan 2021 13:22:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609795329; cv=none; d=google.com; s=arc-20160816; b=y2WaFaR6Ws7ogVgu6DeVlMENKphL8Ntc2oT1/qQ8RmaV1G/Mg6MjD3SCecRYllM9b6 lp6I5MWtSBTqnM4W9ZNGDSJ2cIjzd3scfexQoAr0xvC6hUmbndYqI9faEHoQss1FXKUm yQFYZjxrs8ZjTG/HfppSoA0DYjZE8t+GcMsQFFaP1shXAMesi44W2rFH3lszHCK5Dyjr Ti5cpMXfMy1JObO7rOyGV0je3DJf5QwIvVNCjtiMrv4da0MFmaif2JQ/H1QQ+REEwszz GfYQAOhRXM/VbsnEFHbQFWNiC6H4YSk9RKfAr3mHnVa4yyP+OKqzFdV/oBp6wQVT66NU WyjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Hq4+cUGgq7hKXhQgMXXEFDem49GDfMsfULlz9DHqWqE=; b=s1dULoPLWH+saQBICI7TN0vKeiC37GlC+uZY7Jdh+sNrTtj3yu4gfngBodXdVeXhxG U2Fz8gE4kKZp7eajiSwuy2bUJjZySSpqZACTbGmqqZPltX+lXLU7waYqQNT9nJPNSBub J47phPSXxYSbfMjFpPB7yO1eIWTHcYedQSwrEm4QzTD1MutBzaGD3eBx5kGb6eJ9MIM9 6lEwtVRVPEsjL7JWoYI0g0ERb9on4pThUitP3imTFX6sNVjYhOSXO0CwGqftdW9zOs6T 4YlWwyfkWUBdaHexPB0Lr/rqupUEiQ3lF92bhhAqyHrFKqhcosAYOW/hA5ocp54vY+hZ iwYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fMZ/t2Mb"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb41si28387289ejc.81.2021.01.04.13.21.46; Mon, 04 Jan 2021 13:22:09 -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=pass header.i=@kernel.org header.s=k20201202 header.b="fMZ/t2Mb"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726545AbhADVUM (ORCPT + 99 others); Mon, 4 Jan 2021 16:20:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:38924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbhADVUM (ORCPT ); Mon, 4 Jan 2021 16:20:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 69B0E216C4; Mon, 4 Jan 2021 21:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609795171; bh=zO6+WXbnZQQa5gtNXGGXGB/Dm+JTT/SJtmVKDTQFkGY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=fMZ/t2MbLrzIC/TC/K6F1g7NiCrgOvl1OQIDb7loC9qdDFGMfma8FOuhexVVnjB6t XuJvKKHjPb8wQeQHuWep9d+y8vez7FLBjuZb6Kd8Zm3Y6pQx/CpvUlyiHVSxSyNGQE aU2EwToaZIdHdsr6H6GqYWo/z0QUwbFWD8z5bOC3C81OnCWuppj/Ha+O+HpLBXYVOe MIDNvauuybhCV+e/dP8FK06b4MZZf766TxL6GQdKhjSrCjj3mQEf8yRLSunboa9dKY BzCkK63I58m2Q0B6mZalpr88NnU9t6L+syOqb06CVCWy3aJZxGtcRGPjkArWkruZ5F yVl7Z1RdP88cQ== Subject: Re: [PATCH 8/8] ARM: dts: socfgpa: Use generic "ngpios" rather than "snps,nr-gpios" To: Jisheng Zhang , Sebastian Hesselbarth , Rob Herring , Khuong Dinh , Manivannan Sadhasivam , Wei Xu Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Saravana Kannan , Linus Walleij References: <20201109170258.4a70c768@xhacker.debian> <20201109170712.6e8c1a90@xhacker.debian> From: Dinh Nguyen Message-ID: Date: Mon, 4 Jan 2021 15:19:29 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201109170712.6e8c1a90@xhacker.debian> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/9/20 3:07 AM, Jisheng Zhang wrote: > This is to remove similar errors as below: > > OF: /.../gpio-port@0: could not find phandle > > Commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support") > explained the reason of above errors well and added the generic > "ngpios" property, let's use it. > > Signed-off-by: Jisheng Zhang > --- > arch/arm/boot/dts/socfpga.dtsi | 6 +++--- > arch/arm/boot/dts/socfpga_arria10.dtsi | 6 +++--- > 2 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/arch/arm/boot/dts/socfpga.dtsi b/arch/arm/boot/dts/socfpga.dtsi > index 0b021eef0b53..32b7ad814ec6 100644 > --- a/arch/arm/boot/dts/socfpga.dtsi > +++ b/arch/arm/boot/dts/socfpga.dtsi > @@ -612,7 +612,7 @@ porta: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <29>; > + ngpios = <29>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > @@ -633,7 +633,7 @@ portb: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <29>; > + ngpios = <29>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > @@ -654,7 +654,7 @@ portc: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <27>; > + ngpios = <27>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > diff --git a/arch/arm/boot/dts/socfpga_arria10.dtsi b/arch/arm/boot/dts/socfpga_arria10.dtsi > index 0013ec3463c4..34e23e0582fb 100644 > --- a/arch/arm/boot/dts/socfpga_arria10.dtsi > +++ b/arch/arm/boot/dts/socfpga_arria10.dtsi > @@ -491,7 +491,7 @@ porta: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <29>; > + ngpios = <29>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > @@ -511,7 +511,7 @@ portb: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <29>; > + ngpios = <29>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > @@ -531,7 +531,7 @@ portc: gpio-controller@0 { > compatible = "snps,dw-apb-gpio-port"; > gpio-controller; > #gpio-cells = <2>; > - snps,nr-gpios = <27>; > + ngpios = <27>; > reg = <0>; > interrupt-controller; > #interrupt-cells = <2>; > Applied to socfpga dts tree. Thanks, Dinh