Linux Audio

Check our new training course

Loading...
Note: File does not exist in v6.8.
  1/*
  2 * Copyright (c) 2017 MediaTek Inc.
  3 * Author: John Crispin <john@phrozen.org>
  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 "mt7623n-rfb.dtsi"
 17
 18/ {
 19	model = "MediaTek MT7623N NAND reference board";
 20	compatible = "mediatek,mt7623n-rfb-nand", "mediatek,mt7623";
 21};
 22
 23&bch {
 24	status = "okay";
 25};
 26
 27&nandc {
 28	status = "okay";
 29	pinctrl-names = "default";
 30	pinctrl-0 = <&nand_pins_default>;
 31
 32	nand@0 {
 33		reg = <0>;
 34		spare_per_sector = <64>;
 35		nand-ecc-mode = "hw";
 36		nand-ecc-strength = <12>;
 37		nand-ecc-step-size = <1024>;
 38
 39		partitions {
 40			compatible = "fixed-partitions";
 41			#address-cells = <1>;
 42			#size-cells = <1>;
 43
 44			partition@0 {
 45				label = "preloader";
 46				reg = <0x0 0x40000>;
 47			};
 48
 49			partition@40000 {
 50				label = "uboot";
 51				reg = <0x40000 0x80000>;
 52			};
 53
 54			partition@c0000 {
 55				label = "uboot-env";
 56				reg = <0xC0000 0x40000>;
 57			};
 58
 59			partition@140000 {
 60				label = "bootimg";
 61				reg = <0x140000 0x2000000>;
 62			};
 63
 64			partition@2140000 {
 65				label = "recovery";
 66				reg = <0x2140000 0x2000000>;
 67			};
 68
 69			partition@4140000 {
 70				label = "rootfs";
 71				reg = <0x4140000 0x1000000>;
 72			};
 73
 74			partition@5140000 {
 75				label = "usrdata";
 76				reg = <0x5140000 0x1000000>;
 77			};
 78		};
 79	};
 80};
 81
 82&pio {
 83	nand_pins_default: nanddefault {
 84		pins-ale {
 85			pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>;
 86			drive-strength = <MTK_DRIVE_8mA>;
 87			bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
 88		};
 89
 90		pins-dat {
 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>;
100			input-enable;
101			drive-strength = <MTK_DRIVE_8mA>;
102			bias-pull-up;
103		};
104
105		pins-we {
106			pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>;
107			drive-strength = <MTK_DRIVE_8mA>;
108			bias-pull-up = <MTK_PUPD_SET_R1R0_10>;
109		};
110	};
111};