Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2013 Maxime Ripard
0003  *
0004  * Maxime Ripard <maxime.ripard@free-electrons.com>
0005  *
0006  * This file is dual-licensed: you can use it either under the terms
0007  * of the GPL or the X11 license, at your option. Note that this dual
0008  * licensing only applies to this file, and not this project as a
0009  * whole.
0010  *
0011  *  a) This file is free software; you can redistribute it and/or
0012  *     modify it under the terms of the GNU General Public License as
0013  *     published by the Free Software Foundation; either version 2 of the
0014  *     License, or (at your option) any later version.
0015  *
0016  *     This file is distributed in the hope that it will be useful,
0017  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0018  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0019  *     GNU General Public License for more details.
0020  *
0021  * Or, alternatively,
0022  *
0023  *  b) Permission is hereby granted, free of charge, to any person
0024  *     obtaining a copy of this software and associated documentation
0025  *     files (the "Software"), to deal in the Software without
0026  *     restriction, including without limitation the rights to use,
0027  *     copy, modify, merge, publish, distribute, sublicense, and/or
0028  *     sell copies of the Software, and to permit persons to whom the
0029  *     Software is furnished to do so, subject to the following
0030  *     conditions:
0031  *
0032  *     The above copyright notice and this permission notice shall be
0033  *     included in all copies or substantial portions of the Software.
0034  *
0035  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0036  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0037  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0038  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0039  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0040  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0041  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0042  *     OTHER DEALINGS IN THE SOFTWARE.
0043  */
0044 
0045 /dts-v1/;
0046 #include "sun6i-a31.dtsi"
0047 #include "sunxi-common-regulators.dtsi"
0048 
0049 #include <dt-bindings/gpio/gpio.h>
0050 
0051 / {
0052         model = "WITS A31 Colombus Evaluation Board";
0053         compatible = "wits,colombus", "allwinner,sun6i-a31";
0054 
0055         aliases {
0056                 serial0 = &uart0;
0057         };
0058 
0059         chosen {
0060                 stdout-path = "serial0:115200n8";
0061         };
0062 
0063         i2c_lcd: i2c {
0064                 /* The lcd panel i2c interface is hooked up via gpios */
0065                 compatible = "i2c-gpio";
0066                 sda-gpios = <&pio 0 23 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PA23 */
0067                 scl-gpios = <&pio 0 24 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PA24 */
0068                 i2c-gpio,delay-us = <5>;
0069         };
0070 };
0071 
0072 &ehci1 {
0073         status = "okay";
0074 };
0075 
0076 &gmac {
0077         pinctrl-names = "default";
0078         pinctrl-0 = <&gmac_rgmii_pins>;
0079         phy-handle = <&phy1>;
0080         phy-mode = "rgmii";
0081         status = "okay";
0082 };
0083 
0084 &i2c0 {
0085         status = "fail";
0086 };
0087 
0088 &i2c1 {
0089         status = "okay";
0090 };
0091 
0092 &i2c2 {
0093         status = "okay";
0094 
0095         mma8452: mma8452@1d {
0096                 compatible = "fsl,mma8452";
0097                 reg = <0x1d>;
0098                 interrupt-parent = <&pio>;
0099                 interrupts = <0 9 IRQ_TYPE_LEVEL_LOW>; /* PA9 */
0100         };
0101 };
0102 
0103 &mdio {
0104         phy1: ethernet-phy@1 {
0105                 reg = <1>;
0106         };
0107 };
0108 
0109 &mmc0 {
0110         vmmc-supply = <&reg_vcc3v0>;
0111         bus-width = <4>;
0112         cd-gpios = <&pio 0 8 GPIO_ACTIVE_LOW>; /* PA8 */
0113         status = "okay";
0114 };
0115 
0116 &reg_usb2_vbus {
0117         gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>;
0118         status = "okay";
0119 };
0120 
0121 &uart0 {
0122         pinctrl-names = "default";
0123         pinctrl-0 = <&uart0_ph_pins>;
0124         status = "okay";
0125 };
0126 
0127 &usbphy {
0128         usb2_vbus-supply = <&reg_usb2_vbus>;
0129         status = "okay";
0130 };