eQEP2 BeagleBone-Black

60 views
Skip to first unread message

Wim Hellenthal

unread,
Apr 29, 2016, 7:31:40 AM4/29/16
to BeagleBoard

Dear all,

Does anyone know of problems using the quadrature detector on BBB 3.8.13-bone70 ? It working fine on a BBB with 3.8.13-bone47. I'm using the same overlay file for both BBB versions. My test program does not show any counted pulses when using bone70.  bone47 works fine. The overlay file (before compilation) looks as follows:

/*
 * Enable eQEP2 on the Beaglebone White and Black
 */
/dts-v1/;
/plugin/;
/ {
    compatible = "ti,beaglebone", "ti,beaglebone-black";
    /* identification */
    part-number = "bone_eqep2";
    version     = "00A0";
    fragment@0 {
        target = <&am33xx_pinmux>;
        __overlay__ {
            pinctrl_eqep2: pinctrl_eqep2_pins {
                pinctrl-single,pins = <            
                  0x030 0x34  /* P8_12 = GPIO2_10 = EQEP2A_in, MODE4 */
                  0x034 0x34  /* P8_11 = GPIO2_11 = EQEP2B_in, MODE4 */
                >;
            };
        };
    };
   
    fragment@1 {
        target = <&epwmss2>;
        __overlay__ {
            status = "okay";
        };
    };
   
    fragment@2 {
            target = <&ocp>;
            __overlay__ {
                eqep2_helper {
                    compatible = "bone-pinmux-helper";
                    pinctrl-names = "default";
                    pinctrl-0 = <&pinctrl_eqep2>;
                    status = "okay";
                };
            };
        };
   
};
Reply all
Reply to author
Forward
0 new messages