导航

    全志在线开发者论坛

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

    t113-s3 的ws2812 使用报错 请大佬指教

    T Series
    1
    1
    22
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • F
      fffffff LV 6 最后由 编辑

      使用的是tina5.0 1.2的sdk 内核是5.4 使用的 io 是 pg13 看ds上描述 pg13是支持ledc的 但是启动的时候报错 设备树如下

      ledc_pins_a: ledc@0 {
      	pins = "PG13";
      	function = "ledc";
      	drive-strength = <10>;
      };
      ledc_pins_b: ledc@1 {
      	pins = "PG13";
      	function = "gpio_in";
      };     &ledc {
      pinctrl-0 = <&ledc_pins_a>;
      pinctrl-1 = <&ledc_pins_b>;
      led_count = <10>;
      output_mode = "RGB";
      reset_ns = <84>;
      t1h_ns = <800>;
      t1l_ns = <320>;
      t0h_ns = <300>;
      t0l_ns = <800>;
      wait_time0_ns = <84>;
      wait_time1_ns = <84>;
      wait_data_time_ns = <600000>;
      status	= "okay";
      

      };

      启动报错信息如下

      
      dmesg | grep led
      [    1.715427] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
      [    2.094801] sunxi_led_probe()1727 - start
      [    2.105868] sunxi_get_str_of_property()1575 - failed to get the string of propname led_regulator!
      [    2.115884] sunxi_register_led_classdev()1459 - led_classdev start
      [    2.135801] sunxi_ledc_pinctrl_init()1333 - devm_pinctrl_get_select_default failed!
      [    2.150192] sunxi_led_probe()1819 - finish
      [    2.363782] Loading compiled-in X.509 certificates
      [    3.443655] [sound  403][MACH simple_parse_of] simple_dai_link_of failed
      [    3.451341] cfg80211: Loading compiled-in X.509 certificates for regulatory database
      [    3.475205] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      [    3.484937] cfg80211: failed to load regulatory.db
      [    4.476174] [sound  403][MACH simple_parse_of] simple_dai_link_of failed
      [    5.595124] [sound  403][MACH simple_parse_of] simple_dai_link_of failed
      [    5.608815] [sound  403][MACH simple_parse_of] simple_dai_link_of failed
      [    5.768616] [sound  403][MACH simple_parse_of] simple_dai_link_of failed
      [    5.781471] [sound  403][MACH simple_parse_of] simple_dai_link_of failed
      1 条回复 最后回复 回复 引用 分享 0
      • 1 / 1
      • First post
        Last post

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

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