]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pinctrl: atlas7: adjust pin groups of atlas7 nanddisk
authorWei Chen <Wei.Chen@csr.com>
Mon, 30 Nov 2015 06:05:55 +0000 (06:05 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 15:22:11 +0000 (16:22 +0100)
commitd166629cdf73a60f5fe8646bfe96dfd39c5ba660
treedad912da4b2afe447d17a3fd2b4dc3b07845873d
parent6d985333a1e05ba6b8cdd6f6f4e08992a06e9bc0
pinctrl: atlas7: adjust pin groups of atlas7 nanddisk

Remove write-protect and chip-selector pins from nand pin group.
And then create two separate pin groups for these two pin.

So the nand driver can choose correct pin groups as board desgin:
For example:
1. nand without wp&cs:
nand@17050000 {
pinctrl-0 = <&nd_df_basic_pmx>;
};
2. nand with wp
        nand@17050000 {
                pinctrl-0 = <&nd_df_basic_pmx &nd_df_wp_pmx>;
        };
3. nand with cs:
        nand@17050000 {
                pinctrl-0 = <&nd_df_basic_pmx &nd_df_cs_pmx>;
        };
4. nand with wp&cs:
        nand@17050000 {
                pinctrl-0 = <&nd_df_basic_pmx &nd_df_wp_pmx &nd_df_cs_pmx>;
        };

Signed-off-by: Wei Chen <Wei.Chen@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sirf/pinctrl-atlas7.c