Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: vf-colibri: enable NAND flash controller

Enable NAND access by adding pinmux and NAND flash controller node
to device tree. The NAND chips currently used on the Colibri VF61
requires 8-bit ECC per 512 byte page, hence specify 32-bit ECC
strength per 2k page size.

Reviewed-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Stefan Agner and committed by
Shawn Guo
65425265 baeeb541

+39
+39
arch/arm/boot/dts/vf-colibri.dtsi
··· 52 52 pinctrl-0 = <&pinctrl_i2c0>; 53 53 }; 54 54 55 + &nfc { 56 + assigned-clocks = <&clks VF610_CLK_NFC>; 57 + assigned-clock-rates = <33000000>; 58 + pinctrl-names = "default"; 59 + pinctrl-0 = <&pinctrl_nfc>; 60 + status = "okay"; 61 + 62 + nand@0 { 63 + compatible = "fsl,vf610-nfc-nandcs"; 64 + reg = <0>; 65 + #address-cells = <1>; 66 + #size-cells = <1>; 67 + nand-bus-width = <8>; 68 + nand-ecc-mode = "hw"; 69 + nand-ecc-strength = <32>; 70 + nand-ecc-step-size = <2048>; 71 + nand-on-flash-bbt; 72 + }; 73 + }; 74 + 55 75 &pwm0 { 56 76 pinctrl-names = "default"; 57 77 pinctrl-0 = <&pinctrl_pwm0>; ··· 173 153 fsl,pins = < 174 154 VF610_PAD_PTB14__I2C0_SCL 0x37ff 175 155 VF610_PAD_PTB15__I2C0_SDA 0x37ff 156 + >; 157 + }; 158 + 159 + pinctrl_nfc: nfcgrp { 160 + fsl,pins = < 161 + VF610_PAD_PTD23__NF_IO7 0x28df 162 + VF610_PAD_PTD22__NF_IO6 0x28df 163 + VF610_PAD_PTD21__NF_IO5 0x28df 164 + VF610_PAD_PTD20__NF_IO4 0x28df 165 + VF610_PAD_PTD19__NF_IO3 0x28df 166 + VF610_PAD_PTD18__NF_IO2 0x28df 167 + VF610_PAD_PTD17__NF_IO1 0x28df 168 + VF610_PAD_PTD16__NF_IO0 0x28df 169 + VF610_PAD_PTB24__NF_WE_B 0x28c2 170 + VF610_PAD_PTB25__NF_CE0_B 0x28c2 171 + VF610_PAD_PTB27__NF_RE_B 0x28c2 172 + VF610_PAD_PTC26__NF_RB_B 0x283d 173 + VF610_PAD_PTC27__NF_ALE 0x28c2 174 + VF610_PAD_PTC28__NF_CLE 0x28c2 176 175 >; 177 176 }; 178 177