Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3634179imu; Mon, 28 Jan 2019 08:10:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN5tsOuzZ7gRC+YnJCmIArVyPm1izFkwDCcb6XjOHFQwKpWrhXFPGqoShDagONkgWvMTXZ2b X-Received: by 2002:aa7:824f:: with SMTP id e15mr21958330pfn.192.1548691850563; Mon, 28 Jan 2019 08:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691850; cv=none; d=google.com; s=arc-20160816; b=d6wERWKql4TMPUNu+/NJh3JvqKZ9x9gyTjo1qPPqQsO97b2toHap/iukG3YvlYNFuP 4YpbARmSHp6xXTU9VFxpBxfFU/NQVWQoLHvMCX21OKTPvne238Vi+09me3ZMsG9jr2uM E3jgpv23IxPvkaHouzxLGi+EcsXAQexdf9cIHWX5EXZGtUbmSKIjBINiPe9GADezfO20 EV5i6/pfZCsJVCZ3BIdyvuYr2O5jRzUVBjuZacuGFCYLjhhqHNBM2aNxJe0yCk0Ouexg 2IH73IMy9xWju/70SOM6RAQVNb2tgTt7OMLdl7qI5UxQM73pG/6n3Q+TqB+ku3nE6xEy Ftnw== 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=Y0hvhwg0Bg/wi+FHvErDUR40esdKAlCulJhxXFaQcnc=; b=Ujws4jBhRJI1rNmEPPFGieZK/5pjzRWMxP0MlCvZ4o1x0eEvvlsuORBO6wCgrYLyTv YFNK6f2Lp8i4cx8g8D0UuDv53wi3V4q804M3dtCfQpYx0CLg2g9BI/siPmHvKlEN0+vC HbOD+4aRDhem5PH5NiNa0/hsH5e2C02shYsw+iG8YT9NveS0kUIFOcPEON4lQ5qG7nF3 nC3cqd+eYdhK00PexngZ7YUn5eW3B7zGlvANFxBlzM79TR7ytrsXEWTaVriHnVokY9xR COH4mJCdUtDsILMwwW6ojkk9MwAbfO+rB1RCXRP+bi6UgpWYSL/v+XhAk1G/gszG3O7T lIVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="In8P6Z/l"; 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 a3si28389638pga.297.2019.01.28.08.10.35; Mon, 28 Jan 2019 08:10:50 -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="In8P6Z/l"; 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 S1732651AbfA1QJn (ORCPT + 99 others); Mon, 28 Jan 2019 11:09:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:34646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732634AbfA1QJj (ORCPT ); Mon, 28 Jan 2019 11:09:39 -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 24FEE2173C; Mon, 28 Jan 2019 16:09:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691778; bh=fDc2F4IluctCFREreD9HEoOujKnzfNxxqkUVymgUkME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=In8P6Z/lKAr6o2LscDamn3jOfaYEsGLeblKW0TGaqvBQX72SIiB+em81BQ2Uki5Mz wWaW+Ra+l92AtBEBBqQ+paa+bo4lOrNcATiukVkSFMmrCJWCknqYixiWxMHk4Zv8nO fuYse/gsFfQ6RVY9LomqfCnKhYCbjlYsOlXLUT4Q= 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 214/258] pinctrl: meson: meson8b: fix the GPIO function for the GPIOAO pins Date: Mon, 28 Jan 2019 10:58:40 -0500 Message-Id: <20190128155924.51521-214-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 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