From patchwork Mon Mar 12 20:57:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10277473 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 916CF60211 for ; Mon, 12 Mar 2018 20:57:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82F45286EE for ; Mon, 12 Mar 2018 20:57:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7707328716; Mon, 12 Mar 2018 20:57:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 14C3D286EE for ; Mon, 12 Mar 2018 20:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=JM5cU16JnKwHEM6Zow31XD2jfkQ0gNcJ8FmM4Pd7O3Q=; b=rpDpfq6hcxRNn2K2Zg/KH9/3uz oOvQ5U83Mn92e1/p5EtdN+A00/X/y6tFhbz20B/httGoucbkAqFbVIlZWkZs1btZDLQ8AAhSYR7CJ dMUKfa9xj3n7fSc6uIlKxyC/R7su8V9lmjDvmKzczTq3yzYqz41IxuCGGt0slpdKXiPRrzL59O1Rf /v5TURm/vemy7cltc43EPJYjJdFORy/Zmt89fMQc8lxWvEVr0KtsrvEbwkt40f5T+x7iZtodUsZtQ 55cuDuii4Y/onKudhjv8tOfivn7D0BkyTArAxaan05ga3TN90I1fWXoznl+OwceEd7NEZXU0Q3g8y /f4996xg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1evUVl-0003Fv-D0; Mon, 12 Mar 2018 20:57:37 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1evUVc-0003AY-Qu for linux-amlogic@lists.infradead.org; Mon, 12 Mar 2018 20:57:30 +0000 Received: by mail-wm0-x241.google.com with SMTP id w128so19464030wmw.0 for ; Mon, 12 Mar 2018 13:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pbrlvThWDDxqqAWdQ4yQ9vMkEEd48C4bxzE4VoyeTMk=; b=nAo8RPbqjudPx1U3lgWW4DGCgzm2OJ4d1pZDQ5yrVhgZm4AWuwN3tInX58ptT1XigV seej5ZN2E97Rtd5RpR2FyROxrRaWgyJEIQ/KvoVwonbZ+2wwL/JWTCSLqR1dl+jc4DO1 uqnuP6cCZPFDXkaYTcG3l74s5MyFcHOeoKCujmBm6bNHS2p9fPBQVKlfJ5axawI5k9Kq 5+U2BTE+dFhlxVO9Sk2gQMktUfKgHkfG2mLAJgeUmSxzm0KbF9z4NXdKDp4Hu5rBOIOd RZacjWXn5ZBXv7KMm0EoVMZMDVaE3zt9MPOt13KfECQ1XYv5zZQssXSoRSLvgmcZaEc+ yltw== 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=pbrlvThWDDxqqAWdQ4yQ9vMkEEd48C4bxzE4VoyeTMk=; b=HEhyNORAaKje+00FuZlEjQrMyfXerkgIt3tv6aaw9QCgI7leS0jog83eANfJpaMlf/ kKoWThHBvRCNydigD3hBNOUtL0R6WAD/f5gThQJeRaASIrOESFNDvlxCQCG0iW4C/7Ew 1yrOrHXFOPV3LvYUmZABiw3b7OjWh/dkA61pgVyjtQlYzuuFgD3QzI+RUfMDlXpTcyBT cBHoE76D+VwtxslB/UWk/arozTbiDlR/LpRfeizcTs/jX5zJ4sk3I/+FYQ1DhGIcRrQw 2uS2FxdB9TqE2cRVUNhAJxf60Huyg4Po95rfXjKIY/9m+kBL2t3wq7TBYmwrz2ybPYDD s3JQ== X-Gm-Message-State: AElRT7GsZKOOeCcam391LtJMKghUNw1utSnF5Fw/c481a5voP1ZaefX7 yqbizZgk8dSEBVra91RvoPYDPScm X-Google-Smtp-Source: AG47ELtximdz2sch4C0VN9dHuh6aPDj5QRi1EXMCvGLLuaFq8gaD2hs1utT74JwC3td0mvZrh7B4iQ== X-Received: by 10.28.92.208 with SMTP id q199mr6334761wmb.91.1520888236670; Mon, 12 Mar 2018 13:57:16 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD727EA045CF34752465B2482.dip0.t-ipconnect.de. [2003:dc:d727:ea04:5cf3:4752:465b:2482]) by smtp.googlemail.com with ESMTPSA id n7sm3092100wrg.20.2018.03.12.13.57.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Mar 2018 13:57:16 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v3 1/1] ARM: dts: meson8b: the CBUS GPIO controller only has 83 GPIOs Date: Mon, 12 Mar 2018 21:57:09 +0100 Message-Id: <20180312205709.27131-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180312205709.27131-1-martin.blumenstingl@googlemail.com> References: <20180312205709.27131-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180312_135728_951268_00186E09 X-CRM114-Status: GOOD ( 13.30 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , linux-gpio@vger.kernel.org, linus.walleij@linaro.org, linus.luessing@c0d3.blue, jbrunet@baylibre.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Update the "gpio-ranges" property of the CBUS GPIO controller on Meson8b because it only provides 83 GPIOs. The GPIO definitions in include/dt-bindings/gpio/meson8b-gpio.h inherited all GPIOs from Meson8 until recently. However, Meson8b does not support all GPIOs which are supported by Meson8 (Meson8b doesn't have a GPIOZ bank, most of the pins from the GPIODV bank are missing on Meson8b - just to name a few differences). The actual number of GPIOs is only 83, instead of 120 from Meson8 plus the 10 GPIOs from the DIF bank on Meson8b. Signed-off-by: Martin Blumenstingl Reviewed-by: Jerome Brunet Acked-by: Linus Walleij --- arch/arm/boot/dts/meson8b.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 5f7841b2d163..9fa77975354b 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -183,7 +183,7 @@ reg-names = "mux", "pull", "pull-enable", "gpio"; gpio-controller; #gpio-cells = <2>; - gpio-ranges = <&pinctrl_cbus 0 0 130>; + gpio-ranges = <&pinctrl_cbus 0 0 83>; }; eth_rgmii_pins: eth-rgmii {