Loading Documentation/devicetree/bindings/regmap/regmap.txt +7 −4 Original line number Original line Diff line number Diff line Loading @@ -5,15 +5,18 @@ Index Device Endianness properties --------------------------------------------------- --------------------------------------------------- 1 BE 'big-endian' 1 BE 'big-endian' 2 LE 'little-endian' 2 LE 'little-endian' 3 Native 'native-endian' For one device driver, which will run in different scenarios above For one device driver, which will run in different scenarios above on different SoCs using the devicetree, we need one way to simplify on different SoCs using the devicetree, we need one way to simplify this. this. Required properties: Optional properties: - {big,little}-endian: these are boolean properties, if absent - {big,little,native}-endian: these are boolean properties, if absent meaning that the CPU and the Device are in the same endianness mode, then the implementation will choose a default based on the device these properties are for register values and all the buffers only. being controlled. These properties are for register values and all the buffers only. Native endian means that the CPU and device have the same endianness. Examples: Examples: Scenario 1 : CPU in LE mode & device in LE mode. Scenario 1 : CPU in LE mode & device in LE mode. Loading arch/mips/boot/dts/brcm/bcm6328.dtsi +1 −1 Original line number Original line Diff line number Diff line Loading @@ -74,7 +74,7 @@ timer: timer@10000040 { timer: timer@10000040 { compatible = "syscon"; compatible = "syscon"; reg = <0x10000040 0x2c>; reg = <0x10000040 0x2c>; little-endian; native-endian; }; }; reboot { reboot { Loading arch/mips/boot/dts/brcm/bcm6368.dtsi +1 −1 Original line number Original line Diff line number Diff line Loading @@ -54,7 +54,7 @@ periph_cntl: syscon@10000000 { periph_cntl: syscon@10000000 { compatible = "syscon"; compatible = "syscon"; reg = <0x10000000 0x14>; reg = <0x10000000 0x14>; little-endian; native-endian; }; }; reboot: syscon-reboot@10000008 { reboot: syscon-reboot@10000008 { Loading arch/mips/boot/dts/brcm/bcm7125.dtsi +1 −1 Original line number Original line Diff line number Diff line Loading @@ -98,7 +98,7 @@ sun_top_ctrl: syscon@404000 { sun_top_ctrl: syscon@404000 { compatible = "brcm,bcm7125-sun-top-ctrl", "syscon"; compatible = "brcm,bcm7125-sun-top-ctrl", "syscon"; reg = <0x404000 0x60c>; reg = <0x404000 0x60c>; little-endian; native-endian; }; }; reboot { reboot { Loading arch/mips/boot/dts/brcm/bcm7346.dtsi +1 −1 Original line number Original line Diff line number Diff line Loading @@ -118,7 +118,7 @@ sun_top_ctrl: syscon@404000 { sun_top_ctrl: syscon@404000 { compatible = "brcm,bcm7346-sun-top-ctrl", "syscon"; compatible = "brcm,bcm7346-sun-top-ctrl", "syscon"; reg = <0x404000 0x51c>; reg = <0x404000 0x51c>; little-endian; native-endian; }; }; reboot { reboot { Loading Loading
Documentation/devicetree/bindings/regmap/regmap.txt +7 −4 Original line number Original line Diff line number Diff line Loading @@ -5,15 +5,18 @@ Index Device Endianness properties --------------------------------------------------- --------------------------------------------------- 1 BE 'big-endian' 1 BE 'big-endian' 2 LE 'little-endian' 2 LE 'little-endian' 3 Native 'native-endian' For one device driver, which will run in different scenarios above For one device driver, which will run in different scenarios above on different SoCs using the devicetree, we need one way to simplify on different SoCs using the devicetree, we need one way to simplify this. this. Required properties: Optional properties: - {big,little}-endian: these are boolean properties, if absent - {big,little,native}-endian: these are boolean properties, if absent meaning that the CPU and the Device are in the same endianness mode, then the implementation will choose a default based on the device these properties are for register values and all the buffers only. being controlled. These properties are for register values and all the buffers only. Native endian means that the CPU and device have the same endianness. Examples: Examples: Scenario 1 : CPU in LE mode & device in LE mode. Scenario 1 : CPU in LE mode & device in LE mode. Loading
arch/mips/boot/dts/brcm/bcm6328.dtsi +1 −1 Original line number Original line Diff line number Diff line Loading @@ -74,7 +74,7 @@ timer: timer@10000040 { timer: timer@10000040 { compatible = "syscon"; compatible = "syscon"; reg = <0x10000040 0x2c>; reg = <0x10000040 0x2c>; little-endian; native-endian; }; }; reboot { reboot { Loading
arch/mips/boot/dts/brcm/bcm6368.dtsi +1 −1 Original line number Original line Diff line number Diff line Loading @@ -54,7 +54,7 @@ periph_cntl: syscon@10000000 { periph_cntl: syscon@10000000 { compatible = "syscon"; compatible = "syscon"; reg = <0x10000000 0x14>; reg = <0x10000000 0x14>; little-endian; native-endian; }; }; reboot: syscon-reboot@10000008 { reboot: syscon-reboot@10000008 { Loading
arch/mips/boot/dts/brcm/bcm7125.dtsi +1 −1 Original line number Original line Diff line number Diff line Loading @@ -98,7 +98,7 @@ sun_top_ctrl: syscon@404000 { sun_top_ctrl: syscon@404000 { compatible = "brcm,bcm7125-sun-top-ctrl", "syscon"; compatible = "brcm,bcm7125-sun-top-ctrl", "syscon"; reg = <0x404000 0x60c>; reg = <0x404000 0x60c>; little-endian; native-endian; }; }; reboot { reboot { Loading
arch/mips/boot/dts/brcm/bcm7346.dtsi +1 −1 Original line number Original line Diff line number Diff line Loading @@ -118,7 +118,7 @@ sun_top_ctrl: syscon@404000 { sun_top_ctrl: syscon@404000 { compatible = "brcm,bcm7346-sun-top-ctrl", "syscon"; compatible = "brcm,bcm7346-sun-top-ctrl", "syscon"; reg = <0x404000 0x51c>; reg = <0x404000 0x51c>; little-endian; native-endian; }; }; reboot { reboot { Loading