Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14d0a2b7 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Simon Horman
Browse files

ARM: shmobile: armadillo-reference: Move st1232 reset GPIO to DT



Reference the st1232 reset GPIO from the device tree and remove it from
board code.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent f46a6b0f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@

/dts-v1/;
/include/ "r8a7740.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
	model = "armadillo 800 eva reference";
@@ -43,6 +44,7 @@
		interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */
		pinctrl-0 = <&st1232_pins>;
		pinctrl-names = "default";
		gpios = <&pfc 166 GPIO_ACTIVE_LOW>;
	};
};

+0 −7
Original line number Diff line number Diff line
@@ -158,7 +158,6 @@ static void __init eva_clock_init(void)
 */
static void __init eva_init(void)
{

	r8a7740_clock_init(MD_CK0 | MD_CK2);
	eva_clock_init();

@@ -171,12 +170,6 @@ static void __init eva_init(void)

	r8a7740_add_standard_devices_dt();

	/*
	 * Touchscreen
	 * TODO: Move reset GPIO over to .dts when we can reference it
	 */
	gpio_request_one(166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */

	r8a7740_pm_init();
}