From patchwork Wed Sep 14 09:45:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9331023 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 1F6E4607FD for ; Wed, 14 Sep 2016 09:55:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F8E529AC5 for ; Wed, 14 Sep 2016 09:55:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0308A29C25; Wed, 14 Sep 2016 09:55:34 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ED6E029AC5 for ; Wed, 14 Sep 2016 09:55:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bk6tO-0000DQ-M6; Wed, 14 Sep 2016 09:54:10 +0000 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bk6sV-0008EY-9d for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2016 09:53:16 +0000 Received: by mail-wm0-x22d.google.com with SMTP id c131so19749504wmh.0 for ; Wed, 14 Sep 2016 02:52:54 -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; bh=xJ/g2PHNyYR0gE6CeiwXCBy6jrxRoDqL7Und5tT2HGQ=; b=qh3nIJF+gShZuwNl+rLL90wbWgHamgE0IUy6SQGQDmN5MokuXOy+bWLZEtsYYqHX5J A3xBb9++/56TGUu1swPB8Y58mv3GIRUFDLO72lKRcBbWdDLyheQbq/AVNFyqsDknBzTu yUFCjKAtucbozT9EUURDge2/ZhPP/gUub/KAWhheZA64hNDpUJM05m95DpgRmc4sBK9h K+C42wxcA2sBewt0P9lj84qk+ih4r/WluBHbvR84Zw5yxoC3rIoJprQRp1/KMYTRCtU2 cMllIgzqngzWE5/MA+5UGylnNH34k0t109fMHZWmstxF49SZ7caj0ksD0HV9/bxBuaF7 8UFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xJ/g2PHNyYR0gE6CeiwXCBy6jrxRoDqL7Und5tT2HGQ=; b=bk9j7LDTiJ0ofko5oi2/2iP1spqgfCzi3xMeIJ+9e2GZ07gzP0HTlVcenCgO9Ri4nb GWIxM6+nvkQvDGWo3Fx3kru02V7D8hLF+5lwJu+BgnXpay9/imZdPPhIIwDxKCtb3Bw4 JDJZV8OJKvdXryWdS+Mh8mfv8DIupgsutimGZNrDJWmvOXfvF1PAwo319viW8zapuN2c 2+jZ9O6+AIgXue0mYawAge5gEGUjuYyxXZaOlJ6OPAIUeyFYHIuaNNJnTT2pVS3a0quO Wq32EoUmloEQJMl+cBEYUHXN9JG1JzLoB4iqAzhOxIlalIWG1gXdDoZv8OAUVienYK59 cvvQ== X-Gm-Message-State: AE9vXwPhO/IjmNO3JV4mTx2A+bSYrpMJ31yeB1iB9n6q8eRV6lp5Z22Aqs7/l9tlPpEXuNrt X-Received: by 10.194.28.231 with SMTP id e7mr1942369wjh.170.1473846334366; Wed, 14 Sep 2016 02:45:34 -0700 (PDT) Received: from mogwai.baylibre.com ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id i131sm3258480wmg.10.2016.09.14.02.45.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Sep 2016 02:45:33 -0700 (PDT) From: Jerome Brunet To: Linus Walleij , Kevin Hilman , Carlo Caione Subject: [PATCH] pintctrl: amlogic: gxbb: add i2c pins Date: Wed, 14 Sep 2016 11:45:28 +0200 Message-Id: <1473846328-17339-1-git-send-email-jbrunet@baylibre.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160914_025315_530178_BE1B39BE X-CRM114-Status: UNSURE ( 9.55 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet 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 Add EE domains pins for the i2c devices A,B,C Signed-off-by: Jerome Brunet Acked-by: Kevin Hilman --- drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index b06cc12f2500..c3928aa3fefa 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -200,6 +200,15 @@ static const unsigned int uart_rx_c_pins[] = { PIN(GPIOY_14, EE_OFF) }; static const unsigned int uart_cts_c_pins[] = { PIN(GPIOX_11, EE_OFF) }; static const unsigned int uart_rts_c_pins[] = { PIN(GPIOX_12, EE_OFF) }; +static const unsigned int i2c_sck_a_pins[] = { PIN(GPIODV_25, EE_OFF) }; +static const unsigned int i2c_sda_a_pins[] = { PIN(GPIODV_24, EE_OFF) }; + +static const unsigned int i2c_sck_b_pins[] = { PIN(GPIODV_27, EE_OFF) }; +static const unsigned int i2c_sda_b_pins[] = { PIN(GPIODV_26, EE_OFF) }; + +static const unsigned int i2c_sck_c_pins[] = { PIN(GPIODV_29, EE_OFF) }; +static const unsigned int i2c_sda_c_pins[] = { PIN(GPIODV_28, EE_OFF) }; + static const unsigned int eth_mdio_pins[] = { PIN(GPIOZ_0, EE_OFF) }; static const unsigned int eth_mdc_pins[] = { PIN(GPIOZ_1, EE_OFF) }; static const unsigned int eth_clk_rx_clk_pins[] = { PIN(GPIOZ_2, EE_OFF) }; @@ -438,6 +447,12 @@ static struct meson_pmx_group meson_gxbb_periphs_groups[] = { GROUP(uart_rts_b, 2, 26), GROUP(pwm_b, 3, 21), GROUP(pwm_d, 3, 20), + GROUP(i2c_sck_a, 7, 27), + GROUP(i2c_sda_a, 7, 26), + GROUP(i2c_sck_b, 7, 25), + GROUP(i2c_sda_b, 7, 24), + GROUP(i2c_sck_c, 7, 23), + GROUP(i2c_sda_c, 7, 22), /* Bank BOOT */ GROUP(emmc_nand_d07, 4, 30), @@ -574,6 +589,18 @@ static const char * const uart_c_groups[] = { "uart_tx_c", "uart_rx_c", "uart_cts_c", "uart_rts_c", }; +static const char * const i2c_a_groups[] = { + "i2c_sck_a", "i2c_sda_a", +}; + +static const char * const i2c_b_groups[] = { + "i2c_sck_b", "i2c_sda_b", +}; + +static const char * const i2c_c_groups[] = { + "i2c_sck_c", "i2c_sda_c", +}; + static const char * const eth_groups[] = { "eth_mdio", "eth_mdc", "eth_clk_rx_clk", "eth_rx_dv", "eth_rxd0", "eth_rxd1", "eth_rxd2", "eth_rxd3", @@ -661,6 +688,9 @@ static struct meson_pmx_func meson_gxbb_periphs_functions[] = { FUNCTION(uart_a), FUNCTION(uart_b), FUNCTION(uart_c), + FUNCTION(i2c_a), + FUNCTION(i2c_b), + FUNCTION(i2c_c), FUNCTION(eth), FUNCTION(pwm_a_x), FUNCTION(pwm_a_y),