Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp16623lql; Fri, 12 Apr 2024 02:04:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW5pfdCPcRGfc8eIRP9ciVkA5+FcEX7Wh8lFAek1F4ROwYT5QU44F2zThkwQVXg9MWvhpbJyjMP/hTiTcs8oYxhJiP5RxRm18ywDgF2DA== X-Google-Smtp-Source: AGHT+IGofUHctZ3SNcsNOZB7mFrXIZt1kR85/gyU7J3RamrcI3QTMn4xb0lQnN+RRlXx6Ief16py X-Received: by 2002:a50:9351:0:b0:56d:fdb3:bcc0 with SMTP id n17-20020a509351000000b0056dfdb3bcc0mr1824037eda.11.1712912652668; Fri, 12 Apr 2024 02:04:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712912652; cv=pass; d=google.com; s=arc-20160816; b=LzenvGBdBkyQoJCjEtbcHsEWVnpvKq5MMiWLczO047HQLHXOMo4t/LBqxaW7OiElRR Dza+ntd1RArfxQQuxHMc2dv2a5NZ1b+jqESDnWjKndn5TcTs6rcMIsy6Z7srFoZq4Q5R qGdBofk2/DFB7Xwdj/eyy7LsI8QbLVeeZxUr7veCLyul1ZYCVXNQUofedzMfqUes39Jg Lz37ED8+6mWnVhWN/7AjUtQ079LoKT3dUSWPUeFROQW3xrKC+w2jrBJuj2eGCRUtqBWM RqFF/zcQeQsFUQO/58j6J1HZcNlmloR7g6kxG9zU8Zt9nrPPVKxzIpbGNM+rFMe6SGQs RADw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=yqg7/6oBVG7FC2A7yaPi7N20RXmvrxHvn6/HhvcSh6c=; fh=k82floP4uvYjKbeOeZOsowGDUAy0nyIDvpCXoOJM/8s=; b=kNiHZrp4ze+G4tju5RFu1ohE+BmZuBpvKRNKyJQjFsvnx6P3rHCilf2pDw3tf5AVQ9 6wU9QCJ7WbTHCP5faPe71urP3tITd5l4pYs4Byi/j2gN2/GG+gqV9XRr/3fB/SrK7ViM ivTrJSd457luwtEySqUTPTBVQFgCYotS2phJ6qB/ptw6ViMVG4BdvG5yC46Nyyi7ygRT tsS3PalPlSwG1E9VYvAsNt6Ugtbn3A1mXpqI3nw+LULsODdDxXcpC9bEBpRW5nzHdw4d NmfRYY11SWOo0zp4vtX6w6a5IvjhEsrcWBhvdzN9ZTAbG8yF5gEvz0dxGjeTCJGpcbBX Pxmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=RqOyfTLr; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-142324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142324-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e18-20020a50a692000000b0056763d0295dsi1450077edc.333.2024.04.12.02.04.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 02:04:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=RqOyfTLr; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-142324-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142324-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 648FF1F22FB6 for ; Fri, 12 Apr 2024 09:04:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4682F58AAD; Fri, 12 Apr 2024 08:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="RqOyfTLr" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2849358AAF for ; Fri, 12 Apr 2024 08:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712911969; cv=none; b=gJWCvcvI1KD4MejMw8/FzSjhCPsKjE2PzuXzviAhILVfvxodYfUZFdbe9XmgmRHT9Dnx7eFF7sGU1vrxovti+5EY8+r0us4nxGEamIEUq8EheHBK5NWXOO2AfmPew0TXcq/fVaI1VMRsdYWB2IJqSkKdWfDBa5rvXWZb9ytWj78= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712911969; c=relaxed/simple; bh=/IeU9ssGSLw9Ct4KuGTCKCYgaCVVK3WWsbfp9sM9Zro=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=oW0huq32CtIaJNrVWDZACebvI9EzExkeK917UBM/wS0Uatp/MIxKkPQal1TRdoWAfyXKRv5oA/whT3faaYxDmPhLyh3pNAhPcTcRCQchLh1WZhwqKZRfF8bd2gs6pCGD5v7omZvtb3iD7CXWBIiYudcxsTeTm6E112MNEH90b5Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=RqOyfTLr; arc=none smtp.client-ip=209.85.221.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-343d1003106so392253f8f.1 for ; Fri, 12 Apr 2024 01:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712911965; x=1713516765; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yqg7/6oBVG7FC2A7yaPi7N20RXmvrxHvn6/HhvcSh6c=; b=RqOyfTLrl4I0+Yl+iJg11oM+9a6lv6BgqUJ9wtodMOtWliCNM8w5JyeTGgqOJwBM1z ftB6q+27wedCE+AIuSxFU3hbRhygw5fPjxpJE5ag9XRPPC7EyLnl1n6Pm+iPQ1k8LIZp Xdy4CJigXNPFtOzOAg8ULhjbKBZv0GGLnERBlGMtwrDxwIbrkYv9wwKz5rsQatoO6YQ3 7mXR36iTAjgj5hk4SGcd2Z1eeZr1gEZZA14+z5DZNCbWYi6wb7XW0+mdY7W2sNpa8JxO RajpZ1CxNxn5qCsrOxVol+8oU4aSwDNHBIucgM/oelKJGZgoGmRm9r0mLIgM0SGD+RYw WwDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712911965; x=1713516765; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=yqg7/6oBVG7FC2A7yaPi7N20RXmvrxHvn6/HhvcSh6c=; b=Z/hqISiRto7ajrYgcA3wH0XFwHmRwPI7jeuieNXK0eYqUYGDs5U+P3Jwm5SMNeWn5M UKg+bqUgUIHw3AQ1rm4XCblN+5nvoQ4y8SnlLiGxMNQdgPNbOiRCeS9KDM0FEISymgKC aadFTW0A9sqfX+N9B5+D9/sgZ/vzN6GNLh00XM3g7YdH6ix3ogphAro5994H9YTD+2wc UAVOQv9TRN4MAHVVWUs0ZuaVLkYjOXGtrSJZqY+7wKIieGDpiyLy3kP0SoEMSNb63yr9 FuRiws7W8zp9hfmo1WYRiLkP6ZkQ0PRH1RdiHsvTV63BAMdoBhak6np2/Gv51sWJ5/VB aVqA== X-Forwarded-Encrypted: i=1; AJvYcCVYPl/pFvrfSrNd29FMFa+B50l9bkWqutuasxf0GylcAt9lY+JjSTS1IHC4BeB4ce1bKEsOFziplB37VikZTqKswrAekSZYj4JHseLw X-Gm-Message-State: AOJu0Yxb5a/co2554+JbCzpzEjjslaSH19zLLtW0wCOOuT/cVimNEisw yIdNwlqKIj8imh2ko9+gyIGQ7lz9ifFV/2smOUNEMuEMVsPfstd4fiJHkO5RtoA= X-Received: by 2002:a5d:5982:0:b0:346:ba70:82f4 with SMTP id n2-20020a5d5982000000b00346ba7082f4mr2066199wri.46.1712911965458; Fri, 12 Apr 2024 01:52:45 -0700 (PDT) Received: from localhost ([2a01:e0a:448:76e0:776e:989f:b50c:7cf6]) by smtp.gmail.com with ESMTPSA id b10-20020a056000054a00b00341b7d5054bsm3783180wrf.72.2024.04.12.01.52.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Apr 2024 01:52:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 12 Apr 2024 10:52:43 +0200 Message-Id: Cc: , , , , , , , , , , , , , , , , Subject: Re: [PATCH v6 10/11] pinctrl: pinctrl-tps6594: Add TPS65224 PMIC pinctrl and GPIO From: "Esteban Blanc" To: "Bhargav Raviprakash" , X-Mailer: aerc 0.15.2 References: <20240408124047.191895-1-bhargav.r@ltts.com> <20240408124047.191895-11-bhargav.r@ltts.com> In-Reply-To: <20240408124047.191895-11-bhargav.r@ltts.com> On Mon Apr 8, 2024 at 2:40 PM CEST, Bhargav Raviprakash wrote: > From: Nirmala Devi Mal Nadar > > Add support for TPS65224 pinctrl and GPIOs to TPS6594 driver as they have > significant functional overlap. > TPS65224 PMIC has 6 GPIOS which can be configured as GPIO or other > dedicated device functions. > > Signed-off-by: Nirmala Devi Mal Nadar > Signed-off-by: Bhargav Raviprakash > Acked-by: Linus Walleij > --- > drivers/pinctrl/pinctrl-tps6594.c | 275 +++++++++++++++++++++++++----- > 1 file changed, 228 insertions(+), 47 deletions(-) > > diff --git a/drivers/pinctrl/pinctrl-tps6594.c b/drivers/pinctrl/pinctrl-= tps6594.c > index 66985e54b..f3d1c1518 100644 > --- a/drivers/pinctrl/pinctrl-tps6594.c > +++ b/drivers/pinctrl/pinctrl-tps6594.c > @@ -338,8 +506,20 @@ static int tps6594_pinctrl_probe(struct platform_dev= ice *pdev) > config.parent =3D tps->dev; > config.regmap =3D tps->regmap; > - config.ngpio =3D TPS6594_PINCTRL_PINS_NB; > - config.ngpio_per_reg =3D 8; > + switch (tps->chip_id) { > + case TPS65224: > + config.ngpio =3D ARRAY_SIZE(tps65224_gpio_func_group_names); > + config.ngpio_per_reg =3D TPS65224_NGPIO_PER_REG; > + break; > + case TPS6593: > + case TPS6594: > + config.ngpio =3D ARRAY_SIZE(tps6594_gpio_func_group_names); > + config.ngpio_per_reg =3D TPS6594_NGPIO_PER_REG; > + break; > + default: > + break; > + } Please merge the two switch case.=20 Other than that I think it's ok. Best regards, --=20 Esteban "Skallwar" Blanc BayLibre