Jump to content

Recommended Posts

Posted

Good morning, I hope you all are fine.

 

I am working on orange pi pc plus with mainline kernel 4.4, I tried to use the on board button but it didn't work in spite of its existence in the device tree (after dumping the already running dtb) and I found that:

 pinctrl@01f02c00 {
                        compatible = "allwinner,sun8i-h3-r-pinctrl";
                        reg = <0x1f02c00 0x400>;
                        interrupts = <0x0 0x2d 0x4>;
                        clocks = <0x2d 0x3 0x1c 0x1d>;
                        clock-names = "apb", "hosc", "losc";
                        gpio-controller;
                        #gpio-cells = <0x3>;
                        interrupt-controller;
                        #interrupt-cells = <0x3>;
                        linux,phandle = <0x39>;
                        phandle = <0x39>;
                        
                        ...
                        ...
                          
                        key_pins@0 {
                                pins = "PL3";
                                function = "gpio_in";
                                linux,phandle = <0x3d>;
                                phandle = <0x3d>;
                        };

and also I found that :

        r_gpio_keys {
                compatible = "gpio-keys";
                pinctrl-names = "default";
                pinctrl-0 = <0x3d>;

                sw4 {   
                        label = "sw4";
                        linux,code = <0x100>;
                        gpios = <0x39 0x0 0x3 0x1>;
                };
        };

I made sure that the button connected to PL3, and in fact I don't know if that configuration in the device tree are right or wrong.

I installed acpid and started the service and ran "acpi_listen" and nothing printed during pressing the button, I also checked the allwinner h3 datasheet here to check if the above configuration is true or not but I can't map the info on the datasheet with the ones here. Please I need help on that or any clue will be useful.

 

Thanks for advice .

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines