Changes between Version 17 and Version 18 of linux/devicetree


Ignore:
Timestamp:
07/05/2024 04:38:50 PM (5 months ago)
Author:
Tim Harvey
Comment:

add another example for fixfdt showing how you can alter large arrays of data such as pinmux

Legend:

Unmodified
Added
Removed
Modified
  • linux/devicetree

    v17 v18  
    8282  - disable PCI via {{{fixfdt}}} script:
    8383{{{
    84 setenv fixfdt 'fdt addr $fdt_addr_r; fdt resize; fdt set /soc@0/pcie@33800000 status disabled'
     84setenv fixfdt 'fdt addr $fdt_addr_r && fdt resize && fdt set /soc@0/pcie@33800000 status disabled'
    8585saveenv
    8686}}}
    8787  - limit PCI link to Gen 1 (default is Gen2 for Venice)
    8888{{{
    89 setenv fixfdt 'fdt addr $fdt_addr_r; fdt resize; fdt set /soc@0/pcie@33800000 fsl,max-link-speed [00 00 00 01]'
    90 saveenv
     89setenv fixfdt 'fdt addr $fdt_addr_r && fdt resize && fdt set /soc@0/pcie@33800000 fsl,max-link-speed [00 00 00 01]'
     90saveenv
     91}}}
     92  - change the pinmux registers for sdhc3:
     93{{{
     94setenv fixfdt 'fdt addr $fdt_addr_r && fdt resize && fdt set /soc@0/bus@30000000/pinctrl@30330000/usdhc3-200mhzgrp fsl,pins <0x00000138 0x000003a0 0x00000000 0x00000012 0x00000000 0x00000182 0x0000013c 0x000003a4 0x00000000 0x00000002 0x00000000 0x000001d6 0x0000011c 0x00000384 0x00000000 0x00000002 0x00000000 0x000001d6 0x00000120 0x00000388 0x00000000 0x00000002 0x00000000 0x000001d6 0x00000124 0x0000038c 0x00000000 0x00000002 0x00000000 0x000001d6 0x00000128 0x00000390 0x00000000 0x00000002 0x00000000 0x000001d6 0x00000130 0x00000398 0x00000000 0x00000002 0x00000000 0x000001d6 0x00000100 0x00000368 0x00000000 0x00000002 0x00000000 0x000001d6 0x00000104 0x0000036c 0x00000000 0x00000002 0x00000000 0x000001d6 0x00000108 0x00000370 0x00000000 0x00000002 0x00000000 0x000001d6 0x000000fc 0x00000364 0x00000000 0x00000002 0x00000000 0x00000196>
    9195}}}
    9296 * Newport: U-Boot uses a live dt which is also passed to the kernel (dtb is not loaded) so you can alter the dt before running your normal bootscript
     
    99103  - disable PCI via {{{fixfdt}}} script:
    100104{{{
    101 setenv fixfdt 'fdt addr ${fdt_addr}; fdt resize; fdt set /soc/pcie@0x01000000 status disabled'
     105setenv fixfdt 'fdt addr ${fdt_addr} && fdt resize && fdt set /soc/pcie@0x01000000 status disabled'
    102106saveenv
    103107}}}