[beagleboard] Re: Beaglebone black edit default am335x-boneblack.dts device tree

2016-10-12 Thread Leonardo Romor
Hello, I think I had a similar issue, and I would like to report it as well: If you set a gpio configuration with the dto the kernel correctly loads it, but when you export one gpio from that peripheral for the first time, the kernel reset the configuration. I solved this by running a script on

[beagleboard] Re: Beaglebone black edit default am335x-boneblack.dts device tree

2015-08-18 Thread Paco Dupont
Thanks for your answer Andrew but I need that the board setup correctly the pin at boot time (to avoid any trouble in the time elapsed between the DTB is load and the kernel is ready). I'm actually facing a strange thing, 1st the number I used to set gpio3_21 was wrong : gpio = <107 0>; This cal

[beagleboard] Re: Beaglebone black edit default am335x-boneblack.dts device tree

2015-08-18 Thread AndrewTaneGlen
I had trouble (viz. gave up) working with input pins with the device tree. I ended up doing all the init at run time (once I'd made sure nothing else was using the same pins in the device tree). Check that you have removed any reference to the HDMI in your 'am335x-bone-common-no-capemgr.dtsi' fi

[beagleboard] Re: Beaglebone black edit default am335x-boneblack.dts device tree

2015-08-18 Thread Paco Dupont
I've replace the last part I added (&ocp...) by Nelson's advice on this post : https://groups.google.com/d/msg/beagleboard/iW4i-xy9zJw/JFrr5M9_IwAJ &gpio3 { torout0 { gpio-hog; gpios = <107 0>; output-low; line-name = "TOR input"; }; }; Just tryin

[beagleboard] Re: Beaglebone black edit default am335x-boneblack.dts device tree

2015-08-18 Thread Paco Dupont
I've had that part in the .dts : &ocp{ torout: torout { pinctrl-names = "default"; pinctrl-0 = <&tor_output_pins>; status = "okay"; }; torin: torin{ pinctrl-names = "default"; pinctrl-0 = <&tor_input_pins>; status = "okay"; };