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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75879C4332F for ; Tue, 8 Mar 2022 15:27:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347824AbiCHP2U (ORCPT ); Tue, 8 Mar 2022 10:28:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347817AbiCHP2S (ORCPT ); Tue, 8 Mar 2022 10:28:18 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46D2D4DF6A; Tue, 8 Mar 2022 07:27:20 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 4639D1F42FA0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1646753236; bh=+KTyWLV48d7i/EApNNdhu7mJxCc3pRmgRcAh4/tiV50=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Bj6m68MEkT7hIF+KvizmOcT5Jm6vDQZeIKM53yWR6J/HpV5QW6VMCQN/OuS2JBsJA 32pZ168dZ0lIW5JdI2Ww7O3zB5Zh2owCGO8bGUZ7vxKaMZEclv+NLNTA4KWej/0Prd enaxPMxO1pbkeIF+8X3GpvkYYJC1328mP4x9r+pg7lDrHR7ej6GRnfOoLxqA7r04ux lhc9RKeiiGIp0umkXQRT8c2+zSvtaG4c6dyHyRK6pKVLwtY6lx1bclCxz7ktqrdXZ/ ATZPI5vEXihBO/swQHMfF+qpyXeLyXASqbLFXe11ZPc8S75phNgSRf5+nKx25tp5of EVoSSCSOGWxHg== Message-ID: <8e2b68b7-4532-b8d6-f803-3e4e2bca6a72@collabora.com> Date: Tue, 8 Mar 2022 16:27:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v2 08/11] pinctrl: mediatek: paris: Support generic PIN_CONFIG_DRIVE_STRENGTH_UA Content-Language: en-US To: Chen-Yu Tsai , Sean Wang , Linus Walleij , Matthias Brugger Cc: linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20220308100956.2750295-1-wenst@chromium.org> <20220308100956.2750295-9-wenst@chromium.org> From: AngeloGioacchino Del Regno In-Reply-To: <20220308100956.2750295-9-wenst@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 08/03/22 11:09, Chen-Yu Tsai ha scritto: > Some of the MediaTek chips that utilize the Paris pinctrl driver library > support a lower drive strength (<= 1mA) than the standard drive strength > settings (2~16 mA) on certain pins. This was previously supported by the > custom MTK_PIN_CONFIG_DRV_ADV parameter along with the > "mediatek,drive-strength-adv" device tree property. > > The drive strength values for this hardware are 125, 250, 500, and 1000 mA, > and can be readily described by the existing "drive-strength-microamp" > property, which then gets parsed by the generic pinconf library into the > parameter PIN_CONFIG_DRIVE_STRENGTH_UA. > > Add support for PIN_CONFIG_DRIVE_STRENGTH_UA while keeping the old > custom parameter around for backward compatibility. > > Signed-off-by: Chen-Yu Tsai Reviewed-by: AngeloGioacchino Del Regno > --- > drivers/pinctrl/mediatek/pinctrl-paris.c | 99 ++++++++++++++++++++++++ > 1 file changed, 99 insertions(+) >