I think dtc doesn't do the preprocess of the include files. The easiest way might be to follow the instructions here[1] to find the sources on your bone. Put your new .dts file in with the sources in src/arm and run make.
--Mark [1] https://elinux.org/EBC_Exercise_31_Dallas_1-Wire On Monday, November 18, 2019 at 11:22:57 AM UTC-5, Fohnbit wrote: > > 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 <robert...@gmail.com <javascript:>> > * > * 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 beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/9a22fcfb-5701-4799-bfcf-9d05f2b65775%40googlegroups.com.