Device Tree dependency between two nodes
问题 I have two device tree nodes, one sets a gpio pin and the other one configures one i2c bus, ex: &gpio2 { en-gpio { gpio-hog; gpios = <5 0>; output-high; }; }; &i2c1 { gpiom1: gpio@27 { compatible = "microchip,mcp23008"; gpio-controller; #gpio-cells = <2>; reg = <0x27>; }; }; How can i add a dependency between the i2c node and gpio one? What i want to achieve is that the gpio pin should be set before the devices on i2c are initialized. 回答1: Short answer You can't provide dependency between