Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (C) 2020 Manivannan Sadhasivam
0004  */
0005 
0006 /dts-v1/;
0007 #include "stm32mp157a-stinger96.dtsi"
0008 
0009 / {
0010         model = "Shiratech STM32MP157A IoT Box";
0011         compatible = "shiratech,stm32mp157a-iot-box", "st,stm32mp157";
0012 
0013         wlan_pwr: regulator-wlan {
0014                 compatible = "regulator-fixed";
0015 
0016                 regulator-name = "wl-reg";
0017                 regulator-min-microvolt = <3300000>;
0018                 regulator-max-microvolt = <3300000>;
0019 
0020                 gpios = <&gpiog 3 GPIO_ACTIVE_HIGH>;
0021                 enable-active-high;
0022         };
0023 };
0024 
0025 &i2c2 {
0026         ccs811@5b {
0027                 compatible = "ams,ccs811";
0028                 reg = <0x5b>;
0029                 wakeup-gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;
0030                 reset-gpios = <&gpioa 11 GPIO_ACTIVE_LOW>;
0031         };
0032 };
0033 
0034 /* WiFi */
0035 &sdmmc2 {
0036         pinctrl-names = "default", "opendrain", "sleep";
0037         pinctrl-0 = <&sdmmc2_b4_pins_a>;
0038         pinctrl-1 = <&sdmmc2_b4_od_pins_b>;
0039         pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>;
0040         broken-cd;
0041         non-removable;
0042         st,neg-edge;
0043         bus-width = <1>;
0044         vmmc-supply = <&wlan_pwr>;
0045         status = "okay";
0046 
0047         #address-cells = <1>;
0048         #size-cells = <0>;
0049         brcmf: bcrmf@1 {
0050                 reg = <1>;
0051                 compatible = "brcm,bcm4329-fmac";
0052         };
0053 };
0054 
0055 /* Bluetooth */
0056 &uart4 {
0057         /* Note: HW flow control is broken, hence using custom CTS/RTS gpios */
0058         /delete-property/st,hw-flow-ctrl;
0059         cts-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
0060         rts-gpios = <&gpiob 0 GPIO_ACTIVE_LOW>;
0061         /delete-property/dmas;
0062         /delete-property/dma-names;
0063         status = "okay";
0064 
0065         bluetooth {
0066                 shutdown-gpios = <&gpiog 2 GPIO_ACTIVE_HIGH>;
0067                 compatible = "brcm,bcm43438-bt";
0068                 max-speed = <115200>;
0069         };
0070 };