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 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 92896C433EF for ; Mon, 25 Jul 2022 11:56:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 07F718419C; Mon, 25 Jul 2022 13:56:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="NJf+1E76"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 83469841DD; Mon, 25 Jul 2022 13:56:30 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CD6D78418E for ; Mon, 25 Jul 2022 13:56:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6733BB80E54; Mon, 25 Jul 2022 11:56:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09C1CC341C8; Mon, 25 Jul 2022 11:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658750186; bh=hw+FSoZtM9B0khlQhcReF3utBzkhoWTm+FP5gdBLXMc=; h=From:To:Cc:Subject:Date:From; b=NJf+1E76O/XeAW6YEj1O+FkfXoPXISSWN8cwuBMJCE6ObK6yc2oscjSKIaMLr5Lrm 3eRlG+wDVfaKoA7uGd07nB+IzsRlAVYKL3x1+WiV6b6iu5jFuH1+5dSb7pRj54Q9lU b0a7/CZWflzLFTA5Uuq/FGThOaFZ1VezfH5NwSPGVxDD4+3g4wlkHS/oL7w/Dh5LEW iDDtLq3aFCmyTo4vhHGQeZx0vTDAiZWF2SwF7S9DYSiNZyQUHUMcvoc6uR+rubijwD zg7Jvt1EdOHfeKPQ5p2Eir4MhEtRa+3ywLNsoY/a6c1V6YRAwmM+SKdww9yzaLJd5f 1TtbLer6tvuUg== Received: by pali.im (Postfix) id 17BDB793; Mon, 25 Jul 2022 13:56:23 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese Cc: Marek Behun , Simon Glass , u-boot@lists.denx.de Subject: [PATCH 0/8] arm: mvebu: Add Armada 38x pin muxing support Date: Mon, 25 Jul 2022 13:56:07 +0200 Message-Id: <20220725115615.420-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean This patch series add support for configuring pin muxing on Armada 38x via device tree properties used by Linux kernel. It extends also mvebu gpio driver to properly set pin function to gpio prior assigning pins and enable gpio and pinmux support on Turris Omnia. Pali Rohár (8): pinctrl: Add new function pinctrl_generic_set_state_prefix() mvebu: pinctrl: Add Armada 38x driver arm: mvebu: Add gpio-ranges into Armada 38x device tree file pinctrl: Add third argument label for pinctrl_gpio_request() function gpio: mvebu_gpio: Add .request and .rfree methods for Armada 38x gpio: mvebu_gpio: Read number of gpios from DT gpio: mvebu_gpio: Set bank name to mvebu%d arm: mvebu: turris_omnia: Enable a38x pinctrl and gpio support arch/arm/dts/armada-38x.dtsi | 2 + configs/turris_omnia_defconfig | 4 +- drivers/gpio/mvebu_gpio.c | 11 +- drivers/pinctrl/mvebu/Kconfig | 7 + drivers/pinctrl/mvebu/Makefile | 1 + drivers/pinctrl/mvebu/pinctrl-armada-38x.c | 589 +++++++++++++++++++++ drivers/pinctrl/pinctrl-generic.c | 100 +++- drivers/pinctrl/pinctrl-uclass.c | 3 +- include/dm/pinctrl.h | 5 +- 9 files changed, 699 insertions(+), 23 deletions(-) create mode 100644 drivers/pinctrl/mvebu/pinctrl-armada-38x.c -- 2.20.1