* [PATCH 0/4] Add device tree data for omap5
@ 2012-08-03 12:38 Sourav Poddar
2012-08-03 12:38 ` [PATCH 1/4] arm/dts: omap5-evm: Add I2C support Sourav Poddar
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Sourav Poddar @ 2012-08-03 12:38 UTC (permalink / raw)
To: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel
Cc: Sourav Poddar, Benoit Cousson, Felipe Balbi, Santosh Shilimkar
The following patch series add i2c support for omap5.
As well as enable I2C based devices like pressure and temperature
through device tree. Also add onchip keypad dts data.
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Sourav Poddar (4):
arm/dts: omap5-evm: Add I2C support
arm/dts: omap5-evm: Add tmp102 sensor support
arm/dts: omap5-evm: Add keypad data
arm/dts: omap5-evm: Add bmp085 sensor support
arch/arm/boot/dts/omap5-evm.dts | 30 +++++++++++++++++++++++++++++
arch/arm/boot/dts/omap5.dtsi | 40 +++++++++++++++++++++++++++++++++++++++
2 files changed, 70 insertions(+), 0 deletions(-)
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/4] arm/dts: omap5-evm: Add I2C support
2012-08-03 12:38 [PATCH 0/4] Add device tree data for omap5 Sourav Poddar
@ 2012-08-03 12:38 ` Sourav Poddar
2012-08-03 17:22 ` Sergei Shtylyov
2012-08-03 12:38 ` [PATCH 2/4] arm/dts: omap5-evm: Add tmp102 sensor support Sourav Poddar
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Sourav Poddar @ 2012-08-03 12:38 UTC (permalink / raw)
To: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel
Cc: Sourav Poddar, Benoit Cousson, Felipe Balbi, Santosh Shilimkar
Add I2C data node in omap5 device tree file.
Tested on omap5430 sdp.
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
arch/arm/boot/dts/omap5.dtsi | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 57e5270..6b68dfe 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -145,6 +145,41 @@
#interrupt-cells = <1>;
};
+ i2c1: i2c@48070000 {
+ compatible = "ti,omap4-i2c";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ti,hwmods = "i2c1";
+ };
+
+ i2c2: i2c@48072000 {
+ compatible = "ti,omap4-i2c";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ti,hwmods = "i2c2";
+ };
+
+ i2c3: i2c@48060000 {
+ compatible = "ti,omap4-i2c";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ti,hwmods = "i2c3";
+ };
+
+ i2c4: i2c@4807A000 {
+ compatible = "ti,omap4-i2c";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ti,hwmods = "i2c4";
+ };
+
+ i2c5: i2c@4807C000 {
+ compatible = "ti,omap4-i2c";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ti,hwmods = "i2c5";
+ };
+
uart1: serial@4806a000 {
compatible = "ti,omap4-uart";
ti,hwmods = "uart1";
--
1.7.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/4] arm/dts: omap5-evm: Add tmp102 sensor support
2012-08-03 12:38 [PATCH 0/4] Add device tree data for omap5 Sourav Poddar
2012-08-03 12:38 ` [PATCH 1/4] arm/dts: omap5-evm: Add I2C support Sourav Poddar
@ 2012-08-03 12:38 ` Sourav Poddar
2012-08-03 12:38 ` [PATCH 3/4] arm/dts: omap5-evm: Add keypad data Sourav Poddar
2012-08-03 12:38 ` [PATCH 4/4] arm/dts: omap5-evm: Add bmp085 sensor support Sourav Poddar
3 siblings, 0 replies; 12+ messages in thread
From: Sourav Poddar @ 2012-08-03 12:38 UTC (permalink / raw)
To: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel
Cc: Sourav Poddar, Santosh Shilimkar, Benoit Cousson, Felipe Balbi
Add tmp102 temperature sensor data in omap5 evm dts file.
Tested on omap5430 sdp with 3.5 custom kernel.
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
arch/arm/boot/dts/omap5-evm.dts | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
index 200c39a..45a8aeb 100644
--- a/arch/arm/boot/dts/omap5-evm.dts
+++ b/arch/arm/boot/dts/omap5-evm.dts
@@ -18,3 +18,12 @@
reg = <0x80000000 0x40000000>; /* 1 GB */
};
};
+
+&i2c4 {
+ clock-frequency = <400000>;
+
+ tmp102@48{
+ compatible = "ti,tmp102";
+ reg = <0x48>;
+ };
+};
--
1.7.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 3/4] arm/dts: omap5-evm: Add keypad data
2012-08-03 12:38 [PATCH 0/4] Add device tree data for omap5 Sourav Poddar
2012-08-03 12:38 ` [PATCH 1/4] arm/dts: omap5-evm: Add I2C support Sourav Poddar
2012-08-03 12:38 ` [PATCH 2/4] arm/dts: omap5-evm: Add tmp102 sensor support Sourav Poddar
@ 2012-08-03 12:38 ` Sourav Poddar
2012-08-03 12:50 ` Koen Kooi
2012-08-07 12:54 ` Koen Kooi
2012-08-03 12:38 ` [PATCH 4/4] arm/dts: omap5-evm: Add bmp085 sensor support Sourav Poddar
3 siblings, 2 replies; 12+ messages in thread
From: Sourav Poddar @ 2012-08-03 12:38 UTC (permalink / raw)
To: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel
Cc: Sourav Poddar, Benoit Cousson, Felipe Balbi, Santosh Shilimkar
Add keypad data node in omap5 device tree file.
Also fill the device tree binding parameters
with the required value in "omap5-evm" dts file.
Tested on omap5430 evm with 3.5 custom kernel.
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
arch/arm/boot/dts/omap5-evm.dts | 12 ++++++++++++
arch/arm/boot/dts/omap5.dtsi | 5 +++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
index 45a8aeb..09fe941 100644
--- a/arch/arm/boot/dts/omap5-evm.dts
+++ b/arch/arm/boot/dts/omap5-evm.dts
@@ -17,6 +17,18 @@
device_type = "memory";
reg = <0x80000000 0x40000000>; /* 1 GB */
};
+
+ keypad {
+ keypad,num-rows = <8>;
+ keypad,num-columns = <8>;
+ linux,keymap = < 0x02020073
+ 0x02030072
+ 0x020400e7
+ 0x02050066
+ 0x0206006b
+ 0x020700d9 >;
+ linux,input-no-autorepeat;
+ };
};
&i2c4 {
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 6b68dfe..c38b823 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -216,4 +216,9 @@
clock-frequency = <48000000>;
};
};
+
+ keypad {
+ compatible = "ti,omap4-keypad";
+ ti,hwmods = "kbd";
+ };
};
--
1.7.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 4/4] arm/dts: omap5-evm: Add bmp085 sensor support
2012-08-03 12:38 [PATCH 0/4] Add device tree data for omap5 Sourav Poddar
` (2 preceding siblings ...)
2012-08-03 12:38 ` [PATCH 3/4] arm/dts: omap5-evm: Add keypad data Sourav Poddar
@ 2012-08-03 12:38 ` Sourav Poddar
3 siblings, 0 replies; 12+ messages in thread
From: Sourav Poddar @ 2012-08-03 12:38 UTC (permalink / raw)
To: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel
Cc: Sourav Poddar, Benoit Cousson, Felipe Balbi, Santosh Shilimkar
Add bmp085 pressure sensor data in omap5 evm dts file.
Tested on omap5430 sdp with 3.5 custom kernel.
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
arch/arm/boot/dts/omap5-evm.dts | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
index 09fe941..956eba0 100644
--- a/arch/arm/boot/dts/omap5-evm.dts
+++ b/arch/arm/boot/dts/omap5-evm.dts
@@ -39,3 +39,12 @@
reg = <0x48>;
};
};
+
+&i2c2 {
+ clock-frequency = <400000>;
+
+ bmp085@77 {
+ compatible = "bosch,bmp085";
+ reg = <0x77>;
+ };
+};
--
1.7.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 3/4] arm/dts: omap5-evm: Add keypad data
2012-08-03 12:38 ` [PATCH 3/4] arm/dts: omap5-evm: Add keypad data Sourav Poddar
@ 2012-08-03 12:50 ` Koen Kooi
2012-08-03 13:06 ` Poddar, Sourav
2012-08-07 12:54 ` Koen Kooi
1 sibling, 1 reply; 12+ messages in thread
From: Koen Kooi @ 2012-08-03 12:50 UTC (permalink / raw)
To: Sourav Poddar
Cc: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel,
Benoit Cousson, Felipe Balbi, Santosh Shilimkar
Op 3 aug. 2012, om 14:38 heeft Sourav Poddar <sourav.poddar@ti.com> het volgende geschreven:
> Add keypad data node in omap5 device tree file.
> Also fill the device tree binding parameters
> with the required value in "omap5-evm" dts file.
>
> Tested on omap5430 evm with 3.5 custom kernel.
>
> Cc: Benoit Cousson <b-cousson@ti.com>
> Cc: Felipe Balbi <balbi@ti.com>
> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Acked-by: Felipe Balbi <balbi@ti.com>
> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
> ---
> arch/arm/boot/dts/omap5-evm.dts | 12 ++++++++++++
> arch/arm/boot/dts/omap5.dtsi | 5 +++++
> 2 files changed, 17 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
> index 45a8aeb..09fe941 100644
> --- a/arch/arm/boot/dts/omap5-evm.dts
> +++ b/arch/arm/boot/dts/omap5-evm.dts
> @@ -17,6 +17,18 @@
> device_type = "memory";
> reg = <0x80000000 0x40000000>; /* 1 GB */
> };
> +
> + keypad {
> + keypad,num-rows = <8>;
> + keypad,num-columns = <8>;
> + linux,keymap = < 0x02020073
> + 0x02030072
> + 0x020400e7
> + 0x02050066
> + 0x0206006b
> + 0x020700d9 >;
> + linux,input-no-autorepeat;
> + };
This not a criticism on your patch, but a generic question about DT: Is there no way to have nice constants for keys like we have in the kernel, like KEY_POWER, KEY_UP, etc? If no, does DT allow comments so I can look at a dts and see which keycodes are mapped instead of having to dig up the sources?
regards,
Koen
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 3/4] arm/dts: omap5-evm: Add keypad data
2012-08-03 12:50 ` Koen Kooi
@ 2012-08-03 13:06 ` Poddar, Sourav
0 siblings, 0 replies; 12+ messages in thread
From: Poddar, Sourav @ 2012-08-03 13:06 UTC (permalink / raw)
To: Koen Kooi
Cc: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel,
Benoit Cousson, Felipe Balbi, Santosh Shilimkar
Hi,
On Fri, Aug 3, 2012 at 6:20 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
>
> Op 3 aug. 2012, om 14:38 heeft Sourav Poddar <sourav.poddar@ti.com> het volgende geschreven:
>
>> Add keypad data node in omap5 device tree file.
>> Also fill the device tree binding parameters
>> with the required value in "omap5-evm" dts file.
>>
>> Tested on omap5430 evm with 3.5 custom kernel.
>>
>> Cc: Benoit Cousson <b-cousson@ti.com>
>> Cc: Felipe Balbi <balbi@ti.com>
>> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
>> Acked-by: Felipe Balbi <balbi@ti.com>
>> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
>> ---
>> arch/arm/boot/dts/omap5-evm.dts | 12 ++++++++++++
>> arch/arm/boot/dts/omap5.dtsi | 5 +++++
>> 2 files changed, 17 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
>> index 45a8aeb..09fe941 100644
>> --- a/arch/arm/boot/dts/omap5-evm.dts
>> +++ b/arch/arm/boot/dts/omap5-evm.dts
>> @@ -17,6 +17,18 @@
>> device_type = "memory";
>> reg = <0x80000000 0x40000000>; /* 1 GB */
>> };
>> +
>> + keypad {
>> + keypad,num-rows = <8>;
>> + keypad,num-columns = <8>;
>> + linux,keymap = < 0x02020073
>> + 0x02030072
>> + 0x020400e7
>> + 0x02050066
>> + 0x0206006b
>> + 0x020700d9 >;
>> + linux,input-no-autorepeat;
>> + };
>
> This not a criticism on your patch, but a generic question about DT: Is there no way to have nice constants for keys like we have in the kernel, like KEY_POWER, KEY_UP, etc?
There is way, something like this ..
key_C {
keypad,row = <2>;
keypad,column = <1>;
linux,code = <46>;
};
But its not the preferred approach mainly because of the fact that
it is too big. So suppose, if we have 100 key codes, we will have
400 -500 lines of code in our dts file for the mapping only.
If no, does DT allow comments so I can look at a dts and see which
keycodes are mapped instead of having to dig up the sources?
Yes, comments are allowed and seems to be better option to do.
~Sourav
>
> regards,
>
> Koen
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/4] arm/dts: omap5-evm: Add I2C support
2012-08-03 12:38 ` [PATCH 1/4] arm/dts: omap5-evm: Add I2C support Sourav Poddar
@ 2012-08-03 17:22 ` Sergei Shtylyov
[not found] ` <501C08CB.3060701-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Sergei Shtylyov @ 2012-08-03 17:22 UTC (permalink / raw)
To: Sourav Poddar
Cc: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel,
Santosh Shilimkar, Benoit Cousson, Felipe Balbi
Hello.
On 08/03/2012 04:38 PM, Sourav Poddar wrote:
> Add I2C data node in omap5 device tree file.
> Tested on omap5430 sdp.
> Cc: Benoit Cousson <b-cousson@ti.com>
> Cc: Felipe Balbi <balbi@ti.com>
> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Acked-by: Felipe Balbi <balbi@ti.com>
> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
> ---
> arch/arm/boot/dts/omap5.dtsi | 35 +++++++++++++++++++++++++++++++++++
> 1 files changed, 35 insertions(+), 0 deletions(-)
> diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
> index 57e5270..6b68dfe 100644
> --- a/arch/arm/boot/dts/omap5.dtsi
> +++ b/arch/arm/boot/dts/omap5.dtsi
> @@ -145,6 +145,41 @@
> #interrupt-cells = <1>;
> };
>
> + i2c1: i2c@48070000 {
> + compatible = "ti,omap4-i2c";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + ti,hwmods = "i2c1";
Address postfix in the node name and no "reg" property?
WBR, Sergei
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/4] arm/dts: omap5-evm: Add I2C support
[not found] ` <501C08CB.3060701-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
@ 2012-08-06 8:38 ` Felipe Balbi
0 siblings, 0 replies; 12+ messages in thread
From: Felipe Balbi @ 2012-08-06 8:38 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Felipe Balbi,
Santosh Shilimkar, Sourav Poddar,
linux-omap-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
[-- Attachment #1.1: Type: text/plain, Size: 1463 bytes --]
Hi,
On Fri, Aug 03, 2012 at 09:22:19PM +0400, Sergei Shtylyov wrote:
> Hello.
>
> On 08/03/2012 04:38 PM, Sourav Poddar wrote:
>
> > Add I2C data node in omap5 device tree file.
>
> > Tested on omap5430 sdp.
>
> > Cc: Benoit Cousson <b-cousson-l0cyMroinI0@public.gmane.org>
> > Cc: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
> > Cc: Santosh Shilimkar <santosh.shilimkar-l0cyMroinI0@public.gmane.org>
> > Acked-by: Felipe Balbi <balbi-l0cyMroinI0@public.gmane.org>
> > Signed-off-by: Sourav Poddar <sourav.poddar-l0cyMroinI0@public.gmane.org>
> > ---
> > arch/arm/boot/dts/omap5.dtsi | 35 +++++++++++++++++++++++++++++++++++
> > 1 files changed, 35 insertions(+), 0 deletions(-)
>
> > diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
> > index 57e5270..6b68dfe 100644
> > --- a/arch/arm/boot/dts/omap5.dtsi
> > +++ b/arch/arm/boot/dts/omap5.dtsi
> > @@ -145,6 +145,41 @@
> > #interrupt-cells = <1>;
> > };
> >
> > + i2c1: i2c@48070000 {
> > + compatible = "ti,omap4-i2c";
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > + ti,hwmods = "i2c1";
>
> Address postfix in the node name and no "reg" property?
that's because of the ti,hwmods attribute. OMAP is still not entirely
converted to DT and there's this weird ti,hwmods attribute. OMAP's hwmod
framework will fill up register addresses, irqs, etc when the device is
created. Oh well...
--
balbi
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 192 bytes --]
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 3/4] arm/dts: omap5-evm: Add keypad data
2012-08-03 12:38 ` [PATCH 3/4] arm/dts: omap5-evm: Add keypad data Sourav Poddar
2012-08-03 12:50 ` Koen Kooi
@ 2012-08-07 12:54 ` Koen Kooi
2012-08-07 15:49 ` Poddar, Sourav
1 sibling, 1 reply; 12+ messages in thread
From: Koen Kooi @ 2012-08-07 12:54 UTC (permalink / raw)
To: Sourav Poddar
Cc: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel,
Benoit Cousson, Felipe Balbi, Santosh Shilimkar
Op 3 aug. 2012, om 14:38 heeft Sourav Poddar <sourav.poddar@ti.com> het volgende geschreven:
> Add keypad data node in omap5 device tree file.
> Also fill the device tree binding parameters
> with the required value in "omap5-evm" dts file.
>
> Tested on omap5430 evm with 3.5 custom kernel.
>
> Cc: Benoit Cousson <b-cousson@ti.com>
> Cc: Felipe Balbi <balbi@ti.com>
> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
> Acked-by: Felipe Balbi <balbi@ti.com>
> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
> ---
> arch/arm/boot/dts/omap5-evm.dts | 12 ++++++++++++
> arch/arm/boot/dts/omap5.dtsi | 5 +++++
> 2 files changed, 17 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
> index 45a8aeb..09fe941 100644
> --- a/arch/arm/boot/dts/omap5-evm.dts
> +++ b/arch/arm/boot/dts/omap5-evm.dts
> @@ -17,6 +17,18 @@
> device_type = "memory";
> reg = <0x80000000 0x40000000>; /* 1 GB */
> };
> +
> + keypad {
> + keypad,num-rows = <8>;
> + keypad,num-columns = <8>;
> + linux,keymap = < 0x02020073
> + 0x02030072
> + 0x020400e7
> + 0x02050066
> + 0x0206006b
> + 0x020700d9 >;
> + linux,input-no-autorepeat;
> + };
Again not a coment on your patch, but on DT:
If DT bindings must be OS independent, what then, is that linux keycode doing there?
regards,
Koen
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 3/4] arm/dts: omap5-evm: Add keypad data
2012-08-07 12:54 ` Koen Kooi
@ 2012-08-07 15:49 ` Poddar, Sourav
0 siblings, 0 replies; 12+ messages in thread
From: Poddar, Sourav @ 2012-08-07 15:49 UTC (permalink / raw)
To: Koen Kooi
Cc: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel,
Benoit Cousson, Felipe Balbi, Santosh Shilimkar
Hi Koen,
On Tue, Aug 7, 2012 at 6:24 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
>
> Op 3 aug. 2012, om 14:38 heeft Sourav Poddar <sourav.poddar@ti.com> het volgende geschreven:
>
>> Add keypad data node in omap5 device tree file.
>> Also fill the device tree binding parameters
>> with the required value in "omap5-evm" dts file.
>>
>> Tested on omap5430 evm with 3.5 custom kernel.
>>
>> Cc: Benoit Cousson <b-cousson@ti.com>
>> Cc: Felipe Balbi <balbi@ti.com>
>> Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
>> Acked-by: Felipe Balbi <balbi@ti.com>
>> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
>> ---
>> arch/arm/boot/dts/omap5-evm.dts | 12 ++++++++++++
>> arch/arm/boot/dts/omap5.dtsi | 5 +++++
>> 2 files changed, 17 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
>> index 45a8aeb..09fe941 100644
>> --- a/arch/arm/boot/dts/omap5-evm.dts
>> +++ b/arch/arm/boot/dts/omap5-evm.dts
>> @@ -17,6 +17,18 @@
>> device_type = "memory";
>> reg = <0x80000000 0x40000000>; /* 1 GB */
>> };
>> +
>> + keypad {
>> + keypad,num-rows = <8>;
>> + keypad,num-columns = <8>;
>> + linux,keymap = < 0x02020073
>> + 0x02030072
>> + 0x020400e7
>> + 0x02050066
>> + 0x0206006b
>> + 0x020700d9 >;
>> + linux,input-no-autorepeat;
>> + };
>
> Again not a coment on your patch, but on DT:
>
> If DT bindings must be OS independent, what then, is that linux keycode doing there?
>
Currently, for all matrix connected keyboards the keymap are defined
in the scope of the
linux key code since that is a stable and standardized interface at this time.
For the above reason , computation of the keymap uses linux keycode
row << 24 | column << 16 | linux-key-code
I think this is the primary reason for keeping "linux" prefix with this
property.
> regards,
>
> Koen
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 4/4] arm/dts: omap5-evm: Add bmp085 sensor support
2012-08-13 10:05 [PATCHv2 0/4] Add device tree data for omap5 Sourav Poddar
@ 2012-08-13 10:05 ` Sourav Poddar
0 siblings, 0 replies; 12+ messages in thread
From: Sourav Poddar @ 2012-08-13 10:05 UTC (permalink / raw)
To: linux-kernel, devicetree-discuss, linux-omap, linux-arm-kernel
Cc: Sourav Poddar, Benoit Cousson, Felipe Balbi, Santosh Shilimkar
Add bmp085 pressure sensor data in omap5 evm dts file.
Tested on omap5430 evm with 3.5 custom kernel.
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
---
arch/arm/boot/dts/omap5-evm.dts | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/omap5-evm.dts b/arch/arm/boot/dts/omap5-evm.dts
index c2ea189..18e499c 100644
--- a/arch/arm/boot/dts/omap5-evm.dts
+++ b/arch/arm/boot/dts/omap5-evm.dts
@@ -39,3 +39,12 @@
reg = <0x48>;
};
};
+
+&i2c2 {
+ clock-frequency = <400000>;
+
+ bmp085@77 {
+ compatible = "bosch,bmp085";
+ reg = <0x77>;
+ };
+};
--
1.7.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2012-08-13 10:05 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-03 12:38 [PATCH 0/4] Add device tree data for omap5 Sourav Poddar
2012-08-03 12:38 ` [PATCH 1/4] arm/dts: omap5-evm: Add I2C support Sourav Poddar
2012-08-03 17:22 ` Sergei Shtylyov
[not found] ` <501C08CB.3060701-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
2012-08-06 8:38 ` Felipe Balbi
2012-08-03 12:38 ` [PATCH 2/4] arm/dts: omap5-evm: Add tmp102 sensor support Sourav Poddar
2012-08-03 12:38 ` [PATCH 3/4] arm/dts: omap5-evm: Add keypad data Sourav Poddar
2012-08-03 12:50 ` Koen Kooi
2012-08-03 13:06 ` Poddar, Sourav
2012-08-07 12:54 ` Koen Kooi
2012-08-07 15:49 ` Poddar, Sourav
2012-08-03 12:38 ` [PATCH 4/4] arm/dts: omap5-evm: Add bmp085 sensor support Sourav Poddar
-- strict thread matches above, loose matches on Subject: below --
2012-08-13 10:05 [PATCHv2 0/4] Add device tree data for omap5 Sourav Poddar
2012-08-13 10:05 ` [PATCH 4/4] arm/dts: omap5-evm: Add bmp085 sensor support Sourav Poddar
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).