Path: blob/main/sys/contrib/device-tree/Bindings/i2c/i2c-aspeed.txt
48375 views
Device tree configuration for the I2C busses on the AST24XX, AST25XX, and AST26XX SoCs.12Required Properties:3- #address-cells : should be 14- #size-cells : should be 05- reg : address offset and range of bus6- compatible : should be "aspeed,ast2400-i2c-bus"7or "aspeed,ast2500-i2c-bus"8or "aspeed,ast2600-i2c-bus"9- clocks : root clock of bus, should reference the APB10clock in the second cell11- resets : phandle to reset controller with the reset number in12the second cell13- interrupts : interrupt number1415Optional Properties:16- bus-frequency : frequency of the bus clock in Hz defaults to 100 kHz when not17specified18- multi-master : states that there is another master active on this bus.1920Example:2122i2c {23compatible = "simple-bus";24#address-cells = <1>;25#size-cells = <1>;26ranges = <0 0x1e78a000 0x1000>;2728i2c_ic: interrupt-controller@0 {29#interrupt-cells = <1>;30compatible = "aspeed,ast2400-i2c-ic";31reg = <0x0 0x40>;32interrupts = <12>;33interrupt-controller;34};3536i2c0: i2c-bus@40 {37#address-cells = <1>;38#size-cells = <0>;39#interrupt-cells = <1>;40reg = <0x40 0x40>;41compatible = "aspeed,ast2400-i2c-bus";42clocks = <&syscon ASPEED_CLK_APB>;43resets = <&syscon ASPEED_RESET_I2C>;44bus-frequency = <100000>;45interrupts = <0>;46interrupt-parent = <&i2c_ic>;47};48};495051