From patchwork Wed Sep 14 10:06:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9331113 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 37ACA6077F for ; Wed, 14 Sep 2016 10:09:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2874329C38 for ; Wed, 14 Sep 2016 10:09:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D28529C3E; Wed, 14 Sep 2016 10:09:15 +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=ham 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 C7C1429C38 for ; Wed, 14 Sep 2016 10:09:14 +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 1bk76c-0007XF-Ns; Wed, 14 Sep 2016 10:07:50 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bk75T-0007Px-Fo for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2016 10:06:40 +0000 Received: by mail-wm0-x230.google.com with SMTP id i130so39602592wmf.0 for ; Wed, 14 Sep 2016 03:06:23 -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=JyGnz24MPadpssVFzoXMoK0l5Qfi/kiN4dW37etYvqM=; b=JXTWPzDd5prLKw/Fl5yfseYwCGxEKVR/NQILnkjAp3YrhObxvV7jUbEhB/w5opZBrO hwKkDNIlT9CDQG+kbzmPTOE94ewi01EKIFct5ouL0nYE65Urlr4DDHZAhi/6TwbFP0ZI V0k5ibdtLkPaDMxMHuYidsN9MxYUrsRyYd4eaYzmqn7x98OH8q2HC6AG+HL0tROXaBhM 4w1sYF8xcZ+PDZtnrlQICdmBynjnfNpivhBCMdjKtcnelIjrBWlGRqjEj+jmDxwMAuZJ UBF4nPwvkBZFiXRtFERkWO33RLHOyANcZQhJay6FJ286GkJBoSKXnPPl8CGRnYb1gCaL HGPg== 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:in-reply-to :references; bh=JyGnz24MPadpssVFzoXMoK0l5Qfi/kiN4dW37etYvqM=; b=HiMQi1cR9N3XCVG4SxoO7hkqqm6nAcJsk1HUnFbKqtmt2IwcCEkfz/yjU5RuQo/NUv q35WuPsYtbIX94m6GC3f21yieDdmTbnBAxFIMOpGj8WqPxfagj/PEvonDW3HydQfMSRt ZZ2Kg5zJkety2LTfpHmlMx1YH0cbCddP0g7svSfI5ekfKjT1eNfWtUHb5mWuhrgdIkON a5hlqTvMbsr7RNfR/xmT1CAfR5G3vf3xkwLnQtUr6dv2eDzwYAtHMC/VjMEhiJOk9Mq9 4ofpkG8OYqCDrkWpbZOhp14GWtJUeV8P2cZ9g4fvi8ZrqDNhgRZ2Um9eR9vpw8KmqSUI AwUw== X-Gm-Message-State: AE9vXwO+au7X93igRxmKiON2qHAfT2kaCAZUxeCYpezYqoVx7l896zik6BjyBzulwWnxUhVL X-Received: by 10.28.94.18 with SMTP id s18mr2383601wmb.44.1473847582109; Wed, 14 Sep 2016 03:06:22 -0700 (PDT) Received: from mogwai.baylibre.com ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id gg10sm3396266wjd.4.2016.09.14.03.06.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Sep 2016 03:06:21 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione , Stephen Boyd , devicetree@vger.kernel.org Subject: [PATCH 1/4] clk: gxbb: expose i2c clocks Date: Wed, 14 Sep 2016 12:06:05 +0200 Message-Id: <1473847568-20163-2-git-send-email-jbrunet@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473847568-20163-1-git-send-email-jbrunet@baylibre.com> References: <1473847568-20163-1-git-send-email-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160914_030639_727261_E17B569B X-CRM114-Status: UNSURE ( 9.18 ) 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, Neil Armstrong , linux-clk@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 I2C and AO_I2C clocks are needed for the i2c driver, expose to DT (and comment out in clk driver) Signed-off-by: Jerome Brunet Acked-by: Stephen Boyd --- drivers/clk/meson/gxbb.h | 4 ++-- include/dt-bindings/clock/gxbb-clkc.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/meson/gxbb.h b/drivers/clk/meson/gxbb.h index 044fc44e9144..0252939ba58f 100644 --- a/drivers/clk/meson/gxbb.h +++ b/drivers/clk/meson/gxbb.h @@ -190,7 +190,7 @@ #define CLKID_PL301 19 #define CLKID_PERIPHS 20 #define CLKID_SPICC 21 -#define CLKID_I2C 22 +/* CLKID_I2C */ #define CLKID_SAR_ADC 23 #define CLKID_SMART_CARD 24 #define CLKID_RNG0 25 @@ -261,7 +261,7 @@ #define CLKID_AO_AHB_SRAM 90 #define CLKID_AO_AHB_BUS 91 #define CLKID_AO_IFACE 92 -#define CLKID_AO_I2C 93 +/* CLKID_AO_I2C */ /* CLKID_SD_EMMC_A */ /* CLKID_SD_EMMC_B */ /* CLKID_SD_EMMC_C */ diff --git a/include/dt-bindings/clock/gxbb-clkc.h b/include/dt-bindings/clock/gxbb-clkc.h index 743c45b40361..baade6f429d0 100644 --- a/include/dt-bindings/clock/gxbb-clkc.h +++ b/include/dt-bindings/clock/gxbb-clkc.h @@ -13,12 +13,14 @@ #define CLKID_CLK81 12 #define CLKID_MPLL2 15 #define CLKID_SPI 34 +#define CLKID_I2C 22 #define CLKID_ETH 36 #define CLKID_USB0 50 #define CLKID_USB1 51 #define CLKID_USB 55 #define CLKID_USB1_DDR_BRIDGE 64 #define CLKID_USB0_DDR_BRIDGE 65 +#define CLKID_AO_I2C 93 #define CLKID_SD_EMMC_A 94 #define CLKID_SD_EMMC_B 95 #define CLKID_SD_EMMC_C 96