xref: /freebsd/sys/contrib/device-tree/src/arm/nxp/imx/imx6qdl-sr-som-brcm.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot/*
2*f126890aSEmmanuel Vadot * Copyright (C) 2013,2014 Russell King
3*f126890aSEmmanuel Vadot *
4*f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms
5*f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual
6*f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a
7*f126890aSEmmanuel Vadot * whole.
8*f126890aSEmmanuel Vadot *
9*f126890aSEmmanuel Vadot *  a) This file is free software; you can redistribute it and/or
10*f126890aSEmmanuel Vadot *     modify it under the terms of the GNU General Public License
11*f126890aSEmmanuel Vadot *     version 2 as published by the Free Software Foundation.
12*f126890aSEmmanuel Vadot *
13*f126890aSEmmanuel Vadot *     This file is distributed in the hope that it will be useful,
14*f126890aSEmmanuel Vadot *     but WITHOUT ANY WARRANTY; without even the implied warranty of
15*f126890aSEmmanuel Vadot *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16*f126890aSEmmanuel Vadot *     GNU General Public License for more details.
17*f126890aSEmmanuel Vadot *
18*f126890aSEmmanuel Vadot * Or, alternatively,
19*f126890aSEmmanuel Vadot *
20*f126890aSEmmanuel Vadot *  b) Permission is hereby granted, free of charge, to any person
21*f126890aSEmmanuel Vadot *     obtaining a copy of this software and associated documentation
22*f126890aSEmmanuel Vadot *     files (the "Software"), to deal in the Software without
23*f126890aSEmmanuel Vadot *     restriction, including without limitation the rights to use,
24*f126890aSEmmanuel Vadot *     copy, modify, merge, publish, distribute, sublicense, and/or
25*f126890aSEmmanuel Vadot *     sell copies of the Software, and to permit persons to whom the
26*f126890aSEmmanuel Vadot *     Software is furnished to do so, subject to the following
27*f126890aSEmmanuel Vadot *     conditions:
28*f126890aSEmmanuel Vadot *
29*f126890aSEmmanuel Vadot *     The above copyright notice and this permission notice shall be
30*f126890aSEmmanuel Vadot *     included in all copies or substantial portions of the Software.
31*f126890aSEmmanuel Vadot *
32*f126890aSEmmanuel Vadot *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
33*f126890aSEmmanuel Vadot *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
34*f126890aSEmmanuel Vadot *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
35*f126890aSEmmanuel Vadot *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
36*f126890aSEmmanuel Vadot *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
37*f126890aSEmmanuel Vadot *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
38*f126890aSEmmanuel Vadot *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
39*f126890aSEmmanuel Vadot *     OTHER DEALINGS IN THE SOFTWARE.
40*f126890aSEmmanuel Vadot */
41*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
42*f126890aSEmmanuel Vadot/ {
43*f126890aSEmmanuel Vadot	clk_brcm: brcm-clock {
44*f126890aSEmmanuel Vadot		compatible = "gpio-gate-clock";
45*f126890aSEmmanuel Vadot		#clock-cells = <0>;
46*f126890aSEmmanuel Vadot		pinctrl-names = "default";
47*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_microsom_brcm_osc>;
48*f126890aSEmmanuel Vadot		enable-gpios = <&gpio5 5 GPIO_ACTIVE_HIGH>;
49*f126890aSEmmanuel Vadot	};
50*f126890aSEmmanuel Vadot
51*f126890aSEmmanuel Vadot	reg_brcm: brcm-reg {
52*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
53*f126890aSEmmanuel Vadot		enable-active-high;
54*f126890aSEmmanuel Vadot		gpio = <&gpio3 19 0>;
55*f126890aSEmmanuel Vadot		pinctrl-names = "default";
56*f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_microsom_brcm_reg>;
57*f126890aSEmmanuel Vadot		regulator-name = "brcm_reg";
58*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
59*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
60*f126890aSEmmanuel Vadot		startup-delay-us = <200000>;
61*f126890aSEmmanuel Vadot	};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot	usdhc1_pwrseq: usdhc1_pwrseq {
64*f126890aSEmmanuel Vadot		compatible = "mmc-pwrseq-simple";
65*f126890aSEmmanuel Vadot		reset-gpios = <&gpio5 26 GPIO_ACTIVE_LOW>,
66*f126890aSEmmanuel Vadot			      <&gpio6 0 GPIO_ACTIVE_LOW>;
67*f126890aSEmmanuel Vadot		clocks = <&clk_brcm>;
68*f126890aSEmmanuel Vadot		clock-names = "ext_clock";
69*f126890aSEmmanuel Vadot	};
70*f126890aSEmmanuel Vadot};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot&iomuxc {
73*f126890aSEmmanuel Vadot	microsom {
74*f126890aSEmmanuel Vadot		pinctrl_microsom_brcm_bt: microsom-brcm-bt {
75*f126890aSEmmanuel Vadot			fsl,pins = <
76*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT14__GPIO6_IO00	0x40013070
77*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT15__GPIO6_IO01	0x40013070
78*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT18__GPIO6_IO04	0x40013070
79*f126890aSEmmanuel Vadot			>;
80*f126890aSEmmanuel Vadot		};
81*f126890aSEmmanuel Vadot
82*f126890aSEmmanuel Vadot		pinctrl_microsom_brcm_osc: microsom-brcm-osc {
83*f126890aSEmmanuel Vadot			fsl,pins = <
84*f126890aSEmmanuel Vadot				MX6QDL_PAD_DISP0_DAT11__GPIO5_IO05	0x40013070
85*f126890aSEmmanuel Vadot			>;
86*f126890aSEmmanuel Vadot		};
87*f126890aSEmmanuel Vadot
88*f126890aSEmmanuel Vadot		pinctrl_microsom_brcm_reg: microsom-brcm-reg {
89*f126890aSEmmanuel Vadot			fsl,pins = <
90*f126890aSEmmanuel Vadot				MX6QDL_PAD_EIM_D19__GPIO3_IO19		0x40013070
91*f126890aSEmmanuel Vadot			>;
92*f126890aSEmmanuel Vadot		};
93*f126890aSEmmanuel Vadot
94*f126890aSEmmanuel Vadot		pinctrl_microsom_brcm_wifi: microsom-brcm-wifi {
95*f126890aSEmmanuel Vadot			fsl,pins = <
96*f126890aSEmmanuel Vadot				MX6QDL_PAD_GPIO_8__XTALOSC_REF_CLK_32K	0x1b0b0
97*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DATA_EN__GPIO5_IO20	0x40013070
98*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT8__GPIO5_IO26	0x40013070
99*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT9__GPIO5_IO27	0x40013070
100*f126890aSEmmanuel Vadot			>;
101*f126890aSEmmanuel Vadot		};
102*f126890aSEmmanuel Vadot
103*f126890aSEmmanuel Vadot		pinctrl_microsom_uart4: microsom-uart4 {
104*f126890aSEmmanuel Vadot			fsl,pins = <
105*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT12__UART4_TX_DATA 0x1b0b1
106*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT13__UART4_RX_DATA 0x1b0b1
107*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT16__UART4_RTS_B 0x1b0b1
108*f126890aSEmmanuel Vadot				MX6QDL_PAD_CSI0_DAT17__UART4_CTS_B 0x1b0b1
109*f126890aSEmmanuel Vadot			>;
110*f126890aSEmmanuel Vadot		};
111*f126890aSEmmanuel Vadot
112*f126890aSEmmanuel Vadot		pinctrl_microsom_usdhc1: microsom-usdhc1 {
113*f126890aSEmmanuel Vadot			fsl,pins = <
114*f126890aSEmmanuel Vadot				MX6QDL_PAD_SD1_CMD__SD1_CMD    0x17059
115*f126890aSEmmanuel Vadot				MX6QDL_PAD_SD1_CLK__SD1_CLK    0x10059
116*f126890aSEmmanuel Vadot				MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17059
117*f126890aSEmmanuel Vadot				MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17059
118*f126890aSEmmanuel Vadot				MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17059
119*f126890aSEmmanuel Vadot				MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17059
120*f126890aSEmmanuel Vadot			>;
121*f126890aSEmmanuel Vadot		};
122*f126890aSEmmanuel Vadot	};
123*f126890aSEmmanuel Vadot};
124*f126890aSEmmanuel Vadot
125*f126890aSEmmanuel Vadot/* UART4 - Connected to optional BRCM Wifi/BT/FM */
126*f126890aSEmmanuel Vadot&uart4 {
127*f126890aSEmmanuel Vadot	pinctrl-names = "default";
128*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_microsom_brcm_bt &pinctrl_microsom_uart4>;
129*f126890aSEmmanuel Vadot	uart-has-rtscts;
130*f126890aSEmmanuel Vadot	status = "okay";
131*f126890aSEmmanuel Vadot};
132*f126890aSEmmanuel Vadot
133*f126890aSEmmanuel Vadot/* USDHC1 - Connected to optional BRCM Wifi/BT/FM */
134*f126890aSEmmanuel Vadot&usdhc1 {
135*f126890aSEmmanuel Vadot	pinctrl-names = "default";
136*f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_microsom_brcm_wifi &pinctrl_microsom_usdhc1>;
137*f126890aSEmmanuel Vadot	bus-width = <4>;
138*f126890aSEmmanuel Vadot	mmc-pwrseq = <&usdhc1_pwrseq>;
139*f126890aSEmmanuel Vadot	keep-power-in-suspend;
140*f126890aSEmmanuel Vadot	no-1-8-v;
141*f126890aSEmmanuel Vadot	non-removable;
142*f126890aSEmmanuel Vadot	vmmc-supply = <&reg_brcm>;
143*f126890aSEmmanuel Vadot	status = "okay";
144*f126890aSEmmanuel Vadot};
145