From patchwork Mon Dec 18 11:35:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10118823 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 74D1860390 for ; Mon, 18 Dec 2017 11:36:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6850828B29 for ; Mon, 18 Dec 2017 11:36:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D6EE28F21; Mon, 18 Dec 2017 11:36:17 +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.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED 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 EDF4228B29 for ; Mon, 18 Dec 2017 11:36:16 +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: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:In-Reply-To: References:List-Owner; bh=RW/Ps4Pk3DQGMq4zzjdZiRs0UMhOksQNM2jmgbLPrK0=; b=MXg +MaeIBAeRg3HHSvand4rWhF7nvCvkuBcwTfm4DGoKChqYUcns2IWk4svTWBltnh9dBbGJfh/Ixn4l Il0TegZ1FUqm527/R0uEsvpeTCGkeCmmXUIRSkxxjKwlJgkz5w4YWt8ha56G9kbqXg5HEgnjeZQkq uSyiMn3e6g+TPIhgSnaZ+jqO04hXQwuzmzxZaDQVj0sghlKVuotXZse2IbtQKl7U+GdtIs+rgF341 YE05G7aTUIe4hzjfcBRUn/+rOwbCDV4VWCIbL/wtwVNKNAZPSsxD+g4f7PoLH4Czc95HReBAbBBwm b5fy/fcYuAKkY8ByowxjvJTwU56BpMQ==; 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 1eQtiR-0003ed-Dn; Mon, 18 Dec 2017 11:36:15 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eQtiN-0003d8-NN for linux-arm-kernel@lists.infradead.org; Mon, 18 Dec 2017 11:36:14 +0000 Received: by mail-wm0-x242.google.com with SMTP id b76so28907096wmg.1 for ; Mon, 18 Dec 2017 03:35:51 -0800 (PST) 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=3uXsRrTOOnjQCqIGvMk6YUIdOI6LXErP7vCwIiYJnRs=; b=bKp794wgrv6vtiece8fflpaG+EHX+tsIkw1LTc2VI8a6X91Qib9GGatSI+LlifwssQ CXaDw6PZNQmDiBuBuaZRXFYOjiP8W1i9ufxJgXCA/Dfk0LOJDSeLJQ1L76yilBHmUeLO 1K3VJOXONM2eBtgSh8rYaW7FoGyKUc2J7zMDf/YTeFEZSXJBMusQqaHFUETxkeous240 OR4OsI4vGiJt9+/hN+K7qoF8/1F+kyfmLRVV2o6C0bHQ9+p2F5i9n7FM+K5K58wxmBIN j2WC2BPhMAXmpEY8FsQgWVPtCpPrcTGeRvbHf3daRNmgH3BvKrvLEcCjppTKSNNGz6fc vlVw== 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; bh=3uXsRrTOOnjQCqIGvMk6YUIdOI6LXErP7vCwIiYJnRs=; b=Dp7wBVrKMX+kEkEeuI8GLywOC4v04TyLgh4HGgO8+Z2Mci3CXgqdSqlEUpXFZnie2G bVPihtytcVcTQPwNMRLvtGAeJaZT04SDsxgZ+6FSCuiWK4JIWcia25t4PC+BIsyPzb94 XFX49k6sbdFuHtsf4zBQFYA6Zy7lHvU6nh2P5xm4qbES84e6Mtgd9GdsyNMO03WV7ew7 uuCcJV7zuRFJ2hI9q+lIS6+jUsP++5g7ky0+lnwxsNgcWQai0ovN1sKSt2xlxRFuMRvh FfL2jBxSj3UkOWkqAJ4qk+3y/3whGorzzYPa8xksZa13ohFxGOnqFe2DZu7WMpr145jE 5TbQ== X-Gm-Message-State: AKGB3mJo1YeA4mbaiJsfOrkQ/yY+LxS/jhBJy6oWAXdpWct+t4ggD/D7 cmdVHyiaUMZTFyFwkFL1oVxAqw== X-Google-Smtp-Source: ACJfBouzVdJtiaVsECO1ESpC1jytM+gkatepDzSS3fPNwD7koja1ewPkK89GPoXwLFf9MSMijqBMhw== X-Received: by 10.28.136.66 with SMTP id k63mr12589201wmd.50.1513596949847; Mon, 18 Dec 2017 03:35:49 -0800 (PST) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id v62sm12094536wrc.13.2017.12.18.03.35.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Dec 2017 03:35:49 -0800 (PST) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH] ARM64: meson-axg: enable hardware rng Date: Mon, 18 Dec 2017 12:35:46 +0100 Message-Id: <20171218113546.13116-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171218_033611_966314_6BAD8F1B X-CRM114-Status: UNSURE ( 7.82 ) X-CRM114-Notice: Please train this message. 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: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.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 Enable the hardware random generator Signed-off-by: Jerome Brunet --- Hi Kevin, This patch depends on the changes adding the ethernet controller [0], for including the axg clock binding header. Cheers Jerome [0]: https://lkml.kernel.org/r/20171216035527.96952-2-yixun.lan@amlogic.com arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index dea1bc31b4de..c741fc16486f 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -212,6 +212,13 @@ #size-cells = <2>; ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>; + hwrng: rng { + compatible = "amlogic,meson-rng"; + reg = <0x0 0x18 0x0 0x4>; + clocks = <&clkc CLKID_RNG0>; + clock-names = "core"; + }; + pinctrl_periphs: pinctrl@480 { compatible = "amlogic,meson-axg-periphs-pinctrl"; #address-cells = <2>;