blob: eec5fa2774057d9365c3a42cfa846a3620cad1ce [file] [log] [blame]
Konstantin Porotchkin7134b352021-01-17 17:19:49 +02001// SPDX-License-Identifier: GPL-2.0+
Stefan Roesea77121c2016-10-25 10:10:32 +02002/*
Konstantin Porotchkin7134b352021-01-17 17:19:49 +02003 * Copyright (C) 2016- 2021 Marvell International Ltd.
Stefan Roesea77121c2016-10-25 10:10:32 +02004 */
5
6/*
7 * Device Tree file for the Armada 8040 SoC, made of an AP806 Quad and
8 * two CP110.
9 */
10
Konstantin Porotchkinb5809992017-02-08 17:34:11 +020011#include <dt-bindings/gpio/gpio.h>
Konstantin Porotchkin7134b352021-01-17 17:19:49 +020012#include "armada-common.dtsi"
13#include "armada-8k.dtsi"
Konstantin Porotchkina6edc0c2021-02-23 14:11:36 +010014#include "armada-ap806.dtsi"
15#include "armada-ap80x-quad.dtsi"
Konstantin Porotchkin7134b352021-01-17 17:19:49 +020016
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
Stefan Roesea77121c2016-10-25 10:10:32 +020035
36/ {
37 model = "Marvell Armada 8040";
38 compatible = "marvell,armada8040", "marvell,armada-ap806-quad",
39 "marvell,armada-ap806";
40};
Konstantin Porotchkin7134b352021-01-17 17:19:49 +020041
42&cp0_pinctl {
Robert Markof1745eb2021-09-27 23:03:26 +020043 compatible = "marvell,mvebu-pinctrl", "marvell,armada-8k-cpm-pinctrl";
Konstantin Porotchkin7134b352021-01-17 17:19:49 +020044 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 {
Robert Markof1745eb2021-09-27 23:03:26 +020078 compatible = "marvell,mvebu-pinctrl", "marvell,armada-8k-cps-pinctrl";
Konstantin Porotchkin7134b352021-01-17 17:19:49 +020079 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};