Commit 3dacdda
committed
regulator: da91xx: Allow caching of buck registers when no GPIO input control is configured
André Svensson <andre.svensson@axis.com> says:
This series introduces a boolean DT property, dlg,no-gpio-control, for
the DA91xx regulators. Use this property to indicate that GPIO control
is not configured with the functions DVC/RELOAD/EN, allowing buck
registers to be cached.
The DA9121 driver checks dlg,no-gpio-control and updates regmap_config's
volatile_table if the property is present. Buck registers are removed
from the volatile_table if the property is present, enabling caching of
the registers, which removes I2C reads when performing an I2C write to
the buck registers.
Link: https://patch.msgid.link/20260320-no-gpio-control-v2-0-dbc938e462cb@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>2 files changed
Lines changed: 85 additions & 7 deletions
File tree
- Documentation/devicetree/bindings/regulator
- drivers/regulator
Lines changed: 49 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
| |||
134 | 142 | | |
135 | 143 | | |
136 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
137 | 156 | | |
138 | 157 | | |
139 | 158 | | |
| |||
168 | 187 | | |
169 | 188 | | |
170 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
171 | 220 | | |
172 | 221 | | |
173 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
404 | 409 | | |
| 410 | + | |
405 | 411 | | |
406 | 412 | | |
407 | 413 | | |
| |||
864 | 870 | | |
865 | 871 | | |
866 | 872 | | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
867 | 888 | | |
868 | 889 | | |
869 | 890 | | |
| |||
994 | 1015 | | |
995 | 1016 | | |
996 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
997 | 1021 | | |
998 | 1022 | | |
999 | 1023 | | |
1000 | 1024 | | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1001 | 1030 | | |
1002 | 1031 | | |
1003 | 1032 | | |
1004 | 1033 | | |
1005 | 1034 | | |
1006 | 1035 | | |
1007 | 1036 | | |
1008 | | - | |
| 1037 | + | |
1009 | 1038 | | |
1010 | 1039 | | |
1011 | 1040 | | |
1012 | | - | |
| 1041 | + | |
1013 | 1042 | | |
1014 | 1043 | | |
1015 | 1044 | | |
1016 | 1045 | | |
1017 | | - | |
| 1046 | + | |
1018 | 1047 | | |
1019 | 1048 | | |
1020 | 1049 | | |
1021 | 1050 | | |
1022 | | - | |
| 1051 | + | |
1023 | 1052 | | |
1024 | 1053 | | |
1025 | 1054 | | |
1026 | | - | |
| 1055 | + | |
1027 | 1056 | | |
1028 | 1057 | | |
1029 | 1058 | | |
1030 | | - | |
| 1059 | + | |
1031 | 1060 | | |
1032 | 1061 | | |
1033 | 1062 | | |
| |||
0 commit comments