Navigation

    全志在线开发者论坛

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

    T113S使用外置RTC问题

    Linux
    t113 rtc pcf8563
    6
    17
    6951
    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.
    • Y
      y97788 LV 5 last edited by whycan

      T113S使用i2c接口连接外置RTC初始化失败,这个是什么原因

      [    4.429716] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator
       [    4.444395] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
      [    4.452364] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x51)
      [    4.459795] rtc-pcf8563 2-0051: pcf8563_write_block_data: err=-22 addr=0e, data=03
      [    4.468327] rtc-pcf8563 2-0051: pcf8563_probe: write error
      [    4.474816] rtc-pcf8563: probe of 2-0051 failed with error -5
      [    4.481305] sunxi-i2c sunxi-i2c2: probe success
      [    4.488591] sunxi-i2c sunxi-i2c3: sunxi-i2c3 supply twi not found, using dummy regulator
      [    4.501228] sunxi-i2c sunxi-i2c3: probe success
      

      使用longanLinux kernel5.4设备树配置

       twi2_pins_a: twi2@0 {
       	pins = "PG14", "PG15";
       	function = "twi2";
       	drive-strength = <10>;
       };
      
       twi2_pins_b: twi2@1 {
       	pins = "PG14", "PG15";
       	function = "gpio_in";
       };
      
       &twi2 {
       clock-frequency = <400000>;
       pinctrl-0 = <&twi2_pins_a>;
       pinctrl-1 = <&twi2_pins_b>;
       pinctrl-names = "default", "sleep";
       twi_drv_used = <1>;
       dmas = <&dma 45>, <&dma 45>;
       dma-names = "tx", "rx";
       status = "okay";
       pcf8563: pcf8563@51 {
       	compatible = "nxp,pcf8563";
       	reg = <0x51>;
       	#clock-cells = <0>;
       };
      
      };
      
      1 Reply Last reply Reply Quote Share 1
      • YuzukiTsuru
        柚木 鉉 LV 9 last edited by

        i2cdetect看看,记得loglevel=1

        Y 2 Replies Last reply Reply Quote Share 0
        • Y
          y97788 LV 5 @YuzukiTsuru last edited by xiaowenge

          This post is deleted!
          1 Reply Last reply Reply Quote Share 0
          • Y
            y97788 LV 5 @YuzukiTsuru last edited by whycan

            @yuzukitsuru #

            `i2cdetect -y 2

                 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
            [14014.608115] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.620277] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3)
            00:          [14014.627829] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            -- [14014.636662] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4)
            -- [14014.644440] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.652705] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5)
            -- [14014.660196] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.668270] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6)
            -- [14014.675835] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.683910] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x7)
            -- [14014.691383] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.699452] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x8)
            -- [14014.706936] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.715014] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x9)
            -- [14014.723052] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.731113] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xa)
            -- [14014.738625] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.746699] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xb)
            -- [14014.754189] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.762267] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xc)
            -- [14014.769726] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.777807] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xd)
            -- [14014.785293] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.793369] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xe)
            -- [14014.800828] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.808904] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0xf)
            --
            [14014.816423] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            10: [14014.824652] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x10)
            -- [14014.832577] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.840647] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x11)
            -- [14014.848242] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.856325] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x12)
            -- [14014.863973] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.872047] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x13)
            -- [14014.879609] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.887688] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x14)
            -- [14014.895273] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.903351] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x15)
            -- [14014.910911] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.918989] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x16)
            -- [14014.926569] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.934648] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x17)
            -- [14014.942227] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.950303] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x18)
            -- [14014.957887] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.965966] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x19)
            -- [14014.973543] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.981619] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1a)
            -- [14014.989202] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14014.997285] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1b)
            -- [14015.004936] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.013009] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1c)
            -- [14015.020573] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.028648] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1d)
            -- [14015.036239] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.044316] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1e)
            -- [14015.051882] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.059952] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x1f)
            --
            [14015.067583] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            20: [14015.075812] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x20)
            -- [14015.083736] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.091808] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x21)
            -- [14015.099401] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.107477] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x22)
            -- [14015.115055] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.123133] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x23)
            -- [14015.130689] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.138771] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x24)
            -- [14015.146426] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.154498] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x25)
            -- [14015.162095] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.170137] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x26)
            -- [14015.177717] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.185796] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x27)
            -- [14015.193380] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.201454] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x28)
            -- [14015.209041] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.217118] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x29)
            -- [14015.224696] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.232772] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2a)
            -- [14015.240744] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.248808] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2b)
            -- [14015.256409] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.264484] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2c)
            -- [14015.272060] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.280122] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2d)
            -- [14015.287708] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.295785] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2e)
            -- [14015.303368] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.311443] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x2f)
            --
            [14015.319044] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            30: [14015.327278] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x30)
            -- [14015.335200] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.343276] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x31)
            -- [14015.350835] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.358905] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x32)
            -- [14015.366594] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.374665] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x33)
            -- [14015.382253] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.390327] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x34)
            -- [14015.397921] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.405997] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x35)
            -- [14015.413581] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.421657] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x36)
            -- [14015.429247] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.437325] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x37)
            -- [14015.444909] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.452985] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x38)
            -- [14015.460542] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.468620] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x39)
            -- [14015.476196] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.484271] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3a)
            -- [14015.491826] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.499910] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3b)
            -- [14015.507555] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.515630] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3c)
            -- [14015.523215] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.531287] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3d)
            -- [14015.538877] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.546958] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3e)
            -- [14015.554538] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.562613] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x3f)
            --
            [14015.570187] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            40: [14015.578420] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x40)
            -- [14015.586342] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.594419] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x41)
            -- [14015.601975] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.610053] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x42)
            -- [14015.617630] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.625705] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x43)
            -- [14015.633392] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.641463] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x44)
            -- [14015.649052] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.657130] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x45)
            -- [14015.664714] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.672792] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x46)
            -- [14015.680350] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.688427] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x47)
            -- [14015.696024] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.704102] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x48)
            -- [14015.711668] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.719750] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x49)
            -- [14015.727345] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.735419] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4a)
            -- [14015.742996] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.751071] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4b)
            -- [14015.758658] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.766739] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4c)
            -- [14015.774391] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.782465] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4d)
            -- [14015.790026] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.798105] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4e)
            -- [14015.805684] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.813763] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x4f)
            --
            [14015.821339] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            50: [14015.829576] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x50)
            -- [14015.837495] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.845571] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x51)
            -- [14015.853153] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.861226] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x52)
            -- [14015.868811] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.876887] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x53)
            -- [14015.884469] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.892543] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x54)
            -- [14015.900098] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.908181] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x55)
            -- [14015.915827] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.923900] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x56)
            -- [14015.931460] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.939538] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x57)
            -- [14015.947497] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.955561] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x58)
            -- [14015.963169] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.971235] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x59)
            -- [14015.978828] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14015.986906] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5a)
            -- [14015.994489] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.002562] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5b)
            -- [14016.010121] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.018199] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5c)
            -- [14016.025783] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.033863] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5d)
            -- [14016.041426] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.049509] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5e)
            -- [14016.057097] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.065170] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x5f)
            --
            [14016.072881] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            60: [14016.081107] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x60)
            -- [14016.089053] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.097129] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x61)
            -- [14016.104721] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.112787] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x62)
            -- [14016.120347] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.128422] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x63)
            -- [14016.136001] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.144079] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x64)
            -- [14016.151637] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.159716] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x65)
            -- [14016.167294] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.175376] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x66)
            -- [14016.182954] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.191032] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x67)
            -- [14016.198617] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.206702] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x68)
            -- [14016.214349] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.222424] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x69)
            -- [14016.229982] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.238059] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6a)
            -- [14016.245641] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.253716] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6b)
            -- [14016.261275] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.269352] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6c)
            -- [14016.276937] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.285013] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6d)
            -- [14016.292594] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.300668] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6e)
            -- [14016.308253] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.316336] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x6f)
            --
            [14016.323930] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            70: [14016.332164] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x70)
            -- [14016.340077] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.348156] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x71)
            -- [14016.355806] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.363882] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x72)
            -- [14016.371446] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.379518] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x73)
            -- [14016.387101] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.395174] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x74)
            -- [14016.402750] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.410828] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x75)
            -- [14016.418414] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.426492] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x76)
            -- [14016.434073] sunxi-i2c sunxi-i2c2: drv-mode: Timeout when sending 9th SCL clk
            [14016.442151] sunxi-i2c sunxi-i2c2: drv-mode: xfer failed (dev addr:0x77)
            --
            
            YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
            • YuzukiTsuru
              柚木 鉉 LV 9 @y97788 last edited by

              @y97788 调低loglevel=1
              现在没法看了

              Y 1 Reply Last reply Reply Quote Share 0
              • Y
                y97788 LV 5 @YuzukiTsuru last edited by whycan

                @yuzukitsuru

                # i2cdetect -y 2
                     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
                00:          -- -- -- -- -- -- -- -- -- -- -- -- --
                10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
                20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
                30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
                40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
                50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
                60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
                70: -- -- -- -- -- -- -- --
                
                whycan 1 Reply Last reply Reply Quote Share 0
                • YuzukiTsuru
                  柚木 鉉 LV 9 last edited by

                  @y97788 没有扫到i2c设备,检查下线有没有jie dui

                  1 Reply Last reply Reply Quote Share 0
                  • whycan
                    whycan晕哥 LV 9 @y97788 last edited by

                    @y97788
                    对一下手册, 看下 PG14/PG15 对应的复用寄存器,用devmem把这个寄存器读出来,看下这两条腿的当前复用状态是不是I2C2,如果不是,用devmem 写回去,然后再用i2cdetect扫描试一试。

                    Y 1 Reply Last reply Reply Quote Share 0
                    • Y
                      y97788 LV 5 @whycan last edited by

                      @whycan cat pinmux-pins,配置好像没问题。095d195e-21ae-4ae7-a50e-686571ce740d-image.png

                      whycan 1 Reply Last reply Reply Quote Share 0
                      • whycan
                        whycan晕哥 LV 9 @y97788 last edited by

                        @y97788

                        那检查硬件电路,逻辑分析仪伺候。

                        Y 1 Reply Last reply Reply Quote Share 0
                        • Y
                          y97788 LV 5 @whycan last edited by

                          @whycan devmem 查看了引脚寄存器配置两个引脚当前配置为gpio,不是i2c2, 处于设备树配置的sleep。用devmem修改了寄存器的值,再用i2cdetect也是扫不到设备。

                          1 Reply Last reply Reply Quote Share 0
                          • whycan
                            whycan晕哥 LV 9 last edited by

                            @y97788
                            说明设备树、驱动、硬件 都可能有点问题,要继续跟踪一下。

                            Y 1 Reply Last reply Reply Quote Share 0
                            • Y
                              y97788 LV 5 @whycan last edited by whycan

                              @whycan 将设备树这三行注释掉就好了,

                                twi_drv_used = <1>;
                               dmas = <&dma 45>, <&dma 45>;
                               dma-names = "tx", "rx";
                              
                              whycan TsMax D X 4 Replies Last reply Reply Quote Share 3
                              • whycan
                                whycan晕哥 LV 9 @y97788 last edited by

                                @y97788
                                强,怎么跟踪到的?

                                1 Reply Last reply Reply Quote Share 0
                                • TsMax
                                  TsMax LV 5 @y97788 last edited by

                                  @y97788
                                  强,有用

                                  1 Reply Last reply Reply Quote Share 0
                                  • D
                                    dream LV 6 @y97788 last edited by

                                    @y97788 这啥原理?

                                    1 Reply Last reply Reply Quote Share 0
                                    • X
                                      xiaoxia LV 1 @y97788 last edited by

                                      @y97788 老哥真TM牛批

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

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

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