Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4525842yba; Tue, 7 May 2019 20:59:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWxUTzrsxoLa1h1Y+RFoSGSBMJLJIV2oXQBdO4hTxSBlGovzRm2P1L3saQQ/0auc9FZKfd X-Received: by 2002:a17:902:4503:: with SMTP id m3mr41825179pld.97.1557287995217; Tue, 07 May 2019 20:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557287995; cv=none; d=google.com; s=arc-20160816; b=WOvwQQGNXu3TnTM2blgI8LGvgAUAHTZpcAo5jlUrtoKniKgLptpazFjAaZ+t6G9lBa DeAGX7T6BokfiKbDq7yi0MJ9grZ6h1/KiLTyh5RCEDhdChKQFnL0poksXnNfXmyXdSuz dC3wjFQO7gengn932hsOIy2JNAbJvuP+4QE5vdUdZcn8bTlsxUojGqeG2HgeZs/e9gj/ tFJH40ZHb+16zS2897TpLk3GWgKYiyj25IqciH1JsmCZLE2PpaaOggmoQ2myj6VbySwk 1Kkd5kkZYccUJQ7WYas1W80EqRPFOjira9lCg6qNdIZlFw1K7/2/tbowxrm/wo68QPzF m+nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=Ao3aJXkhcUZEwXzn2GBdsGMCxLdUUrlQzX6wrIzYXV0=; b=OYwv6eLyJ0cFS97Z3Vo/2Gyazxprsg1yknESt6mvjGq6FV9CGmJ39168YhvpsGgAfY NvI0rYdYAnQxn4Ua0ulcFqe40j7SCTnPqud+BcKxxA9qSpZlP1L2KVsvC7QK+P/rSZQ3 WMijD0OOCFd+E2J5mXIZR0xmNtsH5Q/uH4/GqwCSg1buY2PMl1KuSZ7t+XA7diMSBYkG F2T0OMpzDBZpt+yl+iFs5K0Er26dDeH65u5Xh/s4EbPd17B+5fhYuUroM4jk0HEuaR/+ hpOTKmNltvvtH9lKgAftPWOVd8LLEnsPeBjodRusisySsp1LBnY4aMTsFuExBp/V6syi cGEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si1225554pgh.499.2019.05.07.20.59.30; Tue, 07 May 2019 20:59:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726727AbfEHD7Z (ORCPT + 99 others); Tue, 7 May 2019 23:59:25 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:56862 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726653AbfEHD7Z (ORCPT ); Tue, 7 May 2019 23:59:25 -0400 X-UUID: 0cfb95ceea894084a9e5b33ba1b50eef-20190508 X-UUID: 0cfb95ceea894084a9e5b33ba1b50eef-20190508 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1803992658; Wed, 08 May 2019 11:59:19 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 8 May 2019 11:59:17 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 8 May 2019 11:59:17 +0800 From: To: , , , , CC: , , , , Subject: [PATCH 0/3] MT67XX random number generator support Date: Wed, 8 May 2019 11:58:54 +0800 Message-ID: <1557287937-2410-1-git-send-email-neal.liu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: CE048B95ABCC1571DC2B35A1121169CE7F25B8DED925862DF515DB4EE21190BF2000:8 X-MTK: N Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org These patch series introduce a generic rng driver for Trustzone based kernel driver which would like to communicate with ATF SIP services. Patch #1 initials SMC fid table for Mediatek SIP interfaces and adds HWRNG related SMC call. Patch #2..3 adds mt67xx-rng kernel driver for Trustzone based SoCs. For Mediatek SoCs on ARMv8 with TrustZone enabled, peripherals like entropy sources is not accessible from normal world (linux) and rather accessible from secure world (ATF/TEE) only. This driver aims to provide a generic interface to ATF rng service. Neal Liu (3): soc: mediatek: add SMC fid table for SIP interface dt-bindings: rng: update bindings for MT67xx SoCs hwrng: add mt67xx-rng driver Documentation/devicetree/bindings/rng/mtk-rng.txt | 13 ++- drivers/char/hw_random/Kconfig | 16 ++++ drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/mt67xx-rng.c | 104 +++++++++++++++++++++ include/linux/soc/mediatek/mtk_sip_svc.h | 55 +++++++++++ 5 files changed, 186 insertions(+), 3 deletions(-) create mode 100644 drivers/char/hw_random/mt67xx-rng.c create mode 100644 include/linux/soc/mediatek/mtk_sip_svc.h -- 1.7.9.5