1 /* 1 /* 2 * Device Tree file for Buffalo/Revogear Kurob 2 * Device Tree file for Buffalo/Revogear Kurobox Pro 3 * 3 * 4 * Copyright (C) 2016 4 * Copyright (C) 2016 5 * Roger Shimizu <rogershimizu@gmail.com> 5 * Roger Shimizu <rogershimizu@gmail.com> 6 * 6 * 7 * Based on the board file arch/arm/mach-orion 7 * Based on the board file arch/arm/mach-orion5x/kurobox_pro-setup.c 8 * Copyright (C) Ronen Shitrit <rshitrit@marvel 8 * Copyright (C) Ronen Shitrit <rshitrit@marvell.com> 9 * 9 * 10 * This file is dual-licensed: you can use it 10 * This file is dual-licensed: you can use it either under the terms 11 * of the GPL or the X11 license, at your opti 11 * of the GPL or the X11 license, at your option. Note that this dual 12 * licensing only applies to this file, and no 12 * licensing only applies to this file, and not this project as a 13 * whole. 13 * whole. 14 * 14 * 15 * a) This file is free software; you can red 15 * a) This file is free software; you can redistribute it and/or 16 * modify it under the terms of the GNU Ge 16 * modify it under the terms of the GNU General Public License as 17 * published by the Free Software Foundati 17 * published by the Free Software Foundation; either version 2 of the 18 * License, or (at your option) any later 18 * License, or (at your option) any later version. 19 * 19 * 20 * This file is distributed in the hope th 20 * This file is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTIC 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more det 23 * GNU General Public License for more details. 24 * 24 * 25 * Or, alternatively, 25 * Or, alternatively, 26 * 26 * 27 * b) Permission is hereby granted, free of c 27 * b) Permission is hereby granted, free of charge, to any person 28 * obtaining a copy of this software and a 28 * obtaining a copy of this software and associated documentation 29 * files (the "Software"), to deal in the 29 * files (the "Software"), to deal in the Software without 30 * restriction, including without limitati 30 * restriction, including without limitation the rights to use, 31 * copy, modify, merge, publish, distribut 31 * copy, modify, merge, publish, distribute, sublicense, and/or 32 * sell copies of the Software, and to per 32 * sell copies of the Software, and to permit persons to whom the 33 * Software is furnished to do so, subject 33 * Software is furnished to do so, subject to the following 34 * conditions: 34 * conditions: 35 * 35 * 36 * The above copyright notice and this per 36 * The above copyright notice and this permission notice shall be 37 * included in all copies or substantial p 37 * included in all copies or substantial portions of the Software. 38 * 38 * 39 * THE SOFTWARE IS PROVIDED "AS IS", WITHO 39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT L 40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 41 * OF MERCHANTABILITY, FITNESS FOR A PARTI 41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 42 * NONINFRINGEMENT. IN NO EVENT SHALL THE 42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGE 43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 44 * WHETHER IN AN ACTION OF CONTRACT, TORT 44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 45 * FROM, OUT OF OR IN CONNECTION WITH THE 45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 46 * OTHER DEALINGS IN THE SOFTWARE. 46 * OTHER DEALINGS IN THE SOFTWARE. 47 */ 47 */ 48 48 49 /dts-v1/; 49 /dts-v1/; 50 50 51 #include "orion5x-linkstation.dtsi" 51 #include "orion5x-linkstation.dtsi" 52 #include <dt-bindings/gpio/gpio.h> 52 #include <dt-bindings/gpio/gpio.h> 53 53 54 / { 54 / { 55 model = "Buffalo/Revogear Kurobox Pro" 55 model = "Buffalo/Revogear Kurobox Pro"; 56 compatible = "buffalo,kurobox-pro", "m 56 compatible = "buffalo,kurobox-pro", "marvell,orion5x-88f5182", "marvell,orion5x"; 57 57 58 soc { 58 soc { 59 ranges = <MBUS_ID(0xf0, 0x01) 59 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>, 60 <MBUS_ID(0x09 60 <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>, 61 <MBUS_ID(0x01 61 <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x40000>, 62 <MBUS_ID(0x01 62 <MBUS_ID(0x01, 0x1e) 0 0xfc000000 0x1000000>; 63 }; 63 }; 64 64 65 memory { /* 128 MB */ 65 memory { /* 128 MB */ 66 device_type = "memory"; 66 device_type = "memory"; 67 reg = <0x00000000 0x8000000>; 67 reg = <0x00000000 0x8000000>; 68 }; 68 }; 69 }; 69 }; 70 70 71 &pinctrl { 71 &pinctrl { 72 pmx_power_hdd: pmx-power-hdd { 72 pmx_power_hdd: pmx-power-hdd { 73 marvell,pins = "mpp1"; 73 marvell,pins = "mpp1"; 74 marvell,function = "gpio"; 74 marvell,function = "gpio"; 75 }; 75 }; 76 76 77 pmx_power_usb: pmx-power-usb { 77 pmx_power_usb: pmx-power-usb { 78 marvell,pins = "mpp9"; 78 marvell,pins = "mpp9"; 79 marvell,function = "gpio"; 79 marvell,function = "gpio"; 80 }; 80 }; 81 }; 81 }; 82 82 83 &devbus_cs0 { 83 &devbus_cs0 { 84 status = "okay"; 84 status = "okay"; 85 compatible = "marvell,orion-nand"; 85 compatible = "marvell,orion-nand"; 86 reg = <MBUS_ID(0x01, 0x1e) 0 0x400>; 86 reg = <MBUS_ID(0x01, 0x1e) 0 0x400>; 87 cle = <0>; 87 cle = <0>; 88 ale = <1>; 88 ale = <1>; 89 bank-width = <1>; 89 bank-width = <1>; 90 90 91 partitions { 91 partitions { 92 compatible = "fixed-partitions 92 compatible = "fixed-partitions"; 93 #address-cells = <1>; 93 #address-cells = <1>; 94 #size-cells = <1>; 94 #size-cells = <1>; 95 95 96 uImage@0 { /* 4 MB */ 96 uImage@0 { /* 4 MB */ 97 reg = <0 0x400000>; 97 reg = <0 0x400000>; 98 read-only; 98 read-only; 99 }; 99 }; 100 100 101 rootfs@400000 { /* 64 MB */ 101 rootfs@400000 { /* 64 MB */ 102 reg = <0x400000 0x4000 102 reg = <0x400000 0x4000000>; 103 read-only; 103 read-only; 104 }; 104 }; 105 105 106 extra@4400000 { /* 188 MB */ 106 extra@4400000 { /* 188 MB */ 107 reg = <0x4400000 0xBC0 107 reg = <0x4400000 0xBC00000>; 108 read-only; 108 read-only; 109 }; 109 }; 110 }; 110 }; 111 }; 111 }; 112 112 113 &hdd_power { 113 &hdd_power { 114 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 114 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>; 115 }; 115 }; 116 116 117 &usb_power { 117 &usb_power { 118 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; 118 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; 119 }; 119 }; 120 120 121 &sata { 121 &sata { 122 nr-ports = <2>; 122 nr-ports = <2>; 123 }; 123 }; 124 124 125 &ehci1 { 125 &ehci1 { 126 status = "okay"; 126 status = "okay"; 127 }; 127 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.