1.1 I2C configuration by DCT tool
1.2 amt6797_64_open.dws
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <?xml version="1.0" encoding="UTF-8"?> <!--dct_version="2.2" buid_sn="160113" dws_modification_time="05.29.2016.13:03:38"--> <dct_cfg> <general chip="MT6797"> <proj>k97_v1</proj> <module name="i2c"> <i2c_bus1> <speed_kbps>400</speed_kbps> <pullPushEn>false</pullPushEn> </i2c_bus1> <device6> <varName>EXT_DISP</varName> <channel>I2C_CHANNEL_1</channel> <address>0x1d</address> </device6> </module> </general> </dct_cfg> |
1.3 cust_i2c.dtsi
1 2 3 4 5 6 7 8 9 10 11 12 13 | &i2c1 { #address-cells = <1>; #size-cells = <0>; clock-frequency = <400000>; mediatek,use-open-drain; ext_disp@1d { compatible = "mediatek,ext_disp"; reg = <0x1d>; status = "okay"; }; }; |