I was wondering if someone could point me to where the official device tree module documentation is located?
I’m doing some dts modifications, and I can find some of the node documentation within other forum posts as well as within the kernel sources. Unfortunately though there are some nodes that I am unable to find good / explicit documentation on, currently “terga_usb_cd”. I was hoping there would be an inclusion file with implementation details under .../nvidia-jetson-l4t/Linux_for_Tegra/sources/kernel/kernel-5.10/Documentation/devicetree/bindings/ something similar to “usb/nvidia,tegra-xudc.yaml” with a description of what the node is for and then a list of applicable properties. Am I looking in the wrong place? Does a complete set of documentation for the available Device Tree nodes exist?
But I can not find any other documentation on tegra_usb_cd or usb_cd.
Q: What’s your use case?
Right now I’m just trying to understand what all the usb related nodes do / what they mean and how they interact, but eventually I will be trying to put the USB2-0 port (with companion) permanently into host mode via overlay once the base image is flashed and configured.
But that is I guess a moot point, because while the usb_cd node is present in my case (due to the inclusion of the above file within my ‘base’ dtsi) it is not actually used within Nvidia’s Orin NX device-tree.
So is the “charger-detector” property of the xudc node just ignored, or would I need to set it to something else?
If the the “charger-detector” property of the xudc node is just ignored - is this a constant ‘always ignored’ or are there cases where I might need it set for using the Orin NX? To put it another way, is it safe to remove the “charger-detector” property from xudc and subsequently remove the usb_cd node?
Generally speaking - for future reference:
I was under the impression that the file mentioned above was part of NVIDIA’s codebase because it is under the NVIDIA specific directory “sources/hardware/nvidia” - is that an invalid assumption?
Is there a publicly available resource you could point me to that has documentation for all of the NVIDIA supported device tree nodes (and their properties), or is the node/property documentation just sprinkled around in the Developer Guide if it is common/relevant?
What is the exact point to focus on “charger-detector” here? Does this represent anything special to you?
This does not matter to functionality unless you have some special requirement.
I was under the impression that the file mentioned above was part of NVIDIA’s codebase because it is under the NVIDIA specific directory “sources/hardware/nvidia” - is that an invalid assumption?
Which jetpack release are you trying to use here? The rule is not correct. If some code could go into upstream kernel, then it will be in upstream one but not nvidia repo.
Is there a publicly available resource you could point me to that has documentation for all of the NVIDIA supported device tree nodes (and their properties), or is the node/property documentation just sprinkled around in the Developer Guide if it is common/relevant?
No such thing because there are too many drivers. Most of them are listed inside the kernel documentation. However, you need to know whether you are reading the correct files. That depends on experience. For example, check the device tree and driver code to make sure it is really something matches your driver.
It represents an unanswered/ignored set of questions.
I can see based on this latest outright ignoring of my questions (#1 and #2) and the cagey mildly defensive response that this line of inquiry is effectively dead. So I shall renew my efforts to find both (a) details for tegra_usb_cd and (b) what exactly the “charger-detector” property of xudcis/does elsewhere.
Thank you for all for your time and for answering some of my questions.