From e9ab346a72f8d5654d3555861c864decd6b35bab Mon Sep 17 00:00:00 2001 From: Laxman Dewangan Date: Mon, 18 Nov 2013 15:51:25 +0530 Subject: ARM: tegra: move gpio default to separate dtsi file for tn8. Change-Id: Ie9a65668259373991fb323a0612e9130979fd0f8 Signed-off-by: Laxman Dewangan Reviewed-on: http://git-master/r/332359 GVS: Gerrit_Virtual_Submit Reviewed-by: Hayden Du --- .../tegra124-e1780-gpio-default.dtsi | 83 ++++++++++++++++++++++ arch/arm/boot/dts/tegra124-tn8-a03-00.dts | 1 + arch/arm/boot/dts/tegra124-tn8-battery.dts | 1 + arch/arm/boot/dts/tegra124-tn8-e1769.dts | 1 + arch/arm/boot/dts/tegra124-tn8-fury.dts | 1 + arch/arm/boot/dts/tegra124-tn8-generic.dtsi | 80 --------------------- arch/arm/boot/dts/tegra124-tn8.dts | 1 + arch/arm/boot/dts/tegra124-tn8b-generic.dtsi | 80 --------------------- 8 files changed, 88 insertions(+), 160 deletions(-) create mode 100644 arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-gpio-default.dtsi (limited to 'arch/arm/boot') diff --git a/arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-gpio-default.dtsi b/arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-gpio-default.dtsi new file mode 100644 index 000000000000..cd5fd38cd1e9 --- /dev/null +++ b/arch/arm/boot/dts/tegra124-platforms/tegra124-e1780-gpio-default.dtsi @@ -0,0 +1,83 @@ +#include + +/ { + gpio: gpio@6000d000 { + gpio-init-names = "default"; + gpio-init-0 = <&gpio_default>; + + gpio_default: default { + gpio-input = < TEGRA_GPIO(C, 7) + TEGRA_GPIO(G, 2) + TEGRA_GPIO(G, 3) + TEGRA_GPIO(H, 4) + TEGRA_GPIO(I, 5) + TEGRA_GPIO(I, 6) + TEGRA_GPIO(J, 0) + TEGRA_GPIO(K, 2) + TEGRA_GPIO(K, 3) + TEGRA_GPIO(N, 7) + TEGRA_GPIO(O, 0) + TEGRA_GPIO(O, 2) + TEGRA_GPIO(O, 3) + TEGRA_GPIO(O, 5) + TEGRA_GPIO(O, 7) + TEGRA_GPIO(Q, 0) + TEGRA_GPIO(Q, 1) + TEGRA_GPIO(Q, 2) + TEGRA_GPIO(Q, 5) + TEGRA_GPIO(Q, 6) + TEGRA_GPIO(Q, 7) + TEGRA_GPIO(R, 4) + TEGRA_GPIO(S, 0) + TEGRA_GPIO(S, 1) + TEGRA_GPIO(U, 1) + TEGRA_GPIO(U, 2) + TEGRA_GPIO(U, 5) + TEGRA_GPIO(U, 6) + TEGRA_GPIO(V, 0) + TEGRA_GPIO(V, 1) + TEGRA_GPIO(V, 3) + TEGRA_GPIO(W, 2) + TEGRA_GPIO(W, 3) + TEGRA_GPIO(X, 3) + TEGRA_GPIO(X, 5) + TEGRA_GPIO(X, 6) + TEGRA_GPIO(CC, 1) + TEGRA_GPIO(CC, 2)>; + gpio-output-low = ; + gpio-output-high = ; + }; + }; +}; diff --git a/arch/arm/boot/dts/tegra124-tn8-a03-00.dts b/arch/arm/boot/dts/tegra124-tn8-a03-00.dts index f2b6c7961f12..ad5eb467c6a0 100644 --- a/arch/arm/boot/dts/tegra124-tn8-a03-00.dts +++ b/arch/arm/boot/dts/tegra124-tn8-a03-00.dts @@ -1,6 +1,7 @@ /dts-v1/; #include "tegra124-tn8-generic.dtsi" +#include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8-battery.dts b/arch/arm/boot/dts/tegra124-tn8-battery.dts index 5399e1079314..feddcd97b0d8 100644 --- a/arch/arm/boot/dts/tegra124-tn8-battery.dts +++ b/arch/arm/boot/dts/tegra124-tn8-battery.dts @@ -1,6 +1,7 @@ /dts-v1/; #include "tegra124-tn8-generic.dtsi" +#include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8-e1769.dts b/arch/arm/boot/dts/tegra124-tn8-e1769.dts index 0a90cdee1911..1265b5009f37 100644 --- a/arch/arm/boot/dts/tegra124-tn8-e1769.dts +++ b/arch/arm/boot/dts/tegra124-tn8-e1769.dts @@ -1,6 +1,7 @@ /dts-v1/; #include "tegra124-tn8b-generic.dtsi" +#include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8-fury.dts b/arch/arm/boot/dts/tegra124-tn8-fury.dts index ff20b67522f8..f3c7c954acd7 100644 --- a/arch/arm/boot/dts/tegra124-tn8-fury.dts +++ b/arch/arm/boot/dts/tegra124-tn8-fury.dts @@ -1,6 +1,7 @@ /dts-v1/; #include "tegra124-tn8-generic.dtsi" +#include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8-generic.dtsi b/arch/arm/boot/dts/tegra124-tn8-generic.dtsi index 17fe31cb0ba5..22965e87fcd8 100644 --- a/arch/arm/boot/dts/tegra124-tn8-generic.dtsi +++ b/arch/arm/boot/dts/tegra124-tn8-generic.dtsi @@ -1,86 +1,6 @@ #include "tegra124.dtsi" / { - gpio: gpio@6000d000 { - gpio-init-names = "default"; - gpio-init-0 = <&gpio_default>; - - gpio_default: default { - gpio-input = < TEGRA_GPIO(C, 7) - TEGRA_GPIO(G, 2) - TEGRA_GPIO(G, 3) - TEGRA_GPIO(H, 4) - TEGRA_GPIO(I, 5) - TEGRA_GPIO(I, 6) - TEGRA_GPIO(J, 0) - TEGRA_GPIO(K, 2) - TEGRA_GPIO(K, 3) - TEGRA_GPIO(N, 7) - TEGRA_GPIO(O, 0) - TEGRA_GPIO(O, 2) - TEGRA_GPIO(O, 3) - TEGRA_GPIO(O, 5) - TEGRA_GPIO(O, 7) - TEGRA_GPIO(Q, 0) - TEGRA_GPIO(Q, 1) - TEGRA_GPIO(Q, 2) - TEGRA_GPIO(Q, 5) - TEGRA_GPIO(Q, 6) - TEGRA_GPIO(Q, 7) - TEGRA_GPIO(R, 4) - TEGRA_GPIO(S, 0) - TEGRA_GPIO(S, 1) - TEGRA_GPIO(U, 1) - TEGRA_GPIO(U, 2) - TEGRA_GPIO(U, 5) - TEGRA_GPIO(U, 6) - TEGRA_GPIO(V, 0) - TEGRA_GPIO(V, 1) - TEGRA_GPIO(V, 3) - TEGRA_GPIO(W, 2) - TEGRA_GPIO(W, 3) - TEGRA_GPIO(X, 3) - TEGRA_GPIO(X, 5) - TEGRA_GPIO(X, 6) - TEGRA_GPIO(CC, 1) - TEGRA_GPIO(CC, 2)>; - gpio-output-low = ; - gpio-output-high = ; - }; - }; - serial@70006000 { compatible = "nvidia,tegra114-hsuart"; status = "okay"; diff --git a/arch/arm/boot/dts/tegra124-tn8.dts b/arch/arm/boot/dts/tegra124-tn8.dts index 4727ea61191d..d35c97a27b9c 100644 --- a/arch/arm/boot/dts/tegra124-tn8.dts +++ b/arch/arm/boot/dts/tegra124-tn8.dts @@ -1,6 +1,7 @@ /dts-v1/; #include "tegra124-tn8-generic.dtsi" +#include "tegra124-platforms/tegra124-e1780-gpio-default.dtsi" #include "tegra124-platforms/tegra124-e1780-keys.dtsi" / { diff --git a/arch/arm/boot/dts/tegra124-tn8b-generic.dtsi b/arch/arm/boot/dts/tegra124-tn8b-generic.dtsi index 0a8b315840d6..6830ea954356 100644 --- a/arch/arm/boot/dts/tegra124-tn8b-generic.dtsi +++ b/arch/arm/boot/dts/tegra124-tn8b-generic.dtsi @@ -1,86 +1,6 @@ #include "tegra124.dtsi" / { - gpio: gpio@6000d000 { - gpio-init-names = "default"; - gpio-init-0 = <&gpio_default>; - - gpio_default: default { - gpio-input = < TEGRA_GPIO(C, 7) - TEGRA_GPIO(G, 2) - TEGRA_GPIO(G, 3) - TEGRA_GPIO(H, 4) - TEGRA_GPIO(I, 5) - TEGRA_GPIO(I, 6) - TEGRA_GPIO(J, 0) - TEGRA_GPIO(K, 2) - TEGRA_GPIO(K, 3) - TEGRA_GPIO(N, 7) - TEGRA_GPIO(O, 0) - TEGRA_GPIO(O, 2) - TEGRA_GPIO(O, 3) - TEGRA_GPIO(O, 5) - TEGRA_GPIO(O, 7) - TEGRA_GPIO(Q, 0) - TEGRA_GPIO(Q, 1) - TEGRA_GPIO(Q, 2) - TEGRA_GPIO(Q, 5) - TEGRA_GPIO(Q, 6) - TEGRA_GPIO(Q, 7) - TEGRA_GPIO(R, 4) - TEGRA_GPIO(S, 0) - TEGRA_GPIO(S, 1) - TEGRA_GPIO(U, 1) - TEGRA_GPIO(U, 2) - TEGRA_GPIO(U, 5) - TEGRA_GPIO(U, 6) - TEGRA_GPIO(V, 0) - TEGRA_GPIO(V, 1) - TEGRA_GPIO(V, 3) - TEGRA_GPIO(W, 2) - TEGRA_GPIO(W, 3) - TEGRA_GPIO(X, 3) - TEGRA_GPIO(X, 5) - TEGRA_GPIO(X, 6) - TEGRA_GPIO(CC, 1) - TEGRA_GPIO(CC, 2)>; - gpio-output-low = ; - gpio-output-high = ; - }; - }; - serial@70006000 { compatible = "nvidia,tegra114-hsuart"; status = "okay"; -- cgit v1.2.3