2 * Copyright (c) 2017 MediaTek Inc.
3 * Author: John Crispin <john@phrozen.org>
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.
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.
16 #include "mt7623n-rfb.dtsi"
19 model = "MediaTek MT7623N NAND reference board";
20 compatible = "mediatek,mt7623n-rfb-nand", "mediatek,mt7623";
29 pinctrl-names = "default";
30 pinctrl-0 = <&nand_pins_default>;
34 spare_per_sector = <64>;
36 nand-ecc-strength = <12>;
37 nand-ecc-step-size = <1024>;
40 compatible = "fixed-partitions";
51 reg = <0x40000 0x80000>;
56 reg = <0xC0000 0x40000>;
61 reg = <0x140000 0x2000000>;
66 reg = <0x2140000 0x2000000>;
71 reg = <0x4140000 0x1000000>;
76 reg = <0x5140000 0x1000000>;
83 nand_pins_default: nanddefault {
85 pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>;
86 drive-strength = <MTK_DRIVE_8mA>;
87 bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
91 pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_NLD7>,
92 <MT7623_PIN_112_MSDC0_DAT6_FUNC_NLD6>,
93 <MT7623_PIN_114_MSDC0_DAT4_FUNC_NLD4>,
94 <MT7623_PIN_118_MSDC0_DAT3_FUNC_NLD3>,
95 <MT7623_PIN_121_MSDC0_DAT0_FUNC_NLD0>,
96 <MT7623_PIN_120_MSDC0_DAT1_FUNC_NLD1>,
97 <MT7623_PIN_113_MSDC0_DAT5_FUNC_NLD5>,
98 <MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8>,
99 <MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2>;
101 drive-strength = <MTK_DRIVE_8mA>;
106 pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>;
107 drive-strength = <MTK_DRIVE_8mA>;
108 bias-pull-up = <MTK_PUPD_SET_R1R0_10>;