From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C49EC43381 for ; Mon, 18 Mar 2019 07:35:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2845A2083D for ; Mon, 18 Mar 2019 07:35:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Uws35DwW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2845A2083D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: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=QK50Wx4ysU36bC9Qrv0dNE8jl/y2miaTFdMpayYS6dI=; b=Uws35DwWm0dUuN HYGr/Cyp2eDZI+DtthUGT3oGLr/Bqh6Ql4Vh02Itzhw9nmIugr/RHwzcNHfDh4Z8H9zo07CVHmX4C BDcZ0qUNnPioTy8YYjOagBDCYU/6aK9CQBqrxgt+0KqWX7Mi71dHd6mDACi4V4/TmYDeJidd49g3S 8oHPIuw03Wp1wIlPdgFZaUy/kDujJiHfYtX+lOzoe2Gu/vawlPAQ/QCkgPYlg7PMYQYafBqjpd9G1 IlrrUIvOE4IfMTQv8urFo5CrSso2a0pI9mAIpb93Z2eDankdrMq78eYe6+bU57f6aO6am6rfb9EC5 j7hJ2ndLPf6mqtSWKL5w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5mno-0004Lz-0q; Mon, 18 Mar 2019 07:35:20 +0000 Received: from mirror2.csie.ntu.edu.tw ([140.112.30.76] helo=wens.csie.org) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5mmp-0001wl-2x for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2019 07:34:21 +0000 Received: by wens.csie.org (Postfix, from userid 1000) id E6EE25FD14; Mon, 18 Mar 2019 15:34:11 +0800 (CST) From: Chen-Yu Tsai To: Srinivas Kandagatla , Maxime Ripard Subject: [PATCH 0/6] nvmem: sunxi_sid: native format and A83T/H5 support Date: Mon, 18 Mar 2019 15:33:48 +0800 Message-Id: <20190318073354.12151-1-wens@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190318_003419_271622_B7B830F2 X-CRM114-Status: GOOD ( 10.46 ) 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-sunxi@googlegroups.com, Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chen-Yu Tsai Hi everyone, This series converts the sunxi_sid driver to read out data in native endianness for all Allwinner SoCs. It was already the case for the H3, which used a different read-out method. The endianness for this hardware was found to be either native or little endian [1], based on the data layout for the thermal sensor calibration data stored within. Some SoCs have either 1 or 3 sensors, and calibration data for each sensor is 2 bytes wide, with data for 2 sensors packed into 1 word. The first three patches do some clean-up and improvements of the code overall. The fourth patch converts the driver to reading out data in native endianness. The fifth adds support for the A83T and H5. These two were already listed in the device tree bindings. The last patch adds a device node for it on H3 and H5. Please have a look. Regards ChenYu [1] https://lkml.org/lkml/2019/2/18/134 Chen-Yu Tsai (6): nvmem: sunxi_sid: Read out SID for randomness without looping nvmem: sunxi_sid: Optimize register read-out method nvmem: sunxi_sid: Dynamically allocate nvmem_config structure nvmem: sunxi_sid: Read out data in native format nvmem: sunxi_sid: Support SID on A83T and H5 ARM: dts: sunxi: h3/h5: Add device node for SID arch/arm/boot/dts/sun8i-h3.dtsi | 4 + arch/arm/boot/dts/sunxi-h3-h5.dtsi | 5 + arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 4 + drivers/nvmem/sunxi_sid.c | 98 ++++++++------------ 4 files changed, 52 insertions(+), 59 deletions(-) -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel