07-08-2016, 12:55 PM
(07-07-2016, 10:46 PM)Sebastian Wrote:(07-07-2016, 03:25 PM)martinayotte Wrote: You first need to define the pin in pinctrl section, probably after Vdevice@0 :
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"; gpio = <0x30 0x2 0x8 0x0>; pinctrl-names = "default"; pinctrl-0 = <0xba>; status = "okay"; };
Then, recompile the dtb (always keep a backup of the original)
thx.i'll give it a try after the wedding... maybe tomorrow.
Congratulation on the wedding.


i'll give it a try after the wedding... maybe tomorrow.