提交 92901201 编写于 作者: S Sebastian Hesselbarth 提交者: Jason Cooper

ARM: dts: kirkwood: set default pinctrl for SPI0

Most Kirkwood boards use the default SPI0 pinctrl setting anyway. Add a
default pinctrl setting to the toplevel SoC SPI0 node and put a note
in front of the corresponding pinctrl node to overwrite the setting
on board level.

Currently, only T5325 is using a different setting and already
overwrites the corresponding pinctrl node.
Signed-off-by: NSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Acked-by: NAndrew Lunn <andrew@lunn.ch>
Link: https://lkml.kernel.org/r/1398862602-29595-11-git-send-email-sebastian.hesselbarth@gmail.comSigned-off-by: NJason Cooper <jason@lakedaemon.net>
上级 9f2339a6
...@@ -70,8 +70,6 @@ ...@@ -70,8 +70,6 @@
spi@10600 { spi@10600 {
status = "okay"; status = "okay";
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
m25p16@0 { m25p16@0 {
#address-cells = <1>; #address-cells = <1>;
......
...@@ -37,8 +37,6 @@ ...@@ -37,8 +37,6 @@
}; };
spi@10600 { spi@10600 {
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
status = "okay"; status = "okay";
flash@0 { flash@0 {
......
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
spi@10600 { spi@10600 {
status = "okay"; status = "okay";
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
m25p40@0 { m25p40@0 {
#address-cells = <1>; #address-cells = <1>;
......
...@@ -50,8 +50,6 @@ ...@@ -50,8 +50,6 @@
}; };
spi@10600 { spi@10600 {
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
status = "okay"; status = "okay";
flash@0 { flash@0 {
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
}; };
spi@10600 { spi@10600 {
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
status = "okay"; status = "okay";
flash@0 { flash@0 {
......
...@@ -57,8 +57,6 @@ ...@@ -57,8 +57,6 @@
spi@10600 { spi@10600 {
status = "okay"; status = "okay";
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
m25p128@0 { m25p128@0 {
#address-cells = <1>; #address-cells = <1>;
......
...@@ -213,8 +213,6 @@ ...@@ -213,8 +213,6 @@
spi@10600 { spi@10600 {
status = "okay"; status = "okay";
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
m25p80@0 { m25p80@0 {
#address-cells = <1>; #address-cells = <1>;
......
...@@ -65,10 +65,6 @@ ...@@ -65,10 +65,6 @@
marvell,function = "gpio"; marvell,function = "gpio";
}; };
/*
* Redefined from kirkwood-6281.dtsi, because
* we don't use SPI CS on MPP0, but on MPP7.
*/
pmx_spi: pmx-spi { pmx_spi: pmx-spi {
marvell,pins = "mpp1", "mpp2", "mpp3", "mpp7"; marvell,pins = "mpp1", "mpp2", "mpp3", "mpp7";
marvell,function = "spi"; marvell,function = "spi";
...@@ -87,8 +83,6 @@ ...@@ -87,8 +83,6 @@
}; };
spi@10600 { spi@10600 {
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
status = "okay"; status = "okay";
flash@0 { flash@0 {
......
...@@ -47,8 +47,6 @@ ...@@ -47,8 +47,6 @@
}; };
spi@10600 { spi@10600 {
status = "okay"; status = "okay";
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
m25p128@0 { m25p128@0 {
#address-cells = <1>; #address-cells = <1>;
......
...@@ -88,6 +88,10 @@ ...@@ -88,6 +88,10 @@
marvell,function = "nand"; marvell,function = "nand";
}; };
/*
* Default SPI0 pinctrl setting with CSn on mpp0,
* overwrite marvell,pins on board level if required.
*/
pmx_spi: pmx-spi { pmx_spi: pmx-spi {
marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3"; marvell,pins = "mpp0", "mpp1", "mpp2", "mpp3";
marvell,function = "spi"; marvell,function = "spi";
...@@ -127,6 +131,8 @@ ...@@ -127,6 +131,8 @@
interrupts = <23>; interrupts = <23>;
reg = <0x10600 0x28>; reg = <0x10600 0x28>;
clocks = <&gate_clk 7>; clocks = <&gate_clk 7>;
pinctrl-0 = <&pmx_spi>;
pinctrl-names = "default";
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册