mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] power: bq24190: Add BQ24193 support
@ 2025-04-22  4:27 Aaron Kling via B4 Relay
  2025-04-22  4:27 ` [PATCH 1/2] dt-bindings: power: supply: bq24190: Add BQ24193 compatible Aaron Kling via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Aaron Kling via B4 Relay @ 2025-04-22  4:27 UTC (permalink / raw)
  To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-pm, devicetree, linux-kernel, Aaron Kling

Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
---
Aaron Kling (2):
      dt-bindings: power: supply: bq24190: Add BQ24193 compatible
      power: bq24190: Add BQ24193 support

 .../devicetree/bindings/power/supply/bq24190.yaml          |  1 +
 drivers/power/supply/bq24190_charger.c                     | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
---
base-commit: a33b5a08cbbdd7aadff95f40cbb45ab86841679e
change-id: 20250421-bq24193-c4beb89bbb96

Best regards,
-- 
Aaron Kling <webgeek1234@gmail.com>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] dt-bindings: power: supply: bq24190: Add BQ24193 compatible
  2025-04-22  4:27 [PATCH 0/2] power: bq24190: Add BQ24193 support Aaron Kling via B4 Relay
@ 2025-04-22  4:27 ` Aaron Kling via B4 Relay
  2025-04-25 20:01   ` Rob Herring (Arm)
  2025-04-22  4:27 ` [PATCH 2/2] power: bq24190: Add BQ24193 support Aaron Kling via B4 Relay
  2025-04-27 23:27 ` [PATCH 0/2] " Sebastian Reichel
  2 siblings, 1 reply; 5+ messages in thread
From: Aaron Kling via B4 Relay @ 2025-04-22  4:27 UTC (permalink / raw)
  To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-pm, devicetree, linux-kernel, Aaron Kling

From: Aaron Kling <webgeek1234@gmail.com>

The BQ24193 is most similar to the BQ24192. This is used in many Nvidia
Tegra devices such as the SHIELD Portable.

Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
---
 Documentation/devicetree/bindings/power/supply/bq24190.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/power/supply/bq24190.yaml b/Documentation/devicetree/bindings/power/supply/bq24190.yaml
index 07adf88997b4e3eaa4bd7c6245efdc31fddc9058..307c99c077217ab4b5fac30694a4a316dd51f8e4 100644
--- a/Documentation/devicetree/bindings/power/supply/bq24190.yaml
+++ b/Documentation/devicetree/bindings/power/supply/bq24190.yaml
@@ -19,6 +19,7 @@ properties:
       - ti,bq24190
       - ti,bq24192
       - ti,bq24192i
+      - ti,bq24193
       - ti,bq24196
       - ti,bq24296
       - ti,bq24297

-- 
2.48.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] power: bq24190: Add BQ24193 support
  2025-04-22  4:27 [PATCH 0/2] power: bq24190: Add BQ24193 support Aaron Kling via B4 Relay
  2025-04-22  4:27 ` [PATCH 1/2] dt-bindings: power: supply: bq24190: Add BQ24193 compatible Aaron Kling via B4 Relay
@ 2025-04-22  4:27 ` Aaron Kling via B4 Relay
  2025-04-27 23:27 ` [PATCH 0/2] " Sebastian Reichel
  2 siblings, 0 replies; 5+ messages in thread
From: Aaron Kling via B4 Relay @ 2025-04-22  4:27 UTC (permalink / raw)
  To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-pm, devicetree, linux-kernel, Aaron Kling

From: Aaron Kling <webgeek1234@gmail.com>

The BQ24193 is most similar to the BQ24192. This is used in many Nvidia
Tegra devices such as the SHIELD Portable. This variant works as-is with
the existing BQ24192 code, but cannot be probed with a simple fallback
compatible to ti,bq24192. So add it same as how BQ24196 is handled.

Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
---
 drivers/power/supply/bq24190_charger.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c
index f0d97ab45bd87f3baab20bb316eaebef77d99ae8..1867beadd7afff8273d6fc7770b470209e4845e2 100644
--- a/drivers/power/supply/bq24190_charger.c
+++ b/drivers/power/supply/bq24190_charger.c
@@ -207,6 +207,7 @@ enum bq24190_chip {
 	BQ24190,
 	BQ24192,
 	BQ24192i,
+	BQ24193,
 	BQ24196,
 	BQ24296,
 	BQ24297,
@@ -2014,6 +2015,17 @@ static const struct bq24190_chip_info bq24190_chip_info_tbl[] = {
 		.ichg_array_size = ARRAY_SIZE(bq24190_ccc_ichg_values),
 #ifdef CONFIG_REGULATOR
 		.vbus_desc = &bq24190_vbus_desc,
+#endif
+		.check_chip = bq24190_check_chip,
+		.set_chg_config = bq24190_battery_set_chg_config,
+		.ntc_fault_mask = BQ24190_REG_F_NTC_FAULT_MASK,
+		.get_ntc_status = bq24190_charger_get_ntc_status,
+		.set_otg_vbus = bq24190_set_otg_vbus,
+	},
+	[BQ24193] = {
+		.ichg_array_size = ARRAY_SIZE(bq24190_ccc_ichg_values),
+#ifdef CONFIG_REGULATOR
+		.vbus_desc = &bq24190_vbus_desc,
 #endif
 		.check_chip = bq24190_check_chip,
 		.set_chg_config = bq24190_battery_set_chg_config,
@@ -2308,6 +2320,7 @@ static const struct i2c_device_id bq24190_i2c_ids[] = {
 	{ "bq24190", (kernel_ulong_t)&bq24190_chip_info_tbl[BQ24190] },
 	{ "bq24192", (kernel_ulong_t)&bq24190_chip_info_tbl[BQ24192] },
 	{ "bq24192i", (kernel_ulong_t)&bq24190_chip_info_tbl[BQ24192i] },
+	{ "bq24193", (kernel_ulong_t)&bq24190_chip_info_tbl[BQ24193] },
 	{ "bq24196", (kernel_ulong_t)&bq24190_chip_info_tbl[BQ24196] },
 	{ "bq24296", (kernel_ulong_t)&bq24190_chip_info_tbl[BQ24296] },
 	{ "bq24297", (kernel_ulong_t)&bq24190_chip_info_tbl[BQ24297] },
@@ -2319,6 +2332,7 @@ static const struct of_device_id bq24190_of_match[] = {
 	{ .compatible = "ti,bq24190", .data = &bq24190_chip_info_tbl[BQ24190] },
 	{ .compatible = "ti,bq24192", .data = &bq24190_chip_info_tbl[BQ24192] },
 	{ .compatible = "ti,bq24192i", .data = &bq24190_chip_info_tbl[BQ24192i] },
+	{ .compatible = "ti,bq24193", .data = &bq24190_chip_info_tbl[BQ24193] },
 	{ .compatible = "ti,bq24196", .data = &bq24190_chip_info_tbl[BQ24196] },
 	{ .compatible = "ti,bq24296", .data = &bq24190_chip_info_tbl[BQ24296] },
 	{ .compatible = "ti,bq24297", .data = &bq24190_chip_info_tbl[BQ24297] },

-- 
2.48.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: power: supply: bq24190: Add BQ24193 compatible
  2025-04-22  4:27 ` [PATCH 1/2] dt-bindings: power: supply: bq24190: Add BQ24193 compatible Aaron Kling via B4 Relay
@ 2025-04-25 20:01   ` Rob Herring (Arm)
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2025-04-25 20:01 UTC (permalink / raw)
  To: Aaron Kling
  Cc: Krzysztof Kozlowski, linux-pm, Conor Dooley, devicetree,
	linux-kernel, Sebastian Reichel


On Mon, 21 Apr 2025 23:27:33 -0500, Aaron Kling wrote:
> The BQ24193 is most similar to the BQ24192. This is used in many Nvidia
> Tegra devices such as the SHIELD Portable.
> 
> Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
> ---
>  Documentation/devicetree/bindings/power/supply/bq24190.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] power: bq24190: Add BQ24193 support
  2025-04-22  4:27 [PATCH 0/2] power: bq24190: Add BQ24193 support Aaron Kling via B4 Relay
  2025-04-22  4:27 ` [PATCH 1/2] dt-bindings: power: supply: bq24190: Add BQ24193 compatible Aaron Kling via B4 Relay
  2025-04-22  4:27 ` [PATCH 2/2] power: bq24190: Add BQ24193 support Aaron Kling via B4 Relay
@ 2025-04-27 23:27 ` Sebastian Reichel
  2 siblings, 0 replies; 5+ messages in thread
From: Sebastian Reichel @ 2025-04-27 23:27 UTC (permalink / raw)
  To: Sebastian Reichel, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Aaron Kling
  Cc: linux-pm, devicetree, linux-kernel


On Mon, 21 Apr 2025 23:27:32 -0500, Aaron Kling wrote:
> 


Applied, thanks!

[1/2] dt-bindings: power: supply: bq24190: Add BQ24193 compatible
      commit: 6133b98d39e8bdb7c4d9211e9f00e9580a7d2d11
[2/2] power: bq24190: Add BQ24193 support
      commit: afe5301bfbaa0692811da3ba5f8769f599f7ff3f

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-27 23:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-22  4:27 [PATCH 0/2] power: bq24190: Add BQ24193 support Aaron Kling via B4 Relay
2025-04-22  4:27 ` [PATCH 1/2] dt-bindings: power: supply: bq24190: Add BQ24193 compatible Aaron Kling via B4 Relay
2025-04-25 20:01   ` Rob Herring (Arm)
2025-04-22  4:27 ` [PATCH 2/2] power: bq24190: Add BQ24193 support Aaron Kling via B4 Relay
2025-04-27 23:27 ` [PATCH 0/2] " Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®