Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [dtc] Compiling a .dts overlay
@ 2016-05-06 12:17 Oscar Gomez Fuente
  2016-05-06 21:08 ` Peter Seiderer
  2016-05-06 21:20 ` Nicholas Walton
  0 siblings, 2 replies; 9+ messages in thread
From: Oscar Gomez Fuente @ 2016-05-06 12:17 UTC (permalink / raw)
  To: buildroot

Hi,

I'm working with the latest stable release: 2016.02 and with the raspberry
pi 3B.

I'm trying to compile my own .dtb overlay, because I need to add the IO
Expander i2c TCA6424A to my HW. And I would like to know how to do this
using overlays and device tree.

But I've got this error when I tried to compile de .dts file:

# dtc -I dts -O dtb -o tca6424a-overlay.dtb tca6424a-overlay.dts
Error: tca6424a-overlay.dts:3.2-8 syntax error
FATAL ERROR: Unable to parse input tree
# dtc -v
Version: DTC 1.4.1-g8ead5b66
#

This is the .dts file:
----------
// Definitions for TCA6424A IO Extender from Texas Instruments
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";

fragment at 0 {
target = <&i2c1>;
__overlay__ {
status = "okay";
};
};

fragment at 1 {
target = <&gpio>;
__overlay__ {
tca6424_pins: tca6424_pins {
brcm,pins = <4>;
brcm,function = <0>;
};
};
};

fragment at 2 {
target = <&i2c1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
tca6424 at 22 {
compatible = "ti,tca6424";
reg = <0x22>;
pinctrl-names = "default";
pinctrl-0 = <&tca6424_pins>;
interrupt-parent = <&gpio4>;
interrupts = <23 IRQ_TYPE_LEVEL_LOW>;
};

};
};
};
-----------

Anyone could help me how to do this?

Best regards.

Oscar Gomez Fuente.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160506/c24b270d/attachment.html>

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

end of thread, other threads:[~2016-05-10 11:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-06 12:17 [Buildroot] [dtc] Compiling a .dts overlay Oscar Gomez Fuente
2016-05-06 21:08 ` Peter Seiderer
2016-05-06 21:20 ` Nicholas Walton
2016-05-09  6:37   ` Oscar Gomez Fuente
2016-05-09  9:57     ` Oscar Gomez Fuente
2016-05-09 20:46       ` Peter Seiderer
2016-05-10  7:48         ` Oscar Gomez Fuente
2016-05-10 11:09           ` Oscar Gomez Fuente
2016-05-09 20:36     ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox