- 08 6月, 2021 2 次提交
-
-
由 Axel Lin 提交于
The content of bd71815_regulators is never changed, no need to duplicate it, thus remove descs[BD71815_REGULATOR_CNT]. The *regmap, *dev and *rdev[BD71815_REGULATOR_CNT] are not really needed. The *gps is unused. Thus the struct bd71815_pmic can be removed. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Reviewed-by: NMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Link: https://lore.kernel.org/r/20210607143002.1600017-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded LTC3589_LINEAR_REG() no longer call LTC3589_REG() now. Only LTC3589_LINEAR_REG() needs to set go_bit, thus remove go_bit parameter from LTC3589_REG() macro. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210604115803.1260976-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 07 6月, 2021 5 次提交
-
-
由 Axel Lin 提交于
The MT6359_BUCK and MT6359_LDO_LINEAR macros setup both linear settings (min_uV, uV_step, linear_min_sel) and linar_range (linear_ranges, n_linear_ranges) settings. All the linear range tables actually only has one entry. Let's simplify it by using linear instead of linear range. The linear_min_sel setting is 0 for all cases, remove it from the macros. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210606065052.1417111-3-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
The regulator_desc expects "const unsigned int *volt_table", thus use unsigned int instead of u32. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210606065052.1417111-2-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
The regulator_desc expects "const unsigned int *volt_table", thus use unsigned int instead of u32. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210606065052.1417111-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210605013424.1298773-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Mark Brown 提交于
Merge tag 'tb-mfd-regulator-rtc-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd into regulator-5.14 Immutable branch between MFD, Regulator and RTC due for the v5.14 merge window
-
- 04 6月, 2021 2 次提交
-
-
由 Rudi Heitbaum 提交于
For rk3399pro boards the tcs4526 regulator supports the vdd_gpu regulator. The tcs4526 regulator has a chip id of <0>. Add the compatibile tcs,tcs4526 without this patch, the dmesg output is: fan53555-regulator 0-0010: Chip ID 0 not supported! fan53555-regulator 0-0010: Failed to setup device! fan53555-regulator: probe of 0-0010 failed with error -22 with this patch, the dmesg output is: vdd_gpu: supplied by vcc5v0_sys The regulators are described as: - Dedicated power management IC TCS4525 - Lithium battery protection chip TCS4526 This has been tested with a Radxa Rock Pi N10. Signed-off-by: NRudi Heitbaum <rudi@heitbaum.com> Link: https://lore.kernel.org/r/20210602112943.GA119@5f9be87369f8Signed-off-by: NMark Brown <broonie@kernel.org>
-
由 ChiYuan Huang 提交于
Richtek RT6245 is a high-performance, synchronous step-down converter that can deliver up to 14A output current with an input supply voltage range of 4.5V to 17V. Signed-off-by: NChiYuan Huang <cy_huang@richtek.com> Link: https://lore.kernel.org/r/1622699844-19203-2-git-send-email-u0084500@gmail.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 03 6月, 2021 6 次提交
-
-
由 ChiYuan Huang 提交于
Add the binding document for Richtek RT6245. Signed-off-by: NChiYuan Huang <cy_huang@richtek.com> Reviewed-by: NRob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/1622699844-19203-1-git-send-email-u0084500@gmail.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Also use unsigned int instead of int for the voltage tables. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210525100405.2506483-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210525124017.2550029-2-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
The di->slew_reg/di->slew_mask/di->slew_shift was not set in current code, fix it. Fixes: f2a9eb97 ("regulator: fan53555: Add support for FAN53526") Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210525124017.2550029-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210523072320.2174443-2-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
max77802_set_ramp_delay_2bit() returns -EINVAL when id > MAX77802_BUCK4. This was a leftover in commit b0615f1d ("regulator: max77802: Split regulator operations for BUCKs"). Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210523072320.2174443-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 02 6月, 2021 4 次提交
-
-
由 Zhen Lei 提交于
Use DEVICE_ATTR_RO/RW macro helper instead of plain DEVICE_ATTR, which makes the code a bit shorter and easier to read. Signed-off-by: NZhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20210602080526.11117-1-thunder.leizhen@huawei.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 ChiYuan Huang 提交于
Add support for Richtek RT6160 voltage regulator. It can provide up to 3A output current within the adjustable voltage from 2025mV to 5200mV. It integrate a buckboost converter to support wide input voltage range from 2200mV to 5500mV. Signed-off-by: NChiYuan Huang <cy_huang@richtek.com> Link: https://lore.kernel.org/r/1622611906-2403-2-git-send-email-u0084500@gmail.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 ChiYuan Huang 提交于
Add DT binding document for Richtek RT6160 voltage regulator. Signed-off-by: NChiYuan Huang <cy_huang@richtek.com> Reviewed-by: NRob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/1622611906-2403-1-git-send-email-u0084500@gmail.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 YueHaibing 提交于
Use DEVICE_ATTR_RO() helper instead of plain DEVICE_ATTR(), which makes the code a bit shorter and easier to read. Signed-off-by: NYueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20210529115226.25376-1-yuehaibing@huawei.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 01 6月, 2021 13 次提交
-
-
由 Hsin-Hsiung Wang 提交于
The MT6359P is a eco version for MT6359 regulator. We add support based on MT6359 regulator driver. Signed-off-by: NHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Acked-by: NMark Brown <broonie@kernel.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Wen Su 提交于
The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: NWen Su <wen.su@mediatek.com> Signed-off-by: NHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Acked-by: NMark Brown <broonie@kernel.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Hsin-Hsiung Wang 提交于
This adds support for the MediaTek MT6359 PMIC. This is a multifunction device with the following sub modules: - Codec - Interrupt - Regulator - RTC It is interfaced to the host controller using SPI interface by a proprietary hardware called PMIC wrapper or pwrap. MT6359 MFD is a child device of the pwrap. Signed-off-by: NHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Hsin-Hsiung Wang 提交于
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: NHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Reviewed-by: NRob Herring <robh@kernel.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Hsin-Hsiung Wang 提交于
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: NHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Hsin-Hsiung Wang 提交于
This patch adds RTC_TC_MTH_MASK to support new chips. Signed-off-by: NYuchen Huang <yuchen.huang@mediatek.com> Signed-off-by: NHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Acked-by: NAlexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Hsin-Hsiung Wang 提交于
This patch refines the interrupt related code to support new chips. Signed-off-by: NHsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210526125026.82549-2-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use the new .probe_new for mcp16502. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210526125026.82549-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Matti Vaittinen 提交于
The only known BD70528 use-cases are such that the PMIC is controlled from separate MCU which is not running Linux. I am not aware of any Linux driver users. Furthermore, it seems there is no demand for this IC. Let's ease the maintenance burden and drop the driver. We can always add it back if there is sudden need for it. Signed-off-by: NMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Link: https://lore.kernel.org/r/d7271362129edceebc512b49efed9ee7c3efcb6a.1622116622.git.matti.vaittinen@fi.rohmeurope.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210527144248.247992-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Also use dev_err instead of dev_notice for messages in error conditions. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210530020543.418634-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210526122408.78156-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
- 27 5月, 2021 2 次提交
-
-
由 Zou Wei 提交于
./drivers/regulator/bd71815-regulator.c:644:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Reported-by: NHulk Robot <hulkci@huawei.com> Signed-off-by: NZou Wei <zou_wei@huawei.com> Acked-by: NMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Message-Id: <1622109244-54739-1-git-send-email-zou_wei@huawei.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Message-Id: <20210525141203.2562884-1-axel.lin@ingics.com> Signed-off-by: NMark Brown <broonie@kernel.org>
-
- 25 5月, 2021 4 次提交
-
-
由 Axel Lin 提交于
Add missing .owner field in regulator_desc, which is used for refcounting. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Message-Id: <20210524123735.2363676-1-axel.lin@ingics.com> Signed-off-by: NMark Brown <broonie@sirena.org.uk>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Message-Id: <20210522023018.2025188-1-axel.lin@ingics.com> Signed-off-by: NMark Brown <broonie@sirena.org.uk>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Message-Id: <20210525102708.2519323-1-axel.lin@ingics.com> Signed-off-by: NMark Brown <broonie@sirena.org.uk>
-
由 Axel Lin 提交于
For better readability, make linear_ranges entries sort by selector. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Message-Id: <20210520112719.1814396-1-axel.lin@ingics.com> Signed-off-by: NMark Brown <broonie@sirena.org.uk>
-
- 24 5月, 2021 2 次提交
-
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Reviewed-by: NMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Link: https://lore.kernel.org/r/20210522124250.2121076-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-
由 Axel Lin 提交于
Use regulator_set_ramp_delay_regmap instead of open-coded. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Link: https://lore.kernel.org/r/20210522040814.2042397-1-axel.lin@ingics.comSigned-off-by: NMark Brown <broonie@kernel.org>
-