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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 54480C7618A for ; Sun, 19 Mar 2023 15:05:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C877283CB4; Sun, 19 Mar 2023 16:05:33 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dRt8lWiL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0BF2C855F5; Sun, 19 Mar 2023 16:05:32 +0100 (CET) Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A594083AA4 for ; Sun, 19 Mar 2023 16:05:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jbx6244@gmail.com Received: by mail-ed1-x535.google.com with SMTP id eg48so37588404edb.13 for ; Sun, 19 Mar 2023 08:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679238329; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=5L+/VEotnSITXLYtqjp7r/gLobo93+EvMnbYU+/PIAk=; b=dRt8lWiLsFEZ0IKsnPNj3hrxMYxrcmXZvQYosXQpgfcz3vxzofcuAqFkGlAf1dTIPR IrYilnEdHQOYVQ/QBTiOWRHb9SS5lSP8cNLTa2sl/9fLet1l/MgD1SJGN6agj9uQcjhR DSi4Lm9AKyyhHi1gmqj1NxZMZtJrPxKvI2Z4OZrnGHHktgiBCJvYKNov8/t8XO+vS6qQ TJBpsF6gzbz8eL8NtZ/klSAhaDOmKsyevG5LowIhVId8wp0sHiIf2mqGPiIjqjQjv6xA y2p8mCBah4x9+bFKLI+2sfLlq+04VBk1sOn/wTByUuZe39NMAqsdK8cdJ4F/l3TymgjO SRLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679238329; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5L+/VEotnSITXLYtqjp7r/gLobo93+EvMnbYU+/PIAk=; b=mklHlWltglCSX3yLp/yVUWhS8nKM1bpL4VGoc5OOWAO9gHfAX80Ny3DlPUbDp2FGW8 jVwSmzxWgRhUc9ovInYZ26uigmdicYDYkvW+ruhcxjlhr1rsNR7Holmf3imrXGh4ogsz 2v9fY8Yp2Mdrffqq/bkMSoMaFGPtarYAWPwJgnv5/a/tR1PzvUWGn00QjeetgF4P+tAR jyqnv5ZJI3ryaXkR5mBlIHkg5YlqHvgbg2Hd7UqZkaJtZ8jQW7Hiu/03mNSQBH085FVM HPqtsvWW3miDRGgCqGr7MmdAEj+RIMW4gOZxjcory0/BBFKjIiwWDLu+NbDLG97J/im9 CSCQ== X-Gm-Message-State: AO0yUKWBmLL9Nu/qF+pY973sPOOlBpwxrJ1aY+GvQ5SosPqa7YSbZqFn pq6jM15TQNoyyS0ruMaxjxs= X-Google-Smtp-Source: AK7set8ujrSLQ54iVpCuukm6CO28iH4QN+UT7r+BZ8FZ5PGLQSVVU4FCnUqLy9IRyne0uhgqAxwT4Q== X-Received: by 2002:a17:906:185b:b0:839:74cf:7c4f with SMTP id w27-20020a170906185b00b0083974cf7c4fmr6045332eje.8.1679238329162; Sun, 19 Mar 2023 08:05:29 -0700 (PDT) Received: from [192.168.2.2] (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id gz14-20020a170906f2ce00b00923221f4062sm3322450ejb.112.2023.03.19.08.05.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Mar 2023 08:05:28 -0700 (PDT) Message-ID: <89c19741-b1e7-bea0-24ff-f8337e6b5905@gmail.com> Date: Sun, 19 Mar 2023 16:05:27 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 From: Johan Jonker Subject: [PATCH v2 2/6] arm: dts: rockchip: rk3066a-u-boot: add gpio-ranges To: kever.yang@rock-chips.com Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, u-boot@lists.denx.de References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The gpio node names are made generic, but without gpio bank ID. Add gpio-ranges to rk3066a-u-boot.dtsi for now till a better method is found. Disable gpio6 as the driver gives an error code on return as status. Signed-off-by: Johan Jonker Reviewed-by: Simon Glass --- Changed V2: disable gpio6 --- arch/arm/dts/rk3066a-u-boot.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/rk3066a-u-boot.dtsi b/arch/arm/dts/rk3066a-u-boot.dtsi index bc6e609d..06f405ca 100644 --- a/arch/arm/dts/rk3066a-u-boot.dtsi +++ b/arch/arm/dts/rk3066a-u-boot.dtsi @@ -2,3 +2,28 @@ #include "rockchip-u-boot.dtsi" #include "rk3xxx-u-boot.dtsi" + +&gpio0 { + gpio-ranges = <&pinctrl 0 0 32>; +}; + +&gpio1 { + gpio-ranges = <&pinctrl 0 32 32>; +}; + +&gpio2 { + gpio-ranges = <&pinctrl 0 64 32>; +}; + +&gpio3 { + gpio-ranges = <&pinctrl 0 96 32>; +}; + +&gpio4 { + gpio-ranges = <&pinctrl 0 128 32>; +}; + +&gpio6 { + status = "disabled"; +}; + -- 2.20.1