|
| 1 | +// Common i2c buses, and dtparams to select them |
| 2 | + |
| 3 | +/ { |
| 4 | + compatible = "brcm,bcm2835"; |
| 5 | + |
| 6 | + busfrag: fragment@100 { |
| 7 | + target = <&i2c_arm>; |
| 8 | + i2cbus: __overlay__ { |
| 9 | + status = "okay"; |
| 10 | + }; |
| 11 | + }; |
| 12 | + |
| 13 | + fragment@101 { |
| 14 | + target = <&i2c0if>; |
| 15 | +#ifdef ENABLE_I2C0_MUX |
| 16 | + __overlay__ { |
| 17 | +#else |
| 18 | + __dormant__ { |
| 19 | +#endif |
| 20 | + status = "okay"; |
| 21 | + }; |
| 22 | + }; |
| 23 | + |
| 24 | + fragment@102 { |
| 25 | + target = <&i2c0mux>; |
| 26 | +#ifdef ENABLE_I2C0_MUX |
| 27 | + __overlay__ { |
| 28 | +#else |
| 29 | + __dormant__ { |
| 30 | +#endif |
| 31 | + status = "okay"; |
| 32 | + }; |
| 33 | + }; |
| 34 | + |
| 35 | + __overrides__ { |
| 36 | + i2c0 = <&busfrag>,"target:0=",<&i2c0>, |
| 37 | + <&busfrag>, "target-path?=0", |
| 38 | + <0>,"+101+102"; |
| 39 | + i2c_csi_dsi = <&busfrag>,"target:0=",<&i2c_csi_dsi>, |
| 40 | + <&busfrag>, "target-path?=0", |
| 41 | + <0>,"+101+102"; |
| 42 | + i2c_csi_dsi0 = <&busfrag>, "target:0=",<&i2c_csi_dsi0>, |
| 43 | + <&busfrag>, "target-path?=0", |
| 44 | + <0>,"+101+102"; |
| 45 | + i2c1 = <&busfrag>,"target:0=",<&i2c1>, |
| 46 | + <&busfrag>, "target-path?=0", |
| 47 | + <0>,"-101-102"; |
| 48 | + i2c2 = <&busfrag>, "target?=0", |
| 49 | + <&busfrag>, "target-path=i2c2", |
| 50 | + <0>,"-101-102"; |
| 51 | + i2c3 = <&busfrag>, "target?=0", |
| 52 | + <&busfrag>, "target-path=i2c3", |
| 53 | + <0>,"-101-102"; |
| 54 | + i2c4 = <&busfrag>, "target?=0", |
| 55 | + <&busfrag>, "target-path=i2c4", |
| 56 | + <0>,"-101-102"; |
| 57 | + i2c5 = <&busfrag>, "target?=0", |
| 58 | + <&busfrag>, "target-path=i2c5", |
| 59 | + <0>,"-101-102"; |
| 60 | + i2c6 = <&busfrag>, "target?=0", |
| 61 | + <&busfrag>, "target-path=i2c6", |
| 62 | + <0>,"-101-102"; |
| 63 | + i2c-path = <&busfrag>, "target?=0", |
| 64 | + <&busfrag>, "target-path", |
| 65 | + <0>,"-101-102"; |
| 66 | + }; |
| 67 | +}; |
0 commit comments