Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp460156lqc; Fri, 8 Mar 2024 02:37:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXJ5dTD08XtxKfhHp+N1BWwFAYqzLnoZAuEgVlJk4TI5oUko8rLnRNaHadMJKqzsn6lk6LYcwvkIJ/OqYt0u2ke84L4L3fN4P7Bc19kMA== X-Google-Smtp-Source: AGHT+IHaVRXhFPlXgOpkOIEpjiS+bCsw1EkR3nJPVmdxsCaaXtFSlHvJjwGO05q2IF5ltbi2qCP5 X-Received: by 2002:a50:d69a:0:b0:566:4895:c582 with SMTP id r26-20020a50d69a000000b005664895c582mr1755883edi.15.1709894229708; Fri, 08 Mar 2024 02:37:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709894229; cv=pass; d=google.com; s=arc-20160816; b=j6JocistUcTv20u/kfIEdkxmko7o0L4x05DQqtri7lV0/u3JETDEzs+fNq2sLcq98b nKtQDtlBeVjbIqLR+T9PeLJx4BjBgH8V64AG+5aRer08eOm2enbPJM5I01D70unFGJNv cbDjEHWVebz/D2Dc+Jq0as+MMzgowxPJOdez8GfXKHAq/k0U3AfIfQySaxagIjetbI/y W3Ql91I5PA8eXAoXvhiGuj+2oJ48gZQnFTYxuYePlHF6wExmEsT9oBZnsZgBDIO/O38a NStSrtVcrmBWa4xd7QOHdUzC/yVzCzUzhH3gJE8v3EhU68ymSdaBy8h+52ZhGwUyfI4t phDw== 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:from:ironport-sdr; bh=nOTOeyG+emKhrrCZHB55N8DFXK7aC+NaebKXCKYJ+PI=; fh=wiCHd3sd+nGR6RMzX74j5wvnmiIZ1CMGhEcpQW9vpus=; b=lzfdwfP7e0iANY+i+dn7vnn6t7JU5r02oK/ghUBJVa0crht4QKFBmK+X5LPRjCDuAW Igw4N8tKZRcl3cr8kKYnFDJvV2o2lowM5FnhIWFBWuYtUCUBUDaqEvAiWxCzOslYfLMd NJDGAU4rdcTeW9mBodq7fpshRO9gBpq5yNN2MyrAWHPViPWEpo/gKMohrE5uEz2K+nCk PqJ7bHpSbX4K+dFAj0i4731LTCmy2yRB8c2CNfrD30Em0YWz+206FoEYH0+x66Fnmlmv e2/GIS3fg9LEfqqU0/kPpcceqqjuiDArPbuazI/nlMH61f2895XYNP8O8OfFT5CrZJg8 Dp2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=ltts.com dmarc=pass fromdomain=ltts.com); spf=pass (google.com: domain of linux-kernel+bounces-96848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ltts.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z5-20020a50eb45000000b005644479ae57si7715239edp.537.2024.03.08.02.37.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 02:37:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=ltts.com dmarc=pass fromdomain=ltts.com); spf=pass (google.com: domain of linux-kernel+bounces-96848-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96848-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=QUARANTINE) header.from=ltts.com 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 4E9181F212C9 for ; Fri, 8 Mar 2024 10:37:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97DE558239; Fri, 8 Mar 2024 10:35:30 +0000 (UTC) Received: from esa2.ltts.com (unknown [14.140.155.42]) (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 2C14A5646E; Fri, 8 Mar 2024 10:35:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=14.140.155.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709894130; cv=none; b=oGSIFPyfptAJmF9IAkmfjYcprAet2V0WncmK3is7v7UxIUtslvoM5oqXxs5Igh3D7wdPOdcutM3Y9UPdxok0U2e9ZmHAZIg+hiw/2eX3x6Fodb3LeeJ6Y+OgVStT+5+AxNYTlRVrkHAuj8laGz7Tz8nr3IUOvVj7jMPWQcnGRQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709894130; c=relaxed/simple; bh=i/gd5lIsholNqUrCFwG7qBO1EWJCqC8vcMV5bPnJFog=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CKh5ALdhO2/ykxC7eiNUd+eN90eJlSkUUnTT3BGpUJihqhb9QMhGAHEhwxwKcquqDIlT+bEGOgXGnt6ywJ9U4rFSszaOhRWlu7Kp72O+gY5nVsw53cMPc+vRpR5Z4HWfnTL90KkwngW22KhGBfj8seI7z+ONCkS5fvgesrJc6fI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ltts.com; spf=pass smtp.mailfrom=ltts.com; arc=none smtp.client-ip=14.140.155.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ltts.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ltts.com IronPort-SDR: 3a1DYde+kosUC+prLD3hwlnLYMNDw/SquWzn2WAleRqk05zmpZlKHG9gEWlo5Y+2wJU0eX/p92 JU0Vxeq6hFpA== Received: from unknown (HELO localhost.localdomain) ([192.168.34.55]) by esa2.ltts.com with ESMTP; 08 Mar 2024 16:05:09 +0530 From: Bhargav Raviprakash To: linux-kernel@vger.kernel.org Cc: m.nirmaladevi@ltts.com, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, jpanis@baylibre.com, devicetree@vger.kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org, lgirdwood@gmail.com, broonie@kernel.org, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, nm@ti.com, vigneshr@ti.com, kristo@kernel.org, eblanc@baylibre.com, Bhargav Raviprakash Subject: [PATCH v3 05/11] mfd: tps6594-i2c: Add TI TPS65224 PMIC I2C Date: Fri, 8 Mar 2024 16:04:49 +0530 Message-Id: <20240308103455.242705-6-bhargav.r@ltts.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240308103455.242705-1-bhargav.r@ltts.com> References: <20240308103455.242705-1-bhargav.r@ltts.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add support for TPS65224 PMIC in TPS6594's I2C driver which has significant functional overlap. Signed-off-by: Bhargav Raviprakash Acked-by: Julien Panis --- drivers/mfd/tps6594-i2c.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/tps6594-i2c.c b/drivers/mfd/tps6594-i2c.c index e80e0af2b..c5b352ecc 100644 --- a/drivers/mfd/tps6594-i2c.c +++ b/drivers/mfd/tps6594-i2c.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 /* - * I2C access driver for TI TPS6594/TPS6593/LP8764 PMICs + * I2C access driver for TI TPS65224/TPS6594/TPS6593/LP8764 PMICs * * Copyright (C) 2023 BayLibre Incorporated - https://www.baylibre.com/ */ @@ -192,16 +192,27 @@ static const struct regmap_config tps6594_i2c_regmap_config = { .write = tps6594_i2c_write, }; +static const struct regmap_config tps65224_i2c_regmap_config = { + .reg_bits = 16, + .val_bits = 8, + .max_register = TPS6594_REG_DWD_FAIL_CNT_REG, + .volatile_table = &tps65224_volatile_table, + .read = tps6594_i2c_read, + .write = tps6594_i2c_write, +}; + static const struct tps6594_match_data match_data[] = { [TPS6594] = {TPS6594, &tps6594_i2c_regmap_config}, [TPS6593] = {TPS6593, &tps6594_i2c_regmap_config}, [LP8764] = {LP8764, &tps6594_i2c_regmap_config}, + [TPS65224] = {TPS65224, &tps65224_i2c_regmap_config}, }; static const struct of_device_id tps6594_i2c_of_match_table[] = { { .compatible = "ti,tps6594-q1", .data = (void *)&match_data[TPS6594], }, { .compatible = "ti,tps6593-q1", .data = (void *)&match_data[TPS6593], }, { .compatible = "ti,lp8764-q1", .data = (void *)&match_data[LP8764], }, + { .compatible = "ti,tps65224-q1", .data = (void *)&match_data[TPS65224], }, {} }; MODULE_DEVICE_TABLE(of, tps6594_i2c_of_match_table); @@ -248,5 +259,5 @@ static struct i2c_driver tps6594_i2c_driver = { module_i2c_driver(tps6594_i2c_driver); MODULE_AUTHOR("Julien Panis "); -MODULE_DESCRIPTION("TPS6594 I2C Interface Driver"); +MODULE_DESCRIPTION("I2C Interface Driver for TPS65224, TPS6594/3, and LP8764"); MODULE_LICENSE("GPL"); -- 2.25.1