1ae701b60SGregory CLEMENT/*
2ae701b60SGregory CLEMENT * Copyright (C) 2017 Marvell Technology Group Ltd.
3ae701b60SGregory CLEMENT *
4ae701b60SGregory CLEMENT * This file is dual-licensed: you can use it either under the terms
5ae701b60SGregory CLEMENT * of the GPLv2 or the X11 license, at your option. Note that this dual
6ae701b60SGregory CLEMENT * licensing only applies to this file, and not this project as a
7ae701b60SGregory CLEMENT * whole.
8ae701b60SGregory CLEMENT *
9ae701b60SGregory CLEMENT *  a) This library is free software; you can redistribute it and/or
10ae701b60SGregory CLEMENT *     modify it under the terms of the GNU General Public License as
11ae701b60SGregory CLEMENT *     published by the Free Software Foundation; either version 2 of the
12ae701b60SGregory CLEMENT *     License, or (at your option) any later version.
13ae701b60SGregory CLEMENT *
14ae701b60SGregory CLEMENT *     This library is distributed in the hope that it will be useful,
15ae701b60SGregory CLEMENT *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16ae701b60SGregory CLEMENT *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17ae701b60SGregory CLEMENT *     GNU General Public License for more details.
18ae701b60SGregory CLEMENT *
19ae701b60SGregory CLEMENT * Or, alternatively,
20ae701b60SGregory CLEMENT *
21ae701b60SGregory CLEMENT *  b) Permission is hereby granted, free of charge, to any person
22ae701b60SGregory CLEMENT *     obtaining a copy of this software and associated documentation
23ae701b60SGregory CLEMENT *     files (the "Software"), to deal in the Software without
24ae701b60SGregory CLEMENT *     restriction, including without limitation the rights to use,
25ae701b60SGregory CLEMENT *     copy, modify, merge, publish, distribute, sublicense, and/or
26ae701b60SGregory CLEMENT *     sell copies of the Software, and to permit persons to whom the
27ae701b60SGregory CLEMENT *     Software is furnished to do so, subject to the following
28ae701b60SGregory CLEMENT *     conditions:
29ae701b60SGregory CLEMENT *
30ae701b60SGregory CLEMENT *     The above copyright notice and this permission notice shall be
31ae701b60SGregory CLEMENT *     included in all copies or substantial portions of the Software.
32ae701b60SGregory CLEMENT *
33ae701b60SGregory CLEMENT *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34ae701b60SGregory CLEMENT *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35ae701b60SGregory CLEMENT *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36ae701b60SGregory CLEMENT *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37ae701b60SGregory CLEMENT *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38ae701b60SGregory CLEMENT *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39ae701b60SGregory CLEMENT *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40ae701b60SGregory CLEMENT *     OTHER DEALINGS IN THE SOFTWARE.
41ae701b60SGregory CLEMENT */
42ae701b60SGregory CLEMENT
43ae701b60SGregory CLEMENT/*
44ae701b60SGregory CLEMENT * Device Tree file for the Armada 80x0 SoC family
45ae701b60SGregory CLEMENT */
46ae701b60SGregory CLEMENT
47ae701b60SGregory CLEMENT#include "armada-cp110-master.dtsi"
48ae701b60SGregory CLEMENT#include "armada-cp110-slave.dtsi"
49ae701b60SGregory CLEMENT
5063dac0f4SGregory CLEMENT/ {
5163dac0f4SGregory CLEMENT	aliases {
5263dac0f4SGregory CLEMENT		gpio1 = &cps_gpio1;
5363dac0f4SGregory CLEMENT		gpio2 = &cpm_gpio2;
5463dac0f4SGregory CLEMENT	};
5563dac0f4SGregory CLEMENT};
5663dac0f4SGregory CLEMENT
5763dac0f4SGregory CLEMENT/* The 80x0 has two CP blocks, but uses only one block from each. */
5863dac0f4SGregory CLEMENT&cps_gpio1 {
5963dac0f4SGregory CLEMENT	status = "okay";
6063dac0f4SGregory CLEMENT};
6163dac0f4SGregory CLEMENT
6263dac0f4SGregory CLEMENT&cpm_gpio2 {
6363dac0f4SGregory CLEMENT	status = "okay";
6463dac0f4SGregory CLEMENT};
6563dac0f4SGregory CLEMENT
66ae701b60SGregory CLEMENT&cpm_syscon0 {
67ae701b60SGregory CLEMENT	cpm_pinctrl: pinctrl {
68ae701b60SGregory CLEMENT		compatible = "marvell,armada-8k-cpm-pinctrl";
69ae701b60SGregory CLEMENT	};
70ae701b60SGregory CLEMENT};
71ae701b60SGregory CLEMENT
72ae701b60SGregory CLEMENT&cps_syscon0 {
73ae701b60SGregory CLEMENT	cps_pinctrl: pinctrl {
74ae701b60SGregory CLEMENT		compatible = "marvell,armada-8k-cps-pinctrl";
757b31e3adSMiquel Raynal
767b31e3adSMiquel Raynal		nand_pins: nand-pins {
777b31e3adSMiquel Raynal			marvell,pins =
787b31e3adSMiquel Raynal			"mpp0", "mpp1", "mpp2", "mpp3",
797b31e3adSMiquel Raynal			"mpp4", "mpp5", "mpp6", "mpp7",
807b31e3adSMiquel Raynal			"mpp8", "mpp9", "mpp10", "mpp11",
817b31e3adSMiquel Raynal			"mpp15", "mpp16", "mpp17", "mpp18",
827b31e3adSMiquel Raynal			"mpp19", "mpp20", "mpp21", "mpp22",
837b31e3adSMiquel Raynal			"mpp23", "mpp24", "mpp25", "mpp26",
847b31e3adSMiquel Raynal			"mpp27";
857b31e3adSMiquel Raynal			marvell,function = "dev";
867b31e3adSMiquel Raynal		};
877b31e3adSMiquel Raynal
887b31e3adSMiquel Raynal		nand_rb: nand-rb {
897b31e3adSMiquel Raynal			marvell,pins = "mpp13", "mpp12";
907b31e3adSMiquel Raynal			marvell,function = "nf";
917b31e3adSMiquel Raynal		};
92ae701b60SGregory CLEMENT	};
93ae701b60SGregory CLEMENT};
94