LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 09-05-2023, 02:32 PM   #1
Javiku
LQ Newbie
 
Registered: Sep 2023
Posts: 4

Rep: Reputation: 0
Question USB type-C switch in device tree?


Hello, I am writing a device tree for a custom board where a USB type-C 2:1 switch (FUSB340). This switch has the common port connected to a device connector and the two selectable ports are connected to two host connectors.
I want to describe this architecture in a device tree and I have found the "usb-c-connector" nodes to describe the host/device connectors, but I could not find anything about USB switches i.e. no bindings in the documentation or any implementation in arch/. There is no mainline driver for my switch and actually I could not find a driver for a USB 2.0 switch that is on my custom board either (FSUSB42). Therefore I am wondering if my approach is not right and the USB switches are not handled by specific drivers or even mentioned in device trees. There is a "USB Type-C Multiplexer/DeMultiplexer Switch support" sub menu in the menuconfig, but the list does not have any element that might fit my needs.
Has anyone ever used USB switches in embedded systems? I could program a very simple driver (it just needs to control the chip enable and the select signal), but USB switches must be a pretty common thing and I would be surprised if there was not a mainline solution already. Hence I would be grateful if I got some advice or even an example from an existing device tree if something like that has already been implemented.
Thanks and best regards.
 
  


Reply



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
Look for duplicates in folder tree A and folder tree B, then delete the duplicates only from A. grumpyskeptic Linux - Software 7 10-27-2018 10:23 PM
[SOLVED] using switch in a function to call another function with a switch but it is not going into 2 switch ... BW-userx Programming 2 08-20-2017 11:47 PM
what is the difference strict binary tree nad extended binary tree . tushar_pandey Programming 1 07-18-2012 11:30 AM
the bible = the tree of the knowledge of good and evil () Jesus = the tree of life Michael111 General 2 04-14-2004 04:28 PM
need a P-Tree (Patricia Tree) library manaskb Programming 1 11-02-2002 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:06 PM.

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