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