Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp171618lqt; Wed, 5 Jun 2024 23:05:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaDgch7lfq5cyXhDlJCVL6ZI625ejzrkzgXVp4ijX8U5uydeTx9UtobeOwa6JmRKpun93NIezQoTdcer5MegtJwwFRuhi6DKW/ZgtVJQ== X-Google-Smtp-Source: AGHT+IG7W3jJcKvAfebWj1sEWzPDnqGPKUkBd4kFZiGB6o0tYS/NiT1dsBTqKuQQI6LCwMueAwkf X-Received: by 2002:a05:6102:18d0:b0:485:75ae:4d91 with SMTP id ada2fe7eead31-48c04b04d76mr4850750137.34.1717653904491; Wed, 05 Jun 2024 23:05:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717653904; cv=pass; d=google.com; s=arc-20160816; b=YWfXb6bEAwHm6GNwBvPcFX7PwwPimN5S5CiFZfNlBF/WSk1Y2s8n0CuMRZnhumhA4X e85vMq/WHuH0a9towsrRu7pdE2F5MeRVvEnY953EBwIWeAZFQFpwJOZqWHyQq2E4Mftk wgfrEzPelQhZ4ACpCFtyqI+4VsyNzv2+gGh2ioPlkFd6GPugLn0UAoHiEURnjMo/zda3 FDbsxU618hqo2l5JhdD3GWwkt+17xRyTfiumlgNVhfjm5cMOdQPB/jG9HpevASedXZqg HdjNn9KIDoHgEEnAvS11D5/hzQGV+B3kcxAlpNk8m4bT3ClMX3XvOdktMvpqCEHa4O4h iZ0A== 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:references:in-reply-to:message-id :date:subject:cc:to:dkim-signature:from; bh=Fk/BOxyCTjOzgG9SEUwbMyLuyPityyyids3LNWp9eDw=; fh=iKFXggDNa1xGDlJyZiehHpQS1+M6QwtoLdUtXqSRqp0=; b=f/XSq976a8bafwxqlpO2g1NagRjfoYMz75IZ4J1nC+3ulPrgN3KN7jeNwstvBp5KZ8 zVu2mb3y/o7/kZ4f2NFWc0jakrydU3sGXdEqWAB4vbi4ztfpb33ivoFqEikyGkT+D5Ju nmC0daO40Qo99VmVSX2O5P4SkwL8MurSiLNdWvtku3eD9EsjUsRzvl4WlmYTBbc8uQ1h 4xjXtvWShhrLzks67ZB5/swHcLLnDUhg671S8rxfMjMwOKIewrjdBneDLZomdhaz+q94 68Awmq8k6D3EAgdOci4/8luINHpdRBbqBoAUfBHc65aICpuuGxzutlApWhvW/Aw589Bs ojMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@eh5.me header.s=dkim header.b="bl/uTMwt"; 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-203636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203636-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 af79cd13be357-7953330dee1si64946085a.508.2024.06.05.23.05.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 23:05:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203636-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="bl/uTMwt"; 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-203636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203636-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 3A1AF1C21E99 for ; Thu, 6 Jun 2024 06:05:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF5B14087C; Thu, 6 Jun 2024 06:04:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=eh5.me header.i=@eh5.me header.b="bl/uTMwt" 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 4D6C48821; Thu, 6 Jun 2024 06:04:53 +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=1717653896; cv=none; b=oKlaor8UDRrtHFK6C3HYi8ALa9AcnZIFOthZH9/GBJTpBgLU2arMVGnV6T+fMseuMnJXX5C7woufTXYIkU3bQixBIsu11FSG7AVbHencyA0/4+BD/fZsxBqhNJw5jEEO8K2cHZC3PfRcZj3YsX6qR4FwWFn3BjBCZ2CvAnyckpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717653896; c=relaxed/simple; bh=v8/ma7BpGBftxWXl1+PFhZJskdJ03bvSfLJ5cHT8Hpk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sy+V1nNvMCUQzxBF1F8AI9MZrKBPZPcnsq84fFsMnfoij1lmxudQFkLcxgx6WgOy7HN4sVfbBu/20zjWN8/SbCdEaGe3Dl3fIQKrxyVMDdHWvEh2V+Rea2hhqXx+UgKEJLegJnoqxTD6LVWYr7avONQvfOmWlumoR3PeLtSlna4= 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=bl/uTMwt; 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=1717653892; 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: in-reply-to:in-reply-to:references:references; bh=Fk/BOxyCTjOzgG9SEUwbMyLuyPityyyids3LNWp9eDw=; b=bl/uTMwtS7fyjNqS2GWxVWJM+NAQ0MgTEAHJnskm600p2zmz0PYWrsFYanw+txeeJXnGwB LIFRYq3ahrVTl2jQbCjlwSWORHrEJdRwZ1hzs7Y7fKcjSQomGxxCb0RgwEaFecliTR8fjV L3jgMQi3X2X8VMEfNNBmaUDLCJ1VwFg= To: Linus Walleij , Heiko Stuebner 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 2/3] pinctrl: rockchip: use dedicated pinctrl type for RK3328 Date: Thu, 6 Jun 2024 14:04:34 +0800 Message-ID: <20240606060435.765716-3-i@mail.eh5.me> In-Reply-To: <20240606060435.765716-1-i@eh5.me> References: <20240606060435.765716-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 rk3328_pin_ctrl uses type of RK3288 which has a hack in rockchip_pinctrl_suspend and rockchip_pinctrl_resume to restore GPIO6-C6 at assume, the hack is not applicable to RK3328 as GPIO6 is not even exist in it. So use a dedicated pinctrl type to skip this hack. Signed-off-by: Huang-Huang Bao --- drivers/pinctrl/pinctrl-rockchip.c | 5 ++++- drivers/pinctrl/pinctrl-rockchip.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index 23531ea0d088..24ee88863ce3 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -2478,6 +2478,7 @@ static int rockchip_get_pull(struct rockchip_pin_bank *bank, int pin_num) case RK3188: case RK3288: case RK3308: + case RK3328: case RK3368: case RK3399: case RK3568: @@ -2536,6 +2537,7 @@ static int rockchip_set_pull(struct rockchip_pin_bank *bank, case RK3188: case RK3288: case RK3308: + case RK3328: case RK3368: case RK3399: case RK3568: @@ -2798,6 +2800,7 @@ static bool rockchip_pinconf_pull_valid(struct rockchip_pin_ctrl *ctrl, case RK3188: case RK3288: case RK3308: + case RK3328: case RK3368: case RK3399: case RK3568: @@ -3822,7 +3825,7 @@ static struct rockchip_pin_ctrl rk3328_pin_ctrl = { .pin_banks = rk3328_pin_banks, .nr_banks = ARRAY_SIZE(rk3328_pin_banks), .label = "RK3328-GPIO", - .type = RK3288, + .type = RK3328, .grf_mux_offset = 0x0, .iomux_recalced = rk3328_mux_recalced_data, .niomux_recalced = ARRAY_SIZE(rk3328_mux_recalced_data), diff --git a/drivers/pinctrl/pinctrl-rockchip.h b/drivers/pinctrl/pinctrl-rockchip.h index 4759f336941e..849266f8b191 100644 --- a/drivers/pinctrl/pinctrl-rockchip.h +++ b/drivers/pinctrl/pinctrl-rockchip.h @@ -193,6 +193,7 @@ enum rockchip_pinctrl_type { RK3188, RK3288, RK3308, + RK3328, RK3368, RK3399, RK3568, -- 2.45.2