Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-07-19 Thread Ruslan Bilovol
Hi Tomi

On Fri, Jun 28, 2013 at 10:58 AM, Tomi Valkeinen tomi.valkei...@iki.fi wrote:
 On 25/06/13 14:32, Ruslan Bilovol wrote:
 The OMAP4 Blaze Tablet is TI OMAP4 processor-based
 development platform in a tablet formfactor.
 The platform contains many of the features found in
 present-day handsets (such as audio, video, wireless
 functions and user interfaces) and in addition
 contains features for software development and test.

 This patch adds initial support for the OMAP4 Blaze
 Tablet development platform. Additional functionality
 depends on different drivers and code modifications that
 are not upstreamed yet or do not support DT yet, so will
 be added later.

 I think there are (at least) two revisions of the blaze tablet, the
 newer one has a higher resolution LCD. I don't know what the other
 differences are.

 I think you have the newer revision. I have the older. Do you know about
 the diff of those revisions, or more importantly, will the same blaze
 tablet support work for the older revision also?

Yes, it was manufacturing some first revision of BlazeTablet but now
it is out of production.
On Svtronics there is ability to buy only BlazeTablet2 and we use only
it last year as
development platform.

The difference is known - another display, sensors, diffs in routing
gpio to leds etc..
The same DTS will allow to boot BlazeTablet and BlazeTablet2 but
number of supported features
of course will be less in case of first revision of BlazeTablet

Since first revision of Blazetablet is not available to buy and we do
not use it for some time
I think there is no needs in doing support of it upstream.

Regards,
Ruslan


  Tomi


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-28 Thread Tomi Valkeinen
On 25/06/13 14:32, Ruslan Bilovol wrote:
 The OMAP4 Blaze Tablet is TI OMAP4 processor-based
 development platform in a tablet formfactor.
 The platform contains many of the features found in
 present-day handsets (such as audio, video, wireless
 functions and user interfaces) and in addition
 contains features for software development and test.
 
 This patch adds initial support for the OMAP4 Blaze
 Tablet development platform. Additional functionality
 depends on different drivers and code modifications that
 are not upstreamed yet or do not support DT yet, so will
 be added later.

I think there are (at least) two revisions of the blaze tablet, the
newer one has a higher resolution LCD. I don't know what the other
differences are.

I think you have the newer revision. I have the older. Do you know about
the diff of those revisions, or more importantly, will the same blaze
tablet support work for the older revision also?

 Tomi




signature.asc
Description: OpenPGP digital signature


Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-27 Thread Ruslan Bilovol
Hi Nishanth,

On Wed, Jun 26, 2013 at 4:13 PM, Nishanth Menon n...@ti.com wrote:
 On Wed, Jun 26, 2013 at 3:03 AM, Ruslan Bilovol ruslan.bilo...@ti.com wrote:
 Hi Nishanth,

 On Tue, Jun 25, 2013 at 3:43 PM, Nishanth Menon n...@ti.com wrote:
 On 06/25/2013 07:01 AM, Nishanth Menon wrote:

 On 06/25/2013 06:32 AM, Ruslan Bilovol wrote:

 The OMAP4 Blaze Tablet is TI OMAP4 processor-based
 development platform in a tablet formfactor.
 The platform contains many of the features found in
 present-day handsets (such as audio, video, wireless
 functions and user interfaces) and in addition
 contains features for software development and test.

 This patch adds initial support for the OMAP4 Blaze
 Tablet development platform. Additional functionality
 depends on different drivers and code modifications that
 are not upstreamed yet or do not support DT yet, so will
 be added later.--


 http://svtronics.com/omap/sevm4460,blaze,omap might help too :)

 Yes, forgot to add this information from cover-letter from previous
 version of patch :)

 ;) - link was wrong!

I know, but don't worry about it - I will put correct one in v3 :)

 http://svtronics.com/omap?product_id=15 is more like it - Blaze
 tablet by default comes in 4460/4470 variants. I suggest introducing
 4470 variant here.
 I am aware of the SOM compatibility and ability to support 4430 SOM on
 tablet as well, but to keep tablet alive and reduce scope of testing,
 keeping just 4470 in place might be a good choice.

Yes, this makes sense. I think as soon as OMAP4470 reach upstream, we can easily
switch the BlazeTablet's  .dts to 4470


 just my 2 cents, no strong feelings towards either. :)


 [...]

 +
 +#include twl6030.dtsi
 +

 Might be good to see the TWL interrupt pin information made available as
 well?

 Allow me to rephrase a comment a little bit more :)
 Similar to twl4030_omap3.dtsi, we could introduce twl6030_omap4.dtsi. this
 could contain the common pins used for 6030.
  omap4_pmx_wkup {
  pinctrl-names = default;
  pinctrl-0 = 
  twl6030_wkup_pins
  ;

  twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
  pinctrl-single,pins = 
  0x14 (PIN_OUTPUT | MUX_MODE2)
  ;
  };
  };

 twl6030_pins: pinmux_twl6030_pins {
 pinctrl-single,pins = 
 0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0)
 /* sys_nirq1.sys_nirq1 */
 ;
 };

 which is now already duplicated in 2 places (SDP and Panda), and in this
 patch duplicated again.

 Agree, I'm planning to do this later as part of moving common things into
 some System-On-Module(SOM)-specific files, as discussed previously
 here https://patchwork.kernel.org/patch/2118371/

 I dont think I was mentioning about that - I just would really like to
 avoid duplication of 6030 information all over the place. if we can
 avoid it, lets start consolidating.

Okay, I got your point. Will prepare the patch in v3..

 Regards,
 Nishanth Menon


-- 
Best regards,
Ruslan Bilvol


 --
 To unsubscribe from this list: send the line unsubscribe linux-omap in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-26 Thread Tony Lindgren
* Dan Murphy dmur...@ti.com [130625 07:13]:
 On 06/25/2013 06:32 AM, Ruslan Bilovol wrote:
 The OMAP4 Blaze Tablet is TI OMAP4 processor-based
 development platform in a tablet formfactor.
 The platform contains many of the features found in
 present-day handsets (such as audio, video, wireless
 functions and user interfaces) and in addition
 contains features for software development and test.
 Why do we want to send this upstream?
 What is the advantage to having this supported?
 
 I don't believe we need to add another community board.  We have a
 SDP and Panda.

Why not? Just the .dts file is needed nowadays and it
may make it easier to support various other omap4 based
tablets that have similar features.

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-26 Thread Ruslan Bilovol
Hi Nishanth,

On Tue, Jun 25, 2013 at 3:43 PM, Nishanth Menon n...@ti.com wrote:
 On 06/25/2013 07:01 AM, Nishanth Menon wrote:

 On 06/25/2013 06:32 AM, Ruslan Bilovol wrote:

 The OMAP4 Blaze Tablet is TI OMAP4 processor-based
 development platform in a tablet formfactor.
 The platform contains many of the features found in
 present-day handsets (such as audio, video, wireless
 functions and user interfaces) and in addition
 contains features for software development and test.

 This patch adds initial support for the OMAP4 Blaze
 Tablet development platform. Additional functionality
 depends on different drivers and code modifications that
 are not upstreamed yet or do not support DT yet, so will
 be added later.--


 http://svtronics.com/omap/sevm4460,blaze,omap might help too :)

Yes, forgot to add this information from cover-letter from previous
version of patch :)

 [...]

 +
 +#include twl6030.dtsi
 +

 Might be good to see the TWL interrupt pin information made available as
 well?

 Allow me to rephrase a comment a little bit more :)
 Similar to twl4030_omap3.dtsi, we could introduce twl6030_omap4.dtsi. this
 could contain the common pins used for 6030.
  omap4_pmx_wkup {
  pinctrl-names = default;
  pinctrl-0 = 
  twl6030_wkup_pins
  ;

  twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
  pinctrl-single,pins = 
  0x14 (PIN_OUTPUT | MUX_MODE2)
  ;
  };
  };

 twl6030_pins: pinmux_twl6030_pins {
 pinctrl-single,pins = 
 0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0)
 /* sys_nirq1.sys_nirq1 */
 ;
 };

 which is now already duplicated in 2 places (SDP and Panda), and in this
 patch duplicated again.

Agree, I'm planning to do this later as part of moving common things into
some System-On-Module(SOM)-specific files, as discussed previously
here https://patchwork.kernel.org/patch/2118371/

Best regards,
Ruslan Bilvol


 just my 2 cents :(
 ---
 Regards,
 Nishanth Menon
 --
 To unsubscribe from this list: send the line unsubscribe linux-omap in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-26 Thread Ruslan Bilovol
Hi Dan,

On Tue, Jun 25, 2013 at 5:07 PM, Dan Murphy dmur...@ti.com wrote:
 On 06/25/2013 06:32 AM, Ruslan Bilovol wrote:

 The OMAP4 Blaze Tablet is TI OMAP4 processor-based
 development platform in a tablet formfactor.
 The platform contains many of the features found in
 present-day handsets (such as audio, video, wireless
 functions and user interfaces) and in addition
 contains features for software development and test.

 Why do we want to send this upstream?
 What is the advantage to having this supported?

 I don't believe we need to add another community board.  We have a SDP and
 Panda.

Because:
a) it is still widely used for prototyping devices
b) you can still buy it from svtronics
c) it has different set of devices on board so we have ability to
   work with things like:
  - widescreen high-resolution LCD panel
  - different touchscreen controllers
  - gpio keys (on 'Blaze Tablet')
  - another set of sensors
  - HS USB Host related stuff etc
d) some features may be easily accessible only on BlazeTalet board
(comparing to Panda/SDP), like USB HSIC connection
e) it is shipped with OMAP4470, support of which we are going to send upstream
f) with Device Tree it's easy to support this board :)

Best regards,
Ruslan


 Dan

 snip

 --
 --
 Dan Murphy

 --
 To unsubscribe from this list: send the line unsubscribe linux-omap in
 the body of a message to majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-26 Thread Nishanth Menon
On Wed, Jun 26, 2013 at 3:03 AM, Ruslan Bilovol ruslan.bilo...@ti.com wrote:
 Hi Nishanth,

 On Tue, Jun 25, 2013 at 3:43 PM, Nishanth Menon n...@ti.com wrote:
 On 06/25/2013 07:01 AM, Nishanth Menon wrote:

 On 06/25/2013 06:32 AM, Ruslan Bilovol wrote:

 The OMAP4 Blaze Tablet is TI OMAP4 processor-based
 development platform in a tablet formfactor.
 The platform contains many of the features found in
 present-day handsets (such as audio, video, wireless
 functions and user interfaces) and in addition
 contains features for software development and test.

 This patch adds initial support for the OMAP4 Blaze
 Tablet development platform. Additional functionality
 depends on different drivers and code modifications that
 are not upstreamed yet or do not support DT yet, so will
 be added later.--


 http://svtronics.com/omap/sevm4460,blaze,omap might help too :)

 Yes, forgot to add this information from cover-letter from previous
 version of patch :)

;) - link was wrong!
http://svtronics.com/omap?product_id=15 is more like it - Blaze
tablet by default comes in 4460/4470 variants. I suggest introducing
4470 variant here.
I am aware of the SOM compatibility and ability to support 4430 SOM on
tablet as well, but to keep tablet alive and reduce scope of testing,
keeping just 4470 in place might be a good choice.

just my 2 cents, no strong feelings towards either. :)


 [...]

 +
 +#include twl6030.dtsi
 +

 Might be good to see the TWL interrupt pin information made available as
 well?

 Allow me to rephrase a comment a little bit more :)
 Similar to twl4030_omap3.dtsi, we could introduce twl6030_omap4.dtsi. this
 could contain the common pins used for 6030.
  omap4_pmx_wkup {
  pinctrl-names = default;
  pinctrl-0 = 
  twl6030_wkup_pins
  ;

  twl6030_wkup_pins: pinmux_twl6030_wkup_pins {
  pinctrl-single,pins = 
  0x14 (PIN_OUTPUT | MUX_MODE2)
  ;
  };
  };

 twl6030_pins: pinmux_twl6030_pins {
 pinctrl-single,pins = 
 0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0)
 /* sys_nirq1.sys_nirq1 */
 ;
 };

 which is now already duplicated in 2 places (SDP and Panda), and in this
 patch duplicated again.

 Agree, I'm planning to do this later as part of moving common things into
 some System-On-Module(SOM)-specific files, as discussed previously
 here https://patchwork.kernel.org/patch/2118371/

I dont think I was mentioning about that - I just would really like to
avoid duplication of 6030 information all over the place. if we can
avoid it, lets start consolidating.
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-25 Thread Ruslan Bilovol
The OMAP4 Blaze Tablet is TI OMAP4 processor-based
development platform in a tablet formfactor.
The platform contains many of the features found in
present-day handsets (such as audio, video, wireless
functions and user interfaces) and in addition
contains features for software development and test.

This patch adds initial support for the OMAP4 Blaze
Tablet development platform. Additional functionality
depends on different drivers and code modifications that
are not upstreamed yet or do not support DT yet, so will
be added later.

Signed-off-by: Ruslan Bilovol ruslan.bilo...@ti.com
---

v2:
 - Rebased onto 'for_3.11/dts' branch of bcousson/linux-omap-dt tree
 - Bound more hardware and picked up updates from omap4-sdp 

 arch/arm/boot/dts/Makefile  |1 +
 arch/arm/boot/dts/omap4-blazetablet.dts |  483 +++
 2 files changed, 484 insertions(+)
 create mode 100644 arch/arm/boot/dts/omap4-blazetablet.dts

diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 05da469..4fafde1 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -150,6 +150,7 @@ dtb-$(CONFIG_ARCH_OMAP2PLUS) += omap2420-h4.dtb \
omap4-var-som.dtb \
omap4-sdp.dtb \
omap4-sdp-es23plus.dtb \
+   omap4-blazetablet.dtb \
omap5-uevm.dtb \
am335x-evm.dtb \
am335x-evmsk.dtb \
diff --git a/arch/arm/boot/dts/omap4-blazetablet.dts 
b/arch/arm/boot/dts/omap4-blazetablet.dts
new file mode 100644
index 000..07f40b6
--- /dev/null
+++ b/arch/arm/boot/dts/omap4-blazetablet.dts
@@ -0,0 +1,483 @@
+/*
+ * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * Author: Ruslan Bilovol ruslan.bilo...@ti.com
+ *
+ * based on omap4-sdp.dts
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+/dts-v1/;
+
+#include omap443x.dtsi
+#include elpida_ecb240abacn.dtsi
+
+/ {
+   model = TI OMAP4 Blaze Tablet;
+   compatible = ti,omap4-blazetablet, ti,omap4430, ti,omap4;
+
+   memory {
+   device_type = memory;
+   reg = 0x8000 0x4000; /* 1 GB */
+   };
+
+   vdd_eth: fixedregulator-vdd-eth {
+   compatible = regulator-fixed;
+   regulator-name = VDD_ETH;
+   regulator-min-microvolt = 330;
+   regulator-max-microvolt = 330;
+   gpio = gpio2 16 0;  /* gpio line 48 */
+   enable-active-high;
+   regulator-boot-on;
+   };
+
+   vbat: fixedregulator-vbat {
+   compatible = regulator-fixed;
+   regulator-name = VBAT;
+   regulator-min-microvolt = 375;
+   regulator-max-microvolt = 375;
+   regulator-boot-on;
+   };
+
+   gpio_keys {
+   compatible = gpio-keys;
+
+   volume_up {
+   label = volume-up;
+   linux,code = 115; /* KEY_VOLUMEUP */
+   gpios = gpio2 11 GPIO_ACTIVE_HIGH;   /* 43 */
+   gpio-key,wakeup;
+   };
+
+   home {
+   label = home;
+   linux,code = 102; /* KEY_HOME */
+   gpios = gpio2 14 GPIO_ACTIVE_HIGH;   /* 46 */
+   gpio-key,wakeup;
+   };
+
+   volume_down {
+   label = volume-down;
+   linux,code = 114; /* KEY_VOLUMEDOWN */
+   gpios = gpio2 15 GPIO_ACTIVE_HIGH;   /* 47 */
+   gpio-key,wakeup;
+   };
+   };
+
+   leds {
+   compatible = gpio-leds;
+
+   debug2 {
+   label = omap4:green:debug2;
+   gpios = gpio6 13 GPIO_ACTIVE_HIGH; /* 173 */
+   };
+
+   debug4 {
+   label = omap4:green:debug4;
+   gpios = gpio2 18 GPIO_ACTIVE_HIGH; /* 50 */
+   };
+
+   user1 {
+   label = omap4:blue:user;
+   gpios = gpio6 9 GPIO_ACTIVE_HIGH; /* 169 */
+   };
+
+   user2 {
+   label = omap4:red:user;
+   gpios = gpio6 10 GPIO_ACTIVE_HIGH; /* 170 */
+   };
+
+   user3 {
+   label = omap4:green:user;
+   gpios = gpio6 14 GPIO_ACTIVE_HIGH; /* 174 */
+   };
+   };
+
+   sound {
+   compatible = ti,abe-twl6040;
+   ti,model = BlazeTablet;
+
+   ti,jack-detection = 1;
+   ti,mclk-freq = 3840;
+
+   ti,mcpdm = mcpdm;
+   ti,dmic = dmic;
+
+   ti,twl6040 = twl6040;
+
+   /* Audio 

Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-25 Thread Nishanth Menon

On 06/25/2013 06:32 AM, Ruslan Bilovol wrote:

The OMAP4 Blaze Tablet is TI OMAP4 processor-based
development platform in a tablet formfactor.
The platform contains many of the features found in
present-day handsets (such as audio, video, wireless
functions and user interfaces) and in addition
contains features for software development and test.

This patch adds initial support for the OMAP4 Blaze
Tablet development platform. Additional functionality
depends on different drivers and code modifications that
are not upstreamed yet or do not support DT yet, so will
be added later.


http://svtronics.com/omap/sevm4460,blaze,omap might help too :)
[...]

+
+#include twl6030.dtsi
+
Might be good to see the TWL interrupt pin information made available as 
well?

[...]

Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-25 Thread Nishanth Menon

On 06/25/2013 07:01 AM, Nishanth Menon wrote:

On 06/25/2013 06:32 AM, Ruslan Bilovol wrote:

The OMAP4 Blaze Tablet is TI OMAP4 processor-based
development platform in a tablet formfactor.
The platform contains many of the features found in
present-day handsets (such as audio, video, wireless
functions and user interfaces) and in addition
contains features for software development and test.

This patch adds initial support for the OMAP4 Blaze
Tablet development platform. Additional functionality
depends on different drivers and code modifications that
are not upstreamed yet or do not support DT yet, so will
be added later.


http://svtronics.com/omap/sevm4460,blaze,omap might help too :)
[...]

+
+#include twl6030.dtsi
+

Might be good to see the TWL interrupt pin information made available as
well?

Allow me to rephrase a comment a little bit more :)
Similar to twl4030_omap3.dtsi, we could introduce twl6030_omap4.dtsi. 
this could contain the common pins used for 6030.

 omap4_pmx_wkup {
 pinctrl-names = default;
 pinctrl-0 = 
 twl6030_wkup_pins
 ;

 twl6030_wkup_pins: pinmux_twl6030_wkup_pins { 


 pinctrl-single,pins = 
 0x14 (PIN_OUTPUT | MUX_MODE2)
 ;
 };
 };

twl6030_pins: pinmux_twl6030_pins {
pinctrl-single,pins = 
			0x15e (WAKEUP_EN | PIN_INPUT_PULLUP | MUX_MODE0)	/* 
sys_nirq1.sys_nirq1 */

;
};

which is now already duplicated in 2 places (SDP and Panda), and in this 
patch duplicated again.


just my 2 cents :(
---
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH v2] ARM: DTS: OMAP4: Add OMAP4 Blaze Tablet support

2013-06-25 Thread Dan Murphy

On 06/25/2013 06:32 AM, Ruslan Bilovol wrote:

The OMAP4 Blaze Tablet is TI OMAP4 processor-based
development platform in a tablet formfactor.
The platform contains many of the features found in
present-day handsets (such as audio, video, wireless
functions and user interfaces) and in addition
contains features for software development and test.

Why do we want to send this upstream?
What is the advantage to having this supported?

I don't believe we need to add another community board.  We have a SDP 
and Panda.


Dan

snip

--
--
Dan Murphy

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html