Advertisement
zmatt

am335x-boneblack-custom-example.dts

Jun 26th, 2020 (edited)
1,408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "am335x-boneblack.dts"
  2. #include <dt-bindings/pinctrl/am33xx.h>
  3. #include <dt-bindings/board/am335x-bbw-bbb-base.h>
  4.  
  5. &{/chosen} {
  6.     base_dtb = "am335x-boneblack-custom-example.dts";   // <-- name of this file goes here
  7. };
  8.  
  9. // if you want to use UIO-PRUSS:
  10. #include "am335x-uio-pruss.dtsi"  // download from https://pastebin.com/yuFnTWWL
  11.  
  12.  
  13. // if you want to disable HDMI:
  14. &lcdc {  status = "disabled";  };
  15. &tda19988 {  status = "disabled";  };
  16.  
  17. // if you want to disable HDMI or just disable HDMI audio:
  18. / {  /delete-node/ sound;  };
  19. &mcasp0 {  status = "disabled";  };
  20.  
  21.  
  22. // example to enable UART4:
  23. &uart4 {
  24.     status = "okay";
  25.  
  26.     pinctrl-names = "default";
  27.     pinctrl-0 = <&uart4_pins>;
  28. };
  29. &am33xx_pinmux {
  30.     // Note that a label ("uart4_pins") cannot contain punctuation other than underscores and must be globally unique.
  31.     // On the other hand, for a node name ("uart4") it is conventional to use dashes as separators, not underscores, and
  32.     // it only needs to be unique within the parent node, which in this case is the pinmux controller, so putting "pins"
  33.     // or "pinmux" in the node name would be very redundant.
  34.     //
  35.     // My suggested naming scheme for pinmux nodes is:
  36.     //    some_thing_pins: some-thing { ... };
  37.     //
  38.     uart4_pins: uart4 {
  39.         pinctrl-single,pins = <
  40.             BONE_P9_13 ( PIN_OUTPUT_PULLUP | MUX_MODE6 )  // txd
  41.             BONE_P9_11 ( PIN_INPUT_PULLUP  | MUX_MODE6 )  // rxd
  42.             // uncomment if you're using these:
  43.         //  BONE_P8_33 ( PIN_OUTPUT_PULLUP | MUX_MODE6 )  // rts
  44.         //  BONE_P8_35 ( PIN_INPUT_PULLUP  | MUX_MODE6 )  // cts
  45.         >;
  46.     };
  47. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement