]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: at91: update flexcom defines using include file
authorEugen Hristev <eugen.hristev@microchip.com>
Fri, 27 Aug 2021 10:44:12 +0000 (13:44 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 21 Sep 2021 07:08:24 +0000 (10:08 +0300)
Replace the number in the flexcom-mode property with the define from the
include file.
This corresponds to the approach in Linux kernel.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
arch/arm/dts/sam9x60ek.dts
arch/arm/dts/sama7g5ek.dts

index 77edd593b41658fa1ec4cac30e072c18a01e5c59..32ffe93b4d9f2ba5e25fbc280e81c748d1b6e8ec 100644 (file)
@@ -7,6 +7,7 @@
  * Author: Sandeep Sheriker M <Sandeepsheriker.mallikarjun@microchip.com>
  */
 /dts-v1/;
+#include <dt-bindings/mfd/atmel-flexcom.h>
 #include "sam9x60.dtsi"
 
 / {
@@ -57,7 +58,7 @@
                        };
 
                        flx0: flexcom@f801c600 {
-                               atmel,flexcom-mode = <3>;
+                               atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
                                status = "okay";
 
                                i2c@600 {
index 3a4fdd38a59084dc34b927b174d49bded840ce72..1c59a8aaf8fc7690a64479b4ae3e963cb011a4ce 100644 (file)
@@ -8,6 +8,7 @@
  *               2020, Claudiu Beznea <claudiu.beznea@microchip.com>
  */
 /dts-v1/;
+#include <dt-bindings/mfd/atmel-flexcom.h>
 #include "sama7g5.dtsi"
 #include "sama7g5-pinfunc.h"
 
@@ -64,7 +65,7 @@
 };
 
 &flx1 {
-       atmel,flexcom-mode = <3>;
+       atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
        status = "okay";
 };