18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2017 Marvell Technology Group Ltd.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Device Tree file for the Armada 80x0 SoC family
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/ {
98c2ecf20Sopenharmony_ci	aliases {
108c2ecf20Sopenharmony_ci		gpio1 = &cp1_gpio1;
118c2ecf20Sopenharmony_ci		gpio2 = &cp0_gpio2;
128c2ecf20Sopenharmony_ci		spi1 = &cp0_spi0;
138c2ecf20Sopenharmony_ci		spi2 = &cp0_spi1;
148c2ecf20Sopenharmony_ci		spi3 = &cp1_spi0;
158c2ecf20Sopenharmony_ci		spi4 = &cp1_spi1;
168c2ecf20Sopenharmony_ci	};
178c2ecf20Sopenharmony_ci};
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci/*
208c2ecf20Sopenharmony_ci * Instantiate the master CP110
218c2ecf20Sopenharmony_ci */
228c2ecf20Sopenharmony_ci#define CP11X_NAME		cp0
238c2ecf20Sopenharmony_ci#define CP11X_BASE		f2000000
248c2ecf20Sopenharmony_ci#define CP11X_PCIEx_MEM_BASE(iface) (0xf6000000 + (iface * 0x1000000))
258c2ecf20Sopenharmony_ci#define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
268c2ecf20Sopenharmony_ci#define CP11X_PCIE0_BASE	f2600000
278c2ecf20Sopenharmony_ci#define CP11X_PCIE1_BASE	f2620000
288c2ecf20Sopenharmony_ci#define CP11X_PCIE2_BASE	f2640000
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci#include "armada-cp110.dtsi"
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#undef CP11X_NAME
338c2ecf20Sopenharmony_ci#undef CP11X_BASE
348c2ecf20Sopenharmony_ci#undef CP11X_PCIEx_MEM_BASE
358c2ecf20Sopenharmony_ci#undef CP11X_PCIEx_MEM_SIZE
368c2ecf20Sopenharmony_ci#undef CP11X_PCIE0_BASE
378c2ecf20Sopenharmony_ci#undef CP11X_PCIE1_BASE
388c2ecf20Sopenharmony_ci#undef CP11X_PCIE2_BASE
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci/*
418c2ecf20Sopenharmony_ci * Instantiate the slave CP110
428c2ecf20Sopenharmony_ci */
438c2ecf20Sopenharmony_ci#define CP11X_NAME		cp1
448c2ecf20Sopenharmony_ci#define CP11X_BASE		f4000000
458c2ecf20Sopenharmony_ci#define CP11X_PCIEx_MEM_BASE(iface) (0xfa000000 + (iface * 0x1000000))
468c2ecf20Sopenharmony_ci#define CP11X_PCIEx_MEM_SIZE(iface) 0xf00000
478c2ecf20Sopenharmony_ci#define CP11X_PCIE0_BASE	f4600000
488c2ecf20Sopenharmony_ci#define CP11X_PCIE1_BASE	f4620000
498c2ecf20Sopenharmony_ci#define CP11X_PCIE2_BASE	f4640000
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci#include "armada-cp110.dtsi"
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci#undef CP11X_NAME
548c2ecf20Sopenharmony_ci#undef CP11X_BASE
558c2ecf20Sopenharmony_ci#undef CP11X_PCIEx_MEM_BASE
568c2ecf20Sopenharmony_ci#undef CP11X_PCIEx_MEM_SIZE
578c2ecf20Sopenharmony_ci#undef CP11X_PCIE0_BASE
588c2ecf20Sopenharmony_ci#undef CP11X_PCIE1_BASE
598c2ecf20Sopenharmony_ci#undef CP11X_PCIE2_BASE
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci/* The 80x0 has two CP blocks, but uses only one block from each. */
628c2ecf20Sopenharmony_ci&cp1_gpio1 {
638c2ecf20Sopenharmony_ci	status = "okay";
648c2ecf20Sopenharmony_ci};
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci&cp0_gpio2 {
678c2ecf20Sopenharmony_ci	status = "okay";
688c2ecf20Sopenharmony_ci};
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci&cp0_syscon0 {
718c2ecf20Sopenharmony_ci	cp0_pinctrl: pinctrl {
728c2ecf20Sopenharmony_ci		compatible = "marvell,armada-8k-cpm-pinctrl";
738c2ecf20Sopenharmony_ci	};
748c2ecf20Sopenharmony_ci};
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci&cp1_syscon0 {
778c2ecf20Sopenharmony_ci	cp1_pinctrl: pinctrl {
788c2ecf20Sopenharmony_ci		compatible = "marvell,armada-8k-cps-pinctrl";
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci		nand_pins: nand-pins {
818c2ecf20Sopenharmony_ci			marvell,pins =
828c2ecf20Sopenharmony_ci			"mpp0", "mpp1", "mpp2", "mpp3",
838c2ecf20Sopenharmony_ci			"mpp4", "mpp5", "mpp6", "mpp7",
848c2ecf20Sopenharmony_ci			"mpp8", "mpp9", "mpp10", "mpp11",
858c2ecf20Sopenharmony_ci			"mpp15", "mpp16", "mpp17", "mpp18",
868c2ecf20Sopenharmony_ci			"mpp19", "mpp20", "mpp21", "mpp22",
878c2ecf20Sopenharmony_ci			"mpp23", "mpp24", "mpp25", "mpp26",
888c2ecf20Sopenharmony_ci			"mpp27";
898c2ecf20Sopenharmony_ci			marvell,function = "dev";
908c2ecf20Sopenharmony_ci		};
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ci		nand_rb: nand-rb {
938c2ecf20Sopenharmony_ci			marvell,pins = "mpp13", "mpp12";
948c2ecf20Sopenharmony_ci			marvell,function = "nf";
958c2ecf20Sopenharmony_ci		};
968c2ecf20Sopenharmony_ci	};
978c2ecf20Sopenharmony_ci};
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci&cp1_crypto {
1008c2ecf20Sopenharmony_ci	/*
1018c2ecf20Sopenharmony_ci	 * The cryptographic engine found on the cp110
1028c2ecf20Sopenharmony_ci	 * master is enabled by default at the SoC
1038c2ecf20Sopenharmony_ci	 * level. Because it is not possible as of now
1048c2ecf20Sopenharmony_ci	 * to enable two cryptographic engines in
1058c2ecf20Sopenharmony_ci	 * parallel, disable this one by default.
1068c2ecf20Sopenharmony_ci	 */
1078c2ecf20Sopenharmony_ci	status = "disabled";
1088c2ecf20Sopenharmony_ci};
109