{"id":1455,"date":"2024-02-29T07:12:52","date_gmt":"2024-02-29T07:12:52","guid":{"rendered":"http:\/\/www.recologypower.com:9080\/?p=1455"},"modified":"2024-02-29T07:12:53","modified_gmt":"2024-02-29T07:12:53","slug":"%e3%80%90linux%e3%80%91linux%e8%8e%b7%e5%8f%96cpu%e5%a4%84%e7%90%86%e5%99%a8%e6%b8%a9%e5%ba%a6","status":"publish","type":"post","link":"http:\/\/www.recologypower.com:9080\/?p=1455","title":{"rendered":"\u3010Linux\u3011Linux\u83b7\u53d6CPU\u5904\u7406\u5668\u6e29\u5ea6"},"content":{"rendered":"\n<p>1\u3001\u901a\u8fc7\u8bfb\u53d6\u7cfb\u7edf\u6587\u4ef6\u8282\u70b9\u83b7\u53d6\u76f8\u5e94CPU\u6e29\u5ea6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cpu0\uff1a\r\ncat \/sys\/class\/thermal\/thermal_zone0\/temp\r\n \r\ncpu1\uff1a\r\ncat \/sys\/class\/thermal\/thermal_zone1\/temp<\/code><\/pre>\n\n\n\n<p>2\u3001\u8bfb\u53d6cpu\u6e29\u5ea6\u5931\u8d25\u95ee\u9898<\/p>\n\n\n\n<p>RK3288\u4f7f\u7528TSADC(Temperature-Sensor ADC)\u6765\u6d4b\u91cfCPU\u6e29\u5ea6,\u652f\u6301\u4e24\u79cd\u6a21\u5f0f:<br>\u7528\u6237\u81ea\u5b9a\u4e49\u6a21\u5f0f: \u4e3b\u52a8\u63a7\u5236\u8bfb\u53d6\u6e29\u5ea6.<br>\u81ea\u52a8\u6a21\u5f0f: \u81ea\u52a8\u68c0\u6d4b\u6e29\u5ea6,\u8fbe\u5230\u9600\u503c\u5c31\u81ea\u52a8\u62a5\u544a.<\/p>\n\n\n\n<p>dts\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&amp;tsadc {\r\nrockchip,hw-tshut-mode = &lt;0>; \/* tshut mode 0:CRU 1:GPIO *\/\r\nrockchip,hw-tshut-polarity = &lt;0>; \/* tshut polarity 0:LOW 1:HIGH *\/\r\nstatus = \"okay\";\r\n};\r\n\r\ntsadc: tsadc@ff280000 {\r\ncompatible = \"rockchip,rk3288-tsadc\";\r\nreg = &lt;0x0 0xff280000 0x0 0x100>;\r\ninterrupts = &lt;GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;\r\nclocks = &lt;&amp;cru SCLK_TSADC>, &lt;&amp;cru PCLK_TSADC>;\r\nclock-names = \"tsadc\", \"apb_pclk\";\r\nassigned-clocks = &lt;&amp;cru SCLK_TSADC>;\r\nassigned-clock-rates = &lt;5000>;\r\nresets = &lt;&amp;cru SRST_TSADC>;\r\nreset-names = \"tsadc-apb\";\r\npinctrl-names = \"init\", \"default\", \"sleep\";\r\npinctrl-0 = &lt;&amp;otp_gpio>;\r\npinctrl-1 = &lt;&amp;otp_out>;\r\npinctrl-2 = &lt;&amp;otp_gpio>;\r\n#thermal-sensor-cells = &lt;1>;\r\nrockchip,hw-tshut-temp = &lt;95000>;\r\nstatus = \"disabled\";\r\n};<\/code><\/pre>\n\n\n\n<p>\u7528\u6307\u4ee4\u8bfb\u53d6CPU\u6e29\u5ea6\uff1acat&nbsp;sys\/class\/thermal\/thermal_zone0\/temp\uff0c\u4f1a\u62a5\u9519\/system\/bin\/sh: cat: temp: Invalid argumen\u3002<\/p>\n\n\n\n<p>\u770b\u5f00\u673alog\uff0c\u53d1\u73b0\u6709\u5982\u4e0b\u62a5\u9519\uff1a<\/p>\n\n\n\n<p>clk: couldn&#8217;t get clock 0 for \/tsadc@ff280000<\/p>\n\n\n\n<p>\u8bf4\u660etsadc\u7f3a\u5c11clock\uff0c\u67e5\u770bdts\uff0c\u786e\u5b9e\u662f\u5c11\u4e86\u8fd9\u5757\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xin32k: xin32k {\r\n    compatible = \"fixed-clock\";\r\n    clock-frequency = &lt;32768>;\r\n    clock-output-names = \"xin32k\";\r\n    #clock-cells = &lt;0>;\r\n};<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e3a\u8fd9\u4e2a\u65f6\u949f\u52a0\u4e0a\u5c31\u597d\u4e86\uff0c\u4ee4\u4eba\u6293\u72c2\u7684\u662f\uff0c\u5c31\u52a0\u4e86\u8fd9\u4e48\u51e0\u884c\u4ee3\u7801\uff0c\u673a\u5668\u7adf\u7136\u4e00\u76f4\u91cd\u542f\u5f00\u4e0d\u8d77\u673a\u4e86\u3002<\/p>\n\n\n\n<p>\u52a0\u7684\u8fd9\u4e2a\u5730\u65b9\u662f\u8ddf\u6e29\u5ea6\u662f\u76f8\u5173\u7684\uff0c\u90a3\u5c31\u4ece\u8fd9\u4e2a\u65b9\u9762\u5165\u624b\u53bb\u601d\u8003\u627e\u95ee\u9898\u3002\u4f1a\u4e0d\u4f1a\u662f\u68c0\u6d4b\u5230\u6e29\u5ea6\u7684\u8fc7\u6e29\u9600\u503c\uff0c\u5bfc\u81f4\u91cd\u542f\u7684\u5462\uff1f<\/p>\n\n\n\n<p>\u770b\u786c\u4ef6\u7684\u8fde\u63a5\u4e0a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"714\" height=\"459\" src=\"http:\/\/www.recologypower.com:9080\/wp-content\/uploads\/2024\/02\/image.png\" alt=\"\" class=\"wp-image-1456\" srcset=\"http:\/\/www.recologypower.com:9080\/wp-content\/uploads\/2024\/02\/image.png 714w, http:\/\/www.recologypower.com:9080\/wp-content\/uploads\/2024\/02\/image-300x193.png 300w, http:\/\/www.recologypower.com:9080\/wp-content\/uploads\/2024\/02\/image-600x386.png 600w\" sizes=\"(max-width: 714px) 100vw, 714px\" \/><\/figure>\n\n\n\n<p id=\"1637323342352\">\u4e3b\u63a7\u7684OTP \u5f15\u811a\u662f\u6709\u8fde\u63a5\u51fa\u6765\u5230pmic rk808\u7684\uff0c\u5982\u679c\u8fd9\u4e2a\u9600\u503c\u5230\u4e86reset\u811a\u5c31\u4f1a\u52a8\u4f5c\uff0c\u7136\u540e\u91cd\u542f\u3002<\/p>\n\n\n\n<p>\u7531\u4e8e\u6ca1\u6709\u786c\u6027\u9700\u6c42\u4e00\u5b9a\u8981\u8fd9\u4e2a\u6e29\u5ea6\u5230\u4e86\u9600\u503c\u5c31\u91cd\u542f\u7684\u9700\u6c42\uff0c\u8fd9\u4e2a\u65f6\u5019\u53ef\u4ee5\u628a\u786c\u4ef6\u4e0a\u7684\u8fde\u63a5\u7535\u963b\u53bb\u6389\uff0c\u6216\u8005\u8f6f\u4ef6\u4e0a\u628areset\u7684io\u5c4f\u853d\u6389\u3002\u5b9e\u9645\u8d77\u4f5c\u7528\u7684\u662f\uff1apinctrl-1 = &lt;&amp;otp_out&gt;;<br>\u5c4f\u853d\u6389\uff0c\u8fd9\u65f6\u5019\u673a\u5668\u5c31\u53ef\u4ee5\u6b63\u5e38\u5f00\u673a\u4e86\u3002<\/p>\n\n\n\n<p>\u518d\u67e5\u770b\u6e29\u5ea6\u503c\uff1acat sys\/class\/thermal\/thermal_zone0\/temp<br>54111<\/p>\n\n\n\n<p>\u5c31\u80fd\u6b63\u5e38\u8bfb\u5230\u6e29\u5ea6\u503c\u4e86\u3002<\/p>\n\n\n\n<p>\u4e0d\u8fc7\u4e0d\u592a\u80fd\u7406\u89e3\u7684\u662f\uff0c\u914d\u7f6e\u91cc rockchip,hw-tshut-temp = &lt;95000&gt;;\u662f\u8d85\u8fc795\u5ea6\u624d\u91cd\u542f\uff0c\u4e00\u5f00\u673a\u5e94\u8be5\u4e5f\u4e0d\u4f1a\u8d85\u8fc7\u9600\u503c\u624d\u5bf9\uff0c\u5f00\u673a\u540e\u8bfb\u53d6\u7684\u6e29\u5ea6\u4e5f\u5c3150\u00b0C\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"slide-text-bg2\">\n<h3>1\u3001\u901a\u8fc7\u8bfb\u53d6\u7cfb\u7edf\u6587\u4ef6\u8282\u70b9\u83b7\u53d6\u76f8\u5e94CPU\u6e29<\/h3>\n<\/div>\n<div class=\"flex-btn-div\"><a href=\"http:\/\/www.recologypower.com:9080\/?p=1455\" class=\"btn1 flex-btn\">\u9605\u8bfb\u66f4\u591a<\/a><\/div>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[139],"tags":[],"_links":{"self":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/1455"}],"collection":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1455"}],"version-history":[{"count":1,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/1455\/revisions"}],"predecessor-version":[{"id":1457,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=\/wp\/v2\/posts\/1455\/revisions\/1457"}],"wp:attachment":[{"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.recologypower.com:9080\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}