Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3695915imu; Mon, 28 Jan 2019 09:11:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN6kH+MXHAN1/WI3lc1gmevSx6ju/wSjxfSAUcPMVw3QgZkx01zSJ5ciw2wQX1ca9HYf4K7i X-Received: by 2002:a17:902:584:: with SMTP id f4mr23181882plf.28.1548695514700; Mon, 28 Jan 2019 09:11:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548695514; cv=none; d=google.com; s=arc-20160816; b=li8hAZ4PfS7hRol8Vv1xBHv/a6U4yOUeGyvPWAOat6CU55kxe9l6rM2IN73hssxvRP awF4eTtwp9K5BQOLdB+rOwJDa+Qe7fm1CHKIk5rtngcDt+C9LR1BV1YvL63D2u8Fak1X u47HTWv+h0GECcY3CTLDzm7dQFNaNbo2IFm0/0MuFY5FDOoQ9QVbJLOblUVjLA4qeCJO K3PhZPYubXu/A3BXatechDQlZUZrCunuTzBKrnYXl0aVOBvPCZ1bwH/qSgfZ16rftN4/ j7/qhhrXnxHLRlEKJFNjfQWZML3XIm0geRjNgH4TarjoVEVtWFIF57+74rqcKleImVjS Pr6w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2V+EJjjLEzsauGb3IOeI6wCBKKz8VeZNeKLXDqRS104=; b=kQ2JbDWdfAR7Axx5C7/E8HnFLAwNZ1sFvWzjQiV1pDsj3XCkR3X4sHRLmrDS5F4zwO /Lpu0HXo1IZyeTIhPGqeq7o7fZe3hJRTfaoVTuJRfq8dX4OVeh9k+q5Goi+p3NiF1nSX VtM8GDgN9z+aY8RzfROQ5syr/ygQ7zJ0NEzzkvBnepwPIgsPcodStgfLXZ7Y+N0PHSbt BmFdzJoljng/sRwd0OxcoK/yiecbfDkXQcMJmgXayh1rHiMGJowj+f9xXZZ99Idwp8dC vLIC1leU10QW2de2M5Su4yGnpcdl4qSFC1Q5dhhifaVQBA9+FXLpyIK4Fs4ZpxPFpbLl 6DSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nFHxBW2C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si32245960plt.4.2019.01.28.09.11.38; Mon, 28 Jan 2019 09:11:54 -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=nFHxBW2C; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732640AbfA1QJk (ORCPT + 99 others); Mon, 28 Jan 2019 11:09:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:34570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732629AbfA1QJh (ORCPT ); Mon, 28 Jan 2019 11:09:37 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3DD1021738; Mon, 28 Jan 2019 16:09:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691776; bh=Mpyhe8qTaIus1fIsKC5CIORoBVb834a3TFJUdNtqIq4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nFHxBW2CCdB1R0VJoQbs/52CMHh//WfA7NaYMvBw+1aONJ6k9MpDMIoNpY25lFpqv 1iAfs9LK8OhmlC1HzCIQwdL4GorHOiRidyuQt7C+Cn3/yYERyrYc+4DmYarR2P/8R1 nLBHv5PhOMOR/2kwNIZIaSkyLE8pds/Xbvcq72QQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Martin Blumenstingl , Linus Walleij , Sasha Levin , linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: [PATCH AUTOSEL 4.19 213/258] pinctrl: meson: meson8: fix the GPIO function for the GPIOAO pins Date: Mon, 28 Jan 2019 10:58:39 -0500 Message-Id: <20190128155924.51521-213-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Blumenstingl [ 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