1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only 2724ba675SRob Herring/* 3724ba675SRob Herring * Copyright (C) 2021 Sancloud Ltd 4*9f2967e4SNishanth Menon * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 5724ba675SRob Herring */ 6724ba675SRob Herring/dts-v1/; 7724ba675SRob Herring 8724ba675SRob Herring#include "am33xx.dtsi" 9724ba675SRob Herring#include "am335x-bone-common.dtsi" 10724ba675SRob Herring#include "am335x-boneblack-common.dtsi" 11724ba675SRob Herring#include "am335x-sancloud-bbe-common.dtsi" 12724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h> 13724ba675SRob Herring 14724ba675SRob Herring/ { 15724ba675SRob Herring model = "SanCloud BeagleBone Enhanced Extended WiFi"; 16724ba675SRob Herring compatible = "sancloud,am335x-boneenhanced", 17724ba675SRob Herring "ti,am335x-bone-black", 18724ba675SRob Herring "ti,am335x-bone", 19724ba675SRob Herring "ti,am33xx"; 20724ba675SRob Herring 21724ba675SRob Herring wlan_en_reg: fixedregulator@2 { 22724ba675SRob Herring compatible = "regulator-fixed"; 23724ba675SRob Herring regulator-name = "wlan-en-regulator"; 24724ba675SRob Herring regulator-min-microvolt = <3300000>; 25724ba675SRob Herring regulator-max-microvolt = <3300000>; 26724ba675SRob Herring startup-delay-us = <100000>; 27724ba675SRob Herring }; 28724ba675SRob Herring}; 29724ba675SRob Herring 30724ba675SRob Herring&am33xx_pinmux { 31724ba675SRob Herring mmc3_pins: mmc3-pins { 32724ba675SRob Herring pinctrl-single,pins = < 33724ba675SRob Herring /* gpmc_a9.gpio1_25: RADIO_EN */ 34724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_OUTPUT_PULLUP, MUX_MODE7) 35724ba675SRob Herring 36724ba675SRob Herring /* gpmc_ad12.mmc2_dat0 */ 37724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT_PULLUP, MUX_MODE3) 38724ba675SRob Herring 39724ba675SRob Herring /* gpmc_ad13.mmc2_dat1 */ 40724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLUP, MUX_MODE3) 41724ba675SRob Herring 42724ba675SRob Herring /* gpmc_ad14.mmc2_dat2 */ 43724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLUP, MUX_MODE3) 44724ba675SRob Herring 45724ba675SRob Herring /* gpmc_ad15.mmc2_dat3 */ 46724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLUP, MUX_MODE3) 47724ba675SRob Herring 48724ba675SRob Herring /* gpmc_csn3.mmc2_cmd */ 49724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_CSN3, PIN_INPUT_PULLUP, MUX_MODE3) 50724ba675SRob Herring 51724ba675SRob Herring /* gpmc_clk.mmc2_clk */ 52724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_GPMC_CLK, PIN_INPUT_PULLUP, MUX_MODE3) 53724ba675SRob Herring >; 54724ba675SRob Herring }; 55724ba675SRob Herring 56724ba675SRob Herring bluetooth_pins: bluetooth-pins { 57724ba675SRob Herring pinctrl-single,pins = < 58724ba675SRob Herring /* event_intr0.gpio0_19 */ 59724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_INPUT_PULLUP, MUX_MODE7) 60724ba675SRob Herring >; 61724ba675SRob Herring }; 62724ba675SRob Herring 63724ba675SRob Herring uart1_pins: uart1-pins { 64724ba675SRob Herring pinctrl-single,pins = < 65724ba675SRob Herring /* uart1_rxd */ 66724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT, MUX_MODE0) 67724ba675SRob Herring 68724ba675SRob Herring /* uart1_txd */ 69724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_INPUT, MUX_MODE0) 70724ba675SRob Herring 71724ba675SRob Herring /* uart1_ctsn */ 72724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE0) 73724ba675SRob Herring 74724ba675SRob Herring /* uart1_rtsn */ 75724ba675SRob Herring AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 76724ba675SRob Herring >; 77724ba675SRob Herring }; 78724ba675SRob Herring}; 79724ba675SRob Herring 80724ba675SRob Herring&i2c2 { 81724ba675SRob Herring status = "disabled"; 82724ba675SRob Herring}; 83724ba675SRob Herring 84724ba675SRob Herring&mmc3 { 85724ba675SRob Herring status = "okay"; 86724ba675SRob Herring vmmc-supply = <&wlan_en_reg>; 87724ba675SRob Herring bus-width = <4>; 88724ba675SRob Herring non-removable; 89724ba675SRob Herring cap-power-off-card; 90724ba675SRob Herring ti,needs-special-hs-handling; 91724ba675SRob Herring keep-power-in-suspend; 92724ba675SRob Herring pinctrl-names = "default"; 93724ba675SRob Herring pinctrl-0 = <&mmc3_pins>; 94724ba675SRob Herring dmas = <&edma_xbar 12 0 1 95724ba675SRob Herring &edma_xbar 13 0 2>; 96724ba675SRob Herring dma-names = "tx", "rx"; 97724ba675SRob Herring clock-frequency = <50000000>; 98724ba675SRob Herring max-frequency = <50000000>; 99724ba675SRob Herring}; 100724ba675SRob Herring 101724ba675SRob Herring&uart1 { 102724ba675SRob Herring status = "okay"; 103724ba675SRob Herring 104724ba675SRob Herring bluetooth { 105724ba675SRob Herring pinctrl-names = "default"; 106724ba675SRob Herring pinctrl-0 = <&uart1_pins &bluetooth_pins>; 107724ba675SRob Herring compatible = "qcom,qca6174-bt"; 108724ba675SRob Herring enable-gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>; 109724ba675SRob Herring clocks = <&l4ls_clkctrl AM3_L4LS_UART2_CLKCTRL 0>; 110724ba675SRob Herring interrupt-parent = <&gpio0>; 111724ba675SRob Herring interrupts = <19 IRQ_TYPE_EDGE_RISING>; 112724ba675SRob Herring }; 113724ba675SRob Herring}; 114