Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1560605 > unrolled thread
| Started by | Andi Shyti <andi.shyti@samsung.com> |
|---|---|
| First post | 2017-01-17 15:10 +0100 |
| Last post | 2017-01-20 14:30 +0100 |
| Articles | 9 — 6 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Andi Shyti <andi.shyti@samsung.com> - 2017-01-17 15:10 +0100
Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Javier Martinez Canillas <javier@osg.samsung.com> - 2017-01-17 15:40 +0100
Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Krzysztof Kozlowski <krzk@kernel.org> - 2017-01-17 20:00 +0100
Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-17 21:50 +0100
Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Andi Shyti <andi.shyti@samsung.com> - 2017-01-18 02:30 +0100
Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Andi Shyti <andi.shyti@samsung.com> - 2017-01-18 02:20 +0100
Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Rob Herring <robh@kernel.org> - 2017-01-19 19:30 +0100
Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Andi Shyti <andi@etezian.org> - 2017-01-20 01:20 +0100
Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver Rob Herring <robh@kernel.org> - 2017-01-20 14:30 +0100
| From | Andi Shyti <andi.shyti@samsung.com> |
|---|---|
| Date | 2017-01-17 15:10 +0100 |
| Subject | [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver |
| Message-ID | <t0CCu-84W-3@gated-at.bofh.it> |
Add binding for the STMicroelectronics FingerTip (stmfts)
touchscreen driver.
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
---
.../bindings/input/touchscreen/st,stmfts.txt | 43 ++++++++++++++++++++++
1 file changed, 43 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
diff --git a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
new file mode 100644
index 000000000000..788f4ba744db
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
@@ -0,0 +1,43 @@
+* ST-Microelectronics FingerTip touchscreen controller
+
+The ST-Microelectronics FingerTip device provides a basic touchscreen
+functionality. Along with it the user can enable the touchkey which can work as
+a basic HOME and BACK key for phones.
+
+The driver supports also hovering as an absolute single touch event with x, y, z
+coordinates.
+
+Required properties:
+- compatible : must be "st,stmfts"
+- reg : I2C slave address, (e.g. 0x49)
+- interrupt-parent : the phandle to the interrupt controller which provides
+ the interrupt
+- interrupts : interrupt specification
+- avdd-supply : analogic power supply
+- vdd-supply : power supply
+- touchscreen-size-x : see touchscreen.txt
+- touchscreen-size-y : see touchscreen.txt
+
+Optional properties:
+- touch-key-connected : specifies whether the touchkey feature is connected
+- ledvdd-supply : power supply to the touch key leds
+
+Example:
+
+i2c@00000000 {
+
+ /* ... */
+
+ stmfts@49 {
+ compatible = "st,stmfts";
+ reg = <0x49>;
+ interrupt-parent = <&gpa1>;
+ interrupts = <1 IRQ_TYPE_NONE>;
+ touchscreen-size-x = <1599>;
+ touchscreen-size-y = <2559>;
+ touch-key-connected;
+ avdd-supply = <&ldo30_reg>;
+ vdd-supply = <&ldo31_reg>;
+ ledvdd-supply = <&ldo33_reg>;
+ };
+};
--
2.11.0
[toc] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2017-01-17 15:40 +0100 |
| Subject | Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver |
| Message-ID | <t0D5v-8eI-11@gated-at.bofh.it> |
| In reply to | #1560605 |
Hello Andi,
On 01/17/2017 10:54 AM, Andi Shyti wrote:
> Add binding for the STMicroelectronics FingerTip (stmfts)
> touchscreen driver.
>
> Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
> ---
The binding looks good to me, I've just a minor nit below.
[snip]
> +
> +i2c@00000000 {
> +
> + /* ... */
> +
> + stmfts@49 {
The ePAPR document says:
The name of a node should be somewhat generic, reflecting the function
of the device and not its precise programming model.
So I think this should be touchscreen@49 instead.
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Best regards,
--
Javier Martinez Canillas
Open Source Group
Samsung Research America
[toc] | [prev] | [next] | [standalone]
| From | Krzysztof Kozlowski <krzk@kernel.org> |
|---|---|
| Date | 2017-01-17 20:00 +0100 |
| Subject | Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver |
| Message-ID | <t0H97-2cd-7@gated-at.bofh.it> |
| In reply to | #1560605 |
On Tue, Jan 17, 2017 at 10:54:39PM +0900, Andi Shyti wrote:
> Add binding for the STMicroelectronics FingerTip (stmfts)
> touchscreen driver.
>
> Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
> ---
> .../bindings/input/touchscreen/st,stmfts.txt | 43 ++++++++++++++++++++++
> 1 file changed, 43 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
>
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
> new file mode 100644
> index 000000000000..788f4ba744db
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
> @@ -0,0 +1,43 @@
> +* ST-Microelectronics FingerTip touchscreen controller
> +
> +The ST-Microelectronics FingerTip device provides a basic touchscreen
> +functionality. Along with it the user can enable the touchkey which can work as
> +a basic HOME and BACK key for phones.
> +
> +The driver supports also hovering as an absolute single touch event with x, y, z
> +coordinates.
> +
> +Required properties:
> +- compatible : must be "st,stmfts"
> +- reg : I2C slave address, (e.g. 0x49)
> +- interrupt-parent : the phandle to the interrupt controller which provides
> + the interrupt
> +- interrupts : interrupt specification
> +- avdd-supply : analogic power supply
> +- vdd-supply : power supply
> +- touchscreen-size-x : see touchscreen.txt
> +- touchscreen-size-y : see touchscreen.txt
> +
> +Optional properties:
> +- touch-key-connected : specifies whether the touchkey feature is connected
You are making it a generic property but it is specific to this device,
so:
st,touch-key-connected
?
> +- ledvdd-supply : power supply to the touch key leds
Is this really optional? If yes... how it gets the power when not
provided?
Best regards,
Krzysztof
> +
> +Example:
> +
> +i2c@00000000 {
> +
> + /* ... */
> +
> + stmfts@49 {
> + compatible = "st,stmfts";
> + reg = <0x49>;
> + interrupt-parent = <&gpa1>;
> + interrupts = <1 IRQ_TYPE_NONE>;
> + touchscreen-size-x = <1599>;
> + touchscreen-size-y = <2559>;
> + touch-key-connected;
> + avdd-supply = <&ldo30_reg>;
> + vdd-supply = <&ldo31_reg>;
> + ledvdd-supply = <&ldo33_reg>;
> + };
> +};
> --
> 2.11.0
>
[toc] | [prev] | [next] | [standalone]
| From | Dmitry Torokhov <dmitry.torokhov@gmail.com> |
|---|---|
| Date | 2017-01-17 21:50 +0100 |
| Subject | Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver |
| Message-ID | <t0IRz-3jt-15@gated-at.bofh.it> |
| In reply to | #1560933 |
On Tue, Jan 17, 2017 at 08:43:32PM +0200, Krzysztof Kozlowski wrote: > On Tue, Jan 17, 2017 at 10:54:39PM +0900, Andi Shyti wrote: > > Add binding for the STMicroelectronics FingerTip (stmfts) > > touchscreen driver. > > > > Signed-off-by: Andi Shyti <andi.shyti@samsung.com> > > --- > > .../bindings/input/touchscreen/st,stmfts.txt | 43 ++++++++++++++++++++++ > > 1 file changed, 43 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt > > > > diff --git a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt > > new file mode 100644 > > index 000000000000..788f4ba744db > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt > > @@ -0,0 +1,43 @@ > > +* ST-Microelectronics FingerTip touchscreen controller > > + > > +The ST-Microelectronics FingerTip device provides a basic touchscreen > > +functionality. Along with it the user can enable the touchkey which can work as > > +a basic HOME and BACK key for phones. > > + > > +The driver supports also hovering as an absolute single touch event with x, y, z > > +coordinates. > > + > > +Required properties: > > +- compatible : must be "st,stmfts" > > +- reg : I2C slave address, (e.g. 0x49) > > +- interrupt-parent : the phandle to the interrupt controller which provides > > + the interrupt > > +- interrupts : interrupt specification > > +- avdd-supply : analogic power supply > > +- vdd-supply : power supply > > +- touchscreen-size-x : see touchscreen.txt > > +- touchscreen-size-y : see touchscreen.txt > > + > > +Optional properties: > > +- touch-key-connected : specifies whether the touchkey feature is connected > > You are making it a generic property but it is specific to this device, > so: > st,touch-key-connected > ? > > > +- ledvdd-supply : power supply to the touch key leds > > Is this really optional? If yes... how it gets the power when not > provided? Also, is this really a regulator? Given you are testing whether it is on or off to report LED state it feels to me it might be a GPIO pin, not regulator... Thanks. -- Dmitry
[toc] | [prev] | [next] | [standalone]
| From | Andi Shyti <andi.shyti@samsung.com> |
|---|---|
| Date | 2017-01-18 02:30 +0100 |
| Subject | Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver |
| Message-ID | <t0Nex-61x-11@gated-at.bofh.it> |
| In reply to | #1561011 |
Hi Dmitry, > > > +- ledvdd-supply : power supply to the touch key leds > > > > Is this really optional? If yes... how it gets the power when not > > provided? > > Also, is this really a regulator? Given you are testing whether it is on > or off to report LED state it feels to me it might be a GPIO pin, not > regulator... In this case it's a real regulator, not a GPIO. But even if it was a GPIO, I still could use gpio-regulator[*] which handles gpio using the regulator framework. In this case, depending on how the leds are enabled on the DTS, in the driver I would use only one api (regulators indeed) for both the cases. Thanks, Andi [*] Documentation/devicetree/bindings/regulator/gpio-regulator.txt
[toc] | [prev] | [next] | [standalone]
| From | Andi Shyti <andi.shyti@samsung.com> |
|---|---|
| Date | 2017-01-18 02:20 +0100 |
| Subject | Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver |
| Message-ID | <t0N4S-5Yr-9@gated-at.bofh.it> |
| In reply to | #1560933 |
Hi Krzysztof, > > +Optional properties: > > +- touch-key-connected : specifies whether the touchkey feature is connected > > You are making it a generic property but it is specific to this device, > so: > st,touch-key-connected > ? > > > +- ledvdd-supply : power supply to the touch key leds > > Is this really optional? If yes... how it gets the power when not > provided? yes, it is. This is required only if (st,)touch-key-connected is added, it's not required in any other case. Anyway, even if not present, the device works, just without leds, which is fine for me. Thanks, Andi
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2017-01-19 19:30 +0100 |
| Subject | Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver |
| Message-ID | <t1pDb-51e-9@gated-at.bofh.it> |
| In reply to | #1560605 |
On Tue, Jan 17, 2017 at 10:54:39PM +0900, Andi Shyti wrote:
> Add binding for the STMicroelectronics FingerTip (stmfts)
> touchscreen driver.
Bindings describe h/w not drivers.
>
> Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
> ---
> .../bindings/input/touchscreen/st,stmfts.txt | 43 ++++++++++++++++++++++
> 1 file changed, 43 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
>
> diff --git a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
> new file mode 100644
> index 000000000000..788f4ba744db
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
> @@ -0,0 +1,43 @@
> +* ST-Microelectronics FingerTip touchscreen controller
> +
> +The ST-Microelectronics FingerTip device provides a basic touchscreen
> +functionality. Along with it the user can enable the touchkey which can work as
> +a basic HOME and BACK key for phones.
> +
> +The driver supports also hovering as an absolute single touch event with x, y, z
> +coordinates.
> +
> +Required properties:
> +- compatible : must be "st,stmfts"
Seems too generic. Is this a single device?
> +- reg : I2C slave address, (e.g. 0x49)
> +- interrupt-parent : the phandle to the interrupt controller which provides
> + the interrupt
> +- interrupts : interrupt specification
> +- avdd-supply : analogic power supply
> +- vdd-supply : power supply
> +- touchscreen-size-x : see touchscreen.txt
> +- touchscreen-size-y : see touchscreen.txt
> +
> +Optional properties:
> +- touch-key-connected : specifies whether the touchkey feature is connected
> +- ledvdd-supply : power supply to the touch key leds
> +
> +Example:
> +
> +i2c@00000000 {
> +
> + /* ... */
> +
> + stmfts@49 {
> + compatible = "st,stmfts";
> + reg = <0x49>;
> + interrupt-parent = <&gpa1>;
> + interrupts = <1 IRQ_TYPE_NONE>;
> + touchscreen-size-x = <1599>;
> + touchscreen-size-y = <2559>;
> + touch-key-connected;
> + avdd-supply = <&ldo30_reg>;
> + vdd-supply = <&ldo31_reg>;
> + ledvdd-supply = <&ldo33_reg>;
> + };
> +};
> --
> 2.11.0
>
[toc] | [prev] | [next] | [standalone]
| From | Andi Shyti <andi@etezian.org> |
|---|---|
| Date | 2017-01-20 01:20 +0100 |
| Subject | Re: [PATCH 1/3] Input: add STMicroelectronics FingerTip touchscreen driver |
| Message-ID | <t1v5T-4S-1@gated-at.bofh.it> |
| In reply to | #1562994 |
Hi Rob, > > +- compatible : must be "st,stmfts" > > Seems too generic. Is this a single device? the device is precisely called ST-Microelectronics FingerTip S (stmfts). There are variants, but they all have the same name and same datasheet. Maybe I can be more specific in the description, sometimes I omitted the 'S'. Andi
[toc] | [prev] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2017-01-20 14:30 +0100 |
| Message-ID | <t1Hqq-7M4-25@gated-at.bofh.it> |
| In reply to | #1563212 |
On Thu, Jan 19, 2017 at 6:19 PM, Andi Shyti <andi@etezian.org> wrote: > Hi Rob, > >> > +- compatible : must be "st,stmfts" >> >> Seems too generic. Is this a single device? > > the device is precisely called ST-Microelectronics FingerTip S > (stmfts). There are variants, but they all have the same name and > same datasheet. Okay, then it is fine. > > Maybe I can be more specific in the description, sometimes I > omitted the 'S'. > > Andi > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web