Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 781aab84 authored by Mark Brown's avatar Mark Brown
Browse files

Merge remote-tracking branch 'regmap/topic/mmio' into regmap-next

parents 0e03ae74 aacaaa4c
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -5,15 +5,18 @@ Index Device Endianness properties
---------------------------------------------------
1         BE         'big-endian'
2         LE         'little-endian'
3	  Native     'native-endian'

For one device driver, which will run in different scenarios above
on different SoCs using the devicetree, we need one way to simplify
this.

Required properties:
- {big,little}-endian: these are boolean properties, if absent
  meaning that the CPU and the Device are in the same endianness mode,
  these properties are for register values and all the buffers only.
Optional properties:
- {big,little,native}-endian: these are boolean properties, if absent
  then the implementation will choose a default based on the device
  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:
Scenario 1 : CPU in LE mode & device in LE mode.
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@
		timer: timer@10000040 {
			compatible = "syscon";
			reg = <0x10000040 0x2c>;
			little-endian;
			native-endian;
		};

		reboot {
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@
		periph_cntl: syscon@10000000 {
			compatible = "syscon";
			reg = <0x10000000 0x14>;
			little-endian;
			native-endian;
		};

		reboot: syscon-reboot@10000008 {
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@
		sun_top_ctrl: syscon@404000 {
			compatible = "brcm,bcm7125-sun-top-ctrl", "syscon";
			reg = <0x404000 0x60c>;
			little-endian;
			native-endian;
		};

		reboot {
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@
		sun_top_ctrl: syscon@404000 {
			compatible = "brcm,bcm7346-sun-top-ctrl", "syscon";
			reg = <0x404000 0x51c>;
			little-endian;
			native-endian;
		};

		reboot {
Loading