Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp872196imm; Thu, 6 Sep 2018 11:23:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaRB8iQFSrSooV+N1mHIE+wZoI9YwJtLYDcMOX9h+2eXOyl8Pohi5J57JXgh3VVgIsxVS6H X-Received: by 2002:a62:dbc5:: with SMTP id f188-v6mr4357762pfg.182.1536258238554; Thu, 06 Sep 2018 11:23:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536258238; cv=none; d=google.com; s=arc-20160816; b=Vor8tu1+OO+aoNq1L8u/MkyaTNzqioT8gmNrVQ0cUsaBTidNeCcGUXOcRbZp/x7l+y PUJRduFcSXzlXg7VS3wMOPry7JcGreBOuVCdVYrqYFv9klo+mWoiQqIprsim3POrUqkr nO3BHpTaWpEGCIWfgOn8tDFk3DUyA2RvJSQQtRDGARaW/+MI6jHosAt4y37ETE+sdSOM a3Oduf9r5ErihIolsVrZEaKnj+ggN+g+UBKc7ldUlHT43xnpe641AYLjF5siEGEotpaB GtRMBnNKZQ4+3afi8Nd1TGHXf0DBOND8LdudvOf2jSu692j67hbpreDSL+FYWgXVtCG2 /8XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=nAXoHLjxSkW9b41N+P7ocYi0sbOqGw8pXmYLuJIwuY4=; b=yp8j13Gfz0xDDiQoZW/aBaH2pi08CEPIaFt+lIdtw282qfd5PkP75HjGNvTKoNqFUb tiENupav1XEzNEy45+7EvQbFibA8eGuJv/+an5utKBjVv+BZ2ZDaLuJSDlQfmN20Hb1f 0B51xntn2aTKB9ISSycbV50UZ46iq9VVUB2W8/FEsZ8IERcj68EryR9SUAPzkISzwviF cPahf9VbufT5O+sVXgwXjJUYot19SeTF9/gPMYeCmP2DMs6mzO9NXXnKu3QXWQcL0cJk SyFgNRPRzPa0qdvLP90ByV40omQzjdmRjQrT0O+2aoUiWmOXsUe/Kpj/QNULnyobB3lR lzhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pvysZ3u5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g6-v6si5672407plp.225.2018.09.06.11.23.43; Thu, 06 Sep 2018 11:23:58 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pvysZ3u5; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727694AbeIFQW4 (ORCPT + 99 others); Thu, 6 Sep 2018 12:22:56 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54462 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbeIFQW4 (ORCPT ); Thu, 6 Sep 2018 12:22:56 -0400 Received: by mail-wm0-f66.google.com with SMTP id c14-v6so11100047wmb.4; Thu, 06 Sep 2018 04:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=nAXoHLjxSkW9b41N+P7ocYi0sbOqGw8pXmYLuJIwuY4=; b=pvysZ3u5pipw3UjY+vx0ku8L7bXv4I0UiVtyRzcY0mIFgL7EAodzLWaPY8H3MaoG8Y roGSAjbIvLNkd2iG55xm/tOVFR154O9HLjuN3SYccxVnvYWVzr1amoy5/9LPnhkkYlOy GhqEmnz5Nkx/kMfLloFF94d9ZpmvyO6sQt5ZbEhAmNuGzWsFHu88lI2R/rUt5pdTx7qn g9pwzDqWkXudTcs242QKuSnvV64D1b7J0d5MaZf+d1/LN8PkbDvKpE3fhXb5fHSo12Ux fphcVA7cq2G/5pVyvaDGqNyLgavL2nsv+PoI5IFOE53OsOlHOEsmppAQP5s61yHOpOZE Z58Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=nAXoHLjxSkW9b41N+P7ocYi0sbOqGw8pXmYLuJIwuY4=; b=LvniUrE5VBpWcd7od5bhq1uSVAqCE5E0EEQYh19SxOTF6g8i31mBUS4SkWLVuY3qUa ENByPdFuqewJC08EQmjhqia5RydFA83uzlIssXlvJz3crj6tiuXFQb+DojQNRgPVrcjU vZ46O8jNo6ntFQE0Rqt+hHfU7wW6/Ncn7wF16DDvDTP3x4fq+fEFiAPooiokFy6EAc8/ lFD/9ygunNMbjJffvbEtrjSgllGTHMtVSX/hiIIObjpqGgxEagEN0qGc1g5Zrg2Ec+ch XsXoQBPTQzsyrXDB5SXc03NdHo3mpBzgTIbQ9lEnMfCNGPQ9h0xnQK2e6EBCxSy6knYi +Pgw== X-Gm-Message-State: APzg51AW8z8baJdtfu07MfbaotR6adeqRHxAJC0cHD9ch4a9stRtM1SE v3tXUFZh2ehV6tfyz3F/4Vo= X-Received: by 2002:a1c:e289:: with SMTP id z131-v6mr1908376wmg.32.1536234468880; Thu, 06 Sep 2018 04:47:48 -0700 (PDT) Received: from [10.104.24.89] (eduroam-nat3.rz.uni-ulm.de. [134.60.112.238]) by smtp.gmail.com with ESMTPSA id m8-v6sm2962514wrn.72.2018.09.06.04.47.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 04:47:48 -0700 (PDT) Subject: Re: [PATCH v3 27/30] ARM: dts: sun8i: h3: use calibration for ths To: Emmanuel Vadot Cc: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.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 References: <20180830154518.29507-1-embed3d@gmail.com> <20180830154518.29507-28-embed3d@gmail.com> <20180904184623.e4386b8e6b657b1b25e90c09@bidouilliste.com> From: Philipp Rossak Message-ID: <55579dd6-625d-e71b-1482-4592dccac665@gmail.com> Date: Thu, 6 Sep 2018 13:47:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180904184623.e4386b8e6b657b1b25e90c09@bidouilliste.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04.09.2018 18:46, Emmanuel Vadot wrote: >> + /* Data cells */ >> + thermal_calibration: calib@234 { >> + reg = <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 ? > > Thanks, 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. Philipp