PPS-GPIO
#9
(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. Smile  i'll give it a try after the wedding... maybe tomorrow.


Messages In This Thread
PPS-GPIO - by Sebastian - 06-30-2016, 06:05 AM
RE: PPS-GPIO - by janjwerner - 06-30-2016, 10:43 AM
RE: PPS-GPIO - by Sebastian - 06-30-2016, 11:50 AM
RE: PPS-GPIO - by lospinos - 07-05-2016, 09:01 PM
RE: PPS-GPIO - by Sebastian - 07-06-2016, 11:29 PM
RE: PPS-GPIO - by MarkHaysHarris777 - 07-06-2016, 11:59 PM
RE: PPS-GPIO - by Sebastian - 07-07-2016, 01:04 AM
RE: PPS-GPIO - by martinayotte - 07-07-2016, 03:25 PM
RE: PPS-GPIO - by Sebastian - 07-07-2016, 10:46 PM
RE: PPS-GPIO - by tllim - 07-08-2016, 12:55 PM
RE: PPS-GPIO - by Sebastian - 07-10-2016, 11:59 AM
RE: PPS-GPIO - by tllim - 07-12-2016, 07:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  GPIO specifications in device tree ramstadt 1 3,154 01-16-2019, 03:17 PM
Last Post: ramstadt
  Low-Level-GPIO-Access Thoams131 2 4,148 01-11-2017, 02:54 PM
Last Post: Thoams131
  C#.NET / Mono GPIO library? abutler77 0 2,946 06-12-2016, 10:34 PM
Last Post: abutler77
  Lazarus and GPIO gbestwick 0 2,164 05-22-2016, 08:51 PM
Last Post: gbestwick
  GPIO javascript library. neeeds 1 3,629 02-19-2016, 11:31 PM
Last Post: limitlesscodes
  Questions about GPIO igna09 11 18,164 02-17-2016, 03:51 PM
Last Post: limitlesscodes

Forum Jump:


Users browsing this thread: 1 Guest(s)