Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (C) 2021 PHYTEC Messtechnik GmbH
0004  * Author: Yunus Bas <y.bas@phytec.de>
0005  */
0006 
0007 #include <dt-bindings/gpio/gpio.h>
0008 #include <dt-bindings/interrupt-controller/irq.h>
0009 
0010 / {
0011         reg_wl_en: regulator-wl-en {
0012                 compatible = "regulator-fixed";
0013                 regulator-name = "wlan_en";
0014                 regulator-min-microvolt = <3300000>;
0015                 regulator-max-microvolt = <3300000>;
0016                 pinctrl-names = "default";
0017                 pinctrl-0 = <&pinctrl_wl>;
0018                 gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
0019                 enable-active-high;
0020                 startup-delay-us = <100>;
0021                 status = "disabled";
0022         };
0023 };
0024 
0025 &iomuxc {
0026         pinctrl_bt: btgrp {
0027                 fsl,pins = <
0028                         MX6UL_PAD_GPIO1_IO01__GPIO1_IO01        0x3031  /* BT ENABLE */
0029                         MX6UL_PAD_GPIO1_IO03__GPIO1_IO03        0x3031  /* HOST WAKEUP */
0030                         MX6UL_PAD_JTAG_MOD__GPIO1_IO10          0x3031  /* DEV WAKEUP */
0031                 >;
0032         };
0033 
0034         pinctrl_uart2_bt: uart2grp-bt {
0035                 fsl,pins = <
0036                         MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX   0x17059
0037                         MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX   0x17059
0038                         MX6UL_PAD_UART2_CTS_B__UART2_DCE_CTS    0x17059
0039                         MX6UL_PAD_UART2_RTS_B__UART2_DCE_RTS    0x17059
0040                 >;
0041         };
0042 
0043         pinctrl_usdhc2_wl: usdhc2grp-wl {
0044                 fsl,pins = <
0045                         MX6UL_PAD_LCD_DATA18__USDHC2_CMD    0x10051
0046                         MX6UL_PAD_LCD_DATA19__USDHC2_CLK    0x10061
0047                         MX6UL_PAD_LCD_DATA20__USDHC2_DATA0  0x10051
0048                         MX6UL_PAD_LCD_DATA21__USDHC2_DATA1  0x10051
0049                         MX6UL_PAD_LCD_DATA22__USDHC2_DATA2  0x10051
0050                         MX6UL_PAD_LCD_DATA23__USDHC2_DATA3  0x10051
0051                 >;
0052         };
0053 
0054         pinctrl_wl: wlgrp {
0055                 fsl,pins = <
0056                         MX6UL_PAD_SNVS_TAMPER9__GPIO5_IO09  0x3031      /* WLAN ENABLE */
0057                 >;
0058         };
0059 };
0060 
0061 &uart2 {
0062         pinctrl-names = "default";
0063         pinctrl-0 = <&pinctrl_uart2_bt &pinctrl_bt>;
0064         uart-has-rtscts;
0065         status = "disabled";
0066 
0067         bluetooth {
0068                 compatible = "brcm,bcm43438-bt";
0069                 shutdown-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
0070                 device-wakeup-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
0071                 host-wakeup-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
0072         };
0073 };
0074 
0075 &usdhc2 {
0076         #address-cells = <1>;
0077         #size-cells = <0>;
0078         pinctrl-names = "default";
0079         pinctrl-0 = <&pinctrl_usdhc2_wl>;
0080         vmmc-supply = <&reg_wl_en>;
0081         bus-width = <4>;
0082         non-removable;
0083         no-1-8-v;
0084         status = "disabled";
0085 
0086         brmcf: wifi@1 {
0087                 compatible = "brcm,bcm4329-fmac";
0088                 reg = <1>;
0089         };
0090 };