From patchwork Wed May 24 08:20:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9745407 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 45AF7601C2 for ; Wed, 24 May 2017 08:30:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34CDE2892B for ; Wed, 24 May 2017 08:30:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28D5028948; Wed, 24 May 2017 08:30:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SUSPICIOUS_RECIPS autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B02D028947 for ; Wed, 24 May 2017 08:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=SWyBXFobKHNXQGub/E9WyVNbcwj0gaC+/F6JV82Y43U=; b=sO2CaD9gTSQtFTsGDyjWV/XADR U8u5A1rc8/j5hUIMF5Nl9oHTa1biaczZAiZuLMGQxwSj0HaGKXEm35kx995dR7AdSW3SXlJFdddpa w51lcIrY99sSaaYaQloU5uJGYtQL1jrgqdwAFQP5+Kl6kdr8s1xjDbeJzU9O/vxrChl+hm0OYeup+ biDtC9rKGAlTq3aYmrchLYzm4pT0VutJc3NqD5QbLfEE/IpO9u58tQRGuRJ2z5g0PTsqZq1H/PCOz LvGdD85eZcx9hxsTjjumXsQLmvhn+2limlyfzgE2fVxw+tvLmmaR3ZMoEgg3uVocRfWJVzxdcELyp mJ7ayR/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dDRgE-00024W-Pp; Wed, 24 May 2017 08:30:06 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dDRfW-0000Yv-DA for linux-arm-kernel@lists.infradead.org; Wed, 24 May 2017 08:29:27 +0000 Received: by mail-wm0-x235.google.com with SMTP id b84so55232318wmh.0 for ; Wed, 24 May 2017 01:29:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bkrsIOgLIV9Rh/st5ayHoLUy63ZeXRF6kO37Ssenl4w=; b=TV+4TSf+1PHORYes42SSVB5D6gMWM9zo1qUYdtwLbL/mpahf0zKsK39oCzax3fRzDL X2uwsQkgJJl61D6PxV7NOZHE4CoCzDXi7V3NBsDcHyKmrLwSOPbJEJgIPXzaMLSa+PLn a1+H9BKV4qLCnollnq+mDPTO+AYZRkV2pCAKb0jikF/rtSWzCjILmX8ZltP60MhNKGUO DDS0WiBh+htJg3d58u80lxdm1Ahzu+D7ScuztoG3IQP4uJWfnfyYXZKj4QR0iO3gHuNQ A58YgDc0XdaH3dZREV0Rt8PdYRkG0wZJJnTd+loFHGq+7xe0tgHnu34WIZKrqYOT5Ss/ MYwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bkrsIOgLIV9Rh/st5ayHoLUy63ZeXRF6kO37Ssenl4w=; b=RqPQqo1GrEEzAjaIRdhsDBYmi0GM0PTmOJmVNgwc2eHSFGDpKbxf/dNt/n9XBxT/Tt 9C9SXPpliz76XvmCyKghJH9nMs6tS0q6gODVkxOUDe26fLOeW2xG08/HxgeOiHnPqKCd I4mGrZS/W+QLXnoOCCO692f6Ujinh+HmSsxXgLN/AlYK3YNZf8HGv2kWBuvkTtABsi+c Chtovr3DOQZBLADC13BlO8sQLpqaeCUMd+uYCb1/+13XN8V+mLKBXFHSw7tUgDZlvisI REWkXysmuUk2Wa+yRYpwzgAVe8eqVufThhzb21NhSymt0IPSGCHJYfcVpjCkoTzcVbKZ +H4A== X-Gm-Message-State: AODbwcAeV8KDb1EKZ4LJVrT2lrYq7Itd23qYSvEOY1NC5eouzQDGXFJ3 C6nmbhQir7uJExfX X-Received: by 10.28.20.14 with SMTP id 14mr5232864wmu.52.1495614052785; Wed, 24 May 2017 01:20:52 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 185sm3645614wmp.1.2017.05.24.01.20.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 24 May 2017 01:20:52 -0700 (PDT) From: Neil Armstrong To: linus.walleij@linaro.org Subject: [PATCH 5/5] pinctrl: meson-gxl: Add Ethernet PHY LEDS pins Date: Wed, 24 May 2017 10:20:42 +0200 Message-Id: <1495614042-2676-6-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495614042-2676-1-git-send-email-narmstrong@baylibre.com> References: <1495614042-2676-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170524_012923_201761_E5649E83 X-CRM114-Status: GOOD ( 10.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Amlogic Meson GXL SoCs embeds an 10/100 Ethernet PHY, this patchs enables the Link and Activity LEDs signals. Signed-off-by: Neil Armstrong Reviewed-by: Jerome Brunet --- drivers/pinctrl/meson/pinctrl-meson-gxl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index 7d81287..78a9af5 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -239,6 +239,9 @@ static const unsigned int spdif_out_h_pins[] = { PIN(GPIOH_4, EE_OFF) }; +static const unsigned int eth_link_led_pins[] = { PIN(GPIOZ_14, EE_OFF) }; +static const unsigned int eth_act_led_pins[] = { PIN(GPIOZ_15, EE_OFF) }; + static const struct pinctrl_pin_desc meson_gxl_aobus_pins[] = { MESON_PIN(GPIOAO_0, 0), MESON_PIN(GPIOAO_1, 0), @@ -437,6 +440,8 @@ GROUP(i2s_out_ch23_z, 3, 26), GROUP(i2s_out_ch45_z, 3, 25), GROUP(i2s_out_ch67_z, 3, 24), + GROUP(eth_link_led, 4, 25), + GROUP(eth_act_led, 4, 24), /* Bank H */ GROUP(hdmi_hpd, 6, 31), @@ -665,6 +670,10 @@ "spdif_out_h", }; +static const char * const eth_led_groups[] = { + "eth_link_led", "eth_act_led", +}; + 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", @@ -736,6 +745,7 @@ FUNCTION(hdmi_i2c), FUNCTION(i2s_out), FUNCTION(spdif_out), + FUNCTION(eth_led), }; static struct meson_pmx_func meson_gxl_aobus_functions[] = {