Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2718557imj; Mon, 11 Feb 2019 07:27:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IarYF8XFChSHjD4bDJQWO5HgJJ2UzFm3sRyoFsG/sB+urZe3cpqGt2pbdkcT90h3ilRS/5L X-Received: by 2002:a65:6497:: with SMTP id e23mr15814752pgv.89.1549898856026; Mon, 11 Feb 2019 07:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549898856; cv=none; d=google.com; s=arc-20160816; b=kapfGkZkoYDL5osjTq4fgEqykrcquf/CNCX1WdyvUaDmnewBIJGgYnUFmLG5GqoTwf e92oywDSMJ44zzBc11KzQJ8tpMDYs0pFtIYkLoNi2mJ/2FDYo+t/07eBstA6wWdPfv8X UayyPmi0L3VJqrKhLofDgSY3jKL/kDAiv7JTsRBeiwC/Jrc6Oswqw9bWFl++NLXvCu6A bkAG2GfaoMQ2mfoNlKm1nDzfyZGWVh3XoxJ2L5DQZ3wiuTsYVzIXLq4KeanLhVeOKhby Pz6ZiCffRVB2h0zG4CUX0evl2//sKVa/ycicJYFhtQIYYBuEqorxZI9yYl4a+0+PmEU+ ucVg== 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=1Eby9eQTh2jfMG+yJsBu3SQBfztifHBIEShCnJ1ZDUo=; b=Rs3ALZaeQdeDiXfQXHKmKyOfGS3a71t4NAF8avjtqTq5Ezcu8fY4y8i3nbcXE4qlQQ vBmMYy7crzbd5J1Bc/Gca3mo07gqZh4f3P30rqpwnEAazQO/Hy5tyK4J8y94pP5Cdy4d 0DPJgk5kDJLWAJi3fYu1Xe81NXcSHtjdZ7f1g3FNVhMMp9OdMB0Lvpjxgtb30IMB6MMH Qanmp2xe+hCMOca+959oH6EO1syqmGrZ20sEsjJ+Rp5Jt9eDtwXPCafrNoDBqevpgSCL Wo/pCAYrTz2RwElHkYlnbJ3OuSq+W+2EIMscyNwqDLhws47MbVYtyKU+4zAdS+XD9oam +A4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XWWunx7m; 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 b10si9284078pgw.388.2019.02.11.07.27.19; Mon, 11 Feb 2019 07:27:36 -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=XWWunx7m; 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 S2389985AbfBKPAV (ORCPT + 99 others); Mon, 11 Feb 2019 10:00:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:48212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389973AbfBKPAS (ORCPT ); Mon, 11 Feb 2019 10:00:18 -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 59D68206BA; Mon, 11 Feb 2019 15:00:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549897217; bh=aJligqYiTrIGFkjstkHYEok9EJY4Ibw3GViDJGyyz/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XWWunx7m/pmH30hmP2Nd7S9YlyruzzROO10gQ0w9Irr2eHBd4OfMOGsGpjo0zoYCE RUGAmgpKXL8nnm7weZ5hmNU4wv5f6oRbrUef1VHUNgmNEL6spxn7DmYt1tvZYctMJE uEv3WTD4yRhk/NWCKpJw4wbjhpW+Y0a7SagfQKeg= 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 130/205] pinctrl: meson: meson8: fix the GPIO function for the GPIOAO pins Date: Mon, 11 Feb 2019 15:18:48 +0100 Message-Id: <20190211141836.930733542@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 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 970f6f14502c..591b01657378 100644 --- a/drivers/pinctrl/meson/pinctrl-meson8.c +++ b/drivers/pinctrl/meson/pinctrl-meson8.c @@ -808,7 +808,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