All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexander Shiyan" <shc_work@mail.ru>
To: "Rob Herring" <robh@kernel.org>
Cc: linux-input@vger.kernel.org,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	devicetree@vger.kernel.org, "Mark Rutland" <mark.rutland@arm.com>
Subject: Re: [PATCH 2/2] dt-bindings: input: Update documentation for clps711x-keypad
Date: Tue, 22 Jan 2019 10:54:04 +0300	[thread overview]
Message-ID: <1548143644.657260392@f543.i.mail.ru> (raw)
In-Reply-To: <CAL_Jsq+1LRJTtVeH7p9g8XeefxdsdALJHr6PMqE0BJXXbQN=mA@mail.gmail.com>

>Понедельник, 21 января 2019, 19:25 +03:00 от Rob Herring <robh@kernel.org>:
...
>> >On Sat, Dec 22, 2018 at 06:55:20PM +0300, Alexander Shiyan wrote:
>> >> Since the driver switched to using the syscon_regmap_lookup_by_phandle()
>> >> function, we need to specify the phandle for the driver. This patch
>> >> updates the driver binding documentation for these changes.
>> ...
>> >> diff --git a/Documentation/devicetree/bindings/input/clps711x-keypad.txt b/Documentation/devicetree/bindings/input/clps711x-keypad.txt
>> >> index 3eed881..aebedc3 100644
>> >> --- a/Documentation/devicetree/bindings/input/clps711x-keypad.txt
>> >> +++ b/Documentation/devicetree/bindings/input/clps711x-keypad.txt
>> >> @@ -6,6 +6,7 @@ Required Properties:
>> >>  - poll-interval: Poll interval time in milliseconds.
>> >>  - linux,keymap:  The definition can be found at
>> >>                   bindings/input/matrix-keymap.txt.
>> >> +- syscon:        Phandle that points to the CPU syscon1 node.
>> >
>> >What does this provide? If the keypad registers are a sub-block of the
>> >syscon1, then you should make this node a child node.
>>
>> Syscon does not populate child devices.
>
>I don't have any context of what syscon1 looks like. Maybe it needs
>simple-mfd or a driver for the syscon.

The SYSCON1 on this processor is already being processed by the
mfd/syscon driver, so it is represents in DTS, as shown below:
...
		syscon1: syscon@80000100 {
			compatible = "syscon";
			reg = <0x80000100 0x80>;
		};
...
	keypad: keypad {
		compatible = "cirrus,ep7209-keypad";
		syscon = <&syscon1>;
		status = "disabled";
	};

Maybe I need to expand the example section in the DT-bindings so that we can see it?

---

      reply	other threads:[~2019-01-22  7:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-22 15:55 [PATCH 2/2] dt-bindings: input: Update documentation for clps711x-keypad Alexander Shiyan
2019-01-03 20:59 ` Rob Herring
2019-01-16 12:26   ` Alexander Shiyan
2019-01-21 16:25     ` Rob Herring
2019-01-22  7:54       ` Alexander Shiyan [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=1548143644.657260392@f543.i.mail.ru \
    --to=shc_work@mail.ru \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh@kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.