* Regarding dtc+cpp support
@ 2013-04-18 9:12 Padma Venkat
[not found] ` <CAAgF-BeFKxK4=myPjHHWt9VxsyYQFen8c5c_9mQkbPo3n1oqJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Padma Venkat @ 2013-04-18 9:12 UTC (permalink / raw)
To: Stephen Warren, Sylwester Nawrocki
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Hi Stephen,
I am trying to add a header file for samsung audio subsystem clk
definitions, which can be used in kernel and dt files.
I applied following patches posted by you in my working tree.
[1/7] kbuild: create an "include chroot" for DT bindings
[2/7] kbuild: fixdep: support concatenated dep files
[3/7] kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc
[4/7] kbuild: always run gcc -E on *.dts, remove cmd_dtc_cpp
[5/7] ARM: dt: add header to define GPIO flags
[6/7] ARM: dt: add header to define IRQ flags
[7/7] ARM: dt: create a DT header for the GIC
I created a header file in
arch/arm/boot/dts/include/clk/samsung-audss-clk.h and I included this
header in driver and dtsi files
Please see the code snippet in dtsi below.
#include <dt-bindings/clk/samsung-audss-clk.h>
/include/ "skeleton.dtsi"
/include/ "exynos5250-pinctrl.dtsi
In driver it is compiling successfully but in dtsi files I am getting
the follwing compilation error.
Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error
FATAL ERROR: Unable to parse input tree
make[1]: *** [arch/arm/boot/dts/exynos5250-arndale.dtb] Error 1
make[1]: *** Waiting for unfinished jobs....
DTC arch/arm/boot/dts/exynos5250-snow.dtb
Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error
FATAL ERROR: Unable to parse input tree
make[1]: *** [arch/arm/boot/dts/exynos5250-smdk5250.dtb] Error 1
Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error
FATAL ERROR: Unable to parse input tree
make[1]: *** [arch/arm/boot/dts/exynos5250-snow.dtb] Error 1
make: *** [dtbs] Error 2
make: *** Waiting for unfinished jobs....
where "#include <dt-bindings/clk/samsung-audss-clk.h>" is the 21st
line in the dtsi file.
Please let me know if any extra patches are required to solve this
compilation error?
Best Regards
Padma
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <CAAgF-BeFKxK4=myPjHHWt9VxsyYQFen8c5c_9mQkbPo3n1oqJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Regarding dtc+cpp support [not found] ` <CAAgF-BeFKxK4=myPjHHWt9VxsyYQFen8c5c_9mQkbPo3n1oqJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-04-18 14:49 ` Jon Hunter [not found] ` <517007F6.3010107-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Jon Hunter @ 2013-04-18 14:49 UTC (permalink / raw) To: Padma Venkat Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Stephen Warren, Sylwester Nawrocki On 04/18/2013 04:12 AM, Padma Venkat wrote: > Hi Stephen, > > I am trying to add a header file for samsung audio subsystem clk > definitions, which can be used in kernel and dt files. > I applied following patches posted by you in my working tree. > > > [1/7] kbuild: create an "include chroot" for DT bindings > [2/7] kbuild: fixdep: support concatenated dep files > [3/7] kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc > [4/7] kbuild: always run gcc -E on *.dts, remove cmd_dtc_cpp > [5/7] ARM: dt: add header to define GPIO flags > [6/7] ARM: dt: add header to define IRQ flags > [7/7] ARM: dt: create a DT header for the GIC > > I created a header file in > arch/arm/boot/dts/include/clk/samsung-audss-clk.h and I included this > header in driver and dtsi files > > Please see the code snippet in dtsi below. > > #include <dt-bindings/clk/samsung-audss-clk.h> > /include/ "skeleton.dtsi" > /include/ "exynos5250-pinctrl.dtsi Try making all of the above "#include" ... #include <dt-bindings/clk/samsung-audss-clk.h> #include "skeleton.dtsi" #include "exynos5250-pinctrl.dtsi > In driver it is compiling successfully but in dtsi files I am getting > the follwing compilation error. > > Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error > FATAL ERROR: Unable to parse input tree > make[1]: *** [arch/arm/boot/dts/exynos5250-arndale.dtb] Error 1 > make[1]: *** Waiting for unfinished jobs.... > DTC arch/arm/boot/dts/exynos5250-snow.dtb > Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error > FATAL ERROR: Unable to parse input tree > make[1]: *** [arch/arm/boot/dts/exynos5250-smdk5250.dtb] Error 1 > Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error > FATAL ERROR: Unable to parse input tree > make[1]: *** [arch/arm/boot/dts/exynos5250-snow.dtb] Error 1 > make: *** [dtbs] Error 2 > make: *** Waiting for unfinished jobs.... > > where "#include <dt-bindings/clk/samsung-audss-clk.h>" is the 21st > line in the dtsi file. > > Please let me know if any extra patches are required to solve this > compilation error? I was seeing some compile errors when I had a mixture of /include/ and #include. Cheers Jon ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <517007F6.3010107-l0cyMroinI0@public.gmane.org>]
* Re: Regarding dtc+cpp support [not found] ` <517007F6.3010107-l0cyMroinI0@public.gmane.org> @ 2013-04-18 16:21 ` Padma Venkat [not found] ` <CAAgF-BefLWjRz3TXb6ESVQVA1Xno-z-WW2QVg6pNa+6_YW7AUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Padma Venkat @ 2013-04-18 16:21 UTC (permalink / raw) To: Jon Hunter Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Stephen Warren, Sylwester Nawrocki Hi, On Thu, Apr 18, 2013 at 8:19 PM, Jon Hunter <jon-hunter-l0cyMroinI0@public.gmane.org> wrote: > > On 04/18/2013 04:12 AM, Padma Venkat wrote: >> Hi Stephen, >> >> I am trying to add a header file for samsung audio subsystem clk >> definitions, which can be used in kernel and dt files. >> I applied following patches posted by you in my working tree. >> >> >> [1/7] kbuild: create an "include chroot" for DT bindings >> [2/7] kbuild: fixdep: support concatenated dep files >> [3/7] kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc >> [4/7] kbuild: always run gcc -E on *.dts, remove cmd_dtc_cpp >> [5/7] ARM: dt: add header to define GPIO flags >> [6/7] ARM: dt: add header to define IRQ flags >> [7/7] ARM: dt: create a DT header for the GIC >> >> I created a header file in >> arch/arm/boot/dts/include/clk/samsung-audss-clk.h and I included this >> header in driver and dtsi files >> >> Please see the code snippet in dtsi below. >> >> #include <dt-bindings/clk/samsung-audss-clk.h> >> /include/ "skeleton.dtsi" >> /include/ "exynos5250-pinctrl.dtsi > > Try making all of the above "#include" ... I haven't changed all dts files but I tried below with no success. > > #include <dt-bindings/clk/samsung-audss-clk.h> > #include "skeleton.dtsi" > #include "exynos5250-pinctrl.dtsi > >> In driver it is compiling successfully but in dtsi files I am getting >> the follwing compilation error. >> >> Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error >> FATAL ERROR: Unable to parse input tree >> make[1]: *** [arch/arm/boot/dts/exynos5250-arndale.dtb] Error 1 >> make[1]: *** Waiting for unfinished jobs.... >> DTC arch/arm/boot/dts/exynos5250-snow.dtb >> Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error >> FATAL ERROR: Unable to parse input tree >> make[1]: *** [arch/arm/boot/dts/exynos5250-smdk5250.dtb] Error 1 >> Error: arch/arm/boot/dts/exynos5250.dtsi:21.1-9 syntax error >> FATAL ERROR: Unable to parse input tree >> make[1]: *** [arch/arm/boot/dts/exynos5250-snow.dtb] Error 1 >> make: *** [dtbs] Error 2 >> make: *** Waiting for unfinished jobs.... >> >> where "#include <dt-bindings/clk/samsung-audss-clk.h>" is the 21st >> line in the dtsi file. >> >> Please let me know if any extra patches are required to solve this >> compilation error? > > I was seeing some compile errors when I had a mixture of /include/ and > #include. > > Cheers > Jon Thanks Padma ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <CAAgF-BefLWjRz3TXb6ESVQVA1Xno-z-WW2QVg6pNa+6_YW7AUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: Regarding dtc+cpp support [not found] ` <CAAgF-BefLWjRz3TXb6ESVQVA1Xno-z-WW2QVg6pNa+6_YW7AUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2013-04-18 16:57 ` Jon Hunter [not found] ` <5170260C.4000700-l0cyMroinI0@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Jon Hunter @ 2013-04-18 16:57 UTC (permalink / raw) To: Padma Venkat Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Stephen Warren, Sylwester Nawrocki On 04/18/2013 11:21 AM, Padma Venkat wrote: > Hi, > > On Thu, Apr 18, 2013 at 8:19 PM, Jon Hunter <jon-hunter-l0cyMroinI0@public.gmane.org> wrote: >> >> On 04/18/2013 04:12 AM, Padma Venkat wrote: >>> Hi Stephen, >>> >>> I am trying to add a header file for samsung audio subsystem clk >>> definitions, which can be used in kernel and dt files. >>> I applied following patches posted by you in my working tree. >>> >>> >>> [1/7] kbuild: create an "include chroot" for DT bindings >>> [2/7] kbuild: fixdep: support concatenated dep files >>> [3/7] kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc >>> [4/7] kbuild: always run gcc -E on *.dts, remove cmd_dtc_cpp >>> [5/7] ARM: dt: add header to define GPIO flags >>> [6/7] ARM: dt: add header to define IRQ flags >>> [7/7] ARM: dt: create a DT header for the GIC >>> >>> I created a header file in >>> arch/arm/boot/dts/include/clk/samsung-audss-clk.h and I included this >>> header in driver and dtsi files >>> >>> Please see the code snippet in dtsi below. >>> >>> #include <dt-bindings/clk/samsung-audss-clk.h> >>> /include/ "skeleton.dtsi" >>> /include/ "exynos5250-pinctrl.dtsi >> >> Try making all of the above "#include" ... > > I haven't changed all dts files but I tried below with no success. I should mentioned that you should also make any /include/ in the *.dtsi above #include too. Cheers Jon ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <5170260C.4000700-l0cyMroinI0@public.gmane.org>]
* Re: Regarding dtc+cpp support [not found] ` <5170260C.4000700-l0cyMroinI0@public.gmane.org> @ 2013-04-19 5:56 ` Padma Venkat 0 siblings, 0 replies; 5+ messages in thread From: Padma Venkat @ 2013-04-19 5:56 UTC (permalink / raw) To: Jon Hunter Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Stephen Warren, Sylwester Nawrocki On Thu, Apr 18, 2013 at 10:27 PM, Jon Hunter <jon-hunter-l0cyMroinI0@public.gmane.org> wrote: > > On 04/18/2013 11:21 AM, Padma Venkat wrote: >> Hi, >> >> On Thu, Apr 18, 2013 at 8:19 PM, Jon Hunter <jon-hunter-l0cyMroinI0@public.gmane.org> wrote: >>> >>> On 04/18/2013 04:12 AM, Padma Venkat wrote: >>>> Hi Stephen, >>>> >>>> I am trying to add a header file for samsung audio subsystem clk >>>> definitions, which can be used in kernel and dt files. >>>> I applied following patches posted by you in my working tree. >>>> >>>> >>>> [1/7] kbuild: create an "include chroot" for DT bindings >>>> [2/7] kbuild: fixdep: support concatenated dep files >>>> [3/7] kbuild: cmd_dtc_cpp: extract deps from both gcc -E and dtc >>>> [4/7] kbuild: always run gcc -E on *.dts, remove cmd_dtc_cpp >>>> [5/7] ARM: dt: add header to define GPIO flags >>>> [6/7] ARM: dt: add header to define IRQ flags >>>> [7/7] ARM: dt: create a DT header for the GIC >>>> >>>> I created a header file in >>>> arch/arm/boot/dts/include/clk/samsung-audss-clk.h and I included this >>>> header in driver and dtsi files >>>> >>>> Please see the code snippet in dtsi below. >>>> >>>> #include <dt-bindings/clk/samsung-audss-clk.h> >>>> /include/ "skeleton.dtsi" >>>> /include/ "exynos5250-pinctrl.dtsi >>> >>> Try making all of the above "#include" ... >> >> I haven't changed all dts files but I tried below with no success. > > I should mentioned that you should also make any /include/ in the *.dtsi > above #include too. It is working after all dtsi files modified. Thanks Padma > > Cheers > Jon ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-04-19 5:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18 9:12 Regarding dtc+cpp support Padma Venkat
[not found] ` <CAAgF-BeFKxK4=myPjHHWt9VxsyYQFen8c5c_9mQkbPo3n1oqJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-18 14:49 ` Jon Hunter
[not found] ` <517007F6.3010107-l0cyMroinI0@public.gmane.org>
2013-04-18 16:21 ` Padma Venkat
[not found] ` <CAAgF-BefLWjRz3TXb6ESVQVA1Xno-z-WW2QVg6pNa+6_YW7AUg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-18 16:57 ` Jon Hunter
[not found] ` <5170260C.4000700-l0cyMroinI0@public.gmane.org>
2013-04-19 5:56 ` Padma Venkat
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.