From 88677db54dba68ce19952d5bcdf0fda43094b31f Mon Sep 17 00:00:00 2001 From: Nicolas Ferre Date: Tue, 26 Apr 2016 12:11:28 +0200 Subject: [PATCH 1/5] ARM: dts: at91: VInCo: fix phy reset gpio flag Fix gpio active flag for the phy reset-gpios property. The line is active low instead of active high. Actually, this flags was never used by the macb driver. Reported-by: Sergei Shtylyov Cc: Andrew Lunn Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/at91-vinco.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/at91-vinco.dts b/arch/arm/boot/dts/at91-vinco.dts index 79aec55e1ebc..6a366ee952a8 100644 --- a/arch/arm/boot/dts/at91-vinco.dts +++ b/arch/arm/boot/dts/at91-vinco.dts @@ -118,7 +118,7 @@ ethernet-phy@1 { reg = <0x1>; - reset-gpios = <&pioE 8 GPIO_ACTIVE_HIGH>; + reset-gpios = <&pioE 8 GPIO_ACTIVE_LOW>; interrupt-parent = <&pioB>; interrupts = <15 IRQ_TYPE_EDGE_FALLING>; }; @@ -162,7 +162,7 @@ reg = <0x1>; interrupt-parent = <&pioB>; interrupts = <31 IRQ_TYPE_EDGE_FALLING>; - reset-gpios = <&pioE 6 GPIO_ACTIVE_HIGH>; + reset-gpios = <&pioE 6 GPIO_ACTIVE_LOW>; }; }; From 0e230593b889c59b8bb4577ef3ae49ced395305b Mon Sep 17 00:00:00 2001 From: Nicolas Ferre Date: Fri, 6 May 2016 15:34:40 +0200 Subject: [PATCH 2/5] ARM: dts: at91: at91sam9g45 family: reduce the trng register map size No need to map 0x4000 bytes for the TRNG device: reduce it to 0x100. Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/at91sam9g45.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/at91sam9g45.dtsi b/arch/arm/boot/dts/at91sam9g45.dtsi index af8b708ac312..8837b7e4292c 100644 --- a/arch/arm/boot/dts/at91sam9g45.dtsi +++ b/arch/arm/boot/dts/at91sam9g45.dtsi @@ -978,7 +978,7 @@ trng@fffcc000 { compatible = "atmel,at91sam9g45-trng"; - reg = <0xfffcc000 0x4000>; + reg = <0xfffcc000 0x100>; interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>; clocks = <&trng_clk>; }; From 02eb8d6827662a5091ae7e4df2a0a6f2219b7725 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Fri, 6 May 2016 15:31:25 +0200 Subject: [PATCH 3/5] ARM: dts: at91: sama5d2: add trng node Add node to support SAMA5D2 hardware random number generator. Signed-off-by: Mike Williams [nicolas.ferre@atmel.com: reduce the register map size] Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d2.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 84eed47ffb0a..8fc78ff6cbc0 100644 --- a/arch/arm/boot/dts/sama5d2.dtsi +++ b/arch/arm/boot/dts/sama5d2.dtsi @@ -1168,6 +1168,13 @@ status = "disabled"; }; + trng@fc01c000 { + compatible = "atmel,at91sam9g45-trng"; + reg = <0xfc01c000 0x100>; + interrupts = <47 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&trng_clk>; + }; + aic: interrupt-controller@fc020000 { #interrupt-cells = <3>; compatible = "atmel,sama5d2-aic"; From 206d6c5dfc5764fd6849b0ca276424ad2f624740 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Tue, 3 May 2016 12:44:23 -0400 Subject: [PATCH 4/5] ARM: dts: at91: sama5d3: add trng node Add node to support SAMA5D3 hardware random number generator. Signed-off-by: Mike Williams [nicolas.ferre@atmel.com: reduce the register map size] Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d3.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sama5d3.dtsi b/arch/arm/boot/dts/sama5d3.dtsi index a53279160f98..36301bd9a14a 100644 --- a/arch/arm/boot/dts/sama5d3.dtsi +++ b/arch/arm/boot/dts/sama5d3.dtsi @@ -426,6 +426,13 @@ clock-names = "tdes_clk"; }; + trng@f8040000 { + compatible = "atmel,at91sam9g45-trng"; + reg = <0xf8040000 0x100>; + interrupts = <45 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&trng_clk>; + }; + dma0: dma-controller@ffffe600 { compatible = "atmel,at91sam9g45-dma"; reg = <0xffffe600 0x200>; From 00bf4f78b56f7d86dff5ee6242f46ef6de84f8b0 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Tue, 3 May 2016 12:44:24 -0400 Subject: [PATCH 5/5] ARM: dts: at91: sama5d4: add trng node Add node to support SAMA5D4 hardware random number generator. Signed-off-by: Mike Williams [nicolas.ferre@atmel.com: reduce the register map size] Signed-off-by: Nicolas Ferre --- arch/arm/boot/dts/sama5d4.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sama5d4.dtsi b/arch/arm/boot/dts/sama5d4.dtsi index 058e56e431cd..4e2cc30d6615 100644 --- a/arch/arm/boot/dts/sama5d4.dtsi +++ b/arch/arm/boot/dts/sama5d4.dtsi @@ -1202,6 +1202,13 @@ status = "disabled"; }; + trng@fc030000 { + compatible = "atmel,at91sam9g45-trng"; + reg = <0xfc030000 0x100>; + interrupts = <53 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&trng_clk>; + }; + adc0: adc@fc034000 { compatible = "atmel,at91sam9x5-adc"; reg = <0xfc034000 0x100>;