|
99 | 99 | This may be a confusing part for people who only know about the physical I2C
|
100 | 100 | design of a board. It is actually possible to rename the I2C bus physical number
|
101 | 101 | to a different number in logical I2C bus level in Device Tree Source (DTS) under
|
102 |
| -section ``aliases``. See |
103 |
| -`arch/arm/boot/dts/nuvoton-npcm730-gsj.dts |
104 |
| -<../../arch/arm/boot/dts/nuvoton-npcm730-gsj.dts>`_ |
| 102 | +section ``aliases``. See ``arch/arm/boot/dts/nuvoton-npcm730-gsj.dts`` |
105 | 103 | for an example of DTS file.
|
106 | 104 |
|
107 | 105 | Best Practice: **(To kernel software developers)** It is better to keep the I2C
|
@@ -289,8 +287,7 @@ MUX channel 0, and all the way to ``i2c-19`` for the MUX channel 3.
|
289 | 287 | The kernel software developer is able to pin the fanout MUX channels to a static
|
290 | 288 | logical I2C bus number in the DTS. This doc will not go through the details on
|
291 | 289 | how to implement this in DTS, but we can see an example in:
|
292 |
| -`arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts |
293 |
| -<../../arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts>`_ |
| 290 | +``arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts`` |
294 | 291 |
|
295 | 292 | In the above example, there is an 8-channel I2C MUX at address 0x70 on physical
|
296 | 293 | I2C bus 2. The channel 2 of the MUX is defined as ``imux18`` in DTS,
|
@@ -382,13 +379,9 @@ Sysfs for the I2C sensor device::
|
382 | 379 |
|
383 | 380 | For more info on the Hwmon Sysfs, refer to the doc:
|
384 | 381 |
|
385 |
| -`Naming and data format standards for sysfs files |
386 |
| -<../hwmon/sysfs-interface.rst>`_ |
| 382 | +../hwmon/sysfs-interface.rst |
387 | 383 |
|
388 | 384 | Instantiate I2C Devices in I2C Sysfs
|
389 | 385 | ------------------------------------
|
390 | 386 |
|
391 |
| -Refer to the doc: |
392 |
| - |
393 |
| -`How to instantiate I2C devices, Method 4: Instantiate from user-space |
394 |
| -<instantiating-devices.rst#method-4-instantiate-from-user-space>`_ |
| 387 | +Refer to section "Method 4: Instantiate from user-space" of instantiating-devices.rst |
0 commit comments