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