Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2656537imj; Mon, 11 Feb 2019 06:34:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IaJ+kt1aa+DzTBMlgNLyH8B+STyewvPujGIfiaw25LcWty2Oia4auoyBG6TDJOqRSfab5KR X-Received: by 2002:a65:4781:: with SMTP id e1mr33560729pgs.346.1549895647179; Mon, 11 Feb 2019 06:34:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895647; cv=none; d=google.com; s=arc-20160816; b=L5jB7cT7eRrxD7xn9wP6UqMa1sfajBzWL1abdKKtGpd5csf5VU+C2NofWRP6uz3Y6T P4I9BZfQObVX2E7x8i3bqDR5PG67YGeYtIhiMnw2FZVXFBqOxGgSNsM/MR8YeyBggILR KOlwpabdY0mh4MS8WQLGm/29AvoCrA2fTyEpDk839DYpf02JQFeB3noOfEo2Ntu+tj+A UhBO1cfqaA6g0cBGa7YFJEJIAQRh3q0JNWMVM7D4nSjv/sqGvqB3hjI4WqYeKfLGU5Kc +OAAsf9iTYFX+1yv2lx9Y+oWVrxHGvbm9GTqzf+S00iG1JV2f41p+OUM95IJX9LqYETJ tcug== 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=rqUKR1n6yKCFYXDuEC0e2k6TRyHSbRcai6/4QLKVKnw=; b=oS4uFbbJTsrOukL2knW4i/HMpRD0Xsd7ozZoFSNiZkkMJgWZOVK0oovN4o/J+reZM4 JdoxCwTPm5DfrDLfXKCYUx4HNeWAAVpwv/SKnYN+EKtttt01UvvpWAH4L8homUiHtpAv /T19pYz5vPaTj+t4snawU7zKwXjCK7Ek9YfGr+UUvQTY5TMValJT/fU+kb6rextMFdou 4CnbE5Dl3IZofXzkfGFDKpIru0DFtc8VSaSc2v/pVvINARVU2VyFwglHeTIwWHUi0b/w q5vHYbPm7CokBOvpzfi8KoCV6rC3ANsmHQOx9MTmBkwrCgvB/0p69A3xpftr3OCBuJFj HwBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IUJ6gjDt; 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 v1si3847146pfm.264.2019.02.11.06.33.51; Mon, 11 Feb 2019 06:34:07 -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=IUJ6gjDt; 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 S1730145AbfBKOdb (ORCPT + 99 others); Mon, 11 Feb 2019 09:33:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:41198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730646AbfBKOd1 (ORCPT ); Mon, 11 Feb 2019 09:33:27 -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 9616421855; Mon, 11 Feb 2019 14:33:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895607; bh=fAMWJ4x3S+zQngx+kWPjPXY24ve7SURU5/YRIbXd3ao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IUJ6gjDtzmPOCcnGoZ9rhsB0O0XNLl0ERhl0Axy9Kh2FrMMEbl87me9bktC+75iQ3 3KWM179JsP1nwDm7g+p9VRTtiCcDAuOcJCkj9bRas8BtkhIkb8u+2azBI6xpptomje aRXEfPdldaI4qokqf/ALGSrIFlcNCU0M5fRqLchY= 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.20 244/352] pinctrl: meson: meson8b: fix the GPIO function for the GPIOAO pins Date: Mon, 11 Feb 2019 15:17:51 +0100 Message-Id: <20190211141902.657099280@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@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.20-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 647ad15d5c3c..91cffc051055 100644 --- a/drivers/pinctrl/meson/pinctrl-meson8b.c +++ b/drivers/pinctrl/meson/pinctrl-meson8b.c @@ -646,16 +646,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" @@ -871,6 +873,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