Back to home page

OSCL-LXR

 
 

    


0001  /*
0002  * Copyright 2017 Olimex Ltd.
0003  * Stefan Mavrodiev <stefan@olimex.com>
0004  *
0005  * This file is dual-licensed: you can use it either under the terms
0006  * of the GPL or the X11 license, at your option. Note that this dual
0007  * licensing only applies to this file, and not this project as a
0008  * whole.
0009  *
0010  *  a) This file is free software; you can redistribute it and/or
0011  *     modify it under the terms of the GNU General Public License as
0012  *     published by the Free Software Foundation; either version 2 of the
0013  *     License, or (at your option) any later version.
0014  *
0015  *     This file is distributed in the hope that it will be useful,
0016  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0017  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0018  *     GNU General Public License for more details.
0019  *
0020  * Or, alternatively,
0021  *
0022  *  b) Permission is hereby granted, free of charge, to any person
0023  *     obtaining a copy of this software and associated documentation
0024  *     files (the "Software"), to deal in the Software without
0025  *     restriction, including without limitation the rights to use,
0026  *     copy, modify, merge, publish, distribute, sublicense, and/or
0027  *     sell copies of the Software, and to permit persons to whom the
0028  *     Software is furnished to do so, subject to the following
0029  *     conditions:
0030  *
0031  *     The above copyright notice and this permission notice shall be
0032  *     included in all copies or substantial portions of the Software.
0033  *
0034  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0035  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0036  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0037  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0038  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0039  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0040  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0041  *     OTHER DEALINGS IN THE SOFTWARE.
0042  */
0043 
0044 #include "sun7i-a20-olinuxino-micro.dts"
0045 
0046 / {
0047         model = "Olimex A20-OLinuXino-MICRO-eMMC";
0048         compatible = "olimex,a20-olinuxino-micro-emmc", "allwinner,sun7i-a20";
0049 
0050         mmc2_pwrseq: pwrseq {
0051                 compatible = "mmc-pwrseq-emmc";
0052                 reset-gpios = <&pio 2 16 GPIO_ACTIVE_LOW>;
0053         };
0054 };
0055 
0056 &mmc2 {
0057         vmmc-supply = <&reg_vcc3v3>;
0058         bus-width = <4>;
0059         non-removable;
0060         mmc-pwrseq = <&mmc2_pwrseq>;
0061         status = "okay";
0062 
0063         emmc: emmc@0 {
0064                 reg = <0>;
0065                 compatible = "mmc-card";
0066                 broken-hpi;
0067         };
0068 };