Difference between revisions of "I2C"

From FriendlyELEC WiKi
Jump to: navigation, search
(Created page with "== H3/H5 Kernel 4.14 I2C speed == change clock-frequency in arch/arm/boot/dts/sunxi-h3-h5.dtsi: <syntaxhighlight lang="bash"> r_i2c: i2c@01f02400 { compatible = "allwinn...")
 
(H3/H5 Kernel 4.14 I2C speed)
 
Line 1: Line 1:
 
== H3/H5 Kernel 4.14  I2C speed ==
 
== H3/H5 Kernel 4.14  I2C speed ==
 
change clock-frequency in arch/arm/boot/dts/sunxi-h3-h5.dtsi:
 
change clock-frequency in arch/arm/boot/dts/sunxi-h3-h5.dtsi:
<syntaxhighlight lang="bash">
+
<syntaxhighlight lang="c">
 
r_i2c: i2c@01f02400 {
 
r_i2c: i2c@01f02400 {
 
compatible = "allwinner,sun6i-a31-i2c";
 
compatible = "allwinner,sun6i-a31-i2c";

Latest revision as of 02:11, 29 October 2018

H3/H5 Kernel 4.14 I2C speed

change clock-frequency in arch/arm/boot/dts/sunxi-h3-h5.dtsi:

		r_i2c: i2c@01f02400 {
			compatible = "allwinner,sun6i-a31-i2c";
			reg = <0x01f02400 0x400>;
			interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
			pinctrl-names = "default";
			pinctrl-0 = <&r_i2c_pins_a>;
			clocks = <&r_ccu CLK_APB0_I2C>;
			clock-frequency = <100000>;
			resets = <&r_ccu RST_APB0_I2C>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};