<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>http://mediawiki.hyhsystem.cn/index.php?action=history&amp;feed=atom&amp;title=DS1307</id>
	<title>DS1307 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://mediawiki.hyhsystem.cn/index.php?action=history&amp;feed=atom&amp;title=DS1307"/>
	<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;action=history"/>
	<updated>2026-04-12T07:17:17Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;diff=580&amp;oldid=prev</id>
		<title>HEYAHONG：​/* 为MT7688添加实时时钟 */</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;diff=580&amp;oldid=prev"/>
		<updated>2023-08-04T09:01:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;为MT7688添加实时时钟&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年8月4日 (五) 09:01的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;第9行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第9行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 将DS1307的I2C与MT7688的I2C总线相连&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 将DS1307的I2C与MT7688的I2C总线相连&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 在[[openwrt]]的menuconfig启用CONFIG_PACKAGE_kmod-i2c-mt7628(&amp;gt; Kernel modules &amp;gt; I2C support &amp;gt; kmod-i2c-mt7628)与CONFIG_PACKAGE_kmod-rtc-ds1307(&amp;gt; Kernel modules &amp;gt; Other modules &amp;gt; kmod-rtc-ds1307)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 在[[openwrt]]的menuconfig启用CONFIG_PACKAGE_kmod-i2c-mt7628(&amp;gt; Kernel modules &amp;gt; I2C support &amp;gt; kmod-i2c-mt7628)与CONFIG_PACKAGE_kmod-rtc-ds1307(&amp;gt; Kernel modules &amp;gt; Other modules &amp;gt; kmod-rtc-ds1307)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;在设备树&lt;/del&gt;(dts)中添加ds1307的配置,如&amp;lt;syntaxhighlight lang=&quot;dts&quot; line=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;在[[Devicetree|设备树&lt;/ins&gt;(dts)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/ins&gt;中添加ds1307的配置,如&amp;lt;syntaxhighlight lang=&quot;dts&quot; line=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;amp;i2c {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;amp;i2c {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	status = &amp;quot;okay&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	status = &amp;quot;okay&amp;quot;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-524:rev-580:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>HEYAHONG</name></author>
	</entry>
	<entry>
		<id>http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;diff=524&amp;oldid=prev</id>
		<title>HEYAHONG：​/* 为MT7688添加实时时钟 */</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;diff=524&amp;oldid=prev"/>
		<updated>2023-06-05T13:02:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;为MT7688添加实时时钟&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年6月5日 (一) 13:02的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot;&gt;第5行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第5行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== 为[[MT7688]]添加实时时钟 ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== 为[[MT7688]]添加实时时钟 ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;操作系统为[[openwrt]],&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;内核为Linux。主要步骤如下&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;操作系统为[[openwrt]],&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;内核为[[Linux]]。主要步骤如下&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 将DS1307的I2C与MT7688的I2C总线相连&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* 将DS1307的I2C与MT7688的I2C总线相连&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot;&gt;第21行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第21行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;注:以上步骤均在openwrt-22.03中通过测试。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;注:以上步骤均在openwrt-22.03中通过测试。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Linux 5.10中关于DS1307的配置说明:&amp;lt;syntaxhighlight lang=&quot;text&quot; line=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;Linux&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;5.10中关于DS1307的配置说明:&amp;lt;syntaxhighlight lang=&quot;text&quot; line=&quot;1&quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dallas DS1307 and compatible RTC&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Dallas DS1307 and compatible RTC&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-521:rev-524:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>HEYAHONG</name></author>
	</entry>
	<entry>
		<id>http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;diff=521&amp;oldid=prev</id>
		<title>HEYAHONG：​/* 个人使用说明 */</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;diff=521&amp;oldid=prev"/>
		<updated>2023-06-04T08:10:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;个人使用说明&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年6月4日 (日) 08:10的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;第2行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第2行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RTC芯片，为没有RTC的系统提供实时时钟。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RTC芯片，为没有RTC的系统提供实时时钟。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 个人使用说明 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/ins&gt;== 个人使用说明 &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== 为[[MT7688]]添加实时时钟 ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== 为[[MT7688]]添加实时时钟 ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-520:rev-521:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>HEYAHONG</name></author>
	</entry>
	<entry>
		<id>http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;diff=520&amp;oldid=prev</id>
		<title>HEYAHONG：​创建页面，内容为“== 说明 == RTC芯片，为没有RTC的系统提供实时时钟。  == 个人使用说明 ==  ==== 为MT7688添加实时时钟 ==== 操作系统为openwrt,内核为Linux。主要步骤如下:  * 将DS1307的I2C与MT7688的I2C总线相连 * 在openwrt的menuconfig启用CONFIG_PACKAGE_kmod-i2c-mt7628(&gt; Kernel modules &gt; I2C support &gt; kmod-i2c-mt7628)与CONFIG_PACKAGE_kmod-rtc-ds1307(&gt; Kernel modules &gt; Other modules &gt; kmod-rtc-ds1307) * 在设备树(dt…”</title>
		<link rel="alternate" type="text/html" href="http://mediawiki.hyhsystem.cn/index.php?title=DS1307&amp;diff=520&amp;oldid=prev"/>
		<updated>2023-06-04T08:08:40Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“== 说明 == RTC芯片，为没有RTC的系统提供实时时钟。  == 个人使用说明 ==  ==== 为&lt;a href=&quot;/index.php/MT7688&quot; title=&quot;MT7688&quot;&gt;MT7688&lt;/a&gt;添加实时时钟 ==== 操作系统为&lt;a href=&quot;/index.php/Openwrt&quot; title=&quot;Openwrt&quot;&gt;openwrt&lt;/a&gt;,内核为Linux。主要步骤如下:  * 将DS1307的I2C与MT7688的I2C总线相连 * 在&lt;a href=&quot;/index.php/Openwrt&quot; title=&quot;Openwrt&quot;&gt;openwrt&lt;/a&gt;的menuconfig启用CONFIG_PACKAGE_kmod-i2c-mt7628(&amp;gt; Kernel modules &amp;gt; I2C support &amp;gt; kmod-i2c-mt7628)与CONFIG_PACKAGE_kmod-rtc-ds1307(&amp;gt; Kernel modules &amp;gt; Other modules &amp;gt; kmod-rtc-ds1307) * 在设备树(dt…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== 说明 ==&lt;br /&gt;
RTC芯片，为没有RTC的系统提供实时时钟。&lt;br /&gt;
&lt;br /&gt;
== 个人使用说明 ==&lt;br /&gt;
&lt;br /&gt;
==== 为[[MT7688]]添加实时时钟 ====&lt;br /&gt;
操作系统为[[openwrt]],内核为Linux。主要步骤如下:&lt;br /&gt;
&lt;br /&gt;
* 将DS1307的I2C与MT7688的I2C总线相连&lt;br /&gt;
* 在[[openwrt]]的menuconfig启用CONFIG_PACKAGE_kmod-i2c-mt7628(&amp;gt; Kernel modules &amp;gt; I2C support &amp;gt; kmod-i2c-mt7628)与CONFIG_PACKAGE_kmod-rtc-ds1307(&amp;gt; Kernel modules &amp;gt; Other modules &amp;gt; kmod-rtc-ds1307)&lt;br /&gt;
* 在设备树(dts)中添加ds1307的配置,如&amp;lt;syntaxhighlight lang=&amp;quot;dts&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
&amp;amp;i2c {&lt;br /&gt;
	status = &amp;quot;okay&amp;quot;;&lt;br /&gt;
	ds1307: rtc@68 {&lt;br /&gt;
		compatible = &amp;quot;dallas,ds1307&amp;quot;;&lt;br /&gt;
		reg = &amp;lt;0x68&amp;gt;;&lt;br /&gt;
	};&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
注:以上步骤均在openwrt-22.03中通过测试。&lt;br /&gt;
&lt;br /&gt;
Linux 5.10中关于DS1307的配置说明:&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
Dallas DS1307 and compatible RTC&lt;br /&gt;
&lt;br /&gt;
Required properties:&lt;br /&gt;
- compatible: should be one of:&lt;br /&gt;
	&amp;quot;dallas,ds1307&amp;quot;,&lt;br /&gt;
	&amp;quot;dallas,ds1308&amp;quot;,&lt;br /&gt;
	&amp;quot;dallas,ds1337&amp;quot;,&lt;br /&gt;
	&amp;quot;dallas,ds1338&amp;quot;,&lt;br /&gt;
	&amp;quot;dallas,ds1339&amp;quot;,&lt;br /&gt;
	&amp;quot;dallas,ds1388&amp;quot;,&lt;br /&gt;
	&amp;quot;dallas,ds1340&amp;quot;,&lt;br /&gt;
	&amp;quot;dallas,ds1341&amp;quot;,&lt;br /&gt;
	&amp;quot;maxim,ds3231&amp;quot;,&lt;br /&gt;
	&amp;quot;st,m41t0&amp;quot;,&lt;br /&gt;
	&amp;quot;st,m41t00&amp;quot;,&lt;br /&gt;
	&amp;quot;st,m41t11&amp;quot;,&lt;br /&gt;
	&amp;quot;microchip,mcp7940x&amp;quot;,&lt;br /&gt;
	&amp;quot;microchip,mcp7941x&amp;quot;,&lt;br /&gt;
	&amp;quot;pericom,pt7c4338&amp;quot;,&lt;br /&gt;
	&amp;quot;epson,rx8025&amp;quot;,&lt;br /&gt;
	&amp;quot;isil,isl12057&amp;quot;&lt;br /&gt;
	&amp;quot;epson,rx8130&amp;quot;&lt;br /&gt;
- reg: I2C bus address of the device&lt;br /&gt;
&lt;br /&gt;
Optional properties:&lt;br /&gt;
- interrupts: rtc alarm interrupt.&lt;br /&gt;
- clock-output-names: From common clock binding to override the default output&lt;br /&gt;
                      clock name&lt;br /&gt;
- wakeup-source: Enables wake up of host system on alarm&lt;br /&gt;
- trickle-resistor-ohms : ds1339, ds1340 and ds 1388 only&lt;br /&gt;
	Selected resistor for trickle charger&lt;br /&gt;
	Possible values are 250, 2000, 4000&lt;br /&gt;
	Should be given if trickle charger should be enabled&lt;br /&gt;
- aux-voltage-chargeable: ds1339, ds1340, ds1388 and rx8130 only&lt;br /&gt;
	Tells whether the battery/supercap of the RTC (if any) is&lt;br /&gt;
	chargeable or not.&lt;br /&gt;
	Possible values are 0 (not chargeable), 1 (chargeable)&lt;br /&gt;
&lt;br /&gt;
Deprecated properties:&lt;br /&gt;
- trickle-diode-disable : ds1339, ds1340 and ds1388 only&lt;br /&gt;
	Do not use internal trickle charger diode&lt;br /&gt;
	Should be given if internal trickle charger diode should be disabled&lt;br /&gt;
	(superseded by aux-voltage-chargeable)&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
	ds1339: rtc@68 {&lt;br /&gt;
		compatible = &amp;quot;dallas,ds1339&amp;quot;;&lt;br /&gt;
		reg = &amp;lt;0x68&amp;gt;;&lt;br /&gt;
		interrupt-parent = &amp;lt;&amp;amp;gpio4&amp;gt;;&lt;br /&gt;
		interrupts = &amp;lt;20 0&amp;gt;;&lt;br /&gt;
		trickle-resistor-ohms = &amp;lt;250&amp;gt;;&lt;br /&gt;
	};&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 官方/[[alldatasheet]]资料 ==&lt;br /&gt;
&lt;br /&gt;
=== 相关数据手册 ===&lt;br /&gt;
[[文件:DS1307.pdf|左|缩略图]]&lt;/div&gt;</summary>
		<author><name>HEYAHONG</name></author>
	</entry>
</feed>