From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81900C4338F for ; Sun, 25 Jul 2021 23:36:57 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id EA91860BD3 for ; Sun, 25 Jul 2021 23:36:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EA91860BD3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 615AA832C0; Mon, 26 Jul 2021 01:35:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 694F183248; Mon, 26 Jul 2021 01:17:05 +0200 (CEST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) (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 E423B83249 for ; Mon, 26 Jul 2021 01:16:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=yifangu.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=gyf304@gmail.com Received: by mail-qk1-f180.google.com with SMTP id f22so7194385qke.10 for ; Sun, 25 Jul 2021 16:16:47 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=Y4We0EhtCs4gc4itB5VTizxSm36tau+pP2g9uiGbnDA=; b=nBYxJcxKCX1mDMfSGP1docHgY/f4saIBRO0TL1Dk+2kf7cLc13gaFA/caYphdN3QZS FUVkPE3GdFaa62uDajyz9k7a53YGuRCdAx3kmwLu4pS29pZjRQKYnzr8Gukpj6GAZdDa rUzm7u61evmsKWf6+SAY0NmFwL+lQodfraLeLRsqVoRiYQO+DE7lELZpU7+SzW7lA7iD PeMeeL/5r/AOYXn0bbU+rucxbDE4wCrvW0/ZpEIycimAgm9sGZzw7VeudpkFPQQs4H+X zIamNaGl4HKr2mBn3uEg9/dsyG0pdFhz2R4KKrxxnHFmFddVm1i2t6f9KVhv53h0VQ3U Tn6A== X-Gm-Message-State: AOAM530wCMn7px1mXfeenfdmPfnL4H7E3laekEiFnfANzZ52COzs7neM 9GajdGOXFss4fofA+EZdhgcj7g6KXpiSpayj X-Google-Smtp-Source: ABdhPJx+frYMI60++EwmdJgitqMue4+2KmeObqS8RxQrMrkkvzD42g5DaREHXfe711HZygQRSmKI1w== X-Received: by 2002:a37:2e83:: with SMTP id u125mr15382936qkh.168.1627255006649; Sun, 25 Jul 2021 16:16:46 -0700 (PDT) Received: from yifangu-Virtual-Machine.mshome.net (pool-100-6-159-43.pitbpa.fios.verizon.net. [100.6.159.43]) by smtp.gmail.com with ESMTPSA id u184sm17754694qkd.53.2021.07.25.16.16.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Jul 2021 16:16:46 -0700 (PDT) From: Yifan Gu To: u-boot@lists.denx.de Cc: Yifan Gu , Jagan Teki , Andre Przywara , Icenowy Zheng , George Hilliard Subject: [PATCH 15/27] sunxi: gpio: Add support for suniv-f1c100s Date: Sun, 25 Jul 2021 19:16:24 -0400 Message-Id: <20210725231636.879913-16-me@yifangu.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210725231636.879913-1-me@yifangu.com> References: <20210725231636.879913-1-me@yifangu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 26 Jul 2021 01:32:10 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean From: George Hilliard The f1c100s has a controller pretty similar to that of most sunxi parts, but there are only 6 banks. Add a new compatible entry for this peripheral. Signed-off-by: George Hilliard Signed-off-by: Yifan Gu --- drivers/gpio/sunxi_gpio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index 24cb604e3e..c7bdb3d3f3 100644 --- a/drivers/gpio/sunxi_gpio.c +++ b/drivers/gpio/sunxi_gpio.c @@ -319,6 +319,11 @@ static const struct sunxi_gpio_soc_data soc_data_a_all = { .no_banks = SUNXI_GPIO_BANKS, }; +static const struct sunxi_gpio_soc_data soc_data_a_6 = { + .start = 0, + .no_banks = 6, +}; + static const struct sunxi_gpio_soc_data soc_data_l_1 = { .start = 'L' - 'A', .no_banks = 1, @@ -364,6 +369,7 @@ static const struct udevice_id sunxi_gpio_ids[] = { ID("allwinner,sun50i-a64-r-pinctrl", l_1), ID("allwinner,sun50i-h6-r-pinctrl", l_2), ID("allwinner,sun50i-h616-r-pinctrl", l_1), + ID("allwinner,suniv-pinctrl", a_6), { } }; -- 2.25.1