Skip to content

Commit

Permalink
dts: hi6220: Adding i2c0 and i2c1 to dts
Browse files Browse the repository at this point in the history
Without this patch, any devices connected to i2c buses on LS connector will fail.

Signed-off-by: Akira Tsukamoto <akira.tsukamoto@linaro.org>
  • Loading branch information
Akira Tsukamoto authored and docularxu committed Jan 13, 2016
1 parent 5e47986 commit 4f2d637
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions arch/arm64/boot/dts/hi6220.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,41 @@
status = "ok";
};

i2c0: i2c@f7100000 {
compatible = "snps,designware-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0xf7100000 0x0 0x1000>;
interrupts = <0 44 4>;

clocks = <&clock_sys HI6220_I2C0_CLK>;
clock-names = "clk_i2c0";
i2c-sda-hold-time-ns = <300>;
#delay-reg = <0x0 0x0f8 0x0 4>;
reset-controller-reg = <0x330 0x334 0x338 1>;
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pmx_func &i2c0_cfg_func>;
status = "ok";
};

i2c1: i2c@f7101000 {
compatible = "snps,designware-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0xf7101000 0x0 0x1000>;
interrupts = <0 45 4>;

clocks = <&clock_sys HI6220_I2C1_CLK>;
clock-names = "clk_i2c1";
i2c-sda-hold-time-ns = <300>;
clock-frequency = <100000>;
#delay-reg = <0x0 0x0f8 0x0 4>;
reset-controller-reg = <0x330 0x334 0x338 2>;
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pmx_func &i2c1_cfg_func>;
status = "ok";
};

i2c2: i2c@f7102000 {
compatible = "snps,designware-i2c";
#address-cells = <1>;
Expand Down

0 comments on commit 4f2d637

Please sign in to comment.