Erin Lo | 74d2572 | 2015-10-20 14:34:31 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015 MediaTek Inc. |
| 3 | * Author: Erin Lo <erin.lo@mediatek.com> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | */ |
| 14 | |
| 15 | /dts-v1/; |
| 16 | #include "mt2701.dtsi" |
| 17 | |
| 18 | / { |
| 19 | model = "MediaTek MT2701 evaluation board"; |
| 20 | compatible = "mediatek,mt2701-evb", "mediatek,mt2701"; |
| 21 | |
| 22 | memory { |
| 23 | reg = <0 0x80000000 0 0x40000000>; |
| 24 | }; |
| 25 | }; |
| 26 | |
Zhiyong Tao | 301501d3 | 2017-01-13 16:42:56 +0800 | [diff] [blame] | 27 | &auxadc { |
| 28 | status = "okay"; |
| 29 | }; |
| 30 | |
Leilk Liu | 159f5ae | 2017-01-13 16:42:53 +0800 | [diff] [blame] | 31 | &pio { |
| 32 | spi_pins_a: spi0@0 { |
| 33 | pins_spi { |
| 34 | pinmux = <MT2701_PIN_53_SPI0_CSN__FUNC_SPI0_CS>, |
| 35 | <MT2701_PIN_54_SPI0_CK__FUNC_SPI0_CK>, |
| 36 | <MT2701_PIN_55_SPI0_MI__FUNC_SPI0_MI>, |
| 37 | <MT2701_PIN_56_SPI0_MO__FUNC_SPI0_MO>; |
| 38 | bias-disable; |
| 39 | }; |
| 40 | }; |
| 41 | |
| 42 | spi_pins_b: spi1@0 { |
| 43 | pins_spi { |
| 44 | pinmux = <MT2701_PIN_7_SPI1_CSN__FUNC_SPI1_CS>, |
| 45 | <MT2701_PIN_8_SPI1_MI__FUNC_SPI1_MI>, |
| 46 | <MT2701_PIN_9_SPI1_MO__FUNC_SPI1_MO>, |
| 47 | <MT2701_PIN_199_SPI1_CLK__FUNC_SPI1_CK>; |
| 48 | bias-disable; |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | spi_pins_c: spi2@0 { |
| 53 | pins_spi { |
| 54 | pinmux = <MT2701_PIN_101_SPI2_CSN__FUNC_SPI2_CS>, |
| 55 | <MT2701_PIN_102_SPI2_MI__FUNC_SPI2_MI>, |
| 56 | <MT2701_PIN_103_SPI2_MO__FUNC_SPI2_MO>, |
| 57 | <MT2701_PIN_104_SPI2_CLK__FUNC_SPI2_CK>; |
| 58 | bias-disable; |
| 59 | }; |
| 60 | }; |
| 61 | }; |
| 62 | |
| 63 | &spi0 { |
| 64 | pinctrl-names = "default"; |
| 65 | pinctrl-0 = <&spi_pins_a>; |
| 66 | status = "disabled"; |
| 67 | }; |
| 68 | |
| 69 | &spi1 { |
| 70 | pinctrl-names = "default"; |
| 71 | pinctrl-0 = <&spi_pins_b>; |
| 72 | status = "disabled"; |
| 73 | }; |
| 74 | |
| 75 | &spi2 { |
| 76 | pinctrl-names = "default"; |
| 77 | pinctrl-0 = <&spi_pins_c>; |
| 78 | status = "disabled"; |
| 79 | }; |
| 80 | |
Guochun Mao | df3074f | 2017-01-25 11:38:35 +0800 | [diff] [blame^] | 81 | &nor_flash { |
| 82 | pinctrl-names = "default"; |
| 83 | pinctrl-0 = <&nor_pins_default>; |
| 84 | status = "okay"; |
| 85 | flash@0 { |
| 86 | compatible = "jedec,spi-nor"; |
| 87 | reg = <0>; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | &pio { |
| 92 | nor_pins_default: nor { |
| 93 | pins1 { |
| 94 | pinmux = <MT2701_PIN_240_EXT_XCS__FUNC_EXT_XCS>, |
| 95 | <MT2701_PIN_241_EXT_SCK__FUNC_EXT_SCK>, |
| 96 | <MT2701_PIN_239_EXT_SDIO0__FUNC_EXT_SDIO0>, |
| 97 | <MT2701_PIN_238_EXT_SDIO1__FUNC_EXT_SDIO1>, |
| 98 | <MT2701_PIN_237_EXT_SDIO2__FUNC_EXT_SDIO2>, |
| 99 | <MT2701_PIN_236_EXT_SDIO3__FUNC_EXT_SDIO3>; |
| 100 | drive-strength = <MTK_DRIVE_4mA>; |
| 101 | bias-pull-up; |
| 102 | }; |
| 103 | }; |
| 104 | }; |
| 105 | |
Erin Lo | 74d2572 | 2015-10-20 14:34:31 +0800 | [diff] [blame] | 106 | &uart0 { |
| 107 | status = "okay"; |
| 108 | }; |