Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp390116ybg; Tue, 9 Jun 2020 03:20:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmigdqV5KJ02qPVuWTqkhLuNk0wjFqUrZEY2zP9XE2l88hvx1ew8764EJshqvn/6fPjU+U X-Received: by 2002:a17:906:1f15:: with SMTP id w21mr23021659ejj.265.1591698057599; Tue, 09 Jun 2020 03:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591698057; cv=none; d=google.com; s=arc-20160816; b=PKuYW878JYS0cFbuAbTjc9b2fz30VTJvB/KlgTmYWEkMjzYO9mh4xRZ3jrxaUDN5s3 huy6IQjEm5Q09bhwfflsZItPUl7O1jSx3BwwohHFhUQpjqpevQAWDBuZr08fEwDnjKlp oZYSaTA9GVSHAzeSCD4QA/J3j5K0+Mk8fmCaiV1Lnv4Jqm01DnvxF6ZBkeJYB3SwlDW8 a7m5J5lSqoIBazgZXdpBQG0jIi33tvYCRafQTMwQIbk0toYg3dajxN/SG6nOyEoHgfHV MRHIN13HTWX/J/vfKnqX9Uu7GokfDd6xlUNwU0YruPl+lmS8PzNjG5FFPMjuW0yoAf14 cA+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=sYZja2GPkizS9cmr8paj+1jHLT3TNrYTxpF+FFiGMT8=; b=uc1FSwY1Hgg/gZnPBhEa1K2RMZITMhXGnn+3okjxxaAhHAcgmIm9UYZWfKtEU5kh4l YdlSeBZjz8b4OOUs5GsyJzfIfMTql0ltdV7UVOdMygBeX/ScZcKzROBWPIA+eJB8KAvh txjiGjTwgimy2PrI0hGOmFpPD85ikYf/IWvKehIHZyCRgWX26NWlp9DhgHn1crNtOqkU R2S/kVorj/5NmS5zSLdQiuHt7iodJ08u9k+OT5cpMYltCPCkPLlAqEFY2KEjzLAsh9Ls lz6AwCT+zl4EC7CHfnhPXc98TIxYIxNN/mme1yNWHwm3c8DQKNyRh0qwscpb6fkYtWKR KX9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bIcDhJTC; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si4983378edy.548.2020.06.09.03.20.34; Tue, 09 Jun 2020 03:20:57 -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=@gmail.com header.s=20161025 header.b=bIcDhJTC; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728720AbgFIKSQ (ORCPT + 99 others); Tue, 9 Jun 2020 06:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728661AbgFIKRw (ORCPT ); Tue, 9 Jun 2020 06:17:52 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F234C05BD1E; Tue, 9 Jun 2020 03:17:52 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id b5so9872467pfp.9; Tue, 09 Jun 2020 03:17:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sYZja2GPkizS9cmr8paj+1jHLT3TNrYTxpF+FFiGMT8=; b=bIcDhJTCcatY4ggDNPTS8ubPZaYdUJrYKLQYijEc/Olj7keEcU4bWoaQwVHDP4hFrL Cy7eK7KQpwSOR2mnEcJ05khRcOTNKQ9+up5yigCE9SDCIJEWkUNZHNAt+ZFv394OcAWW 2xfUrhvE3cANsRXHl82BSvUrRum9fx0y8c2joPq4CL/sOaLBGdCfmkrCVLjUml8aok31 BlGDVIGfnVR8zRTrlCDcI1cvDkaft8G91nkRz++yhkfJoaUETUhCcBUEJLEH1eQnJZi/ Rz8WnK3Do470IvX6OGVUuVtiCwN7qINiMCOzOx86JapZ5ionbzDZTa09qOebTo22Wnrj CHyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sYZja2GPkizS9cmr8paj+1jHLT3TNrYTxpF+FFiGMT8=; b=RxwKLTDbSHGsswYJ/ay/3wRKqazWZF8Qjsn7BcemR6BajvW4P3UT+8h2zTLc9cNJpI WTWv8Fg9NNkBW7It8NILt+LXBTm8weFpgy15LUWkTYuIsB8JK244RBF01vIHO3QZ8UNA TXNneyUO19mX4DiKG5YYK/FyjAyoyGOPxrxQjw3okNqJDrDjMyzRjBVoWxM9QF9v20L3 EpyJhOBXBRv97nzWE13fiBAxxURlH9dVB+hzVoKK9nNBVfSTLB5/BUhR9hCtvrl55NuS IVafgX/ABDthoOQRPkAFrtvMMuFc6uCL6xEpf1JDTYfbjh3hxW37h5tow+ORJyzN14Mc +WcA== X-Gm-Message-State: AOAM530LxU95Ei74IQDsi1apAT0sn0gOMb331KruWWNakqS6TPwz1dG4 7G2OCQCEl4FH3T7koHu++94= X-Received: by 2002:a63:a84d:: with SMTP id i13mr22967029pgp.342.1591697871778; Tue, 09 Jun 2020 03:17:51 -0700 (PDT) Received: from localhost.localdomain ([223.190.87.90]) by smtp.gmail.com with ESMTPSA id d189sm9637253pfc.51.2020.06.09.03.17.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2020 03:17:51 -0700 (PDT) From: Amit Singh Tomar To: andre.przywara@arm.com, afaerber@suse.de, manivannan.sadhasivam@linaro.org, robh+dt@kernel.org Cc: cristian.ciocaltea@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v4 04/10] arm64: dts: actions: limit address range for pinctrl node Date: Tue, 9 Jun 2020 15:47:04 +0530 Message-Id: <1591697830-16311-5-git-send-email-amittomer25@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1591697830-16311-1-git-send-email-amittomer25@gmail.com> References: <1591697830-16311-1-git-send-email-amittomer25@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After commit 7cdf8446ed1d ("arm64: dts: actions: Add pinctrl node for Actions Semi S700") following error has been observed while booting Linux on Cubieboard7-lite(based on S700 SoC). [ 0.257415] pinctrl-s700 e01b0000.pinctrl: can't request region for resource [mem 0xe01b0000-0xe01b0fff] [ 0.266902] pinctrl-s700: probe of e01b0000.pinctrl failed with error -16 This is due to the fact that memory range for "sps" power domain controller clashes with pinctrl. One way to fix it, is to limit pinctrl address range which is safe to do as current pinctrl driver uses address range only up to 0x100. This commit limits the pinctrl address range to 0x100 so that it doesn't conflict with sps range. Fixes: 7cdf8446ed1d ("arm64: dts: actions: Add pinctrl node for Actions Semi S700") Suggested-by: Andre Przywara Signed-off-by: Amit Singh Tomar --- Changes since v3: * No change. Changes since v2: * this is no more don't merge and fixed the broken S700 boot by limiting pinctrl address range. * Modified the subject to reflect the changes. Changes since v1: * No change. Changes since RFC: * kept as do not merge. --- arch/arm64/boot/dts/actions/s700.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi index 2006ad5424fa..f8eb72bb4125 100644 --- a/arch/arm64/boot/dts/actions/s700.dtsi +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -231,7 +231,7 @@ pinctrl: pinctrl@e01b0000 { compatible = "actions,s700-pinctrl"; - reg = <0x0 0xe01b0000 0x0 0x1000>; + reg = <0x0 0xe01b0000 0x0 0x100>; clocks = <&cmu CLK_GPIO>; gpio-controller; gpio-ranges = <&pinctrl 0 0 136>; -- 2.7.4