From: Lee Jones <lee.jones@linaro.org>
To: Jaewon Kim <jaewon02.kim@samsung.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Samuel Ortiz <sameo@linux.intel.com>,
linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
Chanwoo Choi <cw00.choi@samsung.com>
Subject: Re: [PATCH 3/3] mfd: max77693: add haptic of_compatible in mfd_cell
Date: Thu, 4 Sep 2014 10:10:54 +0100 [thread overview]
Message-ID: <20140904091054.GC29612@lee--X1> (raw)
In-Reply-To: <1409570071-26719-4-git-send-email-jaewon02.kim@samsung.com>
On Mon, 01 Sep 2014, Jaewon Kim wrote:
> This patch add haptic of_compatible in order to use the Haptic device driver
> using devicetree. and added the related documentation and example.
>
> Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
> Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
> ---
> Documentation/devicetree/bindings/mfd/max77693.txt | 19 +++++++++++++++++++
> drivers/mfd/max77693.c | 2 +-
These should be in different patches - please split them.
> 2 files changed, 20 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/mfd/max77693.txt b/Documentation/devicetree/bindings/mfd/max77693.txt
> index 11921cc..6e30ad8 100644
> --- a/Documentation/devicetree/bindings/mfd/max77693.txt
> +++ b/Documentation/devicetree/bindings/mfd/max77693.txt
> @@ -27,6 +27,18 @@ Optional properties:
>
> [*] refer Documentation/devicetree/bindings/regulator/regulator.txt
>
> +- haptic :
> + Required properties:
> + - compatible : Must be "maxim,max77693-hpatic"
> + - pwms : phandle to the physical PWM device,
> + A feel can be changed by changing a peroid cycle.
What is "a feel"?
Why is this this comment relevant to documenting the 'pwms' property?
> + Optional properties:
> + - haptic-supply : power supply for haptic motor
> + - pwm-names : Name to be used by the PWM subsystem for the PWM device
Are you sure this is optional? If it is and given that there is only
one pwm, perhaps you need to remove it altogether? *-names properties
are usually only required if there are more than one.
> + The haptic require of max77693 have to be instantiated under subnod
> + named "haptic" using the following haptic format in example.
> +
> Example:
> max77693@66 {
> compatible = "maxim,max77693";
> @@ -52,4 +64,11 @@ Example:
> regulator-boot-on;
> };
> };
> +
> + haptic {
> + compatible = "maxim,max77693-haptic";
> + haptic-supply = <&haptic_supply>;
> + pwms = <&pwm 0 38022 0>;
> + pwm-names = "haptic";
> + };
> };
> diff --git a/drivers/mfd/max77693.c b/drivers/mfd/max77693.c
> index fbfed56..ceb7ebf 100644
> --- a/drivers/mfd/max77693.c
> +++ b/drivers/mfd/max77693.c
> @@ -46,7 +46,7 @@ static const struct mfd_cell max77693_devs[] = {
> { .name = "max77693-charger", },
> { .name = "max77693-flash", },
> { .name = "max77693-muic", },
> - { .name = "max77693-haptic", },
> + { .name = "max77693-haptic", .of_compatible = "maxim,max77693-haptic" },
Can you break this last entry out, so:
{
.name = "max77693-haptic",
.of_compatible = "maxim,max77693-haptic"
},
> };
>
> static const struct regmap_config max77693_regmap_config = {
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
prev parent reply other threads:[~2014-09-04 9:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-01 11:14 [PATCH 0/3] Add max77693 haptic driver Jaewon Kim
2014-09-01 11:14 ` [PATCH 1/3] mfd: max77693: Initialize haptic register map Jaewon Kim
2014-09-04 9:06 ` Lee Jones
2014-09-04 10:15 ` Jaewon Kim
2014-09-04 10:31 ` Lee Jones
2014-09-01 11:14 ` [PATCH 2/3] Input: misc: Add haptic driver on max77693 Jaewon Kim
2014-09-01 11:14 ` [PATCH 3/3] mfd: max77693: add haptic of_compatible in mfd_cell Jaewon Kim
2014-09-04 9:10 ` Lee Jones [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140904091054.GC29612@lee--X1 \
--to=lee.jones@linaro.org \
--cc=cw00.choi@samsung.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jaewon02.kim@samsung.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox