Home | History | Annotate | Line # | Download | only in dts
      1      1.1  jmcneill /*
      2      1.1  jmcneill  * Copyright 2014 Hans de Goede <hdegoede (at) redhat.com>
      3      1.1  jmcneill  *
      4      1.1  jmcneill  * Hans de Goede <hdegoede (at) redhat.com>
      5      1.1  jmcneill  *
      6      1.1  jmcneill  * This file is dual-licensed: you can use it either under the terms
      7      1.1  jmcneill  * of the GPL or the X11 license, at your option. Note that this dual
      8      1.1  jmcneill  * licensing only applies to this file, and not this project as a
      9      1.1  jmcneill  * whole.
     10      1.1  jmcneill  *
     11      1.1  jmcneill  *  a) This file is free software; you can redistribute it and/or
     12      1.1  jmcneill  *     modify it under the terms of the GNU General Public License as
     13      1.1  jmcneill  *     published by the Free Software Foundation; either version 2 of the
     14      1.1  jmcneill  *     License, or (at your option) any later version.
     15      1.1  jmcneill  *
     16      1.1  jmcneill  *     This file is distributed in the hope that it will be useful,
     17      1.1  jmcneill  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
     18      1.1  jmcneill  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19      1.1  jmcneill  *     GNU General Public License for more details.
     20      1.1  jmcneill  *
     21      1.1  jmcneill  * Or, alternatively,
     22      1.1  jmcneill  *
     23      1.1  jmcneill  *  b) Permission is hereby granted, free of charge, to any person
     24      1.1  jmcneill  *     obtaining a copy of this software and associated documentation
     25      1.1  jmcneill  *     files (the "Software"), to deal in the Software without
     26      1.1  jmcneill  *     restriction, including without limitation the rights to use,
     27      1.1  jmcneill  *     copy, modify, merge, publish, distribute, sublicense, and/or
     28      1.1  jmcneill  *     sell copies of the Software, and to permit persons to whom the
     29      1.1  jmcneill  *     Software is furnished to do so, subject to the following
     30      1.1  jmcneill  *     conditions:
     31      1.1  jmcneill  *
     32      1.1  jmcneill  *     The above copyright notice and this permission notice shall be
     33      1.1  jmcneill  *     included in all copies or substantial portions of the Software.
     34      1.1  jmcneill  *
     35      1.1  jmcneill  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     36      1.1  jmcneill  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
     37      1.1  jmcneill  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
     38      1.1  jmcneill  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
     39      1.1  jmcneill  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
     40      1.1  jmcneill  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
     41      1.1  jmcneill  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     42      1.1  jmcneill  *     OTHER DEALINGS IN THE SOFTWARE.
     43      1.1  jmcneill  */
     44      1.1  jmcneill 
     45      1.1  jmcneill /dts-v1/;
     46      1.1  jmcneill #include "sun7i-a20.dtsi"
     47      1.1  jmcneill #include "sunxi-common-regulators.dtsi"
     48      1.1  jmcneill 
     49      1.1  jmcneill #include <dt-bindings/gpio/gpio.h>
     50      1.1  jmcneill #include <dt-bindings/interrupt-controller/irq.h>
     51      1.1  jmcneill 
     52      1.1  jmcneill / {
     53      1.1  jmcneill 	model = "Mele M3";
     54      1.1  jmcneill 	compatible = "mele,m3", "allwinner,sun7i-a20";
     55      1.1  jmcneill 
     56      1.1  jmcneill 	aliases {
     57      1.1  jmcneill 		serial0 = &uart0;
     58      1.1  jmcneill 	};
     59      1.1  jmcneill 
     60      1.1  jmcneill 	chosen {
     61      1.1  jmcneill 		stdout-path = "serial0:115200n8";
     62      1.1  jmcneill 	};
     63      1.1  jmcneill 
     64      1.1  jmcneill 	leds {
     65      1.1  jmcneill 		compatible = "gpio-leds";
     66      1.1  jmcneill 
     67  1.1.1.7  jmcneill 		led {
     68      1.1  jmcneill 			label = "m3:blue:usr";
     69      1.1  jmcneill 			gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
     70      1.1  jmcneill 		};
     71      1.1  jmcneill 	};
     72      1.1  jmcneill };
     73      1.1  jmcneill 
     74      1.1  jmcneill &ehci0 {
     75      1.1  jmcneill 	status = "okay";
     76      1.1  jmcneill };
     77      1.1  jmcneill 
     78      1.1  jmcneill &ehci1 {
     79      1.1  jmcneill 	status = "okay";
     80      1.1  jmcneill };
     81      1.1  jmcneill 
     82      1.1  jmcneill &gmac {
     83      1.1  jmcneill 	pinctrl-names = "default";
     84  1.1.1.5  jmcneill 	pinctrl-0 = <&gmac_mii_pins>;
     85  1.1.1.6     skrll 	phy-handle = <&phy1>;
     86      1.1  jmcneill 	phy-mode = "mii";
     87      1.1  jmcneill 	status = "okay";
     88      1.1  jmcneill };
     89      1.1  jmcneill 
     90      1.1  jmcneill &i2c0 {
     91      1.1  jmcneill 	status = "okay";
     92      1.1  jmcneill 
     93      1.1  jmcneill 	axp209: pmic@34 {
     94      1.1  jmcneill 		compatible = "x-powers,axp209";
     95      1.1  jmcneill 		reg = <0x34>;
     96      1.1  jmcneill 		interrupt-parent = <&nmi_intc>;
     97      1.1  jmcneill 		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
     98      1.1  jmcneill 
     99      1.1  jmcneill 		interrupt-controller;
    100      1.1  jmcneill 		#interrupt-cells = <1>;
    101      1.1  jmcneill 	};
    102      1.1  jmcneill };
    103      1.1  jmcneill 
    104      1.1  jmcneill &ir0 {
    105      1.1  jmcneill 	pinctrl-names = "default";
    106  1.1.1.5  jmcneill 	pinctrl-0 = <&ir0_rx_pin>;
    107      1.1  jmcneill 	status = "okay";
    108      1.1  jmcneill };
    109      1.1  jmcneill 
    110  1.1.1.6     skrll &gmac_mdio {
    111  1.1.1.6     skrll 	phy1: ethernet-phy@1 {
    112  1.1.1.6     skrll 		reg = <1>;
    113  1.1.1.6     skrll 	};
    114  1.1.1.6     skrll };
    115  1.1.1.6     skrll 
    116      1.1  jmcneill &mmc0 {
    117      1.1  jmcneill 	vmmc-supply = <&reg_vcc3v3>;
    118      1.1  jmcneill 	bus-width = <4>;
    119  1.1.1.4  jmcneill 	cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
    120      1.1  jmcneill 	status = "okay";
    121      1.1  jmcneill };
    122      1.1  jmcneill 
    123      1.1  jmcneill &mmc2 {
    124      1.1  jmcneill 	vmmc-supply = <&reg_vcc3v3>;
    125      1.1  jmcneill 	bus-width = <4>;
    126      1.1  jmcneill 	non-removable;
    127      1.1  jmcneill 	status = "okay";
    128      1.1  jmcneill };
    129      1.1  jmcneill 
    130      1.1  jmcneill &ohci0 {
    131      1.1  jmcneill 	status = "okay";
    132      1.1  jmcneill };
    133      1.1  jmcneill 
    134      1.1  jmcneill &ohci1 {
    135      1.1  jmcneill 	status = "okay";
    136      1.1  jmcneill };
    137      1.1  jmcneill 
    138      1.1  jmcneill &reg_usb1_vbus {
    139      1.1  jmcneill 	status = "okay";
    140      1.1  jmcneill };
    141      1.1  jmcneill 
    142      1.1  jmcneill &reg_usb2_vbus {
    143      1.1  jmcneill 	status = "okay";
    144      1.1  jmcneill };
    145      1.1  jmcneill 
    146      1.1  jmcneill &uart0 {
    147      1.1  jmcneill 	pinctrl-names = "default";
    148  1.1.1.5  jmcneill 	pinctrl-0 = <&uart0_pb_pins>;
    149      1.1  jmcneill 	status = "okay";
    150      1.1  jmcneill };
    151      1.1  jmcneill 
    152      1.1  jmcneill &usbphy {
    153      1.1  jmcneill 	usb1_vbus-supply = <&reg_usb1_vbus>;
    154      1.1  jmcneill 	usb2_vbus-supply = <&reg_usb2_vbus>;
    155      1.1  jmcneill 	status = "okay";
    156      1.1  jmcneill };
    157