Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2015 Gábor Nyers
0003  *
0004  * Gábor Nyers <gabor.nyers@gmail.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 "sun4i-a10.dtsi"
0047 #include "sunxi-common-regulators.dtsi"
0048 
0049 #include <dt-bindings/gpio/gpio.h>
0050 
0051 / {
0052         model = "Jesurun Q5";
0053         compatible = "jesurun,q5", "allwinner,sun4i-a10";
0054 
0055         aliases {
0056                 serial0 = &uart0;
0057         };
0058 
0059         chosen {
0060                 stdout-path = "serial0:115200n8";
0061         };
0062 
0063         leds {
0064                 compatible = "gpio-leds";
0065 
0066                 led {
0067                         label = "q5:green:usr";
0068                         gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;  /* PH20 */
0069                 };
0070 
0071         };
0072 
0073         reg_emac_3v3: emac-3v3 {
0074                 compatible = "regulator-fixed";
0075                 regulator-name = "emac-3v3";
0076                 regulator-min-microvolt = <3300000>;
0077                 regulator-max-microvolt = <3300000>;
0078                 startup-delay-us = <20000>;
0079                 enable-active-high;
0080                 gpio = <&pio 7 19 GPIO_ACTIVE_HIGH>;   /* PH19 */
0081         };
0082 };
0083 
0084 &ahci {
0085         status = "okay";
0086 };
0087 
0088 &ehci0 {
0089         status = "okay";
0090 };
0091 
0092 &ehci1 {
0093         status = "okay";
0094 };
0095 
0096 &emac {
0097         phy-handle = <&phy1>;
0098         status = "okay";
0099 };
0100 
0101 &emac_sram {
0102         status = "okay";
0103 };
0104 
0105 &i2c0 {
0106         status = "okay";
0107 
0108         axp209: pmic@34 {
0109                 compatible = "x-powers,axp209";
0110                 reg = <0x34>;
0111                 interrupts = <0>;
0112 
0113                 interrupt-controller;
0114                 #interrupt-cells = <1>;
0115         };
0116 };
0117 
0118 &ir0 {
0119         pinctrl-names = "default";
0120         pinctrl-0 = <&ir0_rx_pins>;
0121         status = "okay";
0122 };
0123 
0124 &mdio {
0125         phy-supply = <&reg_emac_3v3>;
0126         status = "okay";
0127 
0128         phy1: ethernet-phy@1 {
0129                 reg = <1>;
0130         };
0131 };
0132 
0133 &mmc0 {
0134         vmmc-supply = <&reg_vcc3v3>;
0135         bus-width = <4>;
0136         cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
0137         status = "okay";
0138 };
0139 
0140 &ohci0 {
0141         status = "okay";
0142 };
0143 
0144 &ohci1 {
0145         status = "okay";
0146 };
0147 
0148 &otg_sram {
0149         status = "okay";
0150 };
0151 
0152 &reg_usb0_vbus {
0153         regulator-boot-on;
0154         status = "okay";
0155 };
0156 
0157 &reg_usb1_vbus {
0158         status = "okay";
0159 };
0160 
0161 &reg_usb2_vbus {
0162         status = "okay";
0163 };
0164 
0165 &uart0 {
0166         pinctrl-names = "default";
0167         pinctrl-0 = <&uart0_pb_pins>;
0168         status = "okay";
0169 };
0170 
0171 &usb_otg {
0172         dr_mode = "host";
0173         status = "okay";
0174 };
0175 
0176 &usbphy {
0177         usb0_vbus-supply = <&reg_usb0_vbus>;
0178         usb1_vbus-supply = <&reg_usb1_vbus>;
0179         usb2_vbus-supply = <&reg_usb2_vbus>;
0180         status = "okay";
0181 };