Skip to contentSkip to conversation

Add sw2_sw4 voltage table to cpcap regulator.

PATCH Superseded Peter Geis 3 participants 5 messages Jul 23, 2018

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Peter Geis

author
#0 lore raw

PATCH 1/2 Add sw2_sw4 voltage table to cpcap regulator.

SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware.
Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra.

---
 drivers/regulator/cpcap-regulator.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
drivers/regulator/cpcap-regulator.c +23 -0
index bd910fe123d9..c0b1e04bd90f 100644
@@ -271,6 +271,29 @@ static struct regulator_ops cpcap_regulator_ops = {
 };
 
 static const unsigned int unknown_val_tbl[] = { 0, };
+static const unsigned int sw2_sw4_val_tbl[] = { 612500, 625000, 637500,
+						650000, 662500, 675000,
+						687500, 700000, 712500,
+						725000, 737500, 750000,
+						762500, 775000, 787500,
+						800000, 812500, 825000,
+						837500, 850000, 862500,
+						875000, 887500, 900000,
+						912500, 925000, 937500,
+						950000, 962500, 975000,
+						987500, 1000000, 1012500,
+						1025000, 1037500, 1050000,
+						1062500, 1075000, 1087500,
+						1100000, 1112500, 1125000,
+						1137500, 1150000, 1162500,
+						1175000, 1187500, 1200000,
+						1212500, 1225000, 1237500,
+						1250000, 1262500, 1275000,
+						1287500, 1300000, 1312500,
+						1325000, 1337500, 1350000,
+						1362500, 1375000, 1387500,
+						1400000, 1412500, 1425000,
+						1437500, 1450000, 1462500, };
 static const unsigned int sw5_val_tbl[] = { 0, 5050000, };
 static const unsigned int vcam_val_tbl[] = { 2600000, 2700000, 2800000,
 					     2900000, };
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 4 lines · Peter Geis

SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware.
Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra.

This also doesn't apply against current code (though it does now parse OK), please check and resend - make sure you don't have other out of tree changes and are using an up to date kernel (ideally my regulator for-next branch) as a base.

author
#2 lore raw
Quoted 11 lines · Mark Brown
Quoted 4 lines · Peter Geis

SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware.
Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra.

This also doesn't apply against current code (though it does now parse OK), please check and resend - make sure you don't have other out of tree changes and are using an up to date kernel (ideally my regulator for-next branch) as a base.

Good Afternoon,

I thought it was my error in the patches being stripped, unfortunately it seems to be a known Gmail behavior. Any ideas on how to get around it?

Thanks,
Peter

#3 lore raw
Quoted 12 lines · On Monday, 23 July 2018 21:37:50 MSK Peter Geis wrote:
Quoted 10 lines · Mark Brown
Quoted 4 lines · Peter Geis

SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware.
Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra.

This also doesn't apply against current code (though it does now parse OK), please check and resend - make sure you don't have other out of tree changes and are using an up to date kernel (ideally my regulator for-next branch) as a base.

Quoted 5 lines

Good Afternoon,

I thought it was my error in the patches being stripped, unfortunately it seems to be a known Gmail behavior.
Any ideas on how to get around it?

Use the "git send-email" instead of email client.

You need to create and send out patches using git, that will be something like this:

1) "git format-patch -v1 -2 ..." to make patches
2) "git send-email --smtp-server=smtp.gmail.com --smtp- [email protected] --smtp-encryption=tls --smtp-server-port=587 -- suppress-cc=all --confirm=always --to 'Mark Brown <[email protected]>' --cc '[email protected]' --cc '[email protected]' ... 00*.patch" to send out the patches

author
#4 lore raw
Quoted 24 lines · Dmitry Osipenko
Quoted 12 lines · On Monday, 23 July 2018 21:37:50 MSK Peter Geis wrote:
Quoted 10 lines · Mark Brown
Quoted 4 lines · Peter Geis

SW2 and SW4 use a shared table to provide voltage to the cpu core and devices on Tegra hardware.
Added this table to the cpcap regulator driver as the first step to supporting this device on Tegra.

This also doesn't apply against current code (though it does now parse OK), please check and resend - make sure you don't have other out of tree changes and are using an up to date kernel (ideally my regulator for-next branch) as a base.

Quoted 5 lines

Good Afternoon,

I thought it was my error in the patches being stripped, unfortunately it seems to be a known Gmail behavior.
Any ideas on how to get around it?

Use the "git send-email" instead of email client.

You need to create and send out patches using git, that will be something like this:

Quoted 7 lines

1) "git format-patch -v1 -2 ..." to make patches
2) "git send-email --smtp-server=smtp.gmail.com --smtp- [email protected] --smtp-encryption=tls --smtp-server-port=587 -- suppress-cc=all --confirm=always --to 'Mark Brown <[email protected]>' --cc '[email protected]' --cc '[email protected]' ... 00*.patch" to send out the patches

As always, thanks Dmitry!
Resent through git this time.