need a dts file to set some pins as pulldown interrupts in kernel using a DTO
I am using the latest stable ayufan bionic

I need to use a few of the gpio pins as input interrupts.   In an RPI that is a simple is setting a line the the /boot/firmware/config.txt file.
ex.  gpio=9,10,24,4=pd   to set pins 0.10,24,4 as pulldowns

But I guess that method has not been copied in the ayufan image.

That leaves me to rebuild the kernel (not wanting to do that) or use a DTO which I understand is a way to add functionality to the kernel without a complete recompile.

So I gotta believe someone has had a need of pins as interrupts on the rock64 and already has a working dts file.

Besides being some pretty arcane syntax I can find no docs on this that pertain specifically to the rock64 let alone a sample dts file.

Can anyone help out here with a working dts file and some details about how to compile/register it so it gets picked up at boot.

here for example is a beagle black dts file about all I could find.

   * Copyright (C) 2012 Texas Instruments Incorporated -
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Purpose License Version 2 as
   * published by the Free Software Foundation
   * Original from:
   * Modified by Derek Molloy for the example on
   * that maps GPIO pins for the example


       compatible = "ti,beaglebone", "ti,beaglebone-black";
       part-number = "WEIGU1";
       version = "00A0";
       fragment@0 {
           target = <&am33xx_pinmux>;
           __overlay__ {
               pinctrl_test: DM_GPIO_Test_Pins {
                   pinctrl-single,pins = <
                       0x044 0x07  /* P9_23 49  OUTPUT MODE7 - MUXA */
                       0x040 0x07  /* P9_15 48  OUTPUT MODE7 - MUXB */
                       0x1ac 0x07  /* P9_25 117 OUTPUT MODE7 - MUXT conflict mcasp0! */
                       0x0a4 0x07  /* P8_46 71  OUTPUT MODE7 - RTS conflict hdmi_bonelt! */
                       /* OUTPUT  GPIO(mode7) 0x07 pulldown, 0x17 pullup, 0x?f no pullup/down */
                       /* INPUT   GPIO(mode7) 0x27 pulldown, 0x37 pullup, 0x?f no pullup/down */

       fragment@1 {
           target = <&ocp>;
           __overlay__ {
               test_helper: helper {
                   compatible = "bone-pinmux-helper";
                   pinctrl-names = "default";
                   pinctrl-0 = <&pinctrl_test>;
                   status = "okay";

Possibly Related Threads…
Thread Author Replies Views Last Post
  Security Patches for the Kernel kwinz 8 1,813 01-16-2021, 05:34 PM
Last Post: kuleszdl
  Debian kernel stuck at 4.4.167 Enig123 5 1,817 12-29-2020, 12:57 PM
Last Post: kwinz
  Arch Linux Arm --> Kernel 5.8 breaks installation as365n4 12 5,655 08-31-2020, 01:41 AM
Last Post: as365n4
  mainline kernel sound support Openwrt lucize 2 1,797 05-01-2020, 05:09 PM
Last Post: PakoSt
  5.3 kernel support? csrf 5 3,223 04-18-2020, 11:34 PM
Last Post: CameronNemo
  Help troubleshooting kernel panic gabrielfin 3 2,136 03-02-2020, 04:18 PM
Last Post: gabrielfin
  Any advantages to using the mainline kernel dkebler 0 1,080 11-16-2019, 12:17 PM
Last Post: dkebler
  Does anybody run the mainline kernel? CameronNemo 3 2,282 09-09-2019, 07:56 PM
Last Post: CameronNemo
  ROCK64 Kernel compilation problem cao 0 1,438 01-21-2019, 01:21 AM
Last Post: cao
  LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs Raybuntu 193 129,034 01-17-2019, 05:25 AM
Last Post:

Forum Jump:

Users browsing this thread: 1 Guest(s)