From patchwork Wed Feb 22 06:55:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9586263 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 124E1600CA for ; Wed, 22 Feb 2017 06:56:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE2C828684 for ; Wed, 22 Feb 2017 06:56:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2C7C28688; Wed, 22 Feb 2017 06:56:11 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham 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 77FEC28684 for ; Wed, 22 Feb 2017 06:56:11 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:To:Subject :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7nYfBbhSenO25sIEu+5ivUu7iNqScToz4JB3TJGSXVI=; b=QUvbkJAQKzC4vZ 6jJY6FvZ8L9ALaCwpUcC7WaS5cKjcrpb+kM8+XpKEXWyLajoGcqUomrlMtTV1g675RQTwvuK1QTdK XVyUFyfJu+e/rD1Zj6O9ZZ8U/5o6LJyZo52RbbQWa07DsKcMwZqF/yVgAqQ5JYQAX8OrNepugOp0v lcg7YK+NCymH09fyMGxJhb2zRR/Fl+9v6lWNp+82qSlPfOwLBC42RwfksoKAE15yy3liRKlirW5k4 rJomlHd5eDi2ykEZg0T6PcrHXJQuOUzIEiIeY2c3gTWPhXebJB8cqHQDm/cyDPRDTK8AM3vArO5AZ hm5yPjCIaFehto5qWoaw==; 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 1cgQqF-0004UJ-Kn; Wed, 22 Feb 2017 06:55:59 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgQqC-0004TT-HU for linux-amlogic@lists.infradead.org; Wed, 22 Feb 2017 06:55:58 +0000 Received: by mail-wm0-x244.google.com with SMTP id i186so435182wmf.1 for ; Tue, 21 Feb 2017 22:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=H8mbt45UgxdCD5gOXUwiixC6Mrd6kgIWMYTbSdOdGLI=; b=Wqw5mmvE6XeNSZ9Cxgze8ZsyMx4jEe2CzkT6A5qyQahwH0WVFBuyHK0k5PoBXXcuo3 bwcy0K2IFmJB0vaSrp/rR5MDlA/Z/m1RPAmIgToBtdw8VjqWjm+IATgKiEyAkNfvnZg6 cQ3yp4BrDgyzK35pKFKE7qhjmxwm0cKuaUa332ziMmmMfIa2u1k8dSSi2R9DIMVf1tLt +kv/VpFpMulkGQ7tsgW5PKlWeB84QjM63M18KxCtal5logMeaViB2RQlEVLRbEy0P0da R+VX7Szp2WIIe/H2x9RkTxftxxOukU5UObvRXbeZBGvKpii8KNkQyI1dua/MS8cn143g QOwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=H8mbt45UgxdCD5gOXUwiixC6Mrd6kgIWMYTbSdOdGLI=; b=Dtoc9ruRpmZnXJvlWD7B61FoSBXRSmZ1YcjipiNmaqIxMMMoK0pTmHFTYWDa1l19BZ F3STxMFnUoywtg22L8OcvyLunPUkzj+9VksNWCX3s2OZdl50jm7iteH+vEn2yvZX87Pk Whe2gJCoIU5/aHuP8AbSv0y4ZXca4/X3YZrhfseHVpW3ffD6OGt55JkjiG9t81nst24f p23fkbijZLr587dUIistrbJ1ffWXHkKvIn+FSN9DgCRhnejvU/Ey3prENjk3rXIO21u6 NreXBhHbn5ybMGNCtwM+kZlfPtrPRiH34Bic4Qvuu/mh9b9OKrPB1Yi80EDkWNUKuwh5 lAqQ== X-Gm-Message-State: AMke39npT/aA1WFitIDVbh97Ecwi+UAMrZvEreIbYK9XX4vyynt0VOYaowrUSxZHGzKwUg== X-Received: by 10.28.183.5 with SMTP id h5mr864236wmf.39.1487746533609; Tue, 21 Feb 2017 22:55:33 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:4dac:58d5:169c:6ecb? (p200300C6EBDC40004DAC58D5169C6ECB.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:4dac:58d5:169c:6ecb]) by smtp.googlemail.com with ESMTPSA id b51sm456963wrd.39.2017.02.21.22.55.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Feb 2017 22:55:33 -0800 (PST) From: Heiner Kallweit Subject: [PATCH v3 1/3] clk: meson-gxbb: expose clock CLKID_RNG0 To: Jerome Brunet , Kevin Hilman , Herbert Xu , Neil Armstrong , linux-amlogic@lists.infradead.org, linux-crypto@vger.kernel.org, Stephen Boyd , Michael Turquette Message-ID: <4e2d12e5-f75b-3ac6-a3f7-18e8a8b7283b@gmail.com> Date: Wed, 22 Feb 2017 07:55:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_225556_741666_85C3B24F X-CRM114-Status: UNSURE ( 7.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Expose clock CLKID_RNG0 which is needed for the HW random number generator. Signed-off-by: Heiner Kallweit Reviewed-by: Neil Armstrong --- v2: - added clk and DT maintainers - split exposing the clock and using it in DT into two patches - comment out clock definition in drivers/clk/meson/gxbb.h - silently move CLKID_SPI to the right place v3: - no changes --- drivers/clk/meson/gxbb.h | 2 +- include/dt-bindings/clock/gxbb-clkc.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clk/meson/gxbb.h b/drivers/clk/meson/gxbb.h index 8ee2022c..cbd62e46 100644 --- a/drivers/clk/meson/gxbb.h +++ b/drivers/clk/meson/gxbb.h @@ -193,7 +193,7 @@ /* CLKID_I2C */ /* #define CLKID_SAR_ADC */ #define CLKID_SMART_CARD 24 -#define CLKID_RNG0 25 +/* CLKID_RNG0 */ #define CLKID_UART0 26 #define CLKID_SDHC 27 #define CLKID_STREAM 28 diff --git a/include/dt-bindings/clock/gxbb-clkc.h b/include/dt-bindings/clock/gxbb-clkc.h index 692846c7..63f4c2c4 100644 --- a/include/dt-bindings/clock/gxbb-clkc.h +++ b/include/dt-bindings/clock/gxbb-clkc.h @@ -12,9 +12,10 @@ #define CLKID_FCLK_DIV4 6 #define CLKID_CLK81 12 #define CLKID_MPLL2 15 -#define CLKID_SPI 34 #define CLKID_I2C 22 #define CLKID_SAR_ADC 23 +#define CLKID_RNG0 25 +#define CLKID_SPI 34 #define CLKID_ETH 36 #define CLKID_USB0 50 #define CLKID_USB1 51