mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
regulator: rtq2208: Remove the unnecessary MTP_SEL property
ChiYuan Huang <cy_huang@richtek.com> says: This patch series remove the 'richtek,mtp-sel-high' property usage. Link: https://patch.msgid.link/cover.1782444299.git.cy_huang@richtek.com
This commit is contained in:
commit
7f8e103f14
|
|
@ -42,11 +42,14 @@ properties:
|
|||
|
||||
richtek,mtp-sel-high:
|
||||
type: boolean
|
||||
deprecated: true
|
||||
description:
|
||||
vout register selection based on this boolean value.
|
||||
false - Using DVS0 register setting to adjust vout
|
||||
true - Using DVS1 register setting to adjust vout
|
||||
|
||||
The property is now deprecated. Will be identified by RG HW register.
|
||||
|
||||
regulators:
|
||||
type: object
|
||||
additionalProperties: false
|
||||
|
|
@ -100,7 +103,6 @@ examples:
|
|||
compatible = "richtek,rtq2208";
|
||||
reg = <0x10>;
|
||||
interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
|
||||
richtek,mtp-sel-high;
|
||||
|
||||
regulators {
|
||||
buck-a {
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include <linux/mod_devicetable.h>
|
||||
|
||||
/* Register */
|
||||
#define RTQ2208_REG_FSOUTB_CNTL 0x11
|
||||
#define RTQ2208_REG_GLOBAL_INT1 0x12
|
||||
#define RTQ2208_REG_FLT_RECORDBUCK_CB 0x18
|
||||
#define RTQ2208_REG_GLOBAL_INT1_MASK 0x1D
|
||||
|
|
@ -34,6 +35,7 @@
|
|||
#define RTQ2208_REG_HIDDEN1 0xFF
|
||||
|
||||
/* Mask */
|
||||
#define RTQ2208_MTP_SEL_RO_MASK BIT(7)
|
||||
#define RTQ2208_BUCK_NR_MTP_SEL_MASK GENMASK(7, 0)
|
||||
#define RTQ2208_BUCK_EN_NR_MTP_SEL0_MASK BIT(0)
|
||||
#define RTQ2208_BUCK_EN_NR_MTP_SEL1_MASK BIT(1)
|
||||
|
|
@ -465,10 +467,13 @@ static int rtq2208_parse_regulator_dt_data(int n_regulator, const unsigned int *
|
|||
struct rtq2208_regulator_desc *rdesc[RTQ2208_LDO_MAX], struct device *dev,
|
||||
unsigned int ldo1_fixed, unsigned int ldo2_fixed)
|
||||
{
|
||||
struct regmap *regmap = dev_get_regmap(dev, NULL);
|
||||
int mtp_sel, i, idx;
|
||||
|
||||
/* get mtp_sel0 or mtp_sel1 */
|
||||
mtp_sel = device_property_read_bool(dev, "richtek,mtp-sel-high");
|
||||
mtp_sel = regmap_test_bits(regmap, RTQ2208_REG_FSOUTB_CNTL, RTQ2208_MTP_SEL_RO_MASK);
|
||||
if (mtp_sel < 0)
|
||||
return dev_err_probe(dev, mtp_sel, "Failed to init mtp_sel state\n");
|
||||
|
||||
for (i = 0; i < n_regulator; i++) {
|
||||
idx = regulator_idx_table[i];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user