Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2657316imj; Mon, 11 Feb 2019 06:34:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IapP+QpRiCMQRBQ6+zaARPK8AUltS0/q88Jl2KRNNREO/2Dzxb/PmrRLai4FFA4Mg0APdqq X-Received: by 2002:a63:bf4c:: with SMTP id i12mr29858233pgo.382.1549895689452; Mon, 11 Feb 2019 06:34:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549895689; cv=none; d=google.com; s=arc-20160816; b=wqwmLPKXMGWVlo9+zvECU7Q4vgw8i+rEPNLEEhY32rf0ehIqWwAImkoF0qZL29ihlA DH/r4cKdrJWaG0KUPWcu5rlhYQV40dwKkOnchsYmXxvJhTQ1vUc6ZJFiGvaFwqCVBopk EkmQunqo4sP9peYCfHMvJzFZFkeyIFupfNdykVpStVg99wUTWc01n5vd8AkMExD/MTKI 9zpx9FSOg6mkQE/ZSM8BGrstL876gmE//ijtQIqB8RqQGDQKW5pCCb7PXzjJLqFN75aE Jpt0Lh0oefp3ggvhja3Eh3G4st9fy+nru9FdgwI1ltq9bT4vPNIywyp6vLXMPL7bgnWl qJyA== 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=N63r9IYylQQlFzZ28fcr7nCmzqWGNriUnBwzxNEgRKs=; b=sjqB1yWfEK5RCdlUBXBDzTqdNCjG5LVvA80UWdFNxkZNfpJdb420LV8DMYTW/phdLB IVZHlWAdp/oeSb68jgU4uvSyU5BFCU/sPcgBIaph18b0wC2YUo6STHjfMVHXl2CqF9r3 eSUdJuZk0zZ1+3/aNJwFcI5s0coZK7CcfJV2aUIX76LC94r8pCc4P9rZkfj0UvdsUffL fyvtXTIrfN7clGl5hG0RJeIP5SZu2S3yzbxEPGUJ9B4FHyfW9VUG6ghWz/xYXpBi6VyD CiaqnjnFSKTZw9ti5bWVQXS/6vwAAvBcSgdgkkMshg4rjgF8LFQfPrx4x2uUyhUR2qab h9PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Vm11GPLg; 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 a10si7703569plp.167.2019.02.11.06.34.33; Mon, 11 Feb 2019 06:34:49 -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=Vm11GPLg; 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 S1730555AbfBKOc6 (ORCPT + 99 others); Mon, 11 Feb 2019 09:32:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:40490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730549AbfBKOcz (ORCPT ); Mon, 11 Feb 2019 09:32:55 -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 3CB8D20844; Mon, 11 Feb 2019 14:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895574; bh=skodRZHPagfcY5wFC5JBsGBnN9ZtHOFFfCiW5EYNEPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vm11GPLgpMMnpONgZJWs3+rOla/9Nm42f18G8n7puv2nprrp1sxYBTdpPGjXby7RE FtDJnyKCCTu5REn2g/3A8d9eDrDn2xhBO/hJ0vdX9zjs0ksKcua1Ln44ze2O+Rd/w7 JWKP1Lz1Xvopm2J7ScfztT6ClXiby5AkigpkPgl4= 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 243/352] pinctrl: meson: meson8: fix the GPIO function for the GPIOAO pins Date: Mon, 11 Feb 2019 15:17:50 +0100 Message-Id: <20190211141902.612334397@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 42f9b48cc5402be11d2364275eb18c257d2a79e8 ] 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-meson8.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson8.c b/drivers/pinctrl/meson/pinctrl-meson8.c index 86466173114d..e482672e833a 100644 --- a/drivers/pinctrl/meson/pinctrl-meson8.c +++ b/drivers/pinctrl/meson/pinctrl-meson8.c @@ -807,7 +807,9 @@ static const char * const gpio_groups[] = { "BOOT_5", "BOOT_6", "BOOT_7", "BOOT_8", "BOOT_9", "BOOT_10", "BOOT_11", "BOOT_12", "BOOT_13", "BOOT_14", "BOOT_15", "BOOT_16", "BOOT_17", "BOOT_18", +}; +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", @@ -1030,6 +1032,7 @@ static struct meson_pmx_func meson8_cbus_functions[] = { }; static struct meson_pmx_func meson8_aobus_functions[] = { + FUNCTION(gpio_aobus), FUNCTION(uart_ao), FUNCTION(remote), FUNCTION(i2c_slave_ao), -- 2.19.1