1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Copyright (C) 2021 Sancloud Ltd 4*f126890aSEmmanuel Vadot * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 5*f126890aSEmmanuel Vadot */ 6*f126890aSEmmanuel Vadot/dts-v1/; 7*f126890aSEmmanuel Vadot 8*f126890aSEmmanuel Vadot#include "am33xx.dtsi" 9*f126890aSEmmanuel Vadot#include "am335x-bone-common.dtsi" 10*f126890aSEmmanuel Vadot#include "am335x-boneblack-common.dtsi" 11*f126890aSEmmanuel Vadot#include "am335x-sancloud-bbe-common.dtsi" 12*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 13*f126890aSEmmanuel Vadot 14*f126890aSEmmanuel Vadot/ { 15*f126890aSEmmanuel Vadot model = "SanCloud BeagleBone Enhanced Extended WiFi"; 16*f126890aSEmmanuel Vadot compatible = "sancloud,am335x-boneenhanced", 17*f126890aSEmmanuel Vadot "ti,am335x-bone-black", 18*f126890aSEmmanuel Vadot "ti,am335x-bone", 19*f126890aSEmmanuel Vadot "ti,am33xx"; 20*f126890aSEmmanuel Vadot 21*f126890aSEmmanuel Vadot wlan_en_reg: fixedregulator@2 { 22*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 23*f126890aSEmmanuel Vadot regulator-name = "wlan-en-regulator"; 24*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 25*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 26*f126890aSEmmanuel Vadot startup-delay-us = <100000>; 27*f126890aSEmmanuel Vadot }; 28*f126890aSEmmanuel Vadot}; 29*f126890aSEmmanuel Vadot 30*f126890aSEmmanuel Vadot&am33xx_pinmux { 31*f126890aSEmmanuel Vadot mmc3_pins: mmc3-pins { 32*f126890aSEmmanuel Vadot pinctrl-single,pins = < 33*f126890aSEmmanuel Vadot /* gpmc_a9.gpio1_25: RADIO_EN */ 34*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_OUTPUT_PULLUP, MUX_MODE7) 35*f126890aSEmmanuel Vadot 36*f126890aSEmmanuel Vadot /* gpmc_ad12.mmc2_dat0 */ 37*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT_PULLUP, MUX_MODE3) 38*f126890aSEmmanuel Vadot 39*f126890aSEmmanuel Vadot /* gpmc_ad13.mmc2_dat1 */ 40*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLUP, MUX_MODE3) 41*f126890aSEmmanuel Vadot 42*f126890aSEmmanuel Vadot /* gpmc_ad14.mmc2_dat2 */ 43*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLUP, MUX_MODE3) 44*f126890aSEmmanuel Vadot 45*f126890aSEmmanuel Vadot /* gpmc_ad15.mmc2_dat3 */ 46*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLUP, MUX_MODE3) 47*f126890aSEmmanuel Vadot 48*f126890aSEmmanuel Vadot /* gpmc_csn3.mmc2_cmd */ 49*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_CSN3, PIN_INPUT_PULLUP, MUX_MODE3) 50*f126890aSEmmanuel Vadot 51*f126890aSEmmanuel Vadot /* gpmc_clk.mmc2_clk */ 52*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_GPMC_CLK, PIN_INPUT_PULLUP, MUX_MODE3) 53*f126890aSEmmanuel Vadot >; 54*f126890aSEmmanuel Vadot }; 55*f126890aSEmmanuel Vadot 56*f126890aSEmmanuel Vadot bluetooth_pins: bluetooth-pins { 57*f126890aSEmmanuel Vadot pinctrl-single,pins = < 58*f126890aSEmmanuel Vadot /* event_intr0.gpio0_19 */ 59*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_INPUT_PULLUP, MUX_MODE7) 60*f126890aSEmmanuel Vadot >; 61*f126890aSEmmanuel Vadot }; 62*f126890aSEmmanuel Vadot 63*f126890aSEmmanuel Vadot uart1_pins: uart1-pins { 64*f126890aSEmmanuel Vadot pinctrl-single,pins = < 65*f126890aSEmmanuel Vadot /* uart1_rxd */ 66*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT, MUX_MODE0) 67*f126890aSEmmanuel Vadot 68*f126890aSEmmanuel Vadot /* uart1_txd */ 69*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_INPUT, MUX_MODE0) 70*f126890aSEmmanuel Vadot 71*f126890aSEmmanuel Vadot /* uart1_ctsn */ 72*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE0) 73*f126890aSEmmanuel Vadot 74*f126890aSEmmanuel Vadot /* uart1_rtsn */ 75*f126890aSEmmanuel Vadot AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 76*f126890aSEmmanuel Vadot >; 77*f126890aSEmmanuel Vadot }; 78*f126890aSEmmanuel Vadot}; 79*f126890aSEmmanuel Vadot 80*f126890aSEmmanuel Vadot&i2c2 { 81*f126890aSEmmanuel Vadot status = "disabled"; 82*f126890aSEmmanuel Vadot}; 83*f126890aSEmmanuel Vadot 84*f126890aSEmmanuel Vadot&mmc3 { 85*f126890aSEmmanuel Vadot status = "okay"; 86*f126890aSEmmanuel Vadot vmmc-supply = <&wlan_en_reg>; 87*f126890aSEmmanuel Vadot bus-width = <4>; 88*f126890aSEmmanuel Vadot non-removable; 89*f126890aSEmmanuel Vadot cap-power-off-card; 90*f126890aSEmmanuel Vadot ti,needs-special-hs-handling; 91*f126890aSEmmanuel Vadot keep-power-in-suspend; 92*f126890aSEmmanuel Vadot pinctrl-names = "default"; 93*f126890aSEmmanuel Vadot pinctrl-0 = <&mmc3_pins>; 94*f126890aSEmmanuel Vadot dmas = <&edma_xbar 12 0 1 95*f126890aSEmmanuel Vadot &edma_xbar 13 0 2>; 96*f126890aSEmmanuel Vadot dma-names = "tx", "rx"; 97*f126890aSEmmanuel Vadot clock-frequency = <50000000>; 98*f126890aSEmmanuel Vadot max-frequency = <50000000>; 99*f126890aSEmmanuel Vadot}; 100*f126890aSEmmanuel Vadot 101*f126890aSEmmanuel Vadot&uart1 { 102*f126890aSEmmanuel Vadot status = "okay"; 103*f126890aSEmmanuel Vadot 104*f126890aSEmmanuel Vadot bluetooth { 105*f126890aSEmmanuel Vadot pinctrl-names = "default"; 106*f126890aSEmmanuel Vadot pinctrl-0 = <&uart1_pins &bluetooth_pins>; 107*f126890aSEmmanuel Vadot compatible = "qcom,qca6174-bt"; 108*f126890aSEmmanuel Vadot enable-gpios = <&gpio1 25 GPIO_ACTIVE_HIGH>; 109*f126890aSEmmanuel Vadot clocks = <&l4ls_clkctrl AM3_L4LS_UART2_CLKCTRL 0>; 110*f126890aSEmmanuel Vadot interrupt-parent = <&gpio0>; 111*f126890aSEmmanuel Vadot interrupts = <19 IRQ_TYPE_EDGE_RISING>; 112*f126890aSEmmanuel Vadot }; 113*f126890aSEmmanuel Vadot}; 114