From patchwork Thu Mar 7 07:01:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 13585136 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6E298C54E55 for ; Thu, 7 Mar 2024 07:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=VXIDIptWbOKWhBsI0YgjqDFJs2o6e8zM1yY4SHJQjwM=; b=0FaYuqhlYGJgjh ZTWmks0VcZ+w0DQPh3EA6/DXFacsKEe1D3trFGNm1ZviN8qZsOFEsvKq8SY80qaUacbcSrTnsdz88 nNnnltOHYcs/sZ5J0KvkHDbnLvw25GgL2fCQi+k/eJ6ehHDG93IQEWN5/ZU5P+V/2odLYM8e4y9AX zLO6iobVNtnkJfz+K65f7q7xKYtxR7Vd6ttuefQYde0kI3cBkAMmJj/VMcvlyUvoj2TviidYtvRT4 3i4zTPsAuQr6N36+jPfGRuFYShVac0MLVfJoEh6C7Qb5KvAkisrqVO501NlPA76MHtinTrh77wRf2 81Y5H0pPX5esI9x65ZvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ri7lC-00000003Lw0-2goE; Thu, 07 Mar 2024 07:01:46 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ri7l6-00000003Lqs-0KoR; Thu, 07 Mar 2024 07:01:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1709794895; x=1710399695; i=wahrenst@gmx.net; bh=hlDEF+mRhQCk1gTXJ3ci/EweREqmguVowikDg+AyhVM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=W+u4e7Sz7JCIFmRZBLxh1pynfFhd38G62yi+qNH4XGubsiH+CYDWOQdOFZ7+WgRA RwoM2GQ6EbqIHqXeXLGQWwBhxgV8/7V0tehkVmNasd6Rl8LZP/CSuTahVN1LCekk7 npu2dXv8wY1hdi6VH5LykY8W9C9XjnWpzJnYIPSD/JMwvt4KxhPYXWej/MH9YNPyM OgSCKCWW680tl4NfTuDT41P+ttx21jjCsZpnUy0DVLw13AZFBPGbpyfHjnEOZIcyV NaJOtY/MHhm4U/902SKC8XxGbRnRa97hNiXtbnpe7oND7ErCvCxtugSamewwPTpZP sLknb+sYMaLEQDQWQw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from stefanw-SCHENKER ([37.4.248.43]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MMGN2-1rS6Ey3w62-00JHEh; Thu, 07 Mar 2024 08:01:35 +0100 From: Stefan Wahren To: Linus Walleij , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH V4 0/2] pinctrl: bcm2835: Implement pin_conf_get Date: Thu, 7 Mar 2024 08:01:11 +0100 Message-Id: <20240307070113.4888-1-wahrenst@gmx.net> X-Mailer: git-send-email 2.34.1 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get7TdyZAn8ItbZsqlncO4/i58HA9RsuDmuHT3 IQT4cxVISsn3TastoTvc9e/wgX/UcNBKmbIyOcUNa8vAw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240306_230140_457000_52D721B5 X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org For years, the Raspberry Pi users relied on userspace programs to read the pin configuration. In the meantime, it has become apparent that this approach has reached its limits for various reasons. This patch series now attempts to improve the debugging possibilities on the kernel side in order to reduce the dependency on these userspace programs. Changes in V4: - drop PIN_CONFIG_INPUT_ENABLE & PIN_CONFIG_OUTPUT_ENABLE from bcm2835_pinconf_get as suggested by Chen-Yu Tsai - add Florian's Reviewed-by and Tested-by Changes in V3: - convert changes to single return point of success as suggested by Andy Shevchenko - justify ENOTSUPP checkpatch false positive Changes in V2: - adjust the BCM2711/7211 pull resistor value according to the Broadcom datasheet Stefan Wahren (2): pinctrl: bcm2835: Implement bcm2835_pinconf_get pinctrl: bcm2835: Implement bcm2711_pinconf_get drivers/pinctrl/bcm/pinctrl-bcm2835.c | 64 +++++++++++++++++++++++++-- 1 file changed, 61 insertions(+), 3 deletions(-) --- 2.34.1