mirror of
https://xff.cz/git/u-boot/
synced 2025-09-09 04:32:29 +02:00
ARM: dts: at91: update flexcom defines using include file
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>
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
* Author: Sandeep Sheriker M <Sandeepsheriker.mallikarjun@microchip.com>
|
* Author: Sandeep Sheriker M <Sandeepsheriker.mallikarjun@microchip.com>
|
||||||
*/
|
*/
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
#include <dt-bindings/mfd/atmel-flexcom.h>
|
||||||
#include "sam9x60.dtsi"
|
#include "sam9x60.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
@@ -57,7 +58,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
flx0: flexcom@f801c600 {
|
flx0: flexcom@f801c600 {
|
||||||
atmel,flexcom-mode = <3>;
|
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
i2c@600 {
|
i2c@600 {
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
* 2020, Claudiu Beznea <claudiu.beznea@microchip.com>
|
* 2020, Claudiu Beznea <claudiu.beznea@microchip.com>
|
||||||
*/
|
*/
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
#include <dt-bindings/mfd/atmel-flexcom.h>
|
||||||
#include "sama7g5.dtsi"
|
#include "sama7g5.dtsi"
|
||||||
#include "sama7g5-pinfunc.h"
|
#include "sama7g5-pinfunc.h"
|
||||||
|
|
||||||
@@ -64,7 +65,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&flx1 {
|
&flx1 {
|
||||||
atmel,flexcom-mode = <3>;
|
atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user