Hello,

I used the P9.12 pin for 1-wire ... this is working.

Now I want 2 lanes more. I thought to use for the second lane: P8.27 and 
P8.28

/*
 * Copyright (C) 2015 Robert Nelson <[email protected]>
 *
 * Virtual cape for onewire on connector pin P9.12
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

/* Modified by Connor Shapiro for use with P8.27 & P8.28 */

/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", 
"ti,beaglebone-green";

        /* identification */
        part-number = "BB-W1-P8.27_28";
        version = "00A0";

        /* state the resources this cape uses */
        exclusive-use =
                /* the pin header uses */
                "P8.27",
                "P8.28";

        /*
         * Free up the pins used by the cape from the pinmux helpers.
         */
        fragment@0 {
                target = <&ocp>;
                __overlay__ {
                        P8_27_pinmux { status = "disabled"; };
                        P8_28_pinmux { status = "disabled"; };
                };
        };
        
        fragment@1 {
                target = <&am33xx_pinmux>;
                __overlay__ {

                        dallas_w1_1_pins: pinmux-dallas-w1-1pins {
                                pinctrl-single,pins = < 
                                        BONE_P8_27 0x37
                                >;
                        };

                        dallas_w1_2_pins: pinmux-dallas-w1-2-pins {
                                pinctrl-single,pins = < 
                                        BONE_P8_28 0x37
                                >;
                        };
                };
        };
        fragment@2 {
                target-path="/";
                __overlay__ {

                        onewire2 {
                                status = "okay";
                                pinctrl-names = "default";
                                pinctrl-0 = <&dallas_w1_pins>;

                                compatible = "w1-gpio";
                                gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
                        };
                };
        };

        fragment@3 {
                target-path="/";
                __overlay__ {

                        onewire3 {
                                status = "okay";
                                pinctrl-names = "default";
                                pinctrl-0 = <&dallas_w1_pins>;

                                compatible = "w1-gpio";
                                gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;
                        };
                };
        };
};


But when I try to compile, I get an error:
> dtc -O dtb -o BB-W1-P8.27_28-00A0.dtbo -b o -@ BB-W1-P8.27_28-00A0.dts
Error: BB-W1-P8.27_28-00A0.dts:16.1-9 syntax error
FATAL ERROR: Unable to parse input tree

Line 16:

#include <dt-bindings/board/am335x-bbw-bbb-base.h>
Maybe this are not existing on my BBB?

Thank you!

-- 
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/f0ecf299-5d1f-4861-b7b5-ac7022ebd95b%40googlegroups.com.

Reply via email to