| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* Copyright (C) 2020 Manivannan Sadhasivam |
| 4 |
*/ |
| 5 |
|
| 6 |
/dts-v1/; |
| 7 |
#include "stm32mp157a-stinger96.dtsi" |
| 8 |
|
| 9 |
/ { |
| 10 |
model = "Shiratech STM32MP157A IoT Box"; |
| 11 |
compatible = "shiratech,stm32mp157a-iot-box", "st,stm32mp157"; |
| 12 |
|
| 13 |
wlan_pwr: regulator-wlan { |
| 14 |
compatible = "regulator-fixed"; |
| 15 |
|
| 16 |
regulator-name = "wl-reg"; |
| 17 |
regulator-min-microvolt = <3300000>; |
| 18 |
regulator-max-microvolt = <3300000>; |
| 19 |
|
| 20 |
gpios = <&gpiog 3 GPIO_ACTIVE_HIGH>; |
| 21 |
enable-active-high; |
| 22 |
}; |
| 23 |
}; |
| 24 |
|
| 25 |
&i2c2 { |
| 26 |
ccs811@5b { |
| 27 |
compatible = "ams,ccs811"; |
| 28 |
reg = <0x5b>; |
| 29 |
wakeup-gpios = <&gpioa 12 GPIO_ACTIVE_LOW>; |
| 30 |
reset-gpios = <&gpioa 11 GPIO_ACTIVE_LOW>; |
| 31 |
}; |
| 32 |
}; |
| 33 |
|
| 34 |
/* WiFi */ |
| 35 |
&sdmmc2 { |
| 36 |
pinctrl-names = "default", "opendrain", "sleep"; |
| 37 |
pinctrl-0 = <&sdmmc2_b4_pins_a>; |
| 38 |
pinctrl-1 = <&sdmmc2_b4_od_pins_b>; |
| 39 |
pinctrl-2 = <&sdmmc2_b4_sleep_pins_a>; |
| 40 |
broken-cd; |
| 41 |
non-removable; |
| 42 |
st,neg-edge; |
| 43 |
bus-width = <1>; |
| 44 |
vmmc-supply = <&wlan_pwr>; |
| 45 |
status = "okay"; |
| 46 |
|
| 47 |
#address-cells = <1>; |
| 48 |
#size-cells = <0>; |
| 49 |
brcmf: wifi@1 { |
| 50 |
reg = <1>; |
| 51 |
compatible = "brcm,bcm4329-fmac"; |
| 52 |
}; |
| 53 |
}; |
| 54 |
|
| 55 |
/* Bluetooth */ |
| 56 |
&uart4 { |
| 57 |
/* Note: HW flow control is broken, hence using custom CTS/RTS gpios */ |
| 58 |
/delete-property/st,hw-flow-ctrl; |
| 59 |
cts-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>; |
| 60 |
rts-gpios = <&gpiob 0 GPIO_ACTIVE_LOW>; |
| 61 |
/delete-property/dmas; |
| 62 |
/delete-property/dma-names; |
| 63 |
status = "okay"; |
| 64 |
|
| 65 |
bluetooth { |
| 66 |
shutdown-gpios = <&gpiog 2 GPIO_ACTIVE_HIGH>; |
| 67 |
compatible = "brcm,bcm43438-bt"; |
| 68 |
max-speed = <115200>; |
| 69 |
}; |
| 70 |
}; |