From patchwork Thu Jun 6 12:57:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huang-Huang Bao X-Patchwork-Id: 13688439 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 6FC0AC25B75 for ; Thu, 6 Jun 2024 12:58:24 +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=tCFayNC591DZ1f1nyFLRij594lcm0f4FPUN1q4rBPxs=; b=hZfuxjHM+aoNF8 HH2iU+o40qCBve1ukrXNgydwvr94MlZZdl8iNxAiQhwHcWa8U9wVbBhwVVLzkBbgsA6UrLSUuINqy dCW4elQEnKbyK2tmAFuYyvO/8sJFM9sFsMzVaVMdO6QzQ26K9ozRw8+TC0N2lnxpVPQsNFPM7mXXD BdXafM/USCzIkMV4V2GJlTsCfhvY4kQ/IiKvhNL//X6GenQ9N6fFOXnKy5NeD5Qe6nw9iLKDnnOrd vcVfieMSwrQbIo4vrAjYgCEfq+yqghoTm9O72Znf6KVqGFUHTIZf4wHDQJkUtGB8AFKJ15KECgWG6 qUEricSWB2pm8E92cngQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFCh4-00000009lUv-3Oh2; Thu, 06 Jun 2024 12:58:14 +0000 Received: from mail.eh5.me ([45.76.111.223]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFCgy-00000009lRI-0Ai6; Thu, 06 Jun 2024 12:58:10 +0000 From: Huang-Huang Bao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eh5.me; s=dkim; t=1717678681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Melp/AwKYwWBq+3w6XX7+3avHSKYtUya/gkYeN1dljg=; b=CUaeKEjDvimojDiRC7Q3Dyn7DZBWaGvlZu9dEGLvePnXyl+LQTapvxPzvBg8kJ9dNprKG4 jdkbBJhQ9ArXCnG7HxD16rlLVknW6At+eprU0tfigg5jE0PsTxfRVT2SE6PEkXtWaLJ8EC Oyy0vHMixbo6zhV9ytejZasn/KWlNcU= To: Heiko Stuebner , Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Huang-Huang Bao Subject: [PATCH v2 0/4] pinctrl: rockchip: fix RK3328 pinmux bits Date: Thu, 6 Jun 2024 20:57:51 +0800 Message-ID: <20240606125755.53778-1-i@eh5.me> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240606_055808_224440_C48A4D56 X-CRM114-Status: UNSURE ( 7.24 ) X-CRM114-Notice: Please train this message. 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 The pinmux settings for RK3328 is incomplete, correct the pin bank settings and recalced mux data according to RK3328 TRM[1]. There was a patch[2] in rockchip-linux kernel repo that cover part of missing mux settings, unfortunatly it never got into upstream kernel source. The last patch fixes an issue in rockchip_pmx_set which is general for all rockchip platforms that might cause unexpected pinmux to be set to 0. [1]: https://opensource.rock-chips.com/images/9/97/Rockchip_RK3328TRM_V1.1-Part1-20170321.pdf [2]: https://github.com/rockchip-linux/kernel/commit/d69af8ab6534bb28c1556076f08d2a5ab4935d95 v2: - split commits for GPIO2-B pins and GPIO3-B pins each - add a missing Fixes as suggested by Heiko - add Reviewed-by to last 2 patches Huang-Huang Bao (4): pinctrl: rockchip: fix pinmux bits for RK3328 GPIO2-B pins pinctrl: rockchip: fix pinmux bits for RK3328 GPIO3-B pins pinctrl: rockchip: use dedicated pinctrl type for RK3328 pinctrl: rockchip: fix pinmux reset in rockchip_pmx_set drivers/pinctrl/pinctrl-rockchip.c | 68 ++++++++++++++++++++++++++---- drivers/pinctrl/pinctrl-rockchip.h | 1 + 2 files changed, 60 insertions(+), 9 deletions(-) base-commit: 2df0193e62cf887f373995fb8a91068562784adc --- 2.45.2