Adding device tree parameter to I2C bus #1812
-
Hi all, I realise there's been some similar questions on here, but I'm having a bit of trouble finding the correct way to do this as I'm relatively new to this. I would like to add a parameter to an I2C node in our device tree. In the flash directory, I've looked at the DTB being used, which is We're using a custom board, so we have the flashvars files where we add our custom pinmux files. In the flashvars file there seems to be an Then I also saw some answers pointing to tegrademo-devicetree. I've explored these three paths, and I'm wondering which one (if any) of the three is most applicable to this situation. Are there any examples I could follow? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Update: installing a manually compiled In
So all the What am I doing wrong here? Does the |
Beta Was this translation helpful? Give feedback.
-
Are you trying to modify the device tree used by the kernel, or one of the ones used by the bootloaders? Your OP talked about the kernel device tree, but the later post is talking about the bootloader ones. If it's the device tree for the kernel, it's probably easier to use If you really want to use a DTB overlay for this, and you have it set up the right way for getting applied by the bootloader at boot time, then you should stage the |
Beta Was this translation helpful? Give feedback.
-
I was indeed trying to modify the one used by the kernel, still starting to lean about all of this. Applying the patch in |
Beta Was this translation helpful? Give feedback.
Are you trying to modify the device tree used by the kernel, or one of the ones used by the bootloaders? Your OP talked about the kernel device tree, but the later post is talking about the bootloader ones.
If it's the device tree for the kernel, it's probably easier to use
devtool
to help generate a patch to the device tree source file(s).If you really want to use a DTB overlay for this, and you have it set up the right way for getting applied by the bootloader at boot time, then you should stage the
.dtbo
file either to${DEPLOY_DIR_IMAGE}
or under the${EXTERNAL_KERNEL_DEVICETREE}
directory, and add the name of that overlay file to theTEGRA_PLUGIN_MANAGER_OVERLAYS
variable in your ma…