Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp355822lqt; Thu, 6 Jun 2024 05:58:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWP0V37uyW4Ll/4mpp96Fwnd1bWqswt2rIXOPPLRz/IwDyS8vCEqn2t/SG3yQPANyAJ4Pt1UbsOzlGiEKSNUpVVGcjr+56JHiHNtfpxmg== X-Google-Smtp-Source: AGHT+IHrM1BMy/1YQ8aqpGUm+PYPGNG+dvvluYebPputVX5Xt6fkH11jEENZNoy/BEfH8YCILyEm X-Received: by 2002:a05:622a:5c7:b0:43a:deee:a5ea with SMTP id d75a77b69052e-4402b464217mr53895791cf.13.1717678718086; Thu, 06 Jun 2024 05:58:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717678718; cv=pass; d=google.com; s=arc-20160816; b=RmLRxtJOoMq7nBpmTVV+imnerCbsk9VwQNm229QSypdTTiUzxqh1ioEJyYRN8yo0I6 yFE2tNrZAdcOY+eSOQAeFUkMMIK22eYAwiYORZTLXvg9cVosEOfHE9N0q1EorfW9vY7n hTL50v41LpI8O7WSegc1DYuPKysxzlFAgheYlAvsTCaA4/1l98y0qkynDx7E0INuJz6e rHszxXqxDH78EEOSSof4KWv/pupX0+yZzhtEE9BJMBCX+Z+5+Ign7AWsoSRuzZMb5zD+ OhY8g3HbfrzDruYOhLAv94Q4rbNyXh5EXAbeU60ECesi0uyS6YhoCLh+DU6Ipgt+V+ZQ FGcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :dkim-signature:from; bh=Melp/AwKYwWBq+3w6XX7+3avHSKYtUya/gkYeN1dljg=; fh=Tt4ijHPlaNBGuTBvpH91VcLfo3o/bEGYSCdchjwZ6eE=; b=hkFXAkSMPV1sBlquU7gGt2dxLEQA6M4O2sO40sL8wHT6W9s/IyKh3C/1Ze8vis7InW y6SefPvXvnv4j0OIvi8LNuZSvN5xsH8lmVrbfFFrD4LDkYQQqEIvV/teTB6jf+Id8NNk k/QXP9nsXWpIaY9MRNwUathAY8l+qL8oAJjS1IVDOcOMFoQm5QP3JSrvOWOfkyXDubdn IftpTAptCyV/3rToGXElT2SYFHSkjfnK8Jtv8FR8QrHJrjgqUt67cAy+zynVgnzho0KD 5d9PS7MrpkH4PiLC4/4r9Lra58wfM/nNgXSRFzh0ukwM/pEhYWDA0KbkqWn7Zi4SOtj9 zXOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@eh5.me header.s=dkim header.b=CUaeKEjD; arc=pass (i=1 spf=pass spfdomain=eh5.me dkim=pass dkdomain=eh5.me dmarc=pass fromdomain=eh5.me); spf=pass (google.com: domain of linux-kernel+bounces-204301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=eh5.me Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b17177si15241861cf.259.2024.06.06.05.58.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 05:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@eh5.me header.s=dkim header.b=CUaeKEjD; arc=pass (i=1 spf=pass spfdomain=eh5.me dkim=pass dkdomain=eh5.me dmarc=pass fromdomain=eh5.me); spf=pass (google.com: domain of linux-kernel+bounces-204301-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=eh5.me Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9AECD1C24398 for ; Thu, 6 Jun 2024 12:58:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53686195F04; Thu, 6 Jun 2024 12:58:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=eh5.me header.i=@eh5.me header.b="CUaeKEjD" Received: from mail.eh5.me (mail.eh5.me [45.76.111.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0163194C9A; Thu, 6 Jun 2024 12:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.76.111.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717678686; cv=none; b=cz1UmnzSVwfLISmD/IjdBSS3V7PdcsmCGZnXe226xBH9L8vxKA3/lMuH6wD2F1BMyZCz5dlL7H+BIYiCgy6hORmVr3DLM4EG7u7o+SUqztNY7uXEML1CzC8ECqU6TRdWRos0/JXVlGYkkvw5zxJiCq47xOrdfHUefnw6cYMueuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717678686; c=relaxed/simple; bh=Uxk8Fk/7sCzSFIgT+BUEIDJsiLgCAKvkQB5ZOk6DXOw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZJNDyrxsPnZLDkRDZaTHFqbasN82Pi57l9VHQOhgN5fyH4fWYTHsViK/p4ciFzX/84GNSVYx32NtbIXQuxm7wz6l2/o6XGLyuIYIGKJ0CuwILab5QqA2C+24llHgreGVVlfzpW6keAwHhAsEd7N3xJK2WvMQOl12+JKhvzZ3l2M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=eh5.me; spf=pass smtp.mailfrom=eh5.me; dkim=pass (1024-bit key) header.d=eh5.me header.i=@eh5.me header.b=CUaeKEjD; arc=none smtp.client-ip=45.76.111.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=eh5.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=eh5.me 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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