| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * at91-cosino.dtsi - Device Tree file for Cosino core module |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * Derived from at91sam9x5ek.dtsi by: |
|---|
| 8 | 9 | * Copyright (C) 2012 Atmel, |
|---|
| 9 | 10 | * 2012 Nicolas Ferre <nicolas.ferre@atmel.com> |
|---|
| 10 | | - * |
|---|
| 11 | | - * Licensed under GPLv2 or later. |
|---|
| 12 | 11 | */ |
|---|
| 13 | 12 | |
|---|
| 14 | 13 | #include "at91sam9g35.dtsi" |
|---|
| .. | .. |
|---|
| 21 | 20 | bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait"; |
|---|
| 22 | 21 | }; |
|---|
| 23 | 22 | |
|---|
| 24 | | - memory { |
|---|
| 23 | + memory@20000000 { |
|---|
| 25 | 24 | reg = <0x20000000 0x8000000>; |
|---|
| 26 | 25 | }; |
|---|
| 27 | 26 | |
|---|
| .. | .. |
|---|
| 34 | 33 | clock-frequency = <12000000>; |
|---|
| 35 | 34 | }; |
|---|
| 36 | 35 | }; |
|---|
| 36 | +}; |
|---|
| 37 | 37 | |
|---|
| 38 | | - ahb { |
|---|
| 39 | | - apb { |
|---|
| 40 | | - tcb0: timer@f8008000 { |
|---|
| 41 | | - timer@0 { |
|---|
| 42 | | - compatible = "atmel,tcb-timer"; |
|---|
| 43 | | - reg = <0>; |
|---|
| 38 | +&adc0 { |
|---|
| 39 | + atmel,adc-ts-wires = <4>; |
|---|
| 40 | + atmel,adc-ts-pressure-threshold = <10000>; |
|---|
| 41 | + status = "okay"; |
|---|
| 42 | +}; |
|---|
| 43 | + |
|---|
| 44 | +&dbgu { |
|---|
| 45 | + status = "okay"; |
|---|
| 46 | +}; |
|---|
| 47 | + |
|---|
| 48 | +&ebi { |
|---|
| 49 | + pinctrl-0 = <&pinctrl_ebi_addr_nand |
|---|
| 50 | + &pinctrl_ebi_data_0_7>; |
|---|
| 51 | + pinctrl-names = "default"; |
|---|
| 52 | + status = "okay"; |
|---|
| 53 | + |
|---|
| 54 | + nand-controller { |
|---|
| 55 | + pinctrl-0 = <&pinctrl_nand_oe_we |
|---|
| 56 | + &pinctrl_nand_cs |
|---|
| 57 | + &pinctrl_nand_rb>; |
|---|
| 58 | + pinctrl-names = "default"; |
|---|
| 59 | + status = "okay"; |
|---|
| 60 | + |
|---|
| 61 | + nand@3 { |
|---|
| 62 | + reg = <0x3 0x0 0x800000>; |
|---|
| 63 | + rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; |
|---|
| 64 | + cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; |
|---|
| 65 | + nand-bus-width = <8>; |
|---|
| 66 | + nand-ecc-mode = "hw"; |
|---|
| 67 | + nand-ecc-strength = <4>; |
|---|
| 68 | + nand-ecc-step-size = <512>; |
|---|
| 69 | + nand-on-flash-bbt; |
|---|
| 70 | + label = "atmel_nand"; |
|---|
| 71 | + |
|---|
| 72 | + partitions { |
|---|
| 73 | + compatible = "fixed-partitions"; |
|---|
| 74 | + #address-cells = <1>; |
|---|
| 75 | + #size-cells = <1>; |
|---|
| 76 | + |
|---|
| 77 | + at91bootstrap@0 { |
|---|
| 78 | + label = "at91bootstrap"; |
|---|
| 79 | + reg = <0x0 0x40000>; |
|---|
| 44 | 80 | }; |
|---|
| 45 | 81 | |
|---|
| 46 | | - timer@1 { |
|---|
| 47 | | - compatible = "atmel,tcb-timer"; |
|---|
| 48 | | - reg = <1>; |
|---|
| 82 | + uboot@40000 { |
|---|
| 83 | + label = "u-boot"; |
|---|
| 84 | + reg = <0x40000 0x80000>; |
|---|
| 49 | 85 | }; |
|---|
| 50 | | - }; |
|---|
| 51 | 86 | |
|---|
| 52 | | - mmc0: mmc@f0008000 { |
|---|
| 53 | | - pinctrl-0 = < |
|---|
| 54 | | - &pinctrl_board_mmc0 |
|---|
| 55 | | - &pinctrl_mmc0_slot0_clk_cmd_dat0 |
|---|
| 56 | | - &pinctrl_mmc0_slot0_dat1_3>; |
|---|
| 57 | | - status = "okay"; |
|---|
| 58 | | - slot@0 { |
|---|
| 59 | | - reg = <0>; |
|---|
| 60 | | - bus-width = <4>; |
|---|
| 61 | | - cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>; |
|---|
| 87 | + ubootenv@c0000 { |
|---|
| 88 | + label = "U-Boot Env"; |
|---|
| 89 | + reg = <0xc0000 0x140000>; |
|---|
| 62 | 90 | }; |
|---|
| 63 | | - }; |
|---|
| 64 | 91 | |
|---|
| 65 | | - dbgu: serial@fffff200 { |
|---|
| 66 | | - status = "okay"; |
|---|
| 67 | | - }; |
|---|
| 68 | | - |
|---|
| 69 | | - usart0: serial@f801c000 { |
|---|
| 70 | | - status = "okay"; |
|---|
| 71 | | - }; |
|---|
| 72 | | - |
|---|
| 73 | | - i2c0: i2c@f8010000 { |
|---|
| 74 | | - status = "okay"; |
|---|
| 75 | | - }; |
|---|
| 76 | | - |
|---|
| 77 | | - adc0: adc@f804c000 { |
|---|
| 78 | | - atmel,adc-ts-wires = <4>; |
|---|
| 79 | | - atmel,adc-ts-pressure-threshold = <10000>; |
|---|
| 80 | | - status = "okay"; |
|---|
| 81 | | - }; |
|---|
| 82 | | - |
|---|
| 83 | | - pinctrl@fffff400 { |
|---|
| 84 | | - mmc0 { |
|---|
| 85 | | - pinctrl_board_mmc0: mmc0-board { |
|---|
| 86 | | - atmel,pins = |
|---|
| 87 | | - <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */ |
|---|
| 88 | | - }; |
|---|
| 92 | + kernel@200000 { |
|---|
| 93 | + label = "kernel"; |
|---|
| 94 | + reg = <0x200000 0x600000>; |
|---|
| 89 | 95 | }; |
|---|
| 90 | | - }; |
|---|
| 91 | 96 | |
|---|
| 92 | | - watchdog@fffffe40 { |
|---|
| 93 | | - status = "okay"; |
|---|
| 94 | | - }; |
|---|
| 95 | | - }; |
|---|
| 96 | | - |
|---|
| 97 | | - ebi: ebi@10000000 { |
|---|
| 98 | | - pinctrl-0 = <&pinctrl_ebi_addr_nand |
|---|
| 99 | | - &pinctrl_ebi_data_0_7>; |
|---|
| 100 | | - pinctrl-names = "default"; |
|---|
| 101 | | - status = "okay"; |
|---|
| 102 | | - |
|---|
| 103 | | - nand_controller: nand-controller { |
|---|
| 104 | | - status = "okay"; |
|---|
| 105 | | - pinctrl-0 = <&pinctrl_nand_oe_we |
|---|
| 106 | | - &pinctrl_nand_cs |
|---|
| 107 | | - &pinctrl_nand_rb>; |
|---|
| 108 | | - pinctrl-names = "default"; |
|---|
| 109 | | - |
|---|
| 110 | | - nand@3 { |
|---|
| 111 | | - reg = <0x3 0x0 0x800000>; |
|---|
| 112 | | - rb-gpios = <&pioD 5 GPIO_ACTIVE_HIGH>; |
|---|
| 113 | | - cs-gpios = <&pioD 4 GPIO_ACTIVE_HIGH>; |
|---|
| 114 | | - nand-bus-width = <8>; |
|---|
| 115 | | - nand-ecc-mode = "hw"; |
|---|
| 116 | | - nand-ecc-strength = <4>; |
|---|
| 117 | | - nand-ecc-step-size = <512>; |
|---|
| 118 | | - nand-on-flash-bbt; |
|---|
| 119 | | - label = "atmel_nand"; |
|---|
| 120 | | - |
|---|
| 121 | | - partitions { |
|---|
| 122 | | - compatible = "fixed-partitions"; |
|---|
| 123 | | - #address-cells = <1>; |
|---|
| 124 | | - #size-cells = <1>; |
|---|
| 125 | | - |
|---|
| 126 | | - at91bootstrap@0 { |
|---|
| 127 | | - label = "at91bootstrap"; |
|---|
| 128 | | - reg = <0x0 0x40000>; |
|---|
| 129 | | - }; |
|---|
| 130 | | - |
|---|
| 131 | | - uboot@40000 { |
|---|
| 132 | | - label = "u-boot"; |
|---|
| 133 | | - reg = <0x40000 0x80000>; |
|---|
| 134 | | - }; |
|---|
| 135 | | - |
|---|
| 136 | | - ubootenv@c0000 { |
|---|
| 137 | | - label = "U-Boot Env"; |
|---|
| 138 | | - reg = <0xc0000 0x140000>; |
|---|
| 139 | | - }; |
|---|
| 140 | | - |
|---|
| 141 | | - kernel@200000 { |
|---|
| 142 | | - label = "kernel"; |
|---|
| 143 | | - reg = <0x200000 0x600000>; |
|---|
| 144 | | - }; |
|---|
| 145 | | - |
|---|
| 146 | | - rootfs@800000 { |
|---|
| 147 | | - label = "rootfs"; |
|---|
| 148 | | - reg = <0x800000 0x0f800000>; |
|---|
| 149 | | - }; |
|---|
| 150 | | - }; |
|---|
| 97 | + rootfs@800000 { |
|---|
| 98 | + label = "rootfs"; |
|---|
| 99 | + reg = <0x800000 0x0f800000>; |
|---|
| 151 | 100 | }; |
|---|
| 152 | 101 | }; |
|---|
| 153 | 102 | }; |
|---|
| 154 | 103 | }; |
|---|
| 155 | 104 | }; |
|---|
| 105 | + |
|---|
| 106 | +&i2c0 { |
|---|
| 107 | + status = "okay"; |
|---|
| 108 | +}; |
|---|
| 109 | + |
|---|
| 110 | +&mmc0 { |
|---|
| 111 | + pinctrl-0 = < |
|---|
| 112 | + &pinctrl_board_mmc0 |
|---|
| 113 | + &pinctrl_mmc0_slot0_clk_cmd_dat0 |
|---|
| 114 | + &pinctrl_mmc0_slot0_dat1_3>; |
|---|
| 115 | + pinctrl-names = "default"; |
|---|
| 116 | + status = "okay"; |
|---|
| 117 | + |
|---|
| 118 | + slot@0 { |
|---|
| 119 | + reg = <0>; |
|---|
| 120 | + bus-width = <4>; |
|---|
| 121 | + cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>; |
|---|
| 122 | + }; |
|---|
| 123 | +}; |
|---|
| 124 | + |
|---|
| 125 | +&pinctrl { |
|---|
| 126 | + mmc0 { |
|---|
| 127 | + pinctrl_board_mmc0: mmc0-board { |
|---|
| 128 | + atmel,pins = |
|---|
| 129 | + <AT91_PIOD 15 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD15 gpio CD pin pull up and deglitch */ |
|---|
| 130 | + }; |
|---|
| 131 | + }; |
|---|
| 132 | +}; |
|---|
| 133 | + |
|---|
| 134 | +&tcb0 { |
|---|
| 135 | + timer@0 { |
|---|
| 136 | + compatible = "atmel,tcb-timer"; |
|---|
| 137 | + reg = <0>; |
|---|
| 138 | + }; |
|---|
| 139 | + |
|---|
| 140 | + timer@1 { |
|---|
| 141 | + compatible = "atmel,tcb-timer"; |
|---|
| 142 | + reg = <1>; |
|---|
| 143 | + }; |
|---|
| 144 | +}; |
|---|
| 145 | + |
|---|
| 146 | +&usart0 { |
|---|
| 147 | + status = "okay"; |
|---|
| 148 | +}; |
|---|
| 149 | + |
|---|
| 150 | +&watchdog { |
|---|
| 151 | + status = "okay"; |
|---|
| 152 | +}; |
|---|