Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2718516imj; Mon, 11 Feb 2019 07:27:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IbOB+zAR7ghXM6bCNtZazNFyJ7WcgzGIjdmykfNlhbhZ1FNZ+dZalkIIsP0woWX/AtR6DRy X-Received: by 2002:a62:568e:: with SMTP id h14mr3642216pfj.134.1549898853721; Mon, 11 Feb 2019 07:27:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549898853; cv=none; d=google.com; s=arc-20160816; b=T3MYSl6oxdhL//on7zzWnXlAMZLZz0lXJ/JP92XJidAP8W+0npqjuVS4DElFcVW3NP iuukXjG+wtPV7QfDMxp+iVwCKJCvpI1UKbi05zjtgzWDxFbdP+QgIWbUk3f1NkbkjtTV T6LwhRi6U+sUtCTITiiiu8xxjNWotY3dtq7+TXmmIAkaiSngDDakSnVJp1GVxEDH32sa 50HUb9Z8q2qdGMXO30l8f9C0FyYxr8aILd9w137oNH+SAfNA572Hj1TuSjxxIzFEsYgS Jeh5exdPKL2mkS3Cjk8TsOYlJROyW2szHZWGw+tbGOyIjbO7FW1reCbh/p1KpOEP7TRQ mJXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3z9BAfoFEaYprES34qHszAn6DT1SIhtkT+7kixJJ/LI=; b=EZ4wFFDG/t+KrqyoUzdgqSCXdMmpVnhMUppwvu5uPP3a7OnO5sXu+9ek7bbxJaf+cf 7aEkywqQvdMZffhPPSI9MEQ/2vVFEiBQBUwz65saCxFpOlquLHTOeBOrZcR7gt39J5j5 8Fq9tpOgvJVjFwEtpCv4mtGpyquAS/iNeu9IJ4FCq1dzbM+PHmqEJ58e08SHlduMudY4 g8mAeOETpqoWg9FbCIrt8w4UvHrH5HdmW2bDYaO42DnLkNxekfiQISt9aepk0lntkqsn CP/sIwIx6S5gmJDUYNEnoLIy2eYZQEr9RFGFShunZUB7Hs+fTSZimTRV16OrT00M3cMR Te6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HQsvIqSo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si9225898pgu.525.2019.02.11.07.27.16; Mon, 11 Feb 2019 07:27:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HQsvIqSo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389997AbfBKPAX (ORCPT + 99 others); Mon, 11 Feb 2019 10:00:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:48280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389988AbfBKPAW (ORCPT ); Mon, 11 Feb 2019 10:00:22 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 215A8206BA; Mon, 11 Feb 2019 15:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897221; bh=MmyuEjnkPAU9/CA178OGBpul18R6VIhsNM0PQs8jBq0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HQsvIqSoxzcbujXerfZebqawOrzNEVlb3rCKuWNY6KyC17y5T6ZOGuBMXsPv2jJj7 yLBdjCa1aJ4QDCAXP6kBcB4X3z97frrmGTRymeAX4yTpIm8KBhQ+8XtxbeFw9SkLCP 9Uj/77KiqqsIZ/8RlIvtTYwIbWdl6UqUUMVDL2u8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Blumenstingl , Linus Walleij , Sasha Levin Subject: [PATCH 4.14 131/205] pinctrl: meson: meson8b: fix the GPIO function for the GPIOAO pins Date: Mon, 11 Feb 2019 15:18:49 +0100 Message-Id: <20190211141836.988476469@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141827.214852402@linuxfoundation.org> References: <20190211141827.214852402@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 2b745ac3cceb8fc1d9985990c8241a821ea97e53 ] The GPIOAO pins (as well as the two exotic GPIO_BSD_EN and GPIO_TEST_N) only belong to the pin controller in the AO domain. With the current definition these pins cannot be referred to in .dts files as group (which is possible on GXBB and GXL for example). Add a separate "gpio_aobus" function to fix the mapping between the pin controller and the GPIO pins in the AO domain. This is similar to how the GXBB and GXL drivers implement this functionality. Fixes: 9dab1868ec0db4 ("pinctrl: amlogic: Make driver independent from two-domain configuration") Signed-off-by: Martin Blumenstingl Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/meson/pinctrl-meson8b.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/meson/pinctrl-meson8b.c b/drivers/pinctrl/meson/pinctrl-meson8b.c index 71f216b5b0b9..a6fff215e60f 100644 --- a/drivers/pinctrl/meson/pinctrl-meson8b.c +++ b/drivers/pinctrl/meson/pinctrl-meson8b.c @@ -649,16 +649,18 @@ static const char * const gpio_groups[] = { "BOOT_10", "BOOT_11", "BOOT_12", "BOOT_13", "BOOT_14", "BOOT_15", "BOOT_16", "BOOT_17", "BOOT_18", - "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", - "GPIOAO_4", "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", - "GPIOAO_8", "GPIOAO_9", "GPIOAO_10", "GPIOAO_11", - "GPIOAO_12", "GPIOAO_13", "GPIO_BSD_EN", "GPIO_TEST_N", - "DIF_0_P", "DIF_0_N", "DIF_1_P", "DIF_1_N", "DIF_2_P", "DIF_2_N", "DIF_3_P", "DIF_3_N", "DIF_4_P", "DIF_4_N" }; +static const char * const gpio_aobus_groups[] = { + "GPIOAO_0", "GPIOAO_1", "GPIOAO_2", "GPIOAO_3", + "GPIOAO_4", "GPIOAO_5", "GPIOAO_6", "GPIOAO_7", + "GPIOAO_8", "GPIOAO_9", "GPIOAO_10", "GPIOAO_11", + "GPIOAO_12", "GPIOAO_13", "GPIO_BSD_EN", "GPIO_TEST_N" +}; + static const char * const sd_a_groups[] = { "sd_d0_a", "sd_d1_a", "sd_d2_a", "sd_d3_a", "sd_clk_a", "sd_cmd_a" @@ -874,6 +876,7 @@ static struct meson_pmx_func meson8b_cbus_functions[] = { }; static struct meson_pmx_func meson8b_aobus_functions[] = { + FUNCTION(gpio_aobus), FUNCTION(uart_ao), FUNCTION(uart_ao_b), FUNCTION(i2c_slave_ao), -- 2.19.1