LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-03-2016, 12:57 AM   #1
bkpawar_linux
LQ Newbie
 
Registered: Apr 2011
Posts: 10

Rep: Reputation: 0
How to change pinmux changes in kernel driver at run time


I know using dts files can modify the pin muxing statically, but want to do it at run time as below:

1. configure eSPI1 in spi mode zero as below in board dtsi file

MISO - pulled high
CLOCK - pulled down
MOSI - pulled down
CS - pulled high

2. When SPI is not in used by any application or processor goes to standby pull down the CS and MISO lines

I tried to implement the logic provided in but no luck.
https://www.kernel.org/doc/Documentation/pinctrl.txt

How one can achieve this in Linux kernel driver?
Any example would be good enough.


Thanks in advance for your kind help.

Last edited by bkpawar_linux; 08-03-2016 at 02:07 AM.
 
Old 08-03-2016, 03:04 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
I have a vague memory of some additions to the kernel to allow for dynamic device tree stuff. I just don't recall much more than that. I think that's what you want to look into. Might have been a guy named Guenther on LKML.
 
Old 08-05-2016, 03:47 AM   #3
bkpawar_linux
LQ Newbie
 
Registered: Apr 2011
Posts: 10

Original Poster
Rep: Reputation: 0
So it means there is no framework provided by Linux kernel currently to change pin mux run time.
 
  


Reply

Tags
driver, kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
So... I got fbset working, can change resolution at run-time. Luridis Linux From Scratch 0 04-18-2014 08:45 AM
[SOLVED] Change the label (name ) of a pushbutton in Motif at run time. hdavis Programming 2 02-17-2014 04:29 PM
compute the run time and sleep time of a process in kernel 2.4 quartaela Linux - Kernel 0 12-19-2012 09:44 PM
How to change Linux Kernel to Real Time OS Arvind1572 Linux - Kernel 9 06-23-2010 12:47 AM
change cron.daily run time jimmyjiang Red Hat 4 03-02-2007 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration