From patchwork Tue Oct 22 09:14:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13845411 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2513D1CDC7 for ; Tue, 22 Oct 2024 09:18:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jX+MqMjiUtGNYl0pZIbg3jGRYJea0wdguqzX1fsuaZo=; b=l6LLvMbWBs4BgK vP+pk6LARaR3mdjgNn3qZzWzvHzLGTvTBFMIQrUjD6PJjZPeiz3a+aMRgCBQs2JFmCtePzcIeM7FQ HpLxvDQ+YCnCa8jhwGqcwxjxIVDty19h7WIgQBBY8HI4MJP6mGcplZP0VUsMjemkfSGBuehxfuCJr hof9PGEq/A3OqEwCKn1uyANGvjOWd0E+CS6iEBQB8ONxFEodZAfbLyS2EDaSEgodBWvaeE97HOdKY 7B6ia/JUCL2gwj3xeZayWS3K/H2HBP8EiWOnvcfW2OFSClv/n+rKNCXVbUuN3UE4hGAop/8xqEQsg I4jvIM6gEP+fw/HAy3+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3B22-0000000AJhv-3whi; Tue, 22 Oct 2024 09:18:26 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3Aya-0000000AIgh-2GHg for linux-riscv@lists.infradead.org; Tue, 22 Oct 2024 09:15:43 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4315baec69eso49606835e9.2 for ; Tue, 22 Oct 2024 02:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1729588491; x=1730193291; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=u+Ce6P5RF48gD0XhfV+y0NeuodQPMoeEQKAr6HVeP34=; b=Ove+EBmlBqSya1NhyN7ZwpitStdRblTX+c9aZJbPjq4NH6EdOyJ4Gj7RjUJ1wnXlB9 RbAls9VxE4hZ0fyGiKlGiONA7zMZa+eI+AfeOBAED3n95z4PNqTHHLq9lyZ3QVTJXZqu 63+nE7FeLHJHiaq3dxujtAtnKtlmtxBKCPmzVXHRAzknFI/x9i2NXMC0KCYKyCSlX99e y3iY8Nz5qucHiRxleKpZPt1xT05G7UD+MXhN+ExGMEmrFqg3SdsEjJRJLRMjLQU0ttWk MU6tk4LYkXWILaAn2EDuNTPj3hsg8pY60Sd1ZpAqrBKo+BkrYCfftaELmz6eImg/n3xQ MCBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729588491; x=1730193291; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u+Ce6P5RF48gD0XhfV+y0NeuodQPMoeEQKAr6HVeP34=; b=tu1giX8A7sVJ6DEbdWkIcMkttMPSw1WFdxkwg/JjuIjje4mT6tcPfp7KGqvJ7JzWNh g57kk/b3DWGz/9F4qrjI+7sUnifdArKwdrj26Ql82+877AZLaAN6u6TbxgodtH5D6ckq mkwX2zANhCN8gJtrM5GgzPyLgkQT6WMgHWZlKP6Sd0qXnmUwULZ5SOqr2wp/hSMRQrL2 RFGi3Yq+kZIQ37AJZrzms/4sWyUSiw6kPzEp1EUhvbwOfiO/e7XmgogU1k3oey1MDQ7H czG7+aVEfQ23QSkk7ILbxblbB4gRXxAd/xqS+Lzk1c7YRqW5jVyjRfb+135/LbzxudVW 3Wrw== X-Forwarded-Encrypted: i=1; AJvYcCXb/zqpA641jtZyV7oDls9SiikMm/O813mOTbxuZmV2qGFTTeI1XX0+xGPntG4AvE6Kt8GRNTJSR/gTvw==@lists.infradead.org X-Gm-Message-State: AOJu0YwMzzp7NTrDXZf4wK5kOqozDKuUJiEfhLhn/Z3cKuxPCD5VGe0J QPz6xABDEES+oIIsLJzsexCP9PzH6F2mMpVGpsHJ6hedcZbKwtKu7ROVMfeetms= X-Google-Smtp-Source: AGHT+IGSZ7hXuOPiBnKJ80f3kh4bwm35T7Mh6wQsjbYYod2Um2bK+tnJ8Ws++vN/tExtuJyxDde5xA== X-Received: by 2002:a05:600c:3b9b:b0:426:6edf:6597 with SMTP id 5b1f17b1804b1-4316166935bmr97924455e9.19.1729588490663; Tue, 22 Oct 2024 02:14:50 -0700 (PDT) Received: from localhost (p50915d2d.dip0.t-ipconnect.de. [80.145.93.45]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4316f57ff39sm83236635e9.19.2024.10.22.02.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 02:14:50 -0700 (PDT) From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Chen Wang , Inochi Amaoto , Guo Ren , Arnd Bergmann Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH] riscv: dts: Replace deprecated snps,nr-gpios property for snps,dw-apb-gpio-port devices Date: Tue, 22 Oct 2024 11:14:30 +0200 Message-ID: <20241022091428.477697-8-u.kleine-koenig@baylibre.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1680; i=u.kleine-koenig@baylibre.com; h=from:subject; bh=WK/0LdKFbPMfiz0jXghdmvctcvAjN/2uBQOa4CAPCn4=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBnF2z9UjIq/g+EG2cheX43I7fYIirHGaIyMcSL6 GvcEIby3WCJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZxds/QAKCRCPgPtYfRL+ TjYSB/9yX4xh/UisMykfoqvoPvjxs3/A5iGBDtToBjltzaBMnkWnkGw7wU2wMUs8ztcHjVB8xI1 XG2pszGgHqNo+yI+kFhs7kys01sYq/VyDcqi/xWNVGiFvVn3A2iq0Vq2ErMDap7c+QLonquMUmf W23/iH8F9wvGHW3F1i61sawW9cReeFQz+A7v+k0nFBz5N9o63o9phO8hokLniuDeQul/0dsuWL0 gOXyHro/w0hyh/JgQLeXCLenXoZYIepGQcn2jvu9mRUFidKIkkjlsFAyVdIsaH5/w7r9wCBKYGE /CH4AaSfUsrdZaBufXFOX2qdtyeQHXLgP48YwrH3SQ4luOkq X-Developer-Key: i=u.kleine-koenig@baylibre.com; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241022_021452_608826_DFEEA1DB X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org snps,dw-apb-gpio-port is deprecated since commit ef42a8da3cf3 ("dt-bindings: gpio: dwapb: Add ngpios property support"). The respective driver supports this since commit 7569486d79ae ("gpio: dwapb: Add ngpios DT-property support") which is included in Linux v5.10-rc1. This change was created using git grep -l snps,nr-gpios arch/riscv/boot/dts | xargs perl -p -i -e 's/\bsnps,nr-gpios\b/ngpios/ . Signed-off-by: Uwe Kleine-König Reviewed-by: Inochi Amaoto Reviewed-by: Chen Wang --- arch/riscv/boot/dts/sophgo/sg2042.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) base-commit: 7436324ebd147598f940dde1335b7979dbccc339 diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi index 4e5fa6591623..e62ac51ac55a 100644 --- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi +++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi @@ -112,7 +112,7 @@ port0a: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - snps,nr-gpios = <32>; + ngpios = <32>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -134,7 +134,7 @@ port1a: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - snps,nr-gpios = <32>; + ngpios = <32>; reg = <0>; interrupt-controller; #interrupt-cells = <2>; @@ -156,7 +156,7 @@ port2a: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; #gpio-cells = <2>; - snps,nr-gpios = <32>; + ngpios = <32>; reg = <0>; interrupt-controller; #interrupt-cells = <2>;