Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Device Tree common file for orion5x based Buffalo Linkstation
0003  *
0004  * Copyright (C) 2015, 2016
0005  * Roger Shimizu <rogershimizu@gmail.com>
0006  *
0007  * This file is dual-licensed: you can use it either under the terms
0008  * of the GPL or the X11 license, at your option. Note that this dual
0009  * licensing only applies to this file, and not this project as a
0010  * whole.
0011  *
0012  *  a) This file is free software; you can redistribute it and/or
0013  *     modify it under the terms of the GNU General Public License as
0014  *     published by the Free Software Foundation; either version 2 of the
0015  *     License, or (at your option) any later version.
0016  *
0017  *     This file is distributed in the hope that it will be useful,
0018  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0019  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0020  *     GNU General Public License for more details.
0021  *
0022  * Or, alternatively,
0023  *
0024  *  b) Permission is hereby granted, free of charge, to any person
0025  *     obtaining a copy of this software and associated documentation
0026  *     files (the "Software"), to deal in the Software without
0027  *     restriction, including without limitation the rights to use,
0028  *     copy, modify, merge, publish, distribute, sublicense, and/or
0029  *     sell copies of the Software, and to permit persons to whom the
0030  *     Software is furnished to do so, subject to the following
0031  *     conditions:
0032  *
0033  *     The above copyright notice and this permission notice shall be
0034  *     included in all copies or substantial portions of the Software.
0035  *
0036  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0037  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0038  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0039  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0040  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0041  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0042  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0043  *     OTHER DEALINGS IN THE SOFTWARE.
0044  */
0045 
0046 #include "orion5x-mv88f5182.dtsi"
0047 
0048 / {
0049         chosen {
0050                 bootargs = "console=ttyS0,115200n8 earlyprintk";
0051                 stdout-path = &uart0;
0052         };
0053 
0054         soc {
0055                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000>,
0056                                  <MBUS_ID(0x09, 0x00) 0 0xf2200000 0x800>,
0057                                  <MBUS_ID(0x01, 0x0f) 0 0xf4000000 0x40000>;
0058         };
0059 
0060         restart_poweroff {
0061                 compatible = "restart-poweroff";
0062         };
0063 
0064         regulators {
0065                 compatible = "simple-bus";
0066                 #address-cells = <1>;
0067                 #size-cells = <0>;
0068                 pinctrl-0 = <&pmx_power_usb &pmx_power_hdd>;
0069                 pinctrl-names = "default";
0070 
0071                 usb_power: regulator@1 {
0072                         compatible = "regulator-fixed";
0073                         reg = <1>;
0074                         regulator-name = "USB Power";
0075                         regulator-min-microvolt = <5000000>;
0076                         regulator-max-microvolt = <5000000>;
0077                         enable-active-high;
0078                         regulator-always-on;
0079                         regulator-boot-on;
0080                 };
0081 
0082                 hdd_power: regulator@2 {
0083                         compatible = "regulator-fixed";
0084                         reg = <2>;
0085                         regulator-name = "HDD Power";
0086                         regulator-min-microvolt = <5000000>;
0087                         regulator-max-microvolt = <5000000>;
0088                         enable-active-high;
0089                         regulator-always-on;
0090                         regulator-boot-on;
0091                 };
0092         };
0093 };
0094 
0095 &pinctrl {
0096         pmx_power_hdd: pmx-power-hdd {
0097                 marvell,function = "gpio";
0098         };
0099 
0100         pmx_power_usb: pmx-power-usb {
0101                 marvell,function = "gpio";
0102         };
0103 };
0104 
0105 &devbus_bootcs {
0106         status = "okay";
0107         devbus,keep-config;
0108 
0109         flash@0 {
0110                 compatible = "jedec-flash";
0111                 reg = <0 0x40000>;
0112                 bank-width = <1>;
0113 
0114                 partitions {
0115                         compatible = "fixed-partitions";
0116                         #address-cells = <1>;
0117                         #size-cells = <1>;
0118 
0119                         header@0 {
0120                                 reg = <0 0x30000>;
0121                                 read-only;
0122                         };
0123 
0124                         uboot@30000 {
0125                                 reg = <0x30000 0xF000>;
0126                                 read-only;
0127                         };
0128 
0129                         uboot_env@3F000 {
0130                                 reg = <0x3F000 0x1000>;
0131                         };
0132                 };
0133         };
0134 };
0135 
0136 &mdio {
0137         status = "okay";
0138 
0139         ethphy: ethernet-phy {
0140                 reg = <8>;
0141         };
0142 };
0143 
0144 &eth {
0145         status = "okay";
0146 
0147         ethernet-port@0 {
0148                 phy-handle = <&ethphy>;
0149         };
0150 };
0151 
0152 &ehci0 {
0153         status = "okay";
0154 };
0155 
0156 &i2c {
0157         status = "okay";
0158 
0159         rtc@32 {
0160                 compatible = "ricoh,rs5c372a";
0161                 reg = <0x32>;
0162         };
0163 };
0164 
0165 &wdt {
0166         status = "disabled";
0167 };
0168 
0169 &sata {
0170         status = "okay";
0171         nr-ports = <1>;
0172 };
0173 
0174 &uart0 {
0175         status = "okay";
0176 };
0177 
0178 &uart1 {
0179         status = "okay";
0180 };