|
@@ -418,3 +418,161 @@ static struct regulator_init_data goni_ldo10_data = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
+static struct regulator_init_data goni_ldo11_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "CAM_IO_2.8V",
|
|
|
+ .min_uV = 2800000,
|
|
|
+ .max_uV = 2800000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
|
|
+ },
|
|
|
+ .num_consumer_supplies = ARRAY_SIZE(goni_ldo11_consumers),
|
|
|
+ .consumer_supplies = goni_ldo11_consumers,
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_ldo12_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "CAM_ISP_1.2V",
|
|
|
+ .min_uV = 1200000,
|
|
|
+ .max_uV = 1200000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_ldo13_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "CAM_A_2.8V",
|
|
|
+ .min_uV = 2800000,
|
|
|
+ .max_uV = 2800000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
|
|
+ },
|
|
|
+ .num_consumer_supplies = ARRAY_SIZE(goni_ldo13_consumers),
|
|
|
+ .consumer_supplies = goni_ldo13_consumers,
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_ldo14_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "CAM_CIF_1.8V",
|
|
|
+ .min_uV = 1800000,
|
|
|
+ .max_uV = 1800000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
|
|
|
+ },
|
|
|
+ .num_consumer_supplies = ARRAY_SIZE(goni_ldo14_consumers),
|
|
|
+ .consumer_supplies = goni_ldo14_consumers,
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_ldo15_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "CAM_AF_3.3V",
|
|
|
+ .min_uV = 3300000,
|
|
|
+ .max_uV = 3300000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_ldo16_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "VMIPI_1.8V",
|
|
|
+ .min_uV = 1800000,
|
|
|
+ .max_uV = 1800000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_ldo17_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "VCC_3.0V_LCD",
|
|
|
+ .min_uV = 3000000,
|
|
|
+ .max_uV = 3000000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ .always_on = 1,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+/* BUCK */
|
|
|
+static struct regulator_consumer_supply buck1_consumer =
|
|
|
+ REGULATOR_SUPPLY("vddarm", NULL);
|
|
|
+
|
|
|
+static struct regulator_consumer_supply buck2_consumer =
|
|
|
+ REGULATOR_SUPPLY("vddint", NULL);
|
|
|
+
|
|
|
+static struct regulator_consumer_supply buck3_consumer =
|
|
|
+ REGULATOR_SUPPLY("vdet", "s5p-sdo");
|
|
|
+
|
|
|
+
|
|
|
+static struct regulator_init_data goni_buck1_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "VARM_1.2V",
|
|
|
+ .min_uV = 1200000,
|
|
|
+ .max_uV = 1200000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
|
|
|
+ REGULATOR_CHANGE_STATUS,
|
|
|
+ },
|
|
|
+ .num_consumer_supplies = 1,
|
|
|
+ .consumer_supplies = &buck1_consumer,
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_buck2_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "VINT_1.2V",
|
|
|
+ .min_uV = 1200000,
|
|
|
+ .max_uV = 1200000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE |
|
|
|
+ REGULATOR_CHANGE_STATUS,
|
|
|
+ },
|
|
|
+ .num_consumer_supplies = 1,
|
|
|
+ .consumer_supplies = &buck2_consumer,
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_buck3_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "VCC_1.8V",
|
|
|
+ .min_uV = 1800000,
|
|
|
+ .max_uV = 1800000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ .state_mem = {
|
|
|
+ .enabled = 1,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ .num_consumer_supplies = 1,
|
|
|
+ .consumer_supplies = &buck3_consumer,
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_init_data goni_buck4_data = {
|
|
|
+ .constraints = {
|
|
|
+ .name = "CAM_CORE_1.2V",
|
|
|
+ .min_uV = 1200000,
|
|
|
+ .max_uV = 1200000,
|
|
|
+ .apply_uV = 1,
|
|
|
+ .always_on = 1,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct max8998_regulator_data goni_regulators[] = {
|
|
|
+ { MAX8998_LDO2, &goni_ldo2_data },
|
|
|
+ { MAX8998_LDO3, &goni_ldo3_data },
|
|
|
+ { MAX8998_LDO4, &goni_ldo4_data },
|
|
|
+ { MAX8998_LDO5, &goni_ldo5_data },
|
|
|
+ { MAX8998_LDO6, &goni_ldo6_data },
|
|
|
+ { MAX8998_LDO7, &goni_ldo7_data },
|
|
|
+ { MAX8998_LDO8, &goni_ldo8_data },
|
|
|
+ { MAX8998_LDO9, &goni_ldo9_data },
|
|
|
+ { MAX8998_LDO10, &goni_ldo10_data },
|
|
|
+ { MAX8998_LDO11, &goni_ldo11_data },
|
|
|
+ { MAX8998_LDO12, &goni_ldo12_data },
|
|
|
+ { MAX8998_LDO13, &goni_ldo13_data },
|
|
|
+ { MAX8998_LDO14, &goni_ldo14_data },
|
|
|
+ { MAX8998_LDO15, &goni_ldo15_data },
|
|
|
+ { MAX8998_LDO16, &goni_ldo16_data },
|
|
|
+ { MAX8998_LDO17, &goni_ldo17_data },
|
|
|
+ { MAX8998_BUCK1, &goni_buck1_data },
|
|
|
+ { MAX8998_BUCK2, &goni_buck2_data },
|
|
|
+ { MAX8998_BUCK3, &goni_buck3_data },
|
|
|
+ { MAX8998_BUCK4, &goni_buck4_data },
|
|
|
+};
|
|
|
+
|
|
|
+static struct max8998_platform_data goni_max8998_pdata = {
|