LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-12-2017, 03:23 AM   #1
Must_ba
LQ Newbie
 
Registered: May 2017
Posts: 9

Rep: Reputation: Disabled
Linux Camera Driver Communication Enable Pin Setting


Hello ;
I am writing mipi csi-2 camera driver on linux target board i.MX6Q but I have problem about communication enable signal. I have the technical data sheet in my hand .But the communication enable register or another info about how to set or get this signal is not mentioned. In this specification I need to give XCE signal to start communication with camera and I have 4 wire serial data lanes and I2C lanes. How can I access this XCE lane to give high and low values to start communication . It would be from device tree or directly accessing the corresponding XCE register from Wandboard Quad. I couldnt find which register address or how to access this XCE signal from device tree. These are the neccessary informations about XCE signal from camera datasheet;
1. XCE: Communication enable 4-wire: XCE pin and I2C: Fixed to High
2.The pin for 4-wire serial communication and I2C communication is shared, so the external pin XCE must be fixed to power supply side when using I2C communication

Also the schematic of the communication is attached . It would be helpful to look at I think.

These are the some information about that other information of XCE is about how to use it while configuring camera . I need some advice or any idea to figure out how to solve this issue.

Thanks.

Best Regards
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2017-07-12 10-33-48.png
Views:	21
Size:	161.5 KB
ID:	25456  

Last edited by Must_ba; 07-13-2017 at 12:06 PM. Reason: Misinformationed
 
Old 07-13-2017, 10:31 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The disgram you supply contradicts the information you have. Only one of them can be right. Looking at the diagram. I am no i2c expert and this is datasheet reading & inspired guesswork only.

XCLR = Some class of active low reset. It should be /XCLR (bar over the top indicating active low)
XCE = Chip Enable; low during comms activity.
SCK = Some class of clock controlling the baud rate.
SDI, SDO = Data In & Out.

Is that what you're looking for? I don't see this working with XCE high. But you clearly need power from somewhere, and you might be following instructions for a different circumstance.

Last edited by business_kid; 07-13-2017 at 10:33 AM.
 
Old 07-13-2017, 11:58 AM   #3
Must_ba
LQ Newbie
 
Registered: May 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
The disgram you supply contradicts the information you have. Only one of them can be right. Looking at the diagram. I am no i2c expert and this is datasheet reading & inspired guesswork only.

XCLR = Some class of active low reset. It should be /XCLR (bar over the top indicating active low)
XCE = Chip Enable; low during comms activity.
SCK = Some class of clock controlling the baud rate.
SDI, SDO = Data In & Out.

Is that what you're looking for? I don't see this working with XCE high. But you clearly need power from somewhere, and you might be following instructions for a different circumstance.
Thanks for your reply after your post I realized that I didnt specify what i need .I will edit the question sorry. In this specification I need to give XCE signal to start communication with camera and I have 4 wire serial data lanes . How can I access this XCE lane to give high and low values to start communication . It would be from device tree or directly accessing the XCE register from Wandboard Quad. I couldnt find which register address or How to access this XCE signal from device tree.
 
Old 07-14-2017, 01:51 PM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
That's an electronic hardware problem, usually handled by a particular piece of software, usually a driver or low level comms program. XCE should be handled by the driver for the i2c port and you shouldn't have to worry about it. That's what firmware often does - manage the (perhaps non x86) hardware peripherals in your box.

No great ideas for you beyond look for something in the kernel, or elsewhere that does the job. Identify your i2c devicem and see drives it. I see you're not quibbling with my "analysis."
 
  


Reply

Tags
camera, device driver, embedded, linux



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
setting up serial communication from desktop through USB port in linux terminal raphtor Linux - Networking 9 12-21-2022 06:22 AM
Webcam Not Recognized: Sony Visual Communication Camera PCGA-UVC10 pirate4lord Linux - Hardware 6 04-09-2011 03:01 AM
Importing Video from camera into (Lucid) via firewire (4 pin) hilgerps Linux - Newbie 4 08-15-2010 02:03 PM
Character device driver for communication between two pc's in linux code??? kanodiapawan Programming 5 04-03-2010 07:57 AM
need help setting up camera in linux smeezekitty Linux - Newbie 9 10-09-2009 08:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:59 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
Open Source Consulting | Domain Registration