#include <dt-bindings/board/am335x-bbw-bbb-base.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>debian@beaglebone:~/test$ dtc --version
Version: DTC 1.4.4
debian@beaglebone:~/test$ uname -a
Linux beaglebone 4.4.54-ti-r93 #1 SMP Fri Mar 17 13:08:22 UTC 2017 armv7l GNU/Linux
dtc EBB-GPIO-Example.dts -O dtb -o EBB-GPIO-Example-00A0.dtbo
Error: EBB-GPIO-Example.dts:17.1-9 syntax error
FATAL ERROR: Unable to parse input tree--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/768e5011-4f45-423d-887b-95793fadb391%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes I only use the "include" for a test on GPIO,
how can I use one of the overlay and modify it ? thanks
The complete code :
/*
* Copyright (C) 2012 Texas Instruments Incorporated -
http://www.ti.com/
*
* This program is free software; you can redistribute it and/or
modify
* it under the terms of the GNU General Purpose License Version 2
as
* published by the Free Software Foundation
*
* Original from:
github.com/jadonk/validation-scripts/blob/master/test-capemgr/
*
*
*/
/dts-v1/;
/plugin/;
#include <dt-bindings/board/am335x-bbw-bbb-base.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
/{
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "EBB-GPIO-Example";
version = "00A0";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
ebb_example: EBB_GPIO_Example {
pinctrl-single,pins = <
0x070 0x07 // P9_11 PINS$28
GPIO0_30 = 30 Output Mode7 pulldown
0x074 0x37 // P9_13 PINS$29
GPIO0_31 = 31 Input Mode7 pullup
/* OUTPUT GPIO(mode7) 0x07
pulldown, 0x17 pullup, 0x?f no pullup/down */
/* INPUT GPIO(mode7) 0x27 pulldown, 0x37
pullup, 0x?f no pullup/down */
>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
gpio_helper {
compatible = "gpio-of-helper";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&ebb_example>;
};
};
};
};
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/EdjUWbhg0w8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORpu2%3DUmhBgCOQznXbV83mHanzb117jyQOSoc_Ly_Ybz0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
/*******/
Sent by Ubuntu LTS 16.04,
谢谢,
Regards,
Riko Ho
/*******/
Yes I only use the "include" for a test on GPIO,
how can I use one of the overlay and modify it ? thanks
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/EdjUWbhg0w8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORqG13LXgS7vec5eCVz9%2Basv7CJk1%2BPmyN3Sq5sM_bFy%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Wow, thank you very much for that, I'll try and return to you
later on.
On Tue, May 2, 2017 at 10:25 PM, Riko Ho <antoni...@gmail.com> wrote:
> Wow, thank you very much for that, I'll try and return to you later on.
Just remember to use the repo
https://github.com/beagleboard/bb.org-overlays
@William Hermans
not a problem, learning is my part, ask to someone who knows better than me, making it easier.
hehehe, fsck yourself if you don't know how to answer...yes it is the sky is blue..and don't worry to answer if you don't know..as simple as that.
Done mate
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/EdjUWbhg0w8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORoSqf0Dw4P-PddnqpxEH7LXm%3DE9s-6Fymfx7L0eavCCNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Almost get there but there is error?
root@beaglebone:/home/debian/test/bb.org-overlays-master# make
src/arm/EBB-GPIO-Example.dtbo
DTC src/arm/EBB-GPIO-Example.dtbo
/bin/sh: 1: scripts/basic/fixdep: Permission denied
Makefile:136: recipe for target 'src/arm/EBB-GPIO-Example.dtbo'
failed
make[1]: *** [src/arm/EBB-GPIO-Example.dtbo] Error 126
Makefile:100: recipe for target 'src/arm/EBB-GPIO-Example.dtbo'
failed
make: *** [src/arm/EBB-GPIO-Example.dtbo] Error 2
root@beaglebone:/home/debian/test/bb.org-overlays-master#
Wow, thank you very much for that, I'll try and return to you later on.Just remember to use the repo https://github.com/beagleboard/bb.org-overlays The "examples" aren't just there to look pretty.. The repo is used in production, and everything is abstracted out to the makefile to make developers lives easier. Regards,
Fix it, thanks a lot for the clues
root@beaglebone:/home/debian/test/bb.org-overlays-master/scripts/basic#
ls -alh
total 12K
drwxr-xr-x 2 debian debian 4.0K May 2 11:02 .
drwxr-xr-x 3 debian debian 4.0K May 2 11:02 ..
-rw-r--r-- 1 debian debian 656 May 1 17:23 fixdep
root@beaglebone:/home/debian/test/bb.org-overlays-master/scripts/basic#
chmod +x fixdep
root@beaglebone:/home/debian/test/bb.org-overlays-master/scripts/basic#
cd ..
root@beaglebone:/home/debian/test/bb.org-overlays-master/scripts#
cd ..
root@beaglebone:/home/debian/test/bb.org-overlays-master# make
src/arm/EBB-GPIO-Example.dtbo
DTC src/arm/EBB-GPIO-Example.dtbo
hehehe, fsck yourself if you don't know how to answer...yes it is the sky is blue..and don't worry to answer if you don't know..as simple as that.
Done mate'