Hi,
I’m using Hikey board.
How do I set-up i2c in dts?
I’d like use I2C0 and connect slave device.
Please some one explain in dts, it is correct under the text?
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
soc {
i2c0: i2c@f7100000 {
#address-cells = <0x1>;
#size-cells = <0x0>;
status = “ok”;
touch@27{
compatible = "hisilicon,touch
reg = <0x27>;
touch,ven-gpio = <&gpio2 0 0>
touch,firm-gpio = <&gpio2 2 0
touch,irq-gpio = <&gpio2 4 0>
};
};