linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 1/4] pmbus: associate PMBUS_SKIP_STATUS_CHECK with
       [not found] <cover.1546918172.git.xiaoting.liu@hxt-semitech.com>
@ 2019-01-10  2:18 ` Xiaoting Liu
  2019-01-10  2:24 ` [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation Xiaoting Liu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 11+ messages in thread
From: Xiaoting Liu @ 2019-01-10  2:18 UTC (permalink / raw)
  To: linux, jdelvare, dongsheng.wang
  Cc: linux-hwmon, linux-kernel, shunyong.yang, Xiaoting Liu

Current code compares device name with name in i2c_device_id to decide
whether PMBUS_SKIP_STATUS_CHECK should be set in pmbus_platform_data,
which makes adding new devices with PMBUS_SKIP_STATUS_CHECK should also
modify code in pmbus_probe().

This patch adds pmbus_device_info to save pages and flags. Its pointer
is put in driver_data of i2c_device_id, which makes adding new device
more straightforward.

Signed-off-by: Shunyong Yang <shunyong.yang@hxt-semitech.com>
Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>
---
v3:
  Remove an empty line.
---
v2:
  Move struct pmbus_device_info definition location from pmbus.h to pmbus.c. 
  Change struct name from default_pmbus_info to pmbus_info_one.
  Change struct name from pmbus_info to pmbus_info_zero.
  Replace struct name dps460_pmbus_info and sgd009_pmbus_info with
  pmbus_info_one_skip.
---
 drivers/hwmon/pmbus/pmbus.c | 54 +++++++++++++++++++++++++++------------------
 1 file changed, 32 insertions(+), 22 deletions(-)

diff --git a/drivers/hwmon/pmbus/pmbus.c b/drivers/hwmon/pmbus/pmbus.c
index 7688dab32f6e..ef845a1310fa 100644
--- a/drivers/hwmon/pmbus/pmbus.c
+++ b/drivers/hwmon/pmbus/pmbus.c
@@ -28,6 +28,11 @@
 #include <linux/pmbus.h>
 #include "pmbus.h"
 
+struct pmbus_device_info {
+	int pages;
+	u32 flags;
+};
+
 /*
  * Find sensor groups and status registers on each page.
  */
@@ -172,13 +177,14 @@ static int pmbus_probe(struct i2c_client *client,
 	struct pmbus_driver_info *info;
 	struct pmbus_platform_data *pdata = NULL;
 	struct device *dev = &client->dev;
+	struct pmbus_device_info *device_info;
 
 	info = devm_kzalloc(dev, sizeof(struct pmbus_driver_info), GFP_KERNEL);
 	if (!info)
 		return -ENOMEM;
 
-	if (!strcmp(id->name, "dps460") || !strcmp(id->name, "dps800") ||
-	    !strcmp(id->name, "sgd009")) {
+	device_info = (struct pmbus_device_info *)id->driver_data;
+	if (device_info->flags & PMBUS_SKIP_STATUS_CHECK) {
 		pdata = devm_kzalloc(dev, sizeof(struct pmbus_platform_data),
 				     GFP_KERNEL);
 		if (!pdata)
@@ -187,36 +193,40 @@ static int pmbus_probe(struct i2c_client *client,
 		pdata->flags = PMBUS_SKIP_STATUS_CHECK;
 	}
 
-	info->pages = id->driver_data;
+	info->pages = device_info->pages;
 	info->identify = pmbus_identify;
 	dev->platform_data = pdata;
 
 	return pmbus_do_probe(client, id, info);
 }
 
+static const struct pmbus_device_info pmbus_info_one = {1, 0};
+static const struct pmbus_device_info pmbus_info_zero = {0, 0};
+static const struct pmbus_device_info pmbus_info_one_skip = {
+				1, PMBUS_SKIP_STATUS_CHECK};
 /*
  * Use driver_data to set the number of pages supported by the chip.
  */
 static const struct i2c_device_id pmbus_id[] = {
-	{"adp4000", 1},
-	{"bmr453", 1},
-	{"bmr454", 1},
-	{"dps460", 1},
-	{"dps800", 1},
-	{"mdt040", 1},
-	{"ncp4200", 1},
-	{"ncp4208", 1},
-	{"pdt003", 1},
-	{"pdt006", 1},
-	{"pdt012", 1},
-	{"pmbus", 0},
-	{"sgd009", 1},
-	{"tps40400", 1},
-	{"tps544b20", 1},
-	{"tps544b25", 1},
-	{"tps544c20", 1},
-	{"tps544c25", 1},
-	{"udt020", 1},
+	{"adp4000", (kernel_ulong_t)&pmbus_info_one},
+	{"bmr453", (kernel_ulong_t)&pmbus_info_one},
+	{"bmr454", (kernel_ulong_t)&pmbus_info_one},
+	{"dps460", (kernel_ulong_t)&pmbus_info_one_skip},
+	{"dps800", (kernel_ulong_t)&pmbus_info_one_skip},
+	{"mdt040", (kernel_ulong_t)&pmbus_info_one},
+	{"ncp4200", (kernel_ulong_t)&pmbus_info_one},
+	{"ncp4208", (kernel_ulong_t)&pmbus_info_one},
+	{"pdt003", (kernel_ulong_t)&pmbus_info_one},
+	{"pdt006", (kernel_ulong_t)&pmbus_info_one},
+	{"pdt012", (kernel_ulong_t)&pmbus_info_one},
+	{"pmbus", (kernel_ulong_t)&pmbus_info_zero},
+	{"sgd009", (kernel_ulong_t)&pmbus_info_one_skip},
+	{"tps40400", (kernel_ulong_t)&pmbus_info_one},
+	{"tps544b20", (kernel_ulong_t)&pmbus_info_one},
+	{"tps544b25", (kernel_ulong_t)&pmbus_info_one},
+	{"tps544c20", (kernel_ulong_t)&pmbus_info_one},
+	{"tps544c25", (kernel_ulong_t)&pmbus_info_one},
+	{"udt020", (kernel_ulong_t)&pmbus_info_one},
 	{}
 };

-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation
       [not found] <cover.1546918172.git.xiaoting.liu@hxt-semitech.com>
  2019-01-10  2:18 ` [PATCH v3 1/4] pmbus: associate PMBUS_SKIP_STATUS_CHECK with Xiaoting Liu
@ 2019-01-10  2:24 ` Xiaoting Liu
  2019-01-10 18:46   ` Guenter Roeck
                     ` (2 more replies)
  2019-01-10  2:29 ` [PATCH v3 3/4] ARM: dts: dps650ab: add power supply Xiaoting Liu
  2019-01-10  2:31 ` [PATCH v3 4/4] hwmon: (pmbus) add support for DPS-650AB Xiaoting Liu
  3 siblings, 3 replies; 11+ messages in thread
From: Xiaoting Liu @ 2019-01-10  2:24 UTC (permalink / raw)
  To: jdelvare, linux, robh+dt, mark.rutland
  Cc: openbmc, devicetree, linux-kernel, shunyong.yang, dongsheng.wang,
	Xiaoting Liu

Bindings for Delta Electronics DPS-650-AB power supply.

Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>
---
v3:
  Change patch commit message.
  Add vendor delta to the compatible property.
---
v2:
  Change the patch subject.
---
 Documentation/devicetree/bindings/hwmon/dps650ab.txt | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Documentation/devicetree/bindings/hwmon/dps650ab.txt b/Documentation/devicetree/bindings/hwmon/dps650ab.txt
new file mode 100644
index 000000000000..32d89e4f4956
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/dps650ab.txt
@@ -0,0 +1,11 @@
+Bindings for Delta Electronics DPS-650-AB power supply
+
+Required properties:
+- compatible : "delta,dps650ab"
+- reg        : I2C address, one of 0x58, 0x59.
+
+Example:
+	dps650ab@58 {
+		    compatible = "delta,dps650ab";
+		    reg = <0x58>;
+	};
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 3/4] ARM: dts: dps650ab: add power supply
       [not found] <cover.1546918172.git.xiaoting.liu@hxt-semitech.com>
  2019-01-10  2:18 ` [PATCH v3 1/4] pmbus: associate PMBUS_SKIP_STATUS_CHECK with Xiaoting Liu
  2019-01-10  2:24 ` [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation Xiaoting Liu
@ 2019-01-10  2:29 ` Xiaoting Liu
  2019-01-17  1:57   ` Joel Stanley
  2019-01-10  2:31 ` [PATCH v3 4/4] hwmon: (pmbus) add support for DPS-650AB Xiaoting Liu
  3 siblings, 1 reply; 11+ messages in thread
From: Xiaoting Liu @ 2019-01-10  2:29 UTC (permalink / raw)
  To: robh+dt, mark.rutland, linux
  Cc: openbmc, joel, andrew, devicetree, linux-arm-kernel,
	linux-aspeed, linux-kernel, shunyong.yang, dongsheng.wang,
	Xiaoting Liu

Add Delta Electronics power supply DPS-650-AB.

Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>
---
v3:
  Modify patch subject and commit message.
  Add delta to compatible property.
---
v2:
  No change.
---
 arch/arm/boot/dts/aspeed-bmc-arm-stardragon4800-rep2.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed-bmc-arm-stardragon4800-rep2.dts b/arch/arm/boot/dts/aspeed-bmc-arm-stardragon4800-rep2.dts
index bdfd8c9f3a7c..521afbea2c5b 100644
--- a/arch/arm/boot/dts/aspeed-bmc-arm-stardragon4800-rep2.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-arm-stardragon4800-rep2.dts
@@ -173,6 +173,16 @@
 			};
 		};
 	};
+
+	dps650ab@58 {
+		compatible = "delta,dps650ab";
+		reg = <0x58>;
+	};
+
+	dps650ab@59 {
+		compatible = "delta,dps650ab";
+		reg = <0x59>;
+	};
 };
 
 &i2c9 {
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH v3 4/4] hwmon: (pmbus) add support for DPS-650AB
       [not found] <cover.1546918172.git.xiaoting.liu@hxt-semitech.com>
                   ` (2 preceding siblings ...)
  2019-01-10  2:29 ` [PATCH v3 3/4] ARM: dts: dps650ab: add power supply Xiaoting Liu
@ 2019-01-10  2:31 ` Xiaoting Liu
  2019-01-10 18:42   ` Guenter Roeck
  3 siblings, 1 reply; 11+ messages in thread
From: Xiaoting Liu @ 2019-01-10  2:31 UTC (permalink / raw)
  To: linux, jdelvare
  Cc: openbmc, linux-hwmon, linux-kernel, shunyong.yang,
	dongsheng.wang, Xiaoting Liu

Provide support for PSU DPS-650AB from Delta Electronics, INC.

Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>
---
v3:
  No change.
---
v2:
  Change the patch subject and commit message.
  Drop dps650ab.c file.
  Replace struct name dps650ab_pmbus_info with pmbus_info_one_skip.
---
 drivers/hwmon/pmbus/pmbus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/pmbus/pmbus.c b/drivers/hwmon/pmbus/pmbus.c
index ef845a1310fa..e648ed8d926a 100644
--- a/drivers/hwmon/pmbus/pmbus.c
+++ b/drivers/hwmon/pmbus/pmbus.c
@@ -212,6 +212,7 @@ static int pmbus_probe(struct i2c_client *client,
 	{"bmr453", (kernel_ulong_t)&pmbus_info_one},
 	{"bmr454", (kernel_ulong_t)&pmbus_info_one},
 	{"dps460", (kernel_ulong_t)&pmbus_info_one_skip},
+	{"dps650ab", (kernel_ulong_t)&pmbus_info_one_skip},
 	{"dps800", (kernel_ulong_t)&pmbus_info_one_skip},
 	{"mdt040", (kernel_ulong_t)&pmbus_info_one},
 	{"ncp4200", (kernel_ulong_t)&pmbus_info_one},
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 4/4] hwmon: (pmbus) add support for DPS-650AB
  2019-01-10  2:31 ` [PATCH v3 4/4] hwmon: (pmbus) add support for DPS-650AB Xiaoting Liu
@ 2019-01-10 18:42   ` Guenter Roeck
  2019-01-11  8:27     ` Liu, Xiaoting
  0 siblings, 1 reply; 11+ messages in thread
From: Guenter Roeck @ 2019-01-10 18:42 UTC (permalink / raw)
  To: Xiaoting Liu
  Cc: jdelvare, openbmc, linux-hwmon, linux-kernel, shunyong.yang,
	dongsheng.wang

On Thu, Jan 10, 2019 at 10:31:44AM +0800, Xiaoting Liu wrote:
> Provide support for PSU DPS-650AB from Delta Electronics, INC.
> 
> Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>

Applied to hwmon-next.

Thanks,
Guenter

> ---
> v3:
>   No change.
> ---
> v2:
>   Change the patch subject and commit message.
>   Drop dps650ab.c file.
>   Replace struct name dps650ab_pmbus_info with pmbus_info_one_skip.
> ---
>  drivers/hwmon/pmbus/pmbus.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/hwmon/pmbus/pmbus.c b/drivers/hwmon/pmbus/pmbus.c
> index ef845a1310fa..e648ed8d926a 100644
> --- a/drivers/hwmon/pmbus/pmbus.c
> +++ b/drivers/hwmon/pmbus/pmbus.c
> @@ -212,6 +212,7 @@ static int pmbus_probe(struct i2c_client *client,
>  	{"bmr453", (kernel_ulong_t)&pmbus_info_one},
>  	{"bmr454", (kernel_ulong_t)&pmbus_info_one},
>  	{"dps460", (kernel_ulong_t)&pmbus_info_one_skip},
> +	{"dps650ab", (kernel_ulong_t)&pmbus_info_one_skip},
>  	{"dps800", (kernel_ulong_t)&pmbus_info_one_skip},
>  	{"mdt040", (kernel_ulong_t)&pmbus_info_one},
>  	{"ncp4200", (kernel_ulong_t)&pmbus_info_one},
> -- 
> 1.8.3.1
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation
  2019-01-10  2:24 ` [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation Xiaoting Liu
@ 2019-01-10 18:46   ` Guenter Roeck
  2019-01-11  8:25     ` Liu, Xiaoting
  2019-01-15 20:14   ` Rob Herring
  2019-01-17 20:59   ` Guenter Roeck
  2 siblings, 1 reply; 11+ messages in thread
From: Guenter Roeck @ 2019-01-10 18:46 UTC (permalink / raw)
  To: Xiaoting Liu
  Cc: jdelvare, robh+dt, mark.rutland, openbmc, devicetree,
	linux-kernel, shunyong.yang, dongsheng.wang

On Thu, Jan 10, 2019 at 10:24:33AM +0800, Xiaoting Liu wrote:
> Bindings for Delta Electronics DPS-650-AB power supply.
> 
> Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>

Waiting for DT maintainer Ack to apply. Note that you did not copy
linux-hwmon@vger.kernel.org. As a result, it _may_ get lost since
https://patchwork.kernel.org/project/linux-hwmon/list/ is my primary
means to track hwmon patches, and it isn't there.
If I don't the patch after the Ack, please resend and remember
to include the hwmon mailing list.

Thanks,
Guenter

> ---
> v3:
>   Change patch commit message.
>   Add vendor delta to the compatible property.
> ---
> v2:
>   Change the patch subject.
> ---
>  Documentation/devicetree/bindings/hwmon/dps650ab.txt | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/dps650ab.txt b/Documentation/devicetree/bindings/hwmon/dps650ab.txt
> new file mode 100644
> index 000000000000..32d89e4f4956
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/dps650ab.txt
> @@ -0,0 +1,11 @@
> +Bindings for Delta Electronics DPS-650-AB power supply
> +
> +Required properties:
> +- compatible : "delta,dps650ab"
> +- reg        : I2C address, one of 0x58, 0x59.
> +
> +Example:
> +	dps650ab@58 {
> +		    compatible = "delta,dps650ab";
> +		    reg = <0x58>;
> +	};
> -- 
> 1.8.3.1
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation
  2019-01-10 18:46   ` Guenter Roeck
@ 2019-01-11  8:25     ` Liu, Xiaoting
  0 siblings, 0 replies; 11+ messages in thread
From: Liu, Xiaoting @ 2019-01-11  8:25 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: jdelvare, robh+dt, mark.rutland, openbmc, devicetree,
	linux-kernel, Yang, Shunyong, Wang, Dongsheng

On 2019/1/11 2:46, Guenter Roeck wrote:
> On Thu, Jan 10, 2019 at 10:24:33AM +0800, Xiaoting Liu wrote:
>> Bindings for Delta Electronics DPS-650-AB power supply.
>>
>> Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>
> Waiting for DT maintainer Ack to apply. Note that you did not copy
> linux-hwmon@vger.kernel.org. As a result, it _may_ get lost since
> https://patchwork.kernel.org/project/linux-hwmon/list/ is my primary
> means to track hwmon patches, and it isn't there.
> If I don't the patch after the Ack, please resend and remember
> to include the hwmon mailing list.
>
> Thanks,
> Guenter

Thanks for your kindly reminder! I will loop linux-hwmon@vger.kernel.org

when I resend the patch.

Xiaoting

>> ---
>> v3:
>>   Change patch commit message.
>>   Add vendor delta to the compatible property.
>> ---
>> v2:
>>   Change the patch subject.
>> ---
>>  Documentation/devicetree/bindings/hwmon/dps650ab.txt | 11 +++++++++++
>>  1 file changed, 11 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/hwmon/dps650ab.txt b/Documentation/devicetree/bindings/hwmon/dps650ab.txt
>> new file mode 100644
>> index 000000000000..32d89e4f4956
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/hwmon/dps650ab.txt
>> @@ -0,0 +1,11 @@
>> +Bindings for Delta Electronics DPS-650-AB power supply
>> +
>> +Required properties:
>> +- compatible : "delta,dps650ab"
>> +- reg        : I2C address, one of 0x58, 0x59.
>> +
>> +Example:
>> +	dps650ab@58 {
>> +		    compatible = "delta,dps650ab";
>> +		    reg = <0x58>;
>> +	};
>> -- 
>> 1.8.3.1
>>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 4/4] hwmon: (pmbus) add support for DPS-650AB
  2019-01-10 18:42   ` Guenter Roeck
@ 2019-01-11  8:27     ` Liu, Xiaoting
  0 siblings, 0 replies; 11+ messages in thread
From: Liu, Xiaoting @ 2019-01-11  8:27 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: jdelvare, openbmc, linux-hwmon, linux-kernel, Yang, Shunyong,
	Wang, Dongsheng

On 2019/1/11 2:42, Guenter Roeck wrote:
> On Thu, Jan 10, 2019 at 10:31:44AM +0800, Xiaoting Liu wrote:
>> Provide support for PSU DPS-650AB from Delta Electronics, INC.
>>
>> Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>
> Applied to hwmon-next.
>
> Thanks,
> Guenter

Thanks for your reply!

Xiaoting

>> ---
>> v3:
>>   No change.
>> ---
>> v2:
>>   Change the patch subject and commit message.
>>   Drop dps650ab.c file.
>>   Replace struct name dps650ab_pmbus_info with pmbus_info_one_skip.
>> ---
>>  drivers/hwmon/pmbus/pmbus.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/hwmon/pmbus/pmbus.c b/drivers/hwmon/pmbus/pmbus.c
>> index ef845a1310fa..e648ed8d926a 100644
>> --- a/drivers/hwmon/pmbus/pmbus.c
>> +++ b/drivers/hwmon/pmbus/pmbus.c
>> @@ -212,6 +212,7 @@ static int pmbus_probe(struct i2c_client *client,
>>  	{"bmr453", (kernel_ulong_t)&pmbus_info_one},
>>  	{"bmr454", (kernel_ulong_t)&pmbus_info_one},
>>  	{"dps460", (kernel_ulong_t)&pmbus_info_one_skip},
>> +	{"dps650ab", (kernel_ulong_t)&pmbus_info_one_skip},
>>  	{"dps800", (kernel_ulong_t)&pmbus_info_one_skip},
>>  	{"mdt040", (kernel_ulong_t)&pmbus_info_one},
>>  	{"ncp4200", (kernel_ulong_t)&pmbus_info_one},
>> -- 
>> 1.8.3.1
>>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation
  2019-01-10  2:24 ` [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation Xiaoting Liu
  2019-01-10 18:46   ` Guenter Roeck
@ 2019-01-15 20:14   ` Rob Herring
  2019-01-17 20:59   ` Guenter Roeck
  2 siblings, 0 replies; 11+ messages in thread
From: Rob Herring @ 2019-01-15 20:14 UTC (permalink / raw)
  To: Xiaoting Liu
  Cc: jdelvare, linux, robh+dt, mark.rutland, openbmc, devicetree,
	linux-kernel, shunyong.yang, dongsheng.wang, Xiaoting Liu

On Thu, 10 Jan 2019 10:24:33 +0800, Xiaoting Liu wrote:
> Bindings for Delta Electronics DPS-650-AB power supply.
> 
> Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>
> ---
> v3:
>   Change patch commit message.
>   Add vendor delta to the compatible property.
> ---
> v2:
>   Change the patch subject.
> ---
>  Documentation/devicetree/bindings/hwmon/dps650ab.txt | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 

Reviewed-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 3/4] ARM: dts: dps650ab: add power supply
  2019-01-10  2:29 ` [PATCH v3 3/4] ARM: dts: dps650ab: add power supply Xiaoting Liu
@ 2019-01-17  1:57   ` Joel Stanley
  0 siblings, 0 replies; 11+ messages in thread
From: Joel Stanley @ 2019-01-17  1:57 UTC (permalink / raw)
  To: Xiaoting Liu
  Cc: Rob Herring, Mark Rutland, Guenter Roeck, devicetree,
	shunyong.yang, linux-aspeed, dongsheng.wang, Andrew Jeffery,
	OpenBMC Maillist, Linux Kernel Mailing List, Linux ARM

On Thu, 10 Jan 2019 at 13:29, Xiaoting Liu
<xiaoting.liu@hxt-semitech.com> wrote:
>
> Add Delta Electronics power supply DPS-650-AB.
>
> Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>
> ---
> v3:
>   Modify patch subject and commit message.
>   Add delta to compatible property.
> ---
> v2:
>   No change.

I tweaked the commit message to mention the board you were applying
to. Applied to the aspeed tree for 5.1.

Thanks,

Joel

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation
  2019-01-10  2:24 ` [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation Xiaoting Liu
  2019-01-10 18:46   ` Guenter Roeck
  2019-01-15 20:14   ` Rob Herring
@ 2019-01-17 20:59   ` Guenter Roeck
  2 siblings, 0 replies; 11+ messages in thread
From: Guenter Roeck @ 2019-01-17 20:59 UTC (permalink / raw)
  To: Xiaoting Liu
  Cc: jdelvare, robh+dt, mark.rutland, openbmc, devicetree,
	linux-kernel, shunyong.yang, dongsheng.wang

On Thu, Jan 10, 2019 at 10:24:33AM +0800, Xiaoting Liu wrote:
> Bindings for Delta Electronics DPS-650-AB power supply.
> 
> Signed-off-by: Xiaoting Liu <xiaoting.liu@hxt-semitech.com>

Applied to hwmon-next.

Thanks,
Guenter

> ---
> v3:
>   Change patch commit message.
>   Add vendor delta to the compatible property.
> ---
> v2:
>   Change the patch subject.
> ---
>  Documentation/devicetree/bindings/hwmon/dps650ab.txt | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/hwmon/dps650ab.txt b/Documentation/devicetree/bindings/hwmon/dps650ab.txt
> new file mode 100644
> index 000000000000..32d89e4f4956
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/hwmon/dps650ab.txt
> @@ -0,0 +1,11 @@
> +Bindings for Delta Electronics DPS-650-AB power supply
> +
> +Required properties:
> +- compatible : "delta,dps650ab"
> +- reg        : I2C address, one of 0x58, 0x59.
> +
> +Example:
> +	dps650ab@58 {
> +		    compatible = "delta,dps650ab";
> +		    reg = <0x58>;
> +	};
> -- 
> 1.8.3.1
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2019-01-17 20:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <cover.1546918172.git.xiaoting.liu@hxt-semitech.com>
2019-01-10  2:18 ` [PATCH v3 1/4] pmbus: associate PMBUS_SKIP_STATUS_CHECK with Xiaoting Liu
2019-01-10  2:24 ` [PATCH v3 2/4] dt-bindings: hwmon: add dps650ab documentation Xiaoting Liu
2019-01-10 18:46   ` Guenter Roeck
2019-01-11  8:25     ` Liu, Xiaoting
2019-01-15 20:14   ` Rob Herring
2019-01-17 20:59   ` Guenter Roeck
2019-01-10  2:29 ` [PATCH v3 3/4] ARM: dts: dps650ab: add power supply Xiaoting Liu
2019-01-17  1:57   ` Joel Stanley
2019-01-10  2:31 ` [PATCH v3 4/4] hwmon: (pmbus) add support for DPS-650AB Xiaoting Liu
2019-01-10 18:42   ` Guenter Roeck
2019-01-11  8:27     ` Liu, Xiaoting

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).