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>;
            };
        };
    };
};


On 03/05/17 08:06, William Hermans wrote:
Additionally. This is an error that one typically gets, when trying to compile one of those overlays without compiling it from the bb-overlay git project. e.g. downloading one file, and trying ot compile it manually through dtc. Instead of putting your source file into the src/arm directory, and moving into the git root directory and issuing "make". Two ways to go about that, but we can get to that later.

So, knowing what command you used EXACTLY what command when you attempted to build your file would be necessary.

On Tue, May 2, 2017 at 5:00 PM, William Hermans <[email protected] <mailto:[email protected]>> wrote:

    Without the source, no one will be able to give you a correct
    answer. That is, the source file EXACTLY how it is when you got
    that error.

    On Tue, May 2, 2017 at 4:39 PM, bianchi <[email protected]
    <mailto:[email protected]>> wrote:

        Hello everyone,

        I have question regarding compiling overlay for cape,

        I got the example from :
        https://github.com/beagleboard/bb.org-overlays/tree/master/src/arm
        <https://github.com/beagleboard/bb.org-overlays/tree/master/src/arm>

        Some information that I can collect,
        I tried to compile with on these lines  :
        |
        #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
        Linuxbeaglebone 4.4.54-ti-r93 #1 SMP Fri Mar 17 13:08:22 UTC
        2017 armv7l GNU/Linux

        |



        the error :
        |
         dtc EBB-GPIO-Example.dts -O dtb -o EBB-GPIO-Example-00A0.dtbo
        Error:EBB-GPIO-Example.dts:17.1-9syntax error
        FATAL ERROR:Unableto parse input tree
        |



        Does anyone know how to fix it ? or experience the same thing ?
        Thanks

-- 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 [email protected]
        <mailto:[email protected]>.
        To view this discussion on the web visit
        
https://groups.google.com/d/msgid/beagleboard/768e5011-4f45-423d-887b-95793fadb391%40googlegroups.com
        
<https://groups.google.com/d/msgid/beagleboard/768e5011-4f45-423d-887b-95793fadb391%40googlegroups.com?utm_medium=email&utm_source=footer>.
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.



--
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 [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORpu2%3DUmhBgCOQznXbV83mHanzb117jyQOSoc_Ly_Ybz0g%40mail.gmail.com <https://groups.google.com/d/msgid/beagleboard/CALHSORpu2%3DUmhBgCOQznXbV83mHanzb117jyQOSoc_Ly_Ybz0g%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
*

/*******/
Sent by Ubuntu LTS 16.04,
谢谢,
Regards,
Riko Ho
/*******/

*

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/2e9d8e13-3be2-2aba-1a31-35d59c31edf7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to