* [PATCH] ARM: socfpga: dts: Add adxl34x
@ 2014-12-23 13:04 Walter Lozano
[not found] ` <1419339862-29852-1-git-send-email-walter-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Walter Lozano @ 2014-12-23 13:04 UTC (permalink / raw)
To: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, linux,
devicetree, linux-arm-kernel, linux-kernel
Cc: Walter Lozano
This patch adds the DTS bindings for the adxl34x digital
accelerometer.
Signed-off-by: Walter Lozano <walter@vanguardiasur.com.ar>
---
arch/arm/boot/dts/socfpga_cyclone5_sockit.dts | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
index 16ea6f5..f99d7dec 100644
--- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
+++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
@@ -68,3 +68,20 @@
&usb1 {
status = "okay";
};
+
+&gpio2 {
+ status = "okay";
+};
+
+&i2c1{
+ status = "okay";
+
+ accel1: accel1@53{
+ compatible = "adxl34x";
+ reg = <0x53>;
+
+ interrupt-parent = < &portc >;
+ interrupts = <3 2>;
+
+ };
+};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: socfpga: dts: Add adxl34x
[not found] ` <1419339862-29852-1-git-send-email-walter-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
@ 2014-12-24 9:45 ` Steffen Trumtrar
[not found] ` <20141224094516.GI13070-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Steffen Trumtrar @ 2014-12-24 9:45 UTC (permalink / raw)
To: Walter Lozano
Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
galak-sgV2jX0FEOL9JmXXK+q4OQ, linux-lFZ/pmaqli7XmaaqVzeoHQ,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Hi!
On Tue, Dec 23, 2014 at 10:04:22AM -0300, Walter Lozano wrote:
> This patch adds the DTS bindings for the adxl34x digital
> accelerometer.
>
Thanks for doing this. Does the ADXL34 work now? Last time I
tried it, I didn't get any interrupts, but as I didn't really
care for the accelerometer I didn't dig deeper.
> Signed-off-by: Walter Lozano <walter-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
> ---
> arch/arm/boot/dts/socfpga_cyclone5_sockit.dts | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
> index 16ea6f5..f99d7dec 100644
> --- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
> +++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
> @@ -68,3 +68,20 @@
> &usb1 {
> status = "okay";
> };
> +
> +&gpio2 {
> + status = "okay";
> +};
> +
> +&i2c1{
^^^
Add a space here and ...
> + status = "okay";
> +
> + accel1: accel1@53{
^^^
here. Also, this should be accelerometer@53.
> + compatible = "adxl34x";
> + reg = <0x53>;
> +
> + interrupt-parent = < &portc >;
^^^ ^^^
Please remove the spaces here.
> + interrupts = <3 2>;
> +
> + };
> +};
Finally, please sort the nodes alphabetically and not just append them.
Regards,
Steffen
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
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] 3+ messages in thread
* Re: [PATCH] ARM: socfpga: dts: Add adxl34x
[not found] ` <20141224094516.GI13070-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
@ 2014-12-24 23:11 ` Walter Lozano
0 siblings, 0 replies; 3+ messages in thread
From: Walter Lozano @ 2014-12-24 23:11 UTC (permalink / raw)
To: Steffen Trumtrar
Cc: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8,
mark.rutland-5wv7dgnIgG8, ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg,
Kumar Gala, linux-lFZ/pmaqli7XmaaqVzeoHQ,
devicetree-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
On Wed, Dec 24, 2014 at 6:45 AM, Steffen Trumtrar
<s.trumtrar-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> wrote:
> Hi!
>
> On Tue, Dec 23, 2014 at 10:04:22AM -0300, Walter Lozano wrote:
>> This patch adds the DTS bindings for the adxl34x digital
>> accelerometer.
>>
>
> Thanks for doing this. Does the ADXL34 work now? Last time I
> tried it, I didn't get any interrupts, but as I didn't really
> care for the accelerometer I didn't dig deeper.
Yes, now it works. There was a problem with the interrupts as the gpio was
probed after i2c. I have done some patches to fix this but some else
did a better job
deferring the probe so now it work out of the box.
>> Signed-off-by: Walter Lozano <walter-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
>> ---
>> arch/arm/boot/dts/socfpga_cyclone5_sockit.dts | 17 +++++++++++++++++
>> 1 file changed, 17 insertions(+)
>>
>> diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
>> index 16ea6f5..f99d7dec 100644
>> --- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
>> +++ b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
>> @@ -68,3 +68,20 @@
>> &usb1 {
>> status = "okay";
>> };
>> +
>> +&gpio2 {
>> + status = "okay";
>> +};
>> +
>> +&i2c1{
> ^^^
>
> Add a space here and ...
>
>> + status = "okay";
>> +
>> + accel1: accel1@53{
> ^^^
> here. Also, this should be accelerometer@53.
>
>> + compatible = "adxl34x";
>> + reg = <0x53>;
>> +
>> + interrupt-parent = < &portc >;
> ^^^ ^^^
> Please remove the spaces here.
>> + interrupts = <3 2>;
>> +
>> + };
>> +};
>
> Finally, please sort the nodes alphabetically and not just append them.
Great, no problem at all. Thanks for the corrections.
Regards,
Walter
--
Walter Lozano, VanguardiaSur
www.vanguardiasur.com.ar
--
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] 3+ messages in thread
end of thread, other threads:[~2014-12-24 23:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-23 13:04 [PATCH] ARM: socfpga: dts: Add adxl34x Walter Lozano
[not found] ` <1419339862-29852-1-git-send-email-walter-30ULvvUtt6G51wMPkGsGjgyUoB5FGQPZ@public.gmane.org>
2014-12-24 9:45 ` Steffen Trumtrar
[not found] ` <20141224094516.GI13070-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2014-12-24 23:11 ` Walter Lozano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox