devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND] [PATCH 1/4] dt-bindings: Add Japan Display Inc vendor id
@ 2016-07-31 15:15 Vinay Simha BN
  2016-07-31 15:15 ` [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings Vinay Simha BN
  0 siblings, 1 reply; 9+ messages in thread
From: Vinay Simha BN @ 2016-07-31 15:15 UTC (permalink / raw)
  Cc: Vinay Simha BN, Archit Taneja, John Stultz, Thierry Reding,
	Sumit Semwal, Rob Herring, Mark Rutland, Thierry Reding,
	Jonathan Cameron, Shawn Guo, Jarkko Sakkinen,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

Add vendor id for Japan Display Inc.

Cc: Archit Taneja <archit.taneja@gmail.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index ecc8cf4..1b134f3 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -138,6 +138,7 @@ invensense	InvenSense Inc.
 isee	ISEE 2007 S.L.
 isil	Intersil
 issi	Integrated Silicon Solutions Inc.
+jdi	Japan Display Inc.
 jedec	JEDEC Solid State Technology Association
 karo	Ka-Ro electronics GmbH
 keymile	Keymile GmbH
-- 
2.1.2

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

* [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings
  2016-07-31 15:15 [RESEND] [PATCH 1/4] dt-bindings: Add Japan Display Inc vendor id Vinay Simha BN
@ 2016-07-31 15:15 ` Vinay Simha BN
  2016-08-24 11:45   ` Thierry Reding
  2016-08-24 11:56   ` Thierry Reding
  0 siblings, 2 replies; 9+ messages in thread
From: Vinay Simha BN @ 2016-07-31 15:15 UTC (permalink / raw)
  Cc: Vinay Simha BN, Archit Taneja, John Stultz, Thierry Reding,
	Sumit Semwal, David Airlie, Rob Herring, Mark Rutland,
	open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

Add documentation for lt070me05000 panel

Cc: Archit Taneja <archit.taneja@gmail.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>

---
v2:
 * incorporated rob herring and thierry reviews
   gpio to gpios, gpio to regulator using fixed regulators
   and pwm backlight is removed, since it is controlled by
   dcs commands
---
 .../bindings/display/panel/jdi,lt070me05000.txt    | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt

diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
new file mode 100644
index 0000000..613b76f
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
@@ -0,0 +1,57 @@
+JDI model LT070ME05000 1200x1920 7" DSI Panel
+
+Required properties:
+- compatible: should be "jdi,lt070me05000"
+- vddp-supply: phandle of the regulator that provides the supply voltage
+  Power IC supply (3-5V)
+- dcdc_en-supply: phandle of the regulator that provides the supply voltage
+  Power IC supply enable, High active
+- vcc-supply: phandle of the regulator that provides the supply voltage
+  IOVCC , power supply for LCM (1.8V)
+- reset-gpios: phandle of gpio for reset line
+  This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names
+  XRES, Reset, Low active
+- enable-gpios: phandle of gpio for enable line
+  LED_EN, LED backlight enable, High active
+
+Example:
+
+	vcc_1p8v: regulator-fixed@2 {
+		compatible = "regulator-fixed";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+		regulator-name = "vcc_1p8v";
+		regulator-type = "voltage";
+		startup-delay-us = <0>;
+		gpio = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>;
+		enable-active-high;
+		regulator-boot-on;
+	};
+
+	tlmm_pinmux: pinctrl@800000 {
+
+		dsi_panel_pinctrl: dsi-panel-pinctrl {
+			mux {
+				pins = "gpio54";
+				function = "gpio";
+				bias-pull-up;
+				drive-strength = <8>;
+			};
+		};
+	};
+
+	dsi0: qcom,mdss_dsi@4700000 {
+		panel@0 {
+			compatible = "jdi,lt070me05000";
+			reg = <0>;
+			pinctrl-names = "default";
+			pinctrl-0 = <&dsi_panel_pinctrl>;
+
+			vddp-supply = <&pm8921_l17>;
+			dcdc_en-supply = <&pm8921_lvs7>;
+			vcc-supply = <&vcc_1p8v>;
+
+			reset-gpios = <&tlmm_pinmux 54 0>;
+			enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>;
+		};
+	};
-- 
2.1.2

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

* Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings
  2016-07-31 15:15 ` [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings Vinay Simha BN
@ 2016-08-24 11:45   ` Thierry Reding
       [not found]     ` <20160824114534.GA3169-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
  2016-08-24 11:56   ` Thierry Reding
  1 sibling, 1 reply; 9+ messages in thread
From: Thierry Reding @ 2016-08-24 11:45 UTC (permalink / raw)
  To: Vinay Simha BN
  Cc: Mark Rutland,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, open list:DRM PANEL DRIVERS, Rob Herring,
	Archit Taneja


[-- Attachment #1.1: Type: text/plain, Size: 2912 bytes --]

On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote:
> Add documentation for lt070me05000 panel
> 
> Cc: Archit Taneja <archit.taneja@gmail.com>
> Cc: John Stultz <john.stultz@linaro.org>
> Cc: Thierry Reding <thierry.reding@gmail.com>
> Cc: Sumit Semwal <sumit.semwal@linaro.org>
> Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
> Acked-by: Rob Herring <robh@kernel.org>
> 
> ---
> v2:
>  * incorporated rob herring and thierry reviews
>    gpio to gpios, gpio to regulator using fixed regulators
>    and pwm backlight is removed, since it is controlled by
>    dcs commands
> ---
>  .../bindings/display/panel/jdi,lt070me05000.txt    | 57 ++++++++++++++++++++++
>  1 file changed, 57 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
> 
> diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
> new file mode 100644
> index 0000000..613b76f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
> @@ -0,0 +1,57 @@
> +JDI model LT070ME05000 1200x1920 7" DSI Panel
> +
> +Required properties:
> +- compatible: should be "jdi,lt070me05000"
> +- vddp-supply: phandle of the regulator that provides the supply voltage
> +  Power IC supply (3-5V)
> +- dcdc_en-supply: phandle of the regulator that provides the supply voltage
> +  Power IC supply enable, High active
> +- vcc-supply: phandle of the regulator that provides the supply voltage
> +  IOVCC , power supply for LCM (1.8V)

I was just going to apply this and wanted to add some information about
how many lanes the panel uses, so I looked at the datasheet linked to in
patch 4/4:

	http://panelone.net/en/7-0-inch/JDI_LT070ME05000_7.0_inch-datasheet

and noticed that the power supplies in the binding here don't match the
ones listed in the datasheet. Granted, the datasheet is somewhat meager,
but it lists the following three input voltages:

	- IOVCC at 1.8 V
	- VDD at 3.0 V
	- VDDP at 3.0 V

This matches in part what the above binding describes, but it's not
quite right, so I'm wondering if the name for dcdc_en-supply came from
the board schematics and reflects the name of the rail on the board
design that provides this rather than the input voltage on the panel.

I think we should follow the names in the panel datasheet so that people
can more easily reference the correct regulators when using this panel
on a different board. I'd suggest:

	- iovcc-supply: phandle of the regulator that supplies power to
	  the IOVCC voltage input (1.8 V)
	- vdd-supply: phandle of the regulator that supplies power to
	  the VDD voltage input (3.0 V)
	- vddp-supply: phandle of the regulator that supplies power to
	  the VDDP voltage input (3.0 V)

Any objections?

Thierry

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings
  2016-07-31 15:15 ` [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings Vinay Simha BN
  2016-08-24 11:45   ` Thierry Reding
@ 2016-08-24 11:56   ` Thierry Reding
  2016-08-24 12:23     ` Vinay Simha
  1 sibling, 1 reply; 9+ messages in thread
From: Thierry Reding @ 2016-08-24 11:56 UTC (permalink / raw)
  To: Vinay Simha BN
  Cc: Mark Rutland,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, open list:DRM PANEL DRIVERS, Rob Herring,
	Archit Taneja


[-- Attachment #1.1: Type: text/plain, Size: 1190 bytes --]

On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote:
[...]
> diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
[...]
> +- reset-gpios: phandle of gpio for reset line
> +  This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names
> +  XRES, Reset, Low active
> +- enable-gpios: phandle of gpio for enable line
> +  LED_EN, LED backlight enable, High active

This is a little confusing. Shouldn't we rather completely omit any
mention of the polarity of these and let the board design handle this?

If the reset is low active, then I'd expect that to be reflected in the
GPIO specifier of the reset-gpios property, like so:

	panel@0 {
		...
		reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
		...
	};

With that a driver can simply deal with a high active reset, which it
currently doesn't. The problem with the current description is that it
is unclear who's to deal with the polarity. In order for this to work
properly with the current driver you'll have to specify the GPIO as
GPIO_ACTIVE_HIGH, which is not what the binding says it should be.

Thierry

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings
       [not found]     ` <20160824114534.GA3169-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
@ 2016-08-24 12:04       ` Vinay Simha
  2016-08-24 12:32         ` Thierry Reding
  0 siblings, 1 reply; 9+ messages in thread
From: Vinay Simha @ 2016-08-24 12:04 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Archit Taneja, John Stultz, Sumit Semwal, David Airlie,
	Rob Herring, Mark Rutland, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

thierry,

this is the reference pinouts of the panel
http://www.tonylabs.com/wp-content/uploads/LT070ME05000-pinouts.jpg

as you suggest , i will change the vcc-supply,

 - iovcc-supply: phandle of the regulator that supplies power to
          the IOVCC voltage input (1.8 V)

will keep the other two(vddp-supply, dcdc_en-supply) remaining same.

On Wed, Aug 24, 2016 at 5:15 PM, Thierry Reding
<thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote:
>> Add documentation for lt070me05000 panel
>>
>> Cc: Archit Taneja <archit.taneja-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>> Cc: John Stultz <john.stultz-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>> Cc: Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>> Cc: Sumit Semwal <sumit.semwal-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>> Signed-off-by: Vinay Simha BN <simhavcs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
>> Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
>>
>> ---
>> v2:
>>  * incorporated rob herring and thierry reviews
>>    gpio to gpios, gpio to regulator using fixed regulators
>>    and pwm backlight is removed, since it is controlled by
>>    dcs commands
>> ---
>>  .../bindings/display/panel/jdi,lt070me05000.txt    | 57 ++++++++++++++++++++++
>>  1 file changed, 57 insertions(+)
>>  create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
>>
>> diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
>> new file mode 100644
>> index 0000000..613b76f
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
>> @@ -0,0 +1,57 @@
>> +JDI model LT070ME05000 1200x1920 7" DSI Panel
>> +
>> +Required properties:
>> +- compatible: should be "jdi,lt070me05000"
>> +- vddp-supply: phandle of the regulator that provides the supply voltage
>> +  Power IC supply (3-5V)
>> +- dcdc_en-supply: phandle of the regulator that provides the supply voltage
>> +  Power IC supply enable, High active
>> +- vcc-supply: phandle of the regulator that provides the supply voltage
>> +  IOVCC , power supply for LCM (1.8V)
>
> I was just going to apply this and wanted to add some information about
> how many lanes the panel uses, so I looked at the datasheet linked to in
> patch 4/4:
>
>         http://panelone.net/en/7-0-inch/JDI_LT070ME05000_7.0_inch-datasheet
>
> and noticed that the power supplies in the binding here don't match the
> ones listed in the datasheet. Granted, the datasheet is somewhat meager,
> but it lists the following three input voltages:
>
>         - IOVCC at 1.8 V
>         - VDD at 3.0 V
>         - VDDP at 3.0 V
>
> This matches in part what the above binding describes, but it's not
> quite right, so I'm wondering if the name for dcdc_en-supply came from
> the board schematics and reflects the name of the rail on the board
> design that provides this rather than the input voltage on the panel.
>
> I think we should follow the names in the panel datasheet so that people
> can more easily reference the correct regulators when using this panel
> on a different board. I'd suggest:
>
>         - iovcc-supply: phandle of the regulator that supplies power to
>           the IOVCC voltage input (1.8 V)
>         - vdd-supply: phandle of the regulator that supplies power to
>           the VDD voltage input (3.0 V)
>         - vddp-supply: phandle of the regulator that supplies power to
>           the VDDP voltage input (3.0 V)
>
> Any objections?
>
> Thierry



-- 
regards,
vinaysimha
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings
  2016-08-24 11:56   ` Thierry Reding
@ 2016-08-24 12:23     ` Vinay Simha
  2016-08-24 12:35       ` Thierry Reding
  0 siblings, 1 reply; 9+ messages in thread
From: Vinay Simha @ 2016-08-24 12:23 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Archit Taneja, John Stultz, Sumit Semwal, David Airlie,
	Rob Herring, Mark Rutland, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

if we do not set the polarity to 8mA, panel will have gibberish display.
(information to set 8mA is available only in
nexus7-msm-flo-3.4-lollipop-release_dsi kernel nx7 release)

i will add this
reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;

On Wed, Aug 24, 2016 at 5:26 PM, Thierry Reding
<thierry.reding@gmail.com> wrote:
> On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote:
> [...]
>> diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
> [...]
>> +- reset-gpios: phandle of gpio for reset line
>> +  This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names
>> +  XRES, Reset, Low active
>> +- enable-gpios: phandle of gpio for enable line
>> +  LED_EN, LED backlight enable, High active
>
> This is a little confusing. Shouldn't we rather completely omit any
> mention of the polarity of these and let the board design handle this?
>
> If the reset is low active, then I'd expect that to be reflected in the
> GPIO specifier of the reset-gpios property, like so:
>
>         panel@0 {
>                 ...
>                 reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;
>                 ...
>         };
>
> With that a driver can simply deal with a high active reset, which it
> currently doesn't. The problem with the current description is that it
> is unclear who's to deal with the polarity. In order for this to work
> properly with the current driver you'll have to specify the GPIO as
> GPIO_ACTIVE_HIGH, which is not what the binding says it should be.
>
> Thierry



-- 
regards,
vinaysimha

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

* Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings
  2016-08-24 12:04       ` Vinay Simha
@ 2016-08-24 12:32         ` Thierry Reding
  2016-08-24 17:24           ` Vinay Simha
  0 siblings, 1 reply; 9+ messages in thread
From: Thierry Reding @ 2016-08-24 12:32 UTC (permalink / raw)
  To: Vinay Simha
  Cc: Archit Taneja, John Stultz, Sumit Semwal, David Airlie,
	Rob Herring, Mark Rutland, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

[-- Attachment #1: Type: text/plain, Size: 4796 bytes --]

On Wed, Aug 24, 2016 at 05:34:55PM +0530, Vinay Simha wrote:
> thierry,
> 
> this is the reference pinouts of the panel
> http://www.tonylabs.com/wp-content/uploads/LT070ME05000-pinouts.jpg

I can't open that file.

> as you suggest , i will change the vcc-supply,
> 
>  - iovcc-supply: phandle of the regulator that supplies power to
>           the IOVCC voltage input (1.8 V)
> 
> will keep the other two(vddp-supply, dcdc_en-supply) remaining same.

"dcdc_en" sounds to me like it should be a GPIO rather than a regulator.

According to this datasheet:

	http://kb.52solution.com/data/uploads/2016/04/07/3172846545705cc22d050e.pdf

the input voltages are indeed VDD, VDDp and IOVCC, though with slightly
larger tolerances than the previous datasheet. VDD and VDDp can both go
from 3.0 V to 5.0 V. DCDC_EN is indeed an additional GPIO to enable the
VDDp supply.

I think you'd need something along these lines:

	- vdd-supply: LED power supply (3.0-5.0 V)
	- vddp-supply: power IC supply (3.0-5.0 V)
	- iovcc-supply: LCM power supply (1.8 V)
	- dcdc-en-gpios: power IC supply enable
	- led-en-gpios: LED backlight enable

Or perhaps your vddp-supply should be a regulator that's controlled by
the GPIO that you'd put in dcdc-en-gpios. That might work better. That
would leave only led-en-gpios as the only enable GPIOs property, so it
would be okay to keep the name "enable-gpios", I guess.

Thierry

> On Wed, Aug 24, 2016 at 5:15 PM, Thierry Reding
> <thierry.reding@gmail.com> wrote:
> > On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote:
> >> Add documentation for lt070me05000 panel
> >>
> >> Cc: Archit Taneja <archit.taneja@gmail.com>
> >> Cc: John Stultz <john.stultz@linaro.org>
> >> Cc: Thierry Reding <thierry.reding@gmail.com>
> >> Cc: Sumit Semwal <sumit.semwal@linaro.org>
> >> Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
> >> Acked-by: Rob Herring <robh@kernel.org>
> >>
> >> ---
> >> v2:
> >>  * incorporated rob herring and thierry reviews
> >>    gpio to gpios, gpio to regulator using fixed regulators
> >>    and pwm backlight is removed, since it is controlled by
> >>    dcs commands
> >> ---
> >>  .../bindings/display/panel/jdi,lt070me05000.txt    | 57 ++++++++++++++++++++++
> >>  1 file changed, 57 insertions(+)
> >>  create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
> >>
> >> diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
> >> new file mode 100644
> >> index 0000000..613b76f
> >> --- /dev/null
> >> +++ b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
> >> @@ -0,0 +1,57 @@
> >> +JDI model LT070ME05000 1200x1920 7" DSI Panel
> >> +
> >> +Required properties:
> >> +- compatible: should be "jdi,lt070me05000"
> >> +- vddp-supply: phandle of the regulator that provides the supply voltage
> >> +  Power IC supply (3-5V)
> >> +- dcdc_en-supply: phandle of the regulator that provides the supply voltage
> >> +  Power IC supply enable, High active
> >> +- vcc-supply: phandle of the regulator that provides the supply voltage
> >> +  IOVCC , power supply for LCM (1.8V)
> >
> > I was just going to apply this and wanted to add some information about
> > how many lanes the panel uses, so I looked at the datasheet linked to in
> > patch 4/4:
> >
> >         http://panelone.net/en/7-0-inch/JDI_LT070ME05000_7.0_inch-datasheet
> >
> > and noticed that the power supplies in the binding here don't match the
> > ones listed in the datasheet. Granted, the datasheet is somewhat meager,
> > but it lists the following three input voltages:
> >
> >         - IOVCC at 1.8 V
> >         - VDD at 3.0 V
> >         - VDDP at 3.0 V
> >
> > This matches in part what the above binding describes, but it's not
> > quite right, so I'm wondering if the name for dcdc_en-supply came from
> > the board schematics and reflects the name of the rail on the board
> > design that provides this rather than the input voltage on the panel.
> >
> > I think we should follow the names in the panel datasheet so that people
> > can more easily reference the correct regulators when using this panel
> > on a different board. I'd suggest:
> >
> >         - iovcc-supply: phandle of the regulator that supplies power to
> >           the IOVCC voltage input (1.8 V)
> >         - vdd-supply: phandle of the regulator that supplies power to
> >           the VDD voltage input (3.0 V)
> >         - vddp-supply: phandle of the regulator that supplies power to
> >           the VDDP voltage input (3.0 V)
> >
> > Any objections?
> >
> > Thierry
> 
> 
> 
> -- 
> regards,
> vinaysimha

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

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

* Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings
  2016-08-24 12:23     ` Vinay Simha
@ 2016-08-24 12:35       ` Thierry Reding
  0 siblings, 0 replies; 9+ messages in thread
From: Thierry Reding @ 2016-08-24 12:35 UTC (permalink / raw)
  To: Vinay Simha
  Cc: Mark Rutland,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list, open list:DRM PANEL DRIVERS, Rob Herring,
	Archit Taneja


[-- Attachment #1.1: Type: text/plain, Size: 806 bytes --]

On Wed, Aug 24, 2016 at 05:53:00PM +0530, Vinay Simha wrote:
> if we do not set the polarity to 8mA, panel will have gibberish display.
> (information to set 8mA is available only in
> nexus7-msm-flo-3.4-lollipop-release_dsi kernel nx7 release)
> 
> i will add this
> reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>;

I don't think that will work with the current driver, because the GPIO
subsystem will automatically invert the value for you. Currently the
panel driver sets the GPIO value to 0 to assert the reset. With the
GPIO_ACTIVE_LOW flag you'd end up setting the actual level of the GPIO
to high, which is going to deassert. So I think if you make the above
change (which I think is the right thing to do), you'll also have to
update the driver to use high-active logic.

Thierry

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings
  2016-08-24 12:32         ` Thierry Reding
@ 2016-08-24 17:24           ` Vinay Simha
  0 siblings, 0 replies; 9+ messages in thread
From: Vinay Simha @ 2016-08-24 17:24 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Archit Taneja, John Stultz, Sumit Semwal, David Airlie,
	Rob Herring, Mark Rutland, open list:DRM PANEL DRIVERS,
	open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
	open list

 - dcdc-en-gpios: power IC supply enable

i cannot make this as gpios, since pm8921_lvs7 is a regulator.
We can make gpio as regulator, but not regulator as gpio.

other option i have to map pm8921_lvs7 to iovcc-supply and pm8921_gpio
23 to dcdc-en-gpios.

Since we do not have nx7 schematic not sure which pins are mapped in
hardware, other than the src code reference. Even in the 3.4 source
code gpio/pin/regulator mappings and naming are not proper in
board-flo-display.c

What is your suggestion?

On Wed, Aug 24, 2016 at 6:02 PM, Thierry Reding
<thierry.reding@gmail.com> wrote:
> On Wed, Aug 24, 2016 at 05:34:55PM +0530, Vinay Simha wrote:
>> thierry,
>>
>> this is the reference pinouts of the panel
>> http://www.tonylabs.com/wp-content/uploads/LT070ME05000-pinouts.jpg
>
> I can't open that file.
>
>> as you suggest , i will change the vcc-supply,
>>
>>  - iovcc-supply: phandle of the regulator that supplies power to
>>           the IOVCC voltage input (1.8 V)
>>
>> will keep the other two(vddp-supply, dcdc_en-supply) remaining same.
>
> "dcdc_en" sounds to me like it should be a GPIO rather than a regulator.
>
> According to this datasheet:
>
>         http://kb.52solution.com/data/uploads/2016/04/07/3172846545705cc22d050e.pdf
>
> the input voltages are indeed VDD, VDDp and IOVCC, though with slightly
> larger tolerances than the previous datasheet. VDD and VDDp can both go
> from 3.0 V to 5.0 V. DCDC_EN is indeed an additional GPIO to enable the
> VDDp supply.
>
> I think you'd need something along these lines:
>
>         - vdd-supply: LED power supply (3.0-5.0 V)
>         - vddp-supply: power IC supply (3.0-5.0 V)
>         - iovcc-supply: LCM power supply (1.8 V)
>         - dcdc-en-gpios: power IC supply enable
>         - led-en-gpios: LED backlight enable
>
> Or perhaps your vddp-supply should be a regulator that's controlled by
> the GPIO that you'd put in dcdc-en-gpios. That might work better. That
> would leave only led-en-gpios as the only enable GPIOs property, so it
> would be okay to keep the name "enable-gpios", I guess.
>
> Thierry
>
>> On Wed, Aug 24, 2016 at 5:15 PM, Thierry Reding
>> <thierry.reding@gmail.com> wrote:
>> > On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote:
>> >> Add documentation for lt070me05000 panel
>> >>
>> >> Cc: Archit Taneja <archit.taneja@gmail.com>
>> >> Cc: John Stultz <john.stultz@linaro.org>
>> >> Cc: Thierry Reding <thierry.reding@gmail.com>
>> >> Cc: Sumit Semwal <sumit.semwal@linaro.org>
>> >> Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
>> >> Acked-by: Rob Herring <robh@kernel.org>
>> >>
>> >> ---
>> >> v2:
>> >>  * incorporated rob herring and thierry reviews
>> >>    gpio to gpios, gpio to regulator using fixed regulators
>> >>    and pwm backlight is removed, since it is controlled by
>> >>    dcs commands
>> >> ---
>> >>  .../bindings/display/panel/jdi,lt070me05000.txt    | 57 ++++++++++++++++++++++
>> >>  1 file changed, 57 insertions(+)
>> >>  create mode 100644 Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
>> >>
>> >> diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
>> >> new file mode 100644
>> >> index 0000000..613b76f
>> >> --- /dev/null
>> >> +++ b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt
>> >> @@ -0,0 +1,57 @@
>> >> +JDI model LT070ME05000 1200x1920 7" DSI Panel
>> >> +
>> >> +Required properties:
>> >> +- compatible: should be "jdi,lt070me05000"
>> >> +- vddp-supply: phandle of the regulator that provides the supply voltage
>> >> +  Power IC supply (3-5V)
>> >> +- dcdc_en-supply: phandle of the regulator that provides the supply voltage
>> >> +  Power IC supply enable, High active
>> >> +- vcc-supply: phandle of the regulator that provides the supply voltage
>> >> +  IOVCC , power supply for LCM (1.8V)
>> >
>> > I was just going to apply this and wanted to add some information about
>> > how many lanes the panel uses, so I looked at the datasheet linked to in
>> > patch 4/4:
>> >
>> >         http://panelone.net/en/7-0-inch/JDI_LT070ME05000_7.0_inch-datasheet
>> >
>> > and noticed that the power supplies in the binding here don't match the
>> > ones listed in the datasheet. Granted, the datasheet is somewhat meager,
>> > but it lists the following three input voltages:
>> >
>> >         - IOVCC at 1.8 V
>> >         - VDD at 3.0 V
>> >         - VDDP at 3.0 V
>> >
>> > This matches in part what the above binding describes, but it's not
>> > quite right, so I'm wondering if the name for dcdc_en-supply came from
>> > the board schematics and reflects the name of the rail on the board
>> > design that provides this rather than the input voltage on the panel.
>> >
>> > I think we should follow the names in the panel datasheet so that people
>> > can more easily reference the correct regulators when using this panel
>> > on a different board. I'd suggest:
>> >
>> >         - iovcc-supply: phandle of the regulator that supplies power to
>> >           the IOVCC voltage input (1.8 V)
>> >         - vdd-supply: phandle of the regulator that supplies power to
>> >           the VDD voltage input (3.0 V)
>> >         - vddp-supply: phandle of the regulator that supplies power to
>> >           the VDDP voltage input (3.0 V)
>> >
>> > Any objections?
>> >
>> > Thierry
>>
>>
>>
>> --
>> regards,
>> vinaysimha



-- 
regards,
vinaysimha

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

end of thread, other threads:[~2016-08-24 17:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-31 15:15 [RESEND] [PATCH 1/4] dt-bindings: Add Japan Display Inc vendor id Vinay Simha BN
2016-07-31 15:15 ` [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings Vinay Simha BN
2016-08-24 11:45   ` Thierry Reding
     [not found]     ` <20160824114534.GA3169-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2016-08-24 12:04       ` Vinay Simha
2016-08-24 12:32         ` Thierry Reding
2016-08-24 17:24           ` Vinay Simha
2016-08-24 11:56   ` Thierry Reding
2016-08-24 12:23     ` Vinay Simha
2016-08-24 12:35       ` Thierry Reding

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).