Loading Documentation/devicetree/bindings/regulator/fan53555.txt +10 −1 Original line number Diff line number Diff line Binding for Fairchild FAN53555 regulators Required properties: - compatible: one of "fcs,fan53555", "silergy,syr827", "silergy,syr828" - compatible: one of "fcs,fan53555", "silergy,syr827", "silergy,syr828" or "halo,hl7509" - reg: I2C address Optional properties: Loading @@ -21,3 +22,11 @@ Example: vin-supply = <&parent_reg>; fcs,suspend-voltage-selector = <1>; }; regulator@60 { compatible = "halo,hl7509"; regulator-name = "hl7509"; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1230000>; fcs,suspend-voltage-selector = <1>; }; Documentation/devicetree/bindings/vendor-prefixes.txt +1 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ google Google, Inc. goodix Goodix. Ltd gumstix Gumstix, Inc. gw Gateworks Corporation halo Halo Microelectronics Co., Ltd. haoyu Haoyu Microelectronic Co. Ltd. hisilicon Hisilicon Limited. honeywell Honeywell Loading drivers/regulator/fan53555.c +10 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,7 @@ enum fan53555_vendor { FAN53555_VENDOR_FAIRCHILD = 0, FAN53555_VENDOR_SILERGY, HALO_HL7509, }; /* IC Type */ Loading Loading @@ -266,6 +267,9 @@ static int fan53555_device_setup(struct fan53555_device_info *di, case FAN53555_VENDOR_SILERGY: ret = fan53555_voltages_setup_silergy(di); break; case HALO_HL7509: ret = fan53555_voltages_setup_fairchild(di); break; default: dev_err(di->dev, "vendor %d not supported!\n", di->vendor); return -EINVAL; Loading Loading @@ -333,6 +337,9 @@ static const struct of_device_id fan53555_dt_ids[] = { }, { .compatible = "silergy,syr828", .data = (void *)FAN53555_VENDOR_SILERGY, }, { .compatible = "halo,hl7509", .data = (void *)HALO_HL7509, }, { } }; Loading Loading @@ -436,6 +443,9 @@ static const struct i2c_device_id fan53555_id[] = { }, { .name = "syr82x", .driver_data = FAN53555_VENDOR_SILERGY }, { .name = "hl7509", .driver_data = HALO_HL7509 }, { }, }; Loading Loading
Documentation/devicetree/bindings/regulator/fan53555.txt +10 −1 Original line number Diff line number Diff line Binding for Fairchild FAN53555 regulators Required properties: - compatible: one of "fcs,fan53555", "silergy,syr827", "silergy,syr828" - compatible: one of "fcs,fan53555", "silergy,syr827", "silergy,syr828" or "halo,hl7509" - reg: I2C address Optional properties: Loading @@ -21,3 +22,11 @@ Example: vin-supply = <&parent_reg>; fcs,suspend-voltage-selector = <1>; }; regulator@60 { compatible = "halo,hl7509"; regulator-name = "hl7509"; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1230000>; fcs,suspend-voltage-selector = <1>; };
Documentation/devicetree/bindings/vendor-prefixes.txt +1 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,7 @@ google Google, Inc. goodix Goodix. Ltd gumstix Gumstix, Inc. gw Gateworks Corporation halo Halo Microelectronics Co., Ltd. haoyu Haoyu Microelectronic Co. Ltd. hisilicon Hisilicon Limited. honeywell Honeywell Loading
drivers/regulator/fan53555.c +10 −0 Original line number Diff line number Diff line Loading @@ -55,6 +55,7 @@ enum fan53555_vendor { FAN53555_VENDOR_FAIRCHILD = 0, FAN53555_VENDOR_SILERGY, HALO_HL7509, }; /* IC Type */ Loading Loading @@ -266,6 +267,9 @@ static int fan53555_device_setup(struct fan53555_device_info *di, case FAN53555_VENDOR_SILERGY: ret = fan53555_voltages_setup_silergy(di); break; case HALO_HL7509: ret = fan53555_voltages_setup_fairchild(di); break; default: dev_err(di->dev, "vendor %d not supported!\n", di->vendor); return -EINVAL; Loading Loading @@ -333,6 +337,9 @@ static const struct of_device_id fan53555_dt_ids[] = { }, { .compatible = "silergy,syr828", .data = (void *)FAN53555_VENDOR_SILERGY, }, { .compatible = "halo,hl7509", .data = (void *)HALO_HL7509, }, { } }; Loading Loading @@ -436,6 +443,9 @@ static const struct i2c_device_id fan53555_id[] = { }, { .name = "syr82x", .driver_data = FAN53555_VENDOR_SILERGY }, { .name = "hl7509", .driver_data = HALO_HL7509 }, { }, }; Loading