Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    f133 挖坑2 ,修改 uart0 -> uart3 设置

    编译和烧写问题专区
    1
    1
    935
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      axw_fae LV 4 last edited by

      按很多大老的分享! https://bbs.aw-ol.com/topic/1673/全志芯片tina-linux-修改-uart-引脚-uart端口?lang=zh-CN

      按其操作! 结果卡死在这儿

      scrnli_2023_6_6 下午4-44-31.png

      自已一顿操作! 发现一些和一些大老分享不一样的地方

             uart3_pins_a: uart3_pins@0 {  /* for mq-r uart3 */
                      pins = "PB6", "PB7";
                      function = "uart3";
                      muxsel = <7>;
                      drive-strength = <10>;
                      bias-pull-up;
              };
      
              uart3_pins_b: uart3_pins@1 {  /* For mq-r uart3 */
                      pins = "PB6", "PB7";
                      function = "gpio_in";
              };
      
      

      function 很多大老指向 uart0 ,但是这个明明是给 uart3 用的!
      再者 muxsel 必需要改成 7 ,这个才是 uart3 功能

      /*
      
      &uart0 {
              pinctrl-names = "default", "sleep";
              pinctrl-0 = <&uart0_pins_a>;
              pinctrl-1 = <&uart0_pins_b>;
              status = "okay";
      };
      
      &uart3 {
              compatible = "allwinner,sun20iw1-dsp-uart";
              pinctrl-names = "default", "sleep";
              pinctrl-0 = <&uart3_pins_a>;
              pinctrl-1 = <&uart3_pins_a>;
              status = "disabled";
      };
      
      mq-r
      */
      
      &uart0 {
              pinctrl-names = "default", "sleep";
              pinctrl-0 = <&uart0_pins_a>;
              pinctrl-1 = <&uart0_pins_b>;
              status = "disabled";
      };
      
      &uart3 {
              pinctrl-names = "default", "sleep";
              pinctrl-0 = <&uart3_pins_a>;
              pinctrl-1 = <&uart3_pins_b>;
              status = "okay";
      };
      
      

      这一句一定要删掉,要不然就开不起来
      compatible = "allwinner,sun20iw1-dsp-uart";

      目前坑还在接著挖! 有新坑再上来 po 文

      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策