Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2015 Jelle van der Waa <jelle@vdwaa.nl>
0003  *
0004  * This file is dual-licensed: you can use it either under the terms
0005  * of the GPL or the X11 license, at your option. Note that this dual
0006  * licensing only applies to this file, and not this project as a
0007  * whole.
0008  *
0009  *  a) This file is free software; you can redistribute it and/or
0010  *     modify it under the terms of the GNU General Public License as
0011  *     published by the Free Software Foundation; either version 2 of the
0012  *     License, or (at your option) any later version.
0013  *
0014  *     This file is distributed in the hope that it will be useful,
0015  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017  *     GNU General Public License for more details.
0018  *
0019  * Or, alternatively,
0020  *
0021  *  b) Permission is hereby granted, free of charge, to any person
0022  *     obtaining a copy of this software and associated documentation
0023  *     files (the "Software"), to deal in the Software without
0024  *     restriction, including without limitation the rights to use,
0025  *     copy, modify, merge, publish, distribute, sublicense, and/or
0026  *     sell copies of the Software, and to permit persons to whom the
0027  *     Software is furnished to do so, subject to the following
0028  *     conditions:
0029  *
0030  *     The above copyright notice and this permission notice shall be
0031  *     included in all copies or substantial portions of the Software.
0032  *
0033  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0034  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0035  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0036  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0037  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0038  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0039  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0040  *     OTHER DEALINGS IN THE SOFTWARE.
0041  */
0042 
0043 /dts-v1/;
0044 #include "sun5i-a10s.dtsi"
0045 #include "sunxi-common-regulators.dtsi"
0046 
0047 #include <dt-bindings/gpio/gpio.h>
0048 #include <dt-bindings/interrupt-controller/irq.h>
0049 
0050 / {
0051         model = "A10s-Wobo i5";
0052         compatible = "wobo,a10s-wobo-i5", "allwinner,sun5i-a10s";
0053 
0054         aliases {
0055                 serial0 = &uart0;
0056         };
0057 
0058         chosen {
0059                 stdout-path = "serial0:115200n8";
0060         };
0061 
0062         leds {
0063                 compatible = "gpio-leds";
0064 
0065                 led {
0066                         label = "a10s-wobo-i5:blue:usr";
0067                         gpios = <&pio 1 2 GPIO_ACTIVE_HIGH>;
0068                         default-state = "on";
0069                 };
0070         };
0071 
0072         reg_emac_3v3: emac-3v3 {
0073                 compatible = "regulator-fixed";
0074                 regulator-name = "emac-3v3";
0075                 regulator-min-microvolt = <3300000>;
0076                 regulator-max-microvolt = <3300000>;
0077                 startup-delay-us = <20000>;
0078                 enable-active-high;
0079                 gpio = <&pio 0 2 GPIO_ACTIVE_HIGH>;
0080         };
0081 };
0082 
0083 &cpu0 {
0084         cpu-supply = <&reg_dcdc2>;
0085 };
0086 
0087 &ehci0 {
0088         status = "okay";
0089 };
0090 
0091 &emac {
0092         pinctrl-names = "default";
0093         pinctrl-0 = <&emac_pd_pins>;
0094         phy-handle = <&phy1>;
0095         status = "okay";
0096 };
0097 
0098 &emac_sram {
0099         status = "okay";
0100 };
0101 
0102 &i2c0 {
0103         status = "okay";
0104 
0105         axp209: pmic@34 {
0106                 reg = <0x34>;
0107                 interrupts = <0>;
0108         };
0109 };
0110 
0111 #include "axp209.dtsi"
0112 
0113 &mdio {
0114         phy-supply = <&reg_emac_3v3>;
0115         status = "okay";
0116 
0117         phy1: ethernet-phy@1 {
0118                 reg = <1>;
0119         };
0120 };
0121 
0122 &mmc0 {
0123         vmmc-supply = <&reg_vcc3v3>;
0124         bus-width = <4>;
0125         cd-gpios = <&pio 1 3 GPIO_ACTIVE_LOW>; /* PB3 */
0126         status = "okay";
0127 };
0128 
0129 &ohci0 {
0130         status = "okay";
0131 };
0132 
0133 &otg_sram {
0134         status = "okay";
0135 };
0136 
0137 &reg_dcdc2 {
0138         regulator-always-on;
0139         regulator-min-microvolt = <1000000>;
0140         regulator-max-microvolt = <1400000>;
0141         regulator-name = "vdd-cpu";
0142 };
0143 
0144 &reg_dcdc3 {
0145         regulator-always-on;
0146         regulator-min-microvolt = <1250000>;
0147         regulator-max-microvolt = <1250000>;
0148         regulator-name = "vdd-int-dll";
0149 };
0150 
0151 &reg_ldo1 {
0152         regulator-name = "vdd-rtc";
0153 };
0154 
0155 &reg_ldo2 {
0156         regulator-always-on;
0157         regulator-min-microvolt = <3000000>;
0158         regulator-max-microvolt = <3000000>;
0159         regulator-name = "avcc";
0160 };
0161 
0162 &reg_ldo3 {
0163         regulator-always-on;
0164         regulator-min-microvolt = <3300000>;
0165         regulator-max-microvolt = <3300000>;
0166         regulator-name = "vcc-wifi1";
0167 };
0168 
0169 &reg_ldo4 {
0170         regulator-always-on;
0171         regulator-min-microvolt = <3300000>;
0172         regulator-max-microvolt = <3300000>;
0173         regulator-name = "vcc-wifi2";
0174 };
0175 
0176 &reg_usb1_vbus {
0177         gpio = <&pio 6 12 GPIO_ACTIVE_HIGH>;
0178         status = "okay";
0179 };
0180 
0181 &uart0 {
0182         pinctrl-names = "default";
0183         pinctrl-0 = <&uart0_pb_pins>;
0184         status = "okay";
0185 };
0186 
0187 &usb_otg {
0188         dr_mode = "host";
0189         status = "okay";
0190 };
0191 
0192 &usbphy {
0193         usb1_vbus-supply = <&reg_usb1_vbus>;
0194         status = "okay";
0195 };