0001 /*
0002 * Device Tree file for Buffalo/Revogear Kurobox Pro
0003 *
0004 * Copyright (C) 2016
0005 * Roger Shimizu <rogershimizu@gmail.com>
0006 *
0007 * Based on the board file arch/arm/mach-orion5x/kurobox_pro-setup.c
0008 * Copyright (C) Ronen Shitrit <rshitrit@marvell.com>
0009 *
0010 * This file is dual-licensed: you can use it either under the terms
0011 * of the GPL or the X11 license, at your option. Note that this dual
0012 * licensing only applies to this file, and not this project as a
0013 * whole.
0014 *
0015 * a) This file is free software; you can redistribute it and/or
0016 * modify it under the terms of the GNU General Public License as
0017 * published by the Free Software Foundation; either version 2 of the
0018 * License, or (at your option) any later version.
0019 *
0020 * This file is distributed in the hope that it will be useful,
0021 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0023 * GNU General Public License for more details.
0024 *
0025 * Or, alternatively,
0026 *
0027 * b) Permission is hereby granted, free of charge, to any person
0028 * obtaining a copy of this software and associated documentation
0029 * files (the "Software"), to deal in the Software without
0030 * restriction, including without limitation the rights to use,
0031 * copy, modify, merge, publish, distribute, sublicense, and/or
0032 * sell copies of the Software, and to permit persons to whom the
0033 * Software is furnished to do so, subject to the following
0034 * conditions:
0035 *
0036 * The above copyright notice and this permission notice shall be
0037 * included in all copies or substantial portions of the Software.
0038 *
0039 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0040 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0041 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0042 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0043 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0044 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0045 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0046 * OTHER DEALINGS IN THE SOFTWARE.
0047 */
0048
0049 /dts-v1/;
0050
0051 #include "orion5x-linkstation.dtsi"
0052 #include <dt-bindings/gpio/gpio.h>
0053
0054 / {
0055 model = "Buffalo/Revogear Kurobox Pro";
0056 compatible = "buffalo,kurobox-pro", "marvell,orion5x-88f5182", "marvell,orion5x";
0057
0058 soc {
0059 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
0060 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
0061 <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x40000>,
0062 <MBUS_ID(0x01, 0x1e) 0 0xfc000000 0x1000000>;
0063 };
0064
0065 memory { /* 128 MB */
0066 device_type = "memory";
0067 reg = <0x00000000 0x8000000>;
0068 };
0069 };
0070
0071 &pinctrl {
0072 pmx_power_hdd: pmx-power-hdd {
0073 marvell,pins = "mpp1";
0074 marvell,function = "gpio";
0075 };
0076
0077 pmx_power_usb: pmx-power-usb {
0078 marvell,pins = "mpp9";
0079 marvell,function = "gpio";
0080 };
0081 };
0082
0083 &devbus_cs0 {
0084 status = "okay";
0085 compatible = "marvell,orion-nand";
0086 reg = <MBUS_ID(0x01, 0x1e) 0 0x400>;
0087 cle = <0>;
0088 ale = <1>;
0089 bank-width = <1>;
0090
0091 partitions {
0092 compatible = "fixed-partitions";
0093 #address-cells = <1>;
0094 #size-cells = <1>;
0095
0096 uImage@0 { /* 4 MB */
0097 reg = <0 0x400000>;
0098 read-only;
0099 };
0100
0101 rootfs@400000 { /* 64 MB */
0102 reg = <0x400000 0x4000000>;
0103 read-only;
0104 };
0105
0106 extra@4400000 { /* 188 MB */
0107 reg = <0x4400000 0xBC00000>;
0108 read-only;
0109 };
0110 };
0111 };
0112
0113 &hdd_power {
0114 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
0115 };
0116
0117 &usb_power {
0118 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
0119 };
0120
0121 &sata {
0122 nr-ports = <2>;
0123 };
0124
0125 &ehci1 {
0126 status = "okay";
0127 };