Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp840933imm; Thu, 6 Sep 2018 10:53:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ0/lhPpIGV3AduWB6dW9W20CrEmmnOg2fYTpe7Hi5ycVv10L2F9KWNFoZMDMzQosNri4Lf X-Received: by 2002:a62:9ed1:: with SMTP id f78-v6mr4175642pfk.206.1536256431294; Thu, 06 Sep 2018 10:53:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536256431; cv=none; d=google.com; s=arc-20160816; b=mOb5Z/jzGrvkHXqt0lgnv310pPwXHTMkS7SFlxScvF8zzhwDD1L1vh0xbS1vlLGh6+ JTWDeYM9dC+w5tOWEH4HUex05rhdKT16vzGMRqk6L3zQeCbsN0gZ1r6x4NzYRCgoV2Fw 3/Hp5d9xGc/dAKJnxhnHsqKZiffcqc69fGJy005rttN4kvVPkWSm4zOptsjlsyCiFvqp DGVispJ7LwJVMRKk08UtAUMyB2DqhlxDSxTfrZvZdCbY99RLOiMTD2TQtDrqwDMmwciq 7ED4hZOHTpeM/kXDCswlHVkviemqbZF0EvMy99LAdakWhoKPGGo/f94aQ3wsE5sCjSSM CFLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=saWdurg/ngdmD7Fi1noqb/4mo0i9GcC1JhP6uxAudjA=; b=qU+RVBXm3BY8Ri7N+JDR3ib0QOp04U1vDFLgCvExpdbNImWf5mo67by89SPZcQw+/2 fuapvh9Mon0vdbJHl/1gi+gI8/o6YP/ksPMnNeF5eRGLq1E4hVo6a1bXEkbiFbMxP7+M 8KuvLKmDKZ0TFyk6Jj2ExUvWnBsUTZsucmhvElqMlxSSTu4bi4g0/hk7xGuntHPDLgrn E0P4/ri8NwhPgyEdPIdB6U2kL6IY0XfhNHN6FCFihErij/NqcfBgQcSP0yNmBTl/CIWs 7dY64Y8lzYQfhjqfUjMdE01Muexg7nc42e6T7eyfLs6qv4ui4uEQaNti0g3IX23JHSLN 3bFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 v126-v6si5553355pgv.10.2018.09.06.10.53.05; Thu, 06 Sep 2018 10:53:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727952AbeIFQ0Y (ORCPT + 99 others); Thu, 6 Sep 2018 12:26:24 -0400 Received: from mail.bootlin.com ([62.4.15.54]:52912 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbeIFQ0Y (ORCPT ); Thu, 6 Sep 2018 12:26:24 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id EDCE220763; Thu, 6 Sep 2018 13:51:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (AAubervilliers-681-1-30-219.w90-88.abo.wanadoo.fr [90.88.15.219]) by mail.bootlin.com (Postfix) with ESMTPSA id BDB74206FF; Thu, 6 Sep 2018 13:51:15 +0200 (CEST) Date: Thu, 6 Sep 2018 13:51:15 +0200 From: Maxime Ripard To: Philipp Rossak Cc: Emmanuel Vadot , lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, linux@armlinux.org.uk, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, eugen.hristev@microchip.com, rdunlap@infradead.org, vilhelm.gray@gmail.com, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, geert+renesas@glider.be, lukas@wunner.de, icenowy@aosc.io, arnd@arndb.de, broonie@kernel.org, arnaud.pouliquen@st.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 27/30] ARM: dts: sun8i: h3: use calibration for ths Message-ID: <20180906115114.inc6dhqhy47obo25@flea> References: <20180830154518.29507-1-embed3d@gmail.com> <20180830154518.29507-28-embed3d@gmail.com> <20180904184623.e4386b8e6b657b1b25e90c09@bidouilliste.com> <55579dd6-625d-e71b-1482-4592dccac665@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rljnkw73rbwcnsnn" Content-Disposition: inline In-Reply-To: <55579dd6-625d-e71b-1482-4592dccac665@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --rljnkw73rbwcnsnn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 06, 2018 at 01:47:47PM +0200, Philipp Rossak wrote: > On 04.09.2018 18:46, Emmanuel Vadot wrote: > > > + /* Data cells */ > > > + thermal_calibration: calib@234 { > > > + reg =3D <0x234 0x8>; > > > + }; > > You are declaring 8 bytes of calibration data but to my knowledge it's > > only 2 bytes per sensor, so 2 bytes for H3. > > Am I missing something ? > >=20 > > Thanks, >=20 > Emmanuel you are right, it is 2 bytes per Sensor and should be 2 bytes for > H3, but the thermal calibration data field is on all chips 64 bit wide - = so > 8 bytes. So I'm reading here the complete calibration data field. Having one cell per channel would make more sense I guess. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --rljnkw73rbwcnsnn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAluRFLIACgkQ0rTAlCFN r3SK7A/9HHs8riJMWJuEK4lOkAN25L+2cl05aTvCJpFx7qjiEPX60y/87Yw01MSR Qw7phAtGmtek3ZKI5xctpXKEHkPCFgR4FTODgToQQAWe51zgz+9Zg9OW1sD/qJe5 7rZahu8SnbX8TdVM3dRjZUSQmKcZOMR0g9yUfk0IhX5FsOun3+pH3D7Ueri69JIy kQAA6fQiVE94aqI7kxDf50jl+tcKAEbl3qOutONv4khwvk/vWKuLxuDAJ9iz9UDF qGDqkR8qs/uB5BweD8DgR4iupKKsSKoVg97WDO4NAzFdSqwmGyJpsLklnR/R/fyI 7A16T24O68wVZl47sS0pWh3u0b4LuWX8ARQGJdeQMnGjCePbHi3+Md/9QiCuz6wV XJGH/+HnzPS/sshVtyZ3lyLShtVmApZG+4XMM1lxVLuuwPJbsx/wqEcrE14lUd3T jdXUQ6CqmmAGRJDx36v19L30MQ9y1LKsoGU2YyMYTsfFVJo7/Atephi2xjGlYW56 3QgUKQejGaBY8ysnRyZAO9MHrzU30JNQZy+f53NK14RqJ575P+LS13q0vFLU3/L5 ATbNAZXSONVArVCDDmbJnrlSkOZdueYN7Z50XGbJUCcasK/5vkM/VPSxjY4oE8sQ +A69pLTV5rJx2erMZXtgqtmLajlFxRV7lgmcrclHTf9HNz0SPfA= =KpkB -----END PGP SIGNATURE----- --rljnkw73rbwcnsnn--