Here's mine:
/dts-v1/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "AQ-PRU-MDIO";
exclusive-use = "P8.43", "P8.44", "P8.45", "P8.46", "P8.39", "P8.40",
"P8.41", "P8.42", "P8.27", "P8.28", "P8.29", "P8.30", "pru1";
fragment@0 {
target = <0xdeadbeef>;
__overlay__ {
pinmux_pru_mdio_pins {
pinctrl-single,pins = <0xa8 0xd 0xac 0xd 0xa0 0xd 0xa4 0xd 0xb8 0x35 0xbc
0x35 0xb0 0x35 0xb4 0x35 0xe0 0x36 0xe8 0x36 0xe4 0x36 0xec 0x36>;
linux,phandle = <0x1>;
phandle = <0x1>;
};
};
};
fragment@1 {
target = <0xdeadbeef>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <0x1>;
};
};
__symbols__ {
pru_mdio_pins = "/fragment@0/__overlay__/pinmux_pru_mdio_pins";
};
__fixups__ {
am33xx_pinmux = "/fragment@0:target:0";
pruss = "/fragment@1:target:0";
};
__local_fixups__ {
fixup = "/fragment@1/__overlay__:pinctrl-0:0";
};
};
I constructed mine by modifying one of the existing dts files on the
beaglebone. I'll admit I don't completely understand it, but you could
trimming it down to only your pins.
On Tuesday, January 21, 2014 6:56:41 PM UTC-8, Christopher Hopwood wrote:
>
> Hello all,
>
> I'm trying to use the PRU gpio pins, but cannot get them to work. I've
> modified Doctor Yoder's device tree example to enable the PRU pins, but my
> program is still not getting the input. What am I doing wrong?
>
> Here is my overlay:
> /dts-v1/;
> /plugin/;
>
> /{
> compatible = "ti,beaglebone", "ti,beaglebone-black";
> part-number = "MAY-gpio-set";
> version = "00A0";
>
> fragment@0 {
> target = <&am33xx_pinmux>;
>
> __overlay__ {
> pinctrl_test: MAY-gpio-set {
> pinctrl-single,pins = <
>
> 0x0e4 0x36
> 0x0e0 0x36
>
>
> >;
> };
> };
> };
>
> fragment@1 {
> target = <&ocp>;
> __overlay__ {
> test_helper: helper {
> compatible = "bone-pinmux-helper";
> pinctrl-names = "default";
> pinctrl-0 = <&pinctrl_test>;
> status = "okay";
> };
> };
> };
> };
>
>
>
>
--
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].
For more options, visit https://groups.google.com/groups/opt_out.