07-07-2016, 03:25 PM
(This post was last modified: 07-13-2016, 08:16 AM by martinayotte.)
You first need to define the pin in pinctrl section, probably after Vdevice@0 :
Then, you declare the device (again after vdevice@0) :
Then, recompile the dtb (always keep a backup of the original)
Code:
my_pps_pin@0 {
linux,phandle = <0xba>;
phandle = <0xba>;
allwinner,pins = "PC8";
allwinner,function = "gpio_in";
allwinner,pname = "pps_gpio";
allwinner,muxsel = <0x0>;
allwinner,pull = <0x1>;
allwinner,drive = <0x0>;
allwinner,data = <0xffffffff>;
};
Then, you declare the device (again after vdevice@0) :
Code:
ppsgpio_device@0 {
compatible = "pps-gpio";
gpios = <0x30 0x2 0x8 0x0 0x0 0x0 0x0>;
pinctrl-names = "default";
pinctrl-0 = <0xba>;
status = "okay";
};
Then, recompile the dtb (always keep a backup of the original)