Dear All,
I am using Beaglebone green running linux 4.12.0-dirty.
I am trying to get HX117 adc work. I am facing some issues.


I am getting this error

 hx711-gpio: probe of weight@0 failed with error -22
...............
[    1.926416] hx711-gpio weight@0: GPIO lookup for consumer sck
[    1.932575] hx711-gpio weight@0: using device tree for GPIO lookup
[    1.939397] of_get_named_gpiod_flags: parsed 'sck-gpios' property of 
node '/weight@0[0]' - status (0)
[    1.949245] hx711-gpio weight@0: GPIO lookup for consumer dout
[    1.955341] hx711-gpio weight@0: using device tree for GPIO lookup
[    1.961894] of_get_named_gpiod_flags: parsed 'dout-gpios' property of 
node '/weight@0[0]' - status (0)
[    1.971735] hx711-gpio weight@0: weight@0 supply avdd not found, using 
dummy regulator
[    1.985324] mmcblk0: mmc0:0001 SD 7.32 GiB 
[    1.994758]  mmcblk0: p1 p2
[    2.002936] hx711-gpio: probe of weight@0 failed with error -22
................

My device tree:

/*
 * 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 Public License version 2 as
 * published by the Free Software Foundation.
 */
/dts-v1/;
/plugin/;

#include "am33xx.dtsi"
#include "am335x-bone-common.dtsi"
#include "am335x-bonegreen-common.dtsi"

/ {
    model = "TI AM335x BeagleBone Green";
    compatible = "ti,am335x-bone-green", "ti,am335x-bone-black", 
"ti,am335x-bone", "ti,am33xx";

 weight@0 {

        pinctrl-names = "default";
        pinctrl-0 = <&weight_pins>;

        compatible = "avia,hx711";
        sck-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
        dout-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
        avdd-suppy = <&avdd>;
        
    };
    

};

    &am33xx_pinmux{

            weight_pins: pinmux_weight_pins {
                pinctrl-single,pins = <
                    0x078 0x37    /* P9_12: gpio1_28 reset, INPUT_PULLUP | 
MODE7 */
                    0x040 0x17    /* P9_15: gpio1_16 DC, OUTPUT_PULLUP | 
MODE7 */
                >;
            };
            

        };
    

    
&epwmss1 {
    status = "okay";
};

&ehrpwm1 {
    status = "okay";
};

    

It would be great if someone could help me out.

-- 
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/7cc72306-9c5a-4f5e-80de-b60a8c1dd099%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to