brintos

brintos / linux-shallow public Read only

0
0
Text · 907 B · 873096b Raw
30 lines · plain
1Devicetree binding for regmap2 3Optional properties:4 5   little-endian,6   big-endian,7   native-endian:	See common-properties.txt for a definition8 9Note:10Regmap defaults to little-endian register access on MMIO based11devices, this is by far the most common setting. On CPU12architectures that typically run big-endian operating systems13(e.g. PowerPC), registers can be defined as big-endian and must14be marked that way in the devicetree.15 16On SoCs that can be operated in both big-endian and little-endian17modes, with a single hardware switch controlling both the endianness18of the CPU and a byteswap for MMIO registers (e.g. many Broadcom MIPS19chips), "native-endian" is used to allow using the same device tree20blob in both cases.21 22Examples:23Scenario 1 : a register set in big-endian mode.24dev: dev@40031000 {25	      compatible = "syscon";26	      reg = <0x40031000 0x1000>;27	      big-endian;28	      ...29};30