Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 08-03-2016, 12:57 AM   #1
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.

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
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
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.


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 > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:53 AM.

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