From: John Crispin <john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org> To: Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>, Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, "Andreas Färber" <afaerber-l3A5Bk7waGM@public.gmane.org>, "John Crispin" <john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org> Subject: [PATCH 16/16] arm: dts: enable the nand device on the mt7623n nand rfb Date: Mon, 23 Jan 2017 12:29:35 +0100 [thread overview] Message-ID: <1485170975-51813-17-git-send-email-john@phrozen.org> (raw) In-Reply-To: <1485170975-51813-1-git-send-email-john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org> Enable the nand device and setup pinmux on the mt7632m rfb with nand support. Signed-off-by: John Crispin <john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org> --- arch/arm/boot/dts/mt7623n-rfb-nand.dts | 88 ++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm/boot/dts/mt7623n-rfb-nand.dts b/arch/arm/boot/dts/mt7623n-rfb-nand.dts index 436d51c..9356095 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-nand.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-nand.dts @@ -19,3 +19,91 @@ model = "MediaTek MT7623N NAND reference board"; compatible = "mediatek,mt7623n-rfb-nand", "mediatek,mt7623"; }; + +&pio { + nand_pins_default: nanddefault { + pins_dat { + pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_NLD7>, + <MT7623_PIN_112_MSDC0_DAT6_FUNC_NLD6>, + <MT7623_PIN_114_MSDC0_DAT4_FUNC_NLD4>, + <MT7623_PIN_118_MSDC0_DAT3_FUNC_NLD3>, + <MT7623_PIN_121_MSDC0_DAT0_FUNC_NLD0>, + <MT7623_PIN_120_MSDC0_DAT1_FUNC_NLD1>, + <MT7623_PIN_113_MSDC0_DAT5_FUNC_NLD5>, + <MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8>, + <MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2>; + input-enable; + drive-strength = <MTK_DRIVE_8mA>; + bias-pull-up; + }; + + pins_we { + pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>; + drive-strength = <MTK_DRIVE_8mA>; + bias-pull-up = <MTK_PUPD_SET_R1R0_10>; + }; + + pins_ale { + pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>; + drive-strength = <MTK_DRIVE_8mA>; + bias-pull-down = <MTK_PUPD_SET_R1R0_10>; + }; + }; +}; + +&nandc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&nand_pins_default>; + nand@0 { + reg = <0>; + spare_per_sector = <64>; + nand-ecc-mode = "hw"; + nand-ecc-strength = <12>; + nand-ecc-step-size = <1024>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "preloader"; + reg = <0x0 0x40000>; + }; + + partition@40000 { + label = "uboot"; + reg = <0x40000 0x80000>; + }; + + partition@C0000 { + label = "uboot-env"; + reg = <0xC0000 0x40000>; + }; + + partition@140000 { + label = "bootimg"; + reg = <0x140000 0x2000000>; + }; + + partition@2140000 { + label = "recovery"; + reg = <0x2140000 0x2000000>; + }; + + partition@4140000 { + label = "rootfs"; + reg = <0x4140000 0x1000000>; + }; + + partition@5140000 { + label = "usrdata"; + reg = <0x5140000 0x1000000>; + }; + }; + }; +}; + +&bch { + status = "okay"; +}; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: john@phrozen.org (John Crispin) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 16/16] arm: dts: enable the nand device on the mt7623n nand rfb Date: Mon, 23 Jan 2017 12:29:35 +0100 [thread overview] Message-ID: <1485170975-51813-17-git-send-email-john@phrozen.org> (raw) In-Reply-To: <1485170975-51813-1-git-send-email-john@phrozen.org> Enable the nand device and setup pinmux on the mt7632m rfb with nand support. Signed-off-by: John Crispin <john@phrozen.org> --- arch/arm/boot/dts/mt7623n-rfb-nand.dts | 88 ++++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm/boot/dts/mt7623n-rfb-nand.dts b/arch/arm/boot/dts/mt7623n-rfb-nand.dts index 436d51c..9356095 100644 --- a/arch/arm/boot/dts/mt7623n-rfb-nand.dts +++ b/arch/arm/boot/dts/mt7623n-rfb-nand.dts @@ -19,3 +19,91 @@ model = "MediaTek MT7623N NAND reference board"; compatible = "mediatek,mt7623n-rfb-nand", "mediatek,mt7623"; }; + +&pio { + nand_pins_default: nanddefault { + pins_dat { + pinmux = <MT7623_PIN_111_MSDC0_DAT7_FUNC_NLD7>, + <MT7623_PIN_112_MSDC0_DAT6_FUNC_NLD6>, + <MT7623_PIN_114_MSDC0_DAT4_FUNC_NLD4>, + <MT7623_PIN_118_MSDC0_DAT3_FUNC_NLD3>, + <MT7623_PIN_121_MSDC0_DAT0_FUNC_NLD0>, + <MT7623_PIN_120_MSDC0_DAT1_FUNC_NLD1>, + <MT7623_PIN_113_MSDC0_DAT5_FUNC_NLD5>, + <MT7623_PIN_115_MSDC0_RSTB_FUNC_NLD8>, + <MT7623_PIN_119_MSDC0_DAT2_FUNC_NLD2>; + input-enable; + drive-strength = <MTK_DRIVE_8mA>; + bias-pull-up; + }; + + pins_we { + pinmux = <MT7623_PIN_117_MSDC0_CLK_FUNC_NWEB>; + drive-strength = <MTK_DRIVE_8mA>; + bias-pull-up = <MTK_PUPD_SET_R1R0_10>; + }; + + pins_ale { + pinmux = <MT7623_PIN_116_MSDC0_CMD_FUNC_NALE>; + drive-strength = <MTK_DRIVE_8mA>; + bias-pull-down = <MTK_PUPD_SET_R1R0_10>; + }; + }; +}; + +&nandc { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&nand_pins_default>; + nand at 0 { + reg = <0>; + spare_per_sector = <64>; + nand-ecc-mode = "hw"; + nand-ecc-strength = <12>; + nand-ecc-step-size = <1024>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition at 0 { + label = "preloader"; + reg = <0x0 0x40000>; + }; + + partition at 40000 { + label = "uboot"; + reg = <0x40000 0x80000>; + }; + + partition at C0000 { + label = "uboot-env"; + reg = <0xC0000 0x40000>; + }; + + partition at 140000 { + label = "bootimg"; + reg = <0x140000 0x2000000>; + }; + + partition at 2140000 { + label = "recovery"; + reg = <0x2140000 0x2000000>; + }; + + partition at 4140000 { + label = "rootfs"; + reg = <0x4140000 0x1000000>; + }; + + partition at 5140000 { + label = "usrdata"; + reg = <0x5140000 0x1000000>; + }; + }; + }; +}; + +&bch { + status = "okay"; +}; -- 1.7.10.4
next prev parent reply other threads:[~2017-01-23 11:29 UTC|newest] Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-01-23 11:29 [PATCH 00/16] arm: dts: extend mt7623 support John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 11/16] arm: dts: add usb nodes to the mt7623.dtsi file John Crispin 2017-01-23 11:29 ` John Crispin [not found] ` <1485170975-51813-1-git-send-email-john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org> 2017-01-23 11:29 ` [PATCH 01/16] arm: dts: add clock controller device nodes John Crispin 2017-01-23 11:29 ` John Crispin [not found] ` <1485170975-51813-2-git-send-email-john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org> 2017-03-22 8:04 ` Sean Wang 2017-03-22 8:04 ` [PATCH " Sean Wang 2017-03-22 8:16 ` Sean Wang 2017-03-22 8:16 ` [PATCH " Sean Wang 2017-01-23 11:29 ` [PATCH 02/16] arm: dts: add subsystem " John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 03/16] arm: dts: add power domain controller device node John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 04/16] arm: dts: add clock-frequency to the a7 timer node to mt7623.dtsi John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 05/16] arm: dts: add pinctrl nodes to the mt7623 dtsi file John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 06/16] arm: dts: add pmic " John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 07/16] arm: dts: add i2c nodes to the mt7623.dtsi file John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 08/16] arm: dts: add spi " John Crispin 2017-01-23 11:29 ` John Crispin [not found] ` <1485170975-51813-9-git-send-email-john-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org> 2017-01-24 22:39 ` Matthias Brugger 2017-01-24 22:39 ` Matthias Brugger [not found] ` <69d73342-d710-5f6d-567b-8e75a84fdb18-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2017-01-25 5:38 ` John Crispin 2017-01-25 5:38 ` John Crispin 2017-01-23 11:29 ` [PATCH 09/16] arm: dts: add nand " John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 10/16] arm: dts: add mmc " John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 12/16] arm: dts: add mt7623-mt6323.dtsi file John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 13/16] arm: dts: rename mt7623-evb.dts to arch/arm/boot/dts/mt7623n-rfb.dtsi John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-27 20:13 ` Rob Herring 2017-01-27 20:13 ` Rob Herring 2017-01-23 11:29 ` [PATCH 14/16] arm: dts: cleanup the mt7623n rfb uart nodes John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` [PATCH 15/16] arm: dts: enable the usb device on the mt7623n rfb John Crispin 2017-01-23 11:29 ` John Crispin 2017-01-23 11:29 ` John Crispin [this message] 2017-01-23 11:29 ` [PATCH 16/16] arm: dts: enable the nand device on the mt7623n nand rfb John Crispin 2017-01-23 11:32 ` [PATCH 00/16] arm: dts: extend mt7623 support John Crispin 2017-01-23 11:32 ` John Crispin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1485170975-51813-17-git-send-email-john@phrozen.org \ --to=john-pj+rj9u5fofafugrpc6u6w@public.gmane.org \ --cc=afaerber-l3A5Bk7waGM@public.gmane.org \ --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.