diff options
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/powerpc/booting-without-of.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentation/powerpc/booting-without-of.txt index b68684d39f96..f6394b509430 100644 --- a/Documentation/powerpc/booting-without-of.txt +++ b/Documentation/powerpc/booting-without-of.txt | |||
| @@ -2160,6 +2160,48 @@ platforms are moved over to use the flattened-device-tree model. | |||
| 2160 | }; | 2160 | }; |
| 2161 | }; | 2161 | }; |
| 2162 | 2162 | ||
| 2163 | x) I2C | ||
| 2164 | |||
| 2165 | The I2C controller is expressed as a bus under the CPM node. | ||
| 2166 | |||
| 2167 | Properties: | ||
| 2168 | - compatible : "fsl,cpm1-i2c", "fsl,cpm2-i2c" | ||
| 2169 | - reg : On CPM2 devices, the second resource doesn't specify the I2C | ||
| 2170 | Parameter RAM itself, but the I2C_BASE field of the CPM2 Parameter RAM | ||
| 2171 | (typically 0x8afc 0x2). | ||
| 2172 | - #address-cells : Should be one. The cell is the i2c device address with | ||
| 2173 | the r/w bit set to zero. | ||
| 2174 | - #size-cells : Should be zero. | ||
| 2175 | - clock-frequency : Can be used to set the i2c clock frequency. If | ||
| 2176 | unspecified, a default frequency of 60kHz is being used. | ||
| 2177 | The following two properties are deprecated. They are only used by legacy | ||
| 2178 | i2c drivers to find the bus to probe: | ||
| 2179 | - linux,i2c-index : Can be used to hard code an i2c bus number. By default, | ||
| 2180 | the bus number is dynamically assigned by the i2c core. | ||
| 2181 | - linux,i2c-class : Can be used to override the i2c class. The class is used | ||
| 2182 | by legacy i2c device drivers to find a bus in a specific context like | ||
| 2183 | system management, video or sound. By default, I2C_CLASS_HWMON (1) is | ||
| 2184 | being used. The definition of the classes can be found in | ||
| 2185 | include/i2c/i2c.h | ||
| 2186 | |||
| 2187 | Example, based on mpc823: | ||
| 2188 | |||
| 2189 | i2c@860 { | ||
| 2190 | compatible = "fsl,mpc823-i2c", | ||
| 2191 | "fsl,cpm1-i2c"; | ||
| 2192 | reg = <0x860 0x20 0x3c80 0x30>; | ||
| 2193 | interrupts = <16>; | ||
| 2194 | interrupt-parent = <&CPM_PIC>; | ||
| 2195 | fsl,cpm-command = <0x10>; | ||
| 2196 | #address-cells = <1>; | ||
| 2197 | #size-cells = <0>; | ||
| 2198 | |||
| 2199 | rtc@68 { | ||
| 2200 | compatible = "dallas,ds1307"; | ||
| 2201 | reg = <0x68>; | ||
| 2202 | }; | ||
| 2203 | }; | ||
| 2204 | |||
| 2163 | m) Chipselect/Local Bus | 2205 | m) Chipselect/Local Bus |
| 2164 | 2206 | ||
| 2165 | Properties: | 2207 | Properties: |
