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 B6E55C43334 for ; Mon, 25 Jul 2022 12:10:26 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5FC50841EA; Mon, 25 Jul 2022 14:10:24 +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="HTelQm0A"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 44EA9841E4; Mon, 25 Jul 2022 14:10:22 +0200 (CEST) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (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 109FA8416B for ; Mon, 25 Jul 2022 14:10:20 +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 A3B5DB80E4D; Mon, 25 Jul 2022 12:10:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41D5EC341CD; Mon, 25 Jul 2022 12:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658751018; bh=ZAkROZnl+MgQx3I6K/P+m223XxRc0XnJuZ0AsSLn/qo=; h=From:To:Cc:Subject:Date:From; b=HTelQm0A+U2uVZt3WLBX3s/ZDlTJ2lWh9Oi9x147BbosiLn0Pb+znOSkF+tW4wAQR b19Rh1Ss/XmDRakCbR7mC991eTQLafi1d+hx2CgcrrrtzZjR5IsWvJRWqqnWmp/UyA iPyBQjD/F6tVUDgPeclmCUk6xkDAtCBcpW6TGPey31cUN+non68R/vtyhLgz2NH7GO Hmtc+bKKGGTI+Uv4wzaYuQNKB7U3D3lNkSsfboOX4YiQ9khq5dDl6BxCVPjPfNuQK5 YlT7X5Tyxki3ltnsEj1WXkOlhvqpizV7M39C1fExU1dU1s8ckXJ7JT5H8MRSYFt9i8 IOAxB2xArlyyA== Received: by pali.im (Postfix) id 8A86A793; Mon, 25 Jul 2022 14:10:15 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Stefan Roese Cc: Marek Behun , u-boot@lists.denx.de Subject: [PATCH 0/6] arm64: a37xx: pinctrl: Fix requesting GPIOs and pinmux command Date: Mon, 25 Jul 2022 14:08:57 +0200 Message-Id: <20220725120903.3284-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 cleanup pinctrl-armada-37xx.c driver, add missing pin muxes into the list to allow usage all MPP pins as GPIOs, implement gpio_request_enable callback for correctly setting MPP pins to GPIO mode. For debugging purposes are implemented also get_pins_count, get_pin_name and get_pin_muxing functions which are required for U-Boot command: pinmux status -a Pali Rohár (6): arm64: a37xx: pinctrl: Remove unused grp->pins fields arm64: a37xx: pinctrl: Remove duplicate info->groups and info->ngroups fields arm64: a37xx: pinctrl: Mark all functions and structures as static arm64: a37xx: pinctrl: Add missing pinmuxes into the list arm64: a37xx: pinctrl: Implement gpio_request_enable for gpio functionality arm64: a37xx: pinctrl: Implement get_pins_count, get_pin_name and get_pin_muxing functions drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 189 ++++++++++++++++---- 1 file changed, 153 insertions(+), 36 deletions(-) -- 2.20.1