导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

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

    编译和烧写问题专区
    1
    1
    934
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • A
      axw_fae LV 4 最后由 编辑

      按很多大老的分享! 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 条回复 最后回复 回复 引用 分享 0
      • 1 / 1
      • First post
        Last post

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

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