From: Heiko Schocher Date: Mon, 27 Jul 2020 06:17:24 +0200 Subject: [PATCH] sandbox, test: change hog gpio In-Reply-To: <1595598713-13519-1-git-send-email-philippe.reynes@softathome.com> References: <1595598713-13519-1-git-send-email-philippe.reynes@softathome.com> Message-ID: <734a883e-8c39-932d-e95f-495e1a838fbf@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Philippe, Am 24.07.2020 um 15:51 schrieb Philippe Reynes: > Since commit 9ba84329dc45 ("sandbox, test: add test for GPIO_HOG > function"), the gpio_a 0,1,2 and 3 are used by hog in test.dts. > But 2 leds 'sandbox:red' and 'sandbox:green' are using gpio_a 0 > and 1. As hog always request his gpios, the led command on both > led is broken: > > => led sandbox:red > LED 'sandbox:red' not found (err=-16) > > The gpio is already requested by hog, so it can't be enabled > for led 'sandbox:red'. > > This commit change the gpio used by hog to 10, 11, 12 and 13, > so the led command could be used again with 'sandbox:red' and > 'sandbox:green'. > > Signed-off-by: Philippe Reynes > --- > arch/sandbox/dts/test.dts | 8 ++++---- > test/dm/gpio.c | 12 ++++++------ > 2 files changed, 10 insertions(+), 10 deletions(-) Thanks! Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de