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: 9331097 X-Patchwork-Delegate: sboyd@codeaurora.org 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 E1FE46077F for ; Wed, 14 Sep 2016 10:06:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D387129BF3 for ; Wed, 14 Sep 2016 10:06:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C82AF29C36; Wed, 14 Sep 2016 10:06:25 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5611729BF3 for ; Wed, 14 Sep 2016 10:06:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761149AbcINKGY (ORCPT ); Wed, 14 Sep 2016 06:06:24 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:36281 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761155AbcINKGX (ORCPT ); Wed, 14 Sep 2016 06:06:23 -0400 Received: by mail-wm0-f52.google.com with SMTP id b187so38634782wme.1 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=Qi/njt7a/cIbDm/7XRb4ijb7xOHA4pxwHflThDNATzHpdFRR9JqXoDVPy7XEqbZtyu JwyRm11Tuv7uJKNqEkG/P2XaLshcKnpvBaR49UXsN4LQRT4GvtK7346mElXSXxRubhFr gebkjLqoEXgZNXt27oj7mQHTCcZvAHH4oac6D/JDSJNkKe7ID9EXsPh0x1mJ2TZtfbkF LSS6LtEQhfckSnFmbzDq/+EOnWKMGlQSZwE7Eorl2zPfxksfZ5Yq4XYAV5/jnp8eGGYI TLs61appzwGlN2y4DoeEDGvoLezgbway6UlRD0W/HjSjuaQZEbLJ4U/r0Wgi50u0E2j5 DTBA== X-Gm-Message-State: AE9vXwO8Ya5oUvWGRmOJVBLhoWUkcw0Zc8b9UtEjZm22Z4uqSAMCacSd78qCS0CzgthFKA+5 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 Cc: Jerome Brunet , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong , linux-clk@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> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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