aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2017-12-02 16:40:36 -0500
committerKevin Hilman <khilman@baylibre.com>2017-12-08 13:46:33 -0500
commit50290cfe50bd94deb221731a25347d0ac12d9f40 (patch)
treec7f417cbff54bf55f732e7fe684b4ce522931d07
parent0cb6c604232ccb6bbbd148c7451f99f9101b46d7 (diff)
ARM64: dts: meson: add comments with the GPIO for the PHY interrupts
Currently one has to look/calculate the GPIO for the PHY interrupts manually. Add a comment for the existing PHY interrupt lines to make it easier to find out which GPIO is used. This is done using the following calculation: - number of GPIO AO pins (14 on GXBB: GPIOAO_0..13) - add the offset of the pin which is used for the interrupt (for example GPIOZ_15 = 15 on Odroid-C2) Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-By: Jerome Brunet <jbrunet@baylibre.com> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
-rw-r--r--arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts1
-rw-r--r--arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts2
-rw-r--r--arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts1
-rw-r--r--arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts1
4 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
index 4a4251001bfd..011e8e08e429 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
@@ -169,6 +169,7 @@
169 /* Realtek RTL8211F (0x001cc916) */ 169 /* Realtek RTL8211F (0x001cc916) */
170 reg = <0>; 170 reg = <0>;
171 interrupt-parent = <&gpio_intc>; 171 interrupt-parent = <&gpio_intc>;
172 /* MAC_INTR on GPIOZ_15 */
172 interrupts = <29 IRQ_TYPE_LEVEL_LOW>; 173 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
173 }; 174 };
174 }; 175 };
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
index d6d3af5eaf55..ee4ada61c59c 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts
@@ -174,8 +174,10 @@
174 #size-cells = <0>; 174 #size-cells = <0>;
175 175
176 eth_phy0: ethernet-phy@0 { 176 eth_phy0: ethernet-phy@0 {
177 /* Realtek RTL8211F (0x001cc916) */
177 reg = <0>; 178 reg = <0>;
178 interrupt-parent = <&gpio_intc>; 179 interrupt-parent = <&gpio_intc>;
180 /* MAC_INTR on GPIOZ_15 */
179 interrupts = <29 IRQ_TYPE_LEVEL_LOW>; 181 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
180 eee-broken-1000t; 182 eee-broken-1000t;
181 }; 183 };
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts
index 9bf16bb7c491..09f34f7ef084 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p200.dts
@@ -118,6 +118,7 @@
118 /* Micrel KSZ9031 (0x00221620) */ 118 /* Micrel KSZ9031 (0x00221620) */
119 reg = <3>; 119 reg = <3>;
120 interrupt-parent = <&gpio_intc>; 120 interrupt-parent = <&gpio_intc>;
121 /* MAC_INTR on GPIOZ_15 */
121 interrupts = <29 IRQ_TYPE_LEVEL_LOW>; 122 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
122 }; 123 };
123 }; 124 };
diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts b/arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts
index 66c6da7e112c..9847fce443a8 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxm-q200.dts
@@ -111,6 +111,7 @@
111 reg = <0>; 111 reg = <0>;
112 max-speed = <1000>; 112 max-speed = <1000>;
113 interrupt-parent = <&gpio_intc>; 113 interrupt-parent = <&gpio_intc>;
114 /* MAC_INTR on GPIOH_3 */
114 interrupts = <29 IRQ_TYPE_LEVEL_LOW>; 115 interrupts = <29 IRQ_TYPE_LEVEL_LOW>;
115 }; 116 };
116}; 117};