Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Stefan Roese | a77121c | 2016-10-25 10:10:32 +0200 | [diff] [blame] | 2 | /* |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 3 | * Copyright (C) 2016- 2021 Marvell International Ltd. |
Stefan Roese | a77121c | 2016-10-25 10:10:32 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * Device Tree file for the Armada 8040 SoC, made of an AP806 Quad and |
| 8 | * two CP110. |
| 9 | */ |
| 10 | |
Konstantin Porotchkin | b580999 | 2017-02-08 17:34:11 +0200 | [diff] [blame] | 11 | #include <dt-bindings/gpio/gpio.h> |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 12 | #include "armada-common.dtsi" |
| 13 | #include "armada-8k.dtsi" |
Konstantin Porotchkin | a6edc0c | 2021-02-23 14:11:36 +0100 | [diff] [blame] | 14 | #include "armada-ap806.dtsi" |
| 15 | #include "armada-ap80x-quad.dtsi" |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 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 | |
Stefan Roese | a77121c | 2016-10-25 10:10:32 +0200 | [diff] [blame] | 35 | |
| 36 | / { |
| 37 | model = "Marvell Armada 8040"; |
| 38 | compatible = "marvell,armada8040", "marvell,armada-ap806-quad", |
| 39 | "marvell,armada-ap806"; |
| 40 | }; |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 41 | |
| 42 | &cp0_pinctl { |
Robert Marko | f1745eb | 2021-09-27 23:03:26 +0200 | [diff] [blame] | 43 | compatible = "marvell,mvebu-pinctrl", "marvell,armada-8k-cpm-pinctrl"; |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 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 { |
Robert Marko | f1745eb | 2021-09-27 23:03:26 +0200 | [diff] [blame] | 78 | compatible = "marvell,mvebu-pinctrl", "marvell,armada-8k-cps-pinctrl"; |
Konstantin Porotchkin | 7134b35 | 2021-01-17 17:19:49 +0200 | [diff] [blame] | 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 | }; |