diff --git a/dts/arm/nxp/nxp_lpc11u6x.dtsi b/dts/arm/nxp/nxp_lpc11u6x.dtsi index 5e026714d5e..882a03d7895 100644 --- a/dts/arm/nxp/nxp_lpc11u6x.dtsi +++ b/dts/arm/nxp/nxp_lpc11u6x.dtsi @@ -1,11 +1,12 @@ /* - * Copyright (c) 2020, Seagate + * Copyright (c) 2020, Seagate Technology LLC * * SPDX-License-Identifier: Apache-2.0 */ #include #include #include +#include / { cpus { @@ -37,6 +38,18 @@ compatible = "soc-nv-flash"; }; + /* On-chip EEPROM. */ + eeprom0: eeprom_0 { + compatible = "nxp,lpc11u6x-eeprom"; + label = "EEPROM_0"; + /* + * For some reasons, the IAP commands don't allow to + * reach the last 64 bytes of the EEPROM. + */ + size = <(DT_SIZE_K(4) - 64)>; + status = "okay"; + }; + /* PIO0_0 to PIO0_23. */ pinmux0: pinmux@40044000 { compatible = "nxp,lpc11u6x-pinmux"; diff --git a/dts/bindings/mtd/nxp,lpc11u6x-eeprom.yaml b/dts/bindings/mtd/nxp,lpc11u6x-eeprom.yaml new file mode 100644 index 00000000000..ddca97882a7 --- /dev/null +++ b/dts/bindings/mtd/nxp,lpc11u6x-eeprom.yaml @@ -0,0 +1,8 @@ +# Copyright (c) 2020 Seagate Technology LLC +# SPDX-License-Identifier: Apache-2.0 + +description: NXP LPC11U6X on-chip EEPROM node + +compatible: "nxp,lpc11u6x-eeprom" + +include: eeprom-base.yaml