diff options
Diffstat (limited to 'arch/arm/dts')
-rw-r--r-- | arch/arm/dts/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/dts/at91-microchip-ksz9477-evb.dts | 1 | ||||
-rw-r--r-- | arch/arm/dts/at91-sama5d27_som1.dtsi | 18 | ||||
-rw-r--r-- | arch/arm/dts/at91-sama5d27_som1_ek.dts | 2 | ||||
-rw-r--r-- | arch/arm/dts/at91-sama5d3_xplained.dts | 50 | ||||
-rw-r--r-- | arch/arm/dts/sama5d3.dtsi | 23 |
6 files changed, 94 insertions, 1 deletions
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index ffa9fe88c1..96063c541d 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -165,6 +165,7 @@ lwl-$(CONFIG_MACH_ZII_VF610_DEV) += \ vf610-zii-ssmb-dtu.dtb.o lwl-$(CONFIG_MACH_AC_SXB) += ac-sxb.dtb.o lwl-$(CONFIG_MACH_AT91SAM9263EK_DT) += at91sam9263ek.dtb.o +lwl-$(CONFIG_MACH_SAMA5D3_XPLAINED) += at91-sama5d3_xplained.dtb.o lwl-$(CONFIG_MACH_MICROCHIP_KSZ9477_EVB) += at91-microchip-ksz9477-evb.dtb.o lwl-$(CONFIG_MACH_SAMA5D27_SOM1) += at91-sama5d27_som1_ek.dtb.o lwl-$(CONFIG_MACH_SAMA5D27_GIANTBOARD) += at91-sama5d27_giantboard.dtb.o diff --git a/arch/arm/dts/at91-microchip-ksz9477-evb.dts b/arch/arm/dts/at91-microchip-ksz9477-evb.dts index 3eb2017942..b7e619a363 100644 --- a/arch/arm/dts/at91-microchip-ksz9477-evb.dts +++ b/arch/arm/dts/at91-microchip-ksz9477-evb.dts @@ -9,6 +9,7 @@ */ /dts-v1/; #include <arm/sama5d36.dtsi> +#include "sama5d3.dtsi" / { model = "Microchip EVB-KSZ9477"; diff --git a/arch/arm/dts/at91-sama5d27_som1.dtsi b/arch/arm/dts/at91-sama5d27_som1.dtsi new file mode 100644 index 0000000000..0d84c45f92 --- /dev/null +++ b/arch/arm/dts/at91-sama5d27_som1.dtsi @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +#include "sama5d2.dtsi" + +&macb0 { + nvmem-cells = <&macaddr>; + nvmem-cell-names = "mac-address"; +}; + +&{/ahb/apb/i2c@f8028000/at24@50} { + #address-cells = <1>; + #size-cells = <1>; + + macaddr: mac-address@fa { + reg = <0xfa 6>; + label = "mac-address"; + }; +}; diff --git a/arch/arm/dts/at91-sama5d27_som1_ek.dts b/arch/arm/dts/at91-sama5d27_som1_ek.dts index 97a326dd2b..1a704b4268 100644 --- a/arch/arm/dts/at91-sama5d27_som1_ek.dts +++ b/arch/arm/dts/at91-sama5d27_som1_ek.dts @@ -4,7 +4,7 @@ */ #include <arm/at91-sama5d27_som1_ek.dts> -#include "sama5d2.dtsi" +#include "at91-sama5d27_som1.dtsi" / { chosen { diff --git a/arch/arm/dts/at91-sama5d3_xplained.dts b/arch/arm/dts/at91-sama5d3_xplained.dts new file mode 100644 index 0000000000..cdb29ca666 --- /dev/null +++ b/arch/arm/dts/at91-sama5d3_xplained.dts @@ -0,0 +1,50 @@ +/* SPDX-License-Identifier: GPL-2.0 OR X11 */ +/* + * Copyright (C) 2021 Ahmad Fatoum <a.fatoum@pengutronix.de> + */ + +/dts-v1/; + +#include <arm/at91-sama5d3_xplained.dts> +#include "sama5d3.dtsi" + +/ { + model = "Atmel sama5d3_xplained"; + + chosen { + environment { + compatible = "barebox,environment"; + device-path = &mmc0, "partname:0"; + file-path = "barebox.env"; + }; + }; +}; + +/* Will be automatically read back from HW */ +/delete-node/ &{/memory@20000000}; + +&nand_controller { + nand@3 { + compatible = "atmel,at91rm9200-nand"; + #address-cells = <1>; + #size-cells = <1>; + reg = < 0x60000000 0x01000000 /* EBI CS3 */ + 0xffffc070 0x00000490 /* SMC PMECC regs */ + 0xffffc500 0x00000100 /* SMC PMECC Error Location regs */ + 0x00110000 0x00018000 /* ROM code */ + >; + interrupts = <5 IRQ_TYPE_LEVEL_HIGH 6>; + atmel,nand-addr-offset = <21>; + atmel,nand-cmd-offset = <22>; + atmel,nand-has-dma; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_nand0_ale_cle>; + atmel,pmecc-lookup-table-offset = <0x10000 0x8000>; + + atmel,has-pmecc; + atmel,pmecc-cap = <4>; + atmel,pmecc-sector-size = <512>; + status = "okay"; + }; +}; + diff --git a/arch/arm/dts/sama5d3.dtsi b/arch/arm/dts/sama5d3.dtsi new file mode 100644 index 0000000000..2301ad135b --- /dev/null +++ b/arch/arm/dts/sama5d3.dtsi @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/ { + aliases { + mmc0 = &mmc0; + mmc1 = &mmc1; + }; +}; + +&ebi { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + +}; + +&nand_controller { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + +}; |