Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (C) 2013,2014 Russell King
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
0011  *     version 2 as published by the Free Software Foundation.
0012  *
0013  *     This file is distributed in the hope that it will be useful,
0014  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0015  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016  *     GNU General Public License for more details.
0017  *
0018  * Or, alternatively,
0019  *
0020  *  b) Permission is hereby granted, free of charge, to any person
0021  *     obtaining a copy of this software and associated documentation
0022  *     files (the "Software"), to deal in the Software without
0023  *     restriction, including without limitation the rights to use,
0024  *     copy, modify, merge, publish, distribute, sublicense, and/or
0025  *     sell copies of the Software, and to permit persons to whom the
0026  *     Software is furnished to do so, subject to the following
0027  *     conditions:
0028  *
0029  *     The above copyright notice and this permission notice shall be
0030  *     included in all copies or substantial portions of the Software.
0031  *
0032  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0033  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0034  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0035  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0036  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0037  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0038  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0039  *     OTHER DEALINGS IN THE SOFTWARE.
0040  */
0041 #include <dt-bindings/gpio/gpio.h>
0042 / {
0043         clk_brcm: brcm-clock {
0044                 compatible = "gpio-gate-clock";
0045                 #clock-cells = <0>;
0046                 pinctrl-names = "default";
0047                 pinctrl-0 = <&pinctrl_microsom_brcm_osc>;
0048                 enable-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
0049         };
0050 
0051         reg_brcm: brcm-reg {
0052                 compatible = "regulator-fixed";
0053                 enable-active-high;
0054                 gpio = <&gpio3 19 0>;
0055                 pinctrl-names = "default";
0056                 pinctrl-0 = <&pinctrl_microsom_brcm_reg>;
0057                 regulator-name = "brcm_reg";
0058                 regulator-min-microvolt = <3300000>;
0059                 regulator-max-microvolt = <3300000>;
0060                 startup-delay-us = <200000>;
0061         };
0062 
0063         usdhc1_pwrseq: usdhc1_pwrseq {
0064                 compatible = "mmc-pwrseq-simple";
0065                 reset-gpios = <&gpio5 26 GPIO_ACTIVE_LOW>,
0066                               <&gpio6 0 GPIO_ACTIVE_LOW>;
0067                 clocks = <&clk_brcm>;
0068                 clock-names = "ext_clock";
0069         };
0070 };
0071 
0072 &iomuxc {
0073         microsom {
0074                 pinctrl_microsom_brcm_bt: microsom-brcm-bt {
0075                         fsl,pins = <
0076                                 MX6QDL_PAD_CSI0_DAT14__GPIO6_IO00       0x40013070
0077                                 MX6QDL_PAD_CSI0_DAT15__GPIO6_IO01       0x40013070
0078                                 MX6QDL_PAD_CSI0_DAT18__GPIO6_IO04       0x40013070
0079                         >;
0080                 };
0081 
0082                 pinctrl_microsom_brcm_osc: microsom-brcm-osc {
0083                         fsl,pins = <
0084                                 MX6QDL_PAD_DISP0_DAT11__GPIO5_IO05      0x40013070
0085                         >;
0086                 };
0087 
0088                 pinctrl_microsom_brcm_reg: microsom-brcm-reg {
0089                         fsl,pins = <
0090                                 MX6QDL_PAD_EIM_D19__GPIO3_IO19          0x40013070
0091                         >;
0092                 };
0093 
0094                 pinctrl_microsom_brcm_wifi: microsom-brcm-wifi {
0095                         fsl,pins = <
0096                                 MX6QDL_PAD_GPIO_8__XTALOSC_REF_CLK_32K  0x1b0b0
0097                                 MX6QDL_PAD_CSI0_DATA_EN__GPIO5_IO20     0x40013070
0098                                 MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26        0x40013070
0099                                 MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27        0x40013070
0100                         >;
0101                 };
0102 
0103                 pinctrl_microsom_uart4: microsom-uart4 {
0104                         fsl,pins = <
0105                                 MX6QDL_PAD_CSI0_DAT12__UART4_TX_DATA 0x1b0b1
0106                                 MX6QDL_PAD_CSI0_DAT13__UART4_RX_DATA 0x1b0b1
0107                                 MX6QDL_PAD_CSI0_DAT16__UART4_RTS_B 0x1b0b1
0108                                 MX6QDL_PAD_CSI0_DAT17__UART4_CTS_B 0x1b0b1
0109                         >;
0110                 };
0111 
0112                 pinctrl_microsom_usdhc1: microsom-usdhc1 {
0113                         fsl,pins = <
0114                                 MX6QDL_PAD_SD1_CMD__SD1_CMD    0x17059
0115                                 MX6QDL_PAD_SD1_CLK__SD1_CLK    0x10059
0116                                 MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17059
0117                                 MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17059
0118                                 MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17059
0119                                 MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17059
0120                         >;
0121                 };
0122         };
0123 };
0124 
0125 /* UART4 - Connected to optional BRCM Wifi/BT/FM */
0126 &uart4 {
0127         pinctrl-names = "default";
0128         pinctrl-0 = <&pinctrl_microsom_brcm_bt &pinctrl_microsom_uart4>;
0129         uart-has-rtscts;
0130         status = "okay";
0131 };
0132 
0133 /* USDHC1 - Connected to optional BRCM Wifi/BT/FM */
0134 &usdhc1 {
0135         pinctrl-names = "default";
0136         pinctrl-0 = <&pinctrl_microsom_brcm_wifi &pinctrl_microsom_usdhc1>;
0137         bus-width = <4>;
0138         mmc-pwrseq = <&usdhc1_pwrseq>;
0139         keep-power-in-suspend;
0140         no-1-8-v;
0141         non-removable;
0142         vmmc-supply = <&reg_brcm>;
0143         status = "okay";
0144 };