I2C

From FriendlyARM WiKi
Jump to: navigation, search

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>;
		};