Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * at91-wb50n.dtsi - Device Tree include file for wb50n cpu module
0004  *
0005  *  Copyright (C) 2018 Laird
0006  *
0007  */
0008 
0009 #include "sama5d31.dtsi"
0010 
0011 / {
0012         model = "Laird Workgroup Bridge 50N - Atmel SAMA5D";
0013         compatible = "laird,wb50n", "atmel,sama5d31", "atmel,sama5d3", "atmel,sama5";
0014 
0015         chosen {
0016                 bootargs = "ubi.mtd=6 root=ubi0:rootfs rootfstype=ubifs rw";
0017                 stdout-path = "serial0:115200n8";
0018         };
0019 
0020         memory@20000000 {
0021                 reg = <0x20000000 0x4000000>;
0022         };
0023 };
0024 
0025 &pinctrl {
0026         board {
0027                 pinctrl_mmc0_cd: mmc0_cd {
0028                         atmel,pins = <AT91_PIOC 26 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC26 GPIO with pullup deglitch */
0029                 };
0030 
0031                 pinctrl_usba_vbus: usba_vbus {
0032                         atmel,pins = <AT91_PIOB 13 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PB13 GPIO with deglitch */
0033                 };
0034         };
0035 };
0036 
0037 &slow_xtal {
0038         clock-frequency = <32768>;
0039 };
0040 
0041 &main_xtal {
0042         clock-frequency = <12000000>;
0043 };
0044 
0045 &clk32k {
0046         atmel,osc-bypass;
0047 };
0048 
0049 &mmc0 {
0050         pinctrl-names = "default";
0051         pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
0052         cd-gpios = <&pioC 26 GPIO_ACTIVE_LOW>;
0053         slot@0 {
0054                 reg = <0>;
0055                 bus-width = <4>;
0056         };
0057 };
0058 
0059 &mmc1 {
0060         pinctrl-names = "default";
0061         pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3>;
0062         status = "okay";
0063         atheros@0 {
0064                 compatible = "atheros,ath6kl";
0065                 atheros,board-id = "SD32";
0066                 reg = <0>;
0067                 bus-width = <4>;
0068         };
0069 };
0070 
0071 &macb1 {
0072         phy-mode = "rmii";
0073 };
0074 
0075 &dbgu {
0076         dmas = <0>, <0>;        /*  Do not use DMA for dbgu */
0077 };
0078 
0079 /* On BB40 this port is labeled UART1 */
0080 &usart0 {
0081         atmel,use-dma-rx;
0082         atmel,use-dma-tx;
0083         pinctrl-names = "default";
0084         pinctrl-0 = <&pinctrl_usart0 &pinctrl_usart0_rts_cts>;
0085 };
0086 
0087 /* On BB40 this port is labeled UART0 */
0088 &usart1 {
0089         atmel,use-dma-rx;
0090         atmel,use-dma-tx;
0091         pinctrl-names = "default";
0092         pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
0093         dtr-gpios = <&pioD 13 GPIO_ACTIVE_LOW>;
0094         dsr-gpios = <&pioD 11 GPIO_ACTIVE_LOW>;
0095         dcd-gpios = <&pioD 7 GPIO_ACTIVE_LOW>;
0096         rng-gpios = <&pioD 8 GPIO_ACTIVE_LOW>;
0097 };
0098 
0099 /* USART3 is direct-connect to the Bluetooth UART on the radio SIP */
0100 &usart3 {
0101         atmel,use-dma-rx;
0102         atmel,use-dma-tx;
0103         pinctrl-names = "default";
0104         pinctrl-0 = <&pinctrl_usart3 &pinctrl_usart3_rts_cts>;
0105         status = "okay";
0106 };
0107 
0108 &spi1 {
0109         cs-gpios = <&pioC 25 0>, <0>, <0>, <0>;
0110 };
0111 
0112 &ebi {
0113         pinctrl-0 = <&pinctrl_ebi_nand_addr>;
0114         pinctrl-names = "default";
0115         status = "okay";
0116 };
0117 
0118 &nand_controller {
0119         status = "okay";
0120 
0121         nand: nand@3 {
0122                 reg = <0x3 0x0 0x2>;
0123                 atmel,rb = <0>;
0124                 nand-bus-width = <8>;
0125                 nand-ecc-mode = "hw";
0126                 nand-ecc-strength = <8>;
0127                 nand-ecc-step-size = <512>;
0128                 nand-on-flash-bbt;
0129                 label = "atmel_nand";
0130 
0131                 partitions {
0132                         compatible = "fixed-partitions";
0133                         #address-cells = <1>;
0134                         #size-cells = <1>;
0135 
0136                         at91bootstrap@0 {
0137                                 label = "at91bs";
0138                                 reg = <0x0 0x20000>;
0139                         };
0140 
0141                         uboot@20000 {
0142                                 label = "u-boot";
0143                                 reg = <0x20000 0x80000>;
0144                         };
0145 
0146                         ubootenv@a0000 {
0147                                 label = "u-boot-env";
0148                                 reg = <0xa0000 0x20000>;
0149                         };
0150 
0151                         ubootenv@c0000 {
0152                                 label = "u-boot-env";
0153                                 reg = <0xc0000 0x20000>;
0154                         };
0155 
0156                         kernel-a@e0000 {
0157                                 label = "kernel-a";
0158                                 reg = <0xe0000 0x500000>;
0159                         };
0160 
0161                         kernel-b@5e0000 {
0162                                 label = "kernel-b";
0163                                 reg = <0x5e0000 0x500000>;
0164                         };
0165 
0166                         rootfs-a@ae0000 {
0167                                 label = "rootfs-a";
0168                                 reg = <0xae0000 0x3000000>;
0169                         };
0170 
0171                         rootfs-b@3ae0000 {
0172                                 label = "rootfs-b";
0173                                 reg = <0x3ae0000 0x3000000>;
0174                         };
0175 
0176                         user@6ae0000 {
0177                                 label = "user";
0178                                 reg = <0x6ae0000 0x14e0000>;
0179                         };
0180                 };
0181         };
0182 };
0183 
0184 &usb0 {
0185         atmel,vbus-gpio = <&pioB 13 GPIO_ACTIVE_LOW>;
0186         pinctrl-names = "default";
0187         pinctrl-0 = <&pinctrl_usba_vbus>;
0188 };
0189 
0190 &usb1 {
0191         num-ports = <3>;
0192         atmel,vbus-gpio = <&pioA 2 GPIO_ACTIVE_LOW>;
0193         atmel,oc-gpio = <&pioA 4 GPIO_ACTIVE_LOW>;
0194 };