1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0 2*724ba675SRob Herring/* 3*724ba675SRob Herring * at91-wb50n.dtsi - Device Tree include file for wb50n cpu module 4*724ba675SRob Herring * 5*724ba675SRob Herring * Copyright (C) 2018 Laird 6*724ba675SRob Herring * 7*724ba675SRob Herring */ 8*724ba675SRob Herring 9*724ba675SRob Herring#include "sama5d31.dtsi" 10*724ba675SRob Herring 11*724ba675SRob Herring/ { 12*724ba675SRob Herring model = "Laird Workgroup Bridge 50N - Atmel SAMA5D"; 13*724ba675SRob Herring compatible = "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5"; 14*724ba675SRob Herring 15*724ba675SRob Herring chosen { 16*724ba675SRob Herring bootargs = "ubi.mtd=6 root=ubi0:rootfs rootfstype=ubifs rw"; 17*724ba675SRob Herring stdout-path = "serial0:115200n8"; 18*724ba675SRob Herring }; 19*724ba675SRob Herring 20*724ba675SRob Herring memory@20000000 { 21*724ba675SRob Herring reg = <0x20000000 0x4000000>; 22*724ba675SRob Herring }; 23*724ba675SRob Herring}; 24*724ba675SRob Herring 25*724ba675SRob Herring&pinctrl { 26*724ba675SRob Herring board { 27*724ba675SRob Herring pinctrl_mmc0_cd: mmc0_cd { 28*724ba675SRob Herring atmel,pins = <AT91_PIOC 26 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC26 GPIO with pullup deglitch */ 29*724ba675SRob Herring }; 30*724ba675SRob Herring 31*724ba675SRob Herring pinctrl_usba_vbus: usba_vbus { 32*724ba675SRob Herring atmel,pins = <AT91_PIOB 13 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB13 GPIO with deglitch */ 33*724ba675SRob Herring }; 34*724ba675SRob Herring }; 35*724ba675SRob Herring}; 36*724ba675SRob Herring 37*724ba675SRob Herring&slow_xtal { 38*724ba675SRob Herring clock-frequency = <32768>; 39*724ba675SRob Herring}; 40*724ba675SRob Herring 41*724ba675SRob Herring&main_xtal { 42*724ba675SRob Herring clock-frequency = <12000000>; 43*724ba675SRob Herring}; 44*724ba675SRob Herring 45*724ba675SRob Herring&clk32k { 46*724ba675SRob Herring atmel,osc-bypass; 47*724ba675SRob Herring}; 48*724ba675SRob Herring 49*724ba675SRob Herring&mmc0 { 50*724ba675SRob Herring pinctrl-names = "default"; 51*724ba675SRob Herring pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>; 52*724ba675SRob Herring cd-gpios = <&pioC 26 GPIO_ACTIVE_LOW>; 53*724ba675SRob Herring slot@0 { 54*724ba675SRob Herring reg = <0>; 55*724ba675SRob Herring bus-width = <4>; 56*724ba675SRob Herring }; 57*724ba675SRob Herring}; 58*724ba675SRob Herring 59*724ba675SRob Herring&mmc1 { 60*724ba675SRob Herring pinctrl-names = "default"; 61*724ba675SRob Herring pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>; 62*724ba675SRob Herring status = "okay"; 63*724ba675SRob Herring atheros@0 { 64*724ba675SRob Herring compatible = "atheros,ath6kl"; 65*724ba675SRob Herring atheros,board-id = "SD32"; 66*724ba675SRob Herring reg = <0>; 67*724ba675SRob Herring bus-width = <4>; 68*724ba675SRob Herring }; 69*724ba675SRob Herring}; 70*724ba675SRob Herring 71*724ba675SRob Herring&macb1 { 72*724ba675SRob Herring phy-mode = "rmii"; 73*724ba675SRob Herring}; 74*724ba675SRob Herring 75*724ba675SRob Herring&dbgu { 76*724ba675SRob Herring dmas = <0>, <0>; /* Do not use DMA for dbgu */ 77*724ba675SRob Herring}; 78*724ba675SRob Herring 79*724ba675SRob Herring/* On BB40 this port is labeled UART1 */ 80*724ba675SRob Herring&usart0 { 81*724ba675SRob Herring atmel,use-dma-rx; 82*724ba675SRob Herring atmel,use-dma-tx; 83*724ba675SRob Herring pinctrl-names = "default"; 84*724ba675SRob Herring pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts_cts>; 85*724ba675SRob Herring}; 86*724ba675SRob Herring 87*724ba675SRob Herring/* On BB40 this port is labeled UART0 */ 88*724ba675SRob Herring&usart1 { 89*724ba675SRob Herring atmel,use-dma-rx; 90*724ba675SRob Herring atmel,use-dma-tx; 91*724ba675SRob Herring pinctrl-names = "default"; 92*724ba675SRob Herring pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>; 93*724ba675SRob Herring dtr-gpios = <&pioD 13 GPIO_ACTIVE_LOW>; 94*724ba675SRob Herring dsr-gpios = <&pioD 11 GPIO_ACTIVE_LOW>; 95*724ba675SRob Herring dcd-gpios = <&pioD 7 GPIO_ACTIVE_LOW>; 96*724ba675SRob Herring rng-gpios = <&pioD 8 GPIO_ACTIVE_LOW>; 97*724ba675SRob Herring}; 98*724ba675SRob Herring 99*724ba675SRob Herring/* USART3 is direct-connect to the Bluetooth UART on the radio SIP */ 100*724ba675SRob Herring&usart3 { 101*724ba675SRob Herring atmel,use-dma-rx; 102*724ba675SRob Herring atmel,use-dma-tx; 103*724ba675SRob Herring pinctrl-names = "default"; 104*724ba675SRob Herring pinctrl-0 = <&pinctrl_usart3 &pinctrl_usart3_rts_cts>; 105*724ba675SRob Herring status = "okay"; 106*724ba675SRob Herring}; 107*724ba675SRob Herring 108*724ba675SRob Herring&spi1 { 109*724ba675SRob Herring cs-gpios = <&pioC 25 0>, <0>, <0>, <0>; 110*724ba675SRob Herring}; 111*724ba675SRob Herring 112*724ba675SRob Herring&ebi { 113*724ba675SRob Herring pinctrl-0 = <&pinctrl_ebi_nand_addr>; 114*724ba675SRob Herring pinctrl-names = "default"; 115*724ba675SRob Herring status = "okay"; 116*724ba675SRob Herring}; 117*724ba675SRob Herring 118*724ba675SRob Herring&nand_controller { 119*724ba675SRob Herring status = "okay"; 120*724ba675SRob Herring 121*724ba675SRob Herring nand: nand@3 { 122*724ba675SRob Herring reg = <0x3 0x0 0x2>; 123*724ba675SRob Herring atmel,rb = <0>; 124*724ba675SRob Herring nand-bus-width = <8>; 125*724ba675SRob Herring nand-ecc-mode = "hw"; 126*724ba675SRob Herring nand-ecc-strength = <8>; 127*724ba675SRob Herring nand-ecc-step-size = <512>; 128*724ba675SRob Herring nand-on-flash-bbt; 129*724ba675SRob Herring label = "atmel_nand"; 130*724ba675SRob Herring 131*724ba675SRob Herring partitions { 132*724ba675SRob Herring compatible = "fixed-partitions"; 133*724ba675SRob Herring #address-cells = <1>; 134*724ba675SRob Herring #size-cells = <1>; 135*724ba675SRob Herring 136*724ba675SRob Herring at91bootstrap@0 { 137*724ba675SRob Herring label = "at91bs"; 138*724ba675SRob Herring reg = <0x0 0x20000>; 139*724ba675SRob Herring }; 140*724ba675SRob Herring 141*724ba675SRob Herring uboot@20000 { 142*724ba675SRob Herring label = "u-boot"; 143*724ba675SRob Herring reg = <0x20000 0x80000>; 144*724ba675SRob Herring }; 145*724ba675SRob Herring 146*724ba675SRob Herring ubootenv@a0000 { 147*724ba675SRob Herring label = "u-boot-env"; 148*724ba675SRob Herring reg = <0xa0000 0x20000>; 149*724ba675SRob Herring }; 150*724ba675SRob Herring 151*724ba675SRob Herring ubootenv@c0000 { 152*724ba675SRob Herring label = "u-boot-env"; 153*724ba675SRob Herring reg = <0xc0000 0x20000>; 154*724ba675SRob Herring }; 155*724ba675SRob Herring 156*724ba675SRob Herring kernel-a@e0000 { 157*724ba675SRob Herring label = "kernel-a"; 158*724ba675SRob Herring reg = <0xe0000 0x500000>; 159*724ba675SRob Herring }; 160*724ba675SRob Herring 161*724ba675SRob Herring kernel-b@5e0000 { 162*724ba675SRob Herring label = "kernel-b"; 163*724ba675SRob Herring reg = <0x5e0000 0x500000>; 164*724ba675SRob Herring }; 165*724ba675SRob Herring 166*724ba675SRob Herring rootfs-a@ae0000 { 167*724ba675SRob Herring label = "rootfs-a"; 168*724ba675SRob Herring reg = <0xae0000 0x3000000>; 169*724ba675SRob Herring }; 170*724ba675SRob Herring 171*724ba675SRob Herring rootfs-b@3ae0000 { 172*724ba675SRob Herring label = "rootfs-b"; 173*724ba675SRob Herring reg = <0x3ae0000 0x3000000>; 174*724ba675SRob Herring }; 175*724ba675SRob Herring 176*724ba675SRob Herring user@6ae0000 { 177*724ba675SRob Herring label = "user"; 178*724ba675SRob Herring reg = <0x6ae0000 0x14e0000>; 179*724ba675SRob Herring }; 180*724ba675SRob Herring }; 181*724ba675SRob Herring }; 182*724ba675SRob Herring}; 183*724ba675SRob Herring 184*724ba675SRob Herring&usb0 { 185*724ba675SRob Herring atmel,vbus-gpio = <&pioB 13 GPIO_ACTIVE_LOW>; 186*724ba675SRob Herring pinctrl-names = "default"; 187*724ba675SRob Herring pinctrl-0 = <&pinctrl_usba_vbus>; 188*724ba675SRob Herring}; 189*724ba675SRob Herring 190*724ba675SRob Herring&usb1 { 191*724ba675SRob Herring num-ports = <3>; 192*724ba675SRob Herring atmel,vbus-gpio = <&pioA 2 GPIO_ACTIVE_LOW>; 193*724ba675SRob Herring atmel,oc-gpio = <&pioA 4 GPIO_ACTIVE_LOW>; 194*724ba675SRob Herring}; 195