1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2016- 2021 Marvell International Ltd.
4 */
5
6/*
7 * Device Tree file for the Armada 8040 SoC, made of an AP806 Quad and
8 * two CP110.
9 */
10
11#include <dt-bindings/gpio/gpio.h>
12#include "armada-common.dtsi"
13#include "armada-8k.dtsi"
14#include "armada-ap806.dtsi"
15#include "armada-ap80x-quad.dtsi"
16
17/* CP110-0 Settings */
18#define CP110_NAME		cp0
19#define CP110_NUM		0
20
21#include "armada-cp110.dtsi"
22
23#undef CP110_NAME
24#undef CP110_NUM
25
26/* CP110-1 Settings */
27#define CP110_NAME		cp1
28#define CP110_NUM		1
29
30#include "armada-cp110.dtsi"
31
32#undef CP110_NAME
33#undef CP110_NUM
34
35
36/ {
37	model = "Marvell Armada 8040";
38	compatible = "marvell,armada8040", "marvell,armada-ap806-quad",
39		     "marvell,armada-ap806";
40};
41
42&cp0_pinctl {
43	compatible = "marvell,mvebu-pinctrl", "marvell,8k-cpm-pinctrl";
44	bank-name ="cp0-110";
45
46	cp0_i2c0_pins: cp0-i2c-pins-0 {
47		marvell,pins = < 37 38 >;
48		marvell,function = <2>;
49	};
50	cp0_i2c1_pins: cp0-i2c-pins-1 {
51		marvell,pins = < 35 36 >;
52	marvell,function = <2>;
53	};
54	cp0_ge1_rgmii_pins: cp0-ge-rgmii-pins-0 {
55		marvell,pins = < 0 1 2 3 4 5 6 7 8 9 10 11>;
56		marvell,function = <3>;
57	};
58	cp0_ge2_rgmii_pins: cp0-ge-rgmii-pins-1 {
59		marvell,pins = < 44 45 46 47 48 49 50 51
60				 52 53 54 55 >;
61		marvell,function = <1>;
62	};
63	cp0_pca0_pins: cp0-pca0_pins {
64		marvell,pins = <62>;
65		marvell,function = <0>;
66	};
67	cp0_sdhci_pins: cp0-sdhi-pins-0 {
68		marvell,pins = < 56 57 58 59 60 61 >;
69		marvell,function = <14>;
70	};
71	cp0_spi0_pins: cp0-spi-pins-0 {
72		marvell,pins = < 13 14 15 16 >;
73		marvell,function = <3>;
74	};
75};
76
77&cp1_pinctl {
78	compatible = "marvell,mvebu-pinctrl", "marvell,8k-cps-pinctrl";
79	bank-name ="cp1-110";
80
81	cp1_ge1_rgmii_pins: cp1-ge-rgmii-pins-0 {
82		marvell,pins = < 0 1 2 3 4 5 6 7 8 9 10 11 >;
83		marvell,function = <3>;
84	};
85	cp1_spi1_pins: cp1-spi-pins-1 {
86		marvell,pins = < 13 14 15 16 >;
87		marvell,function = <3>;
88	};
89};
90