Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6044037rwl; Wed, 22 Mar 2023 05:58:57 -0700 (PDT) X-Google-Smtp-Source: AK7set+WrP9UrM84fbu8p0i9Z9Frt5FduVa06KLrNBv8zc8pnp8tDwcSzVUiSpJ7YLBYH6J1QNqv X-Received: by 2002:aa7:c04a:0:b0:4fb:3ab9:fe81 with SMTP id k10-20020aa7c04a000000b004fb3ab9fe81mr6291192edo.30.1679489937331; Wed, 22 Mar 2023 05:58:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679489937; cv=none; d=google.com; s=arc-20160816; b=OFIDVVexSFe2VUaMzClJZ8n0nfTBJ5IJSjGR3/TQjDzpuzQ8eehEK6jtOOMdaUaVo0 qtDkhnGrlS3k7EIKtBmABAIbhlNukklrNi/6cVYXFrFKJl7lC6hGWKhRHe3N0uKNdwNZ s1V1UKAkh9CHsHYnAb6tm7cpU+6sh7cqQsi75SSXsqvgrfgOQytSu5QnfWCXj0Gj+fkg akIQnboDBoAY8RQ7bwfoS9gJu1q8q5gdlS0bucuNdxxxulNyuUXLaTiS6lU8pWzp98O9 4AXF1rEq/7tIeh0pT9ozx9n0ct8eim28HnU7oz/pG/MiTueo7V/XRTj93Xi1vYwWilXU Elig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Fumu3JLKZhwp856FuysQVRkR+0TlueG1r5wPImZmw+I=; b=RmYfhEGDylzA/whb3syohJ8kDLkVh5Y8VgCuBIjfA267pvpxNoVXc3SJOKkZlySjNF ye0yjp3PHvkhZfAdzL/JVC5jL3YkfdbtX+VS1icq/GPHVsqibhXc4b8fJJlXZtz+GLIN q4MwWTmET/gUSgVTdFR4z0HFDD0sxN11l+aXlsLC8b4xo06eRgZcROCAwjKOQJf4KLcP V7enXqwsY7CBRD7opVHo+bfVh3htGVVkNkLSGtF2lsgH59ipOwbqJ8zA8jgbZkiypiZp WJBbztS+kiZvrltnDsxgO+RF++iW5LH2jjyX5QFZ94EsW18bDJkN6vklkcjtOJizmLkA fgxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=4PM18ToI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8-20020aa7c1c8000000b004ab08cae52bsi16652914edp.54.2023.03.22.05.58.33; Wed, 22 Mar 2023 05:58:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=4PM18ToI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229961AbjCVMtQ (ORCPT + 99 others); Wed, 22 Mar 2023 08:49:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230443AbjCVMtJ (ORCPT ); Wed, 22 Mar 2023 08:49:09 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E54B12852 for ; Wed, 22 Mar 2023 05:48:53 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id eh3so72420549edb.11 for ; Wed, 22 Mar 2023 05:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1679489331; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Fumu3JLKZhwp856FuysQVRkR+0TlueG1r5wPImZmw+I=; b=4PM18ToIRJTjDqK8A3zZ3oSydvcFQqxSYomaOYVN1iOD/8g+A7WZ2PPk2tQwKBJODD dpMbFH8IYI0TVoEQAWMb/0C9BrGWUfeXOii+eSaDG13lBGjOC9yMWabs2B8Yx37ezh40 iXtCfHwEB0w2ls/Upq8ZD0aXN44SCZUjR9iU2jTR4RZ40FDzjaCy1RvVSmOH52OpC7iv PPztwZAmwbyyOF7fC/4/vIVKVMFd2EapBw/mflnqShvY3PnO0d44qyZj71L36z7NH7G/ Q0IDmdXfyGEb52Neeby8RhOiWWs0xRscyoQw3Uap+zqUQWAKx0VyG5wSbzE8PtQYNgg5 FDAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679489331; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Fumu3JLKZhwp856FuysQVRkR+0TlueG1r5wPImZmw+I=; b=HHSmE10AdK1VRhANEVjRt10oWOqksJI6hHJLVLKJxISVrKr7Xx4wmIAaecNJL8jh/c JUJZXO2ctarZ2JffB3jpUZD8qvd2kf6UBsZdPpwHh9CJ92MGC/Gx0OuCCsgtjaYORSaG p30TbZRHvvqJZNxS3/rlXGOESG0+7FwWWG47VdEDm5E2EXwp5djjN7qJw6PMhiWfkJ5v Gf5zq+mdMJo7Edj0YTNKcOmnF5dQpateRoqzdR+QGnJQbPDOZHNp4fBZ+SGZ7yOQdNnP d9LHT0k7oUSIw2NqPlV89y8YZSfXw/dmG0UExsCpLpVijKjiKTuxKZrLSxPTR5nQRFmc h6TQ== X-Gm-Message-State: AO0yUKVMSlEGJTDJ28qO4YQAI1V8BexL5KKLIeRf/o2Y9rLGdySuSRxi k6dfk0joqnleXHKtdmSb7TfX0uBN0DrDnUy8kVSnog== X-Received: by 2002:a17:907:7d87:b0:931:f8b1:4474 with SMTP id oz7-20020a1709077d8700b00931f8b14474mr3172387ejc.2.1679489331471; Wed, 22 Mar 2023 05:48:51 -0700 (PDT) MIME-Version: 1.0 References: <20230307163413.143334-1-bchihi@baylibre.com> In-Reply-To: From: Balsam CHIHI Date: Wed, 22 Mar 2023 13:48:15 +0100 Message-ID: Subject: Re: [PATCH 0/4] Add LVTS support for mt8192 To: Chen-Yu Tsai Cc: daniel.lezcano@linaro.org, angelogioacchino.delregno@collabora.com, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, rdunlap@infradead.org, ye.xingchen@zte.com.cn, p.zabel@pengutronix.de, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, khilman@baylibre.com, james.lo@mediatek.com, rex-bc.chen@mediatek.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chen-Yu, I suspect the bug comes from incorrect calibration data offsets for AP Domain because you confirm that MCU Domain probe runs without issues. Is it possible to test something for us to confirm this theory (i don't have an mt8192 board on hand now), when you have the time of course? We would like to test AP Domain's calibration data offsets with a working one, for example : static const struct lvts_ctrl_data mt8192_lvts_ap_data_ctrl[] = { { - .cal_offset = { 0x25, 0x28 }, + .cal_offset = { 0x04, 0x04 }, .lvts_sensor = { { .dt_id = MT8192_AP_VPU0 }, { .dt_id = MT8192_AP_VPU1 } @@ -1336,7 +1336,7 @@ static const struct lvts_ctrl_data mt8192_lvts_ap_data_ctrl[] = { .hw_tshut_temp = LVTS_HW_SHUTDOWN_MT8192, }, { - .cal_offset = { 0x2e, 0x31 }, + .cal_offset = { 0x04, 0x04 }, .lvts_sensor = { { .dt_id = MT8192_AP_GPU0 }, { .dt_id = MT8192_AP_GPU1 } @@ -1346,7 +1346,7 @@ static const struct lvts_ctrl_data mt8192_lvts_ap_data_ctrl[] = { .hw_tshut_temp = LVTS_HW_SHUTDOWN_MT8192, }, { - .cal_offset = { 0x37, 0x3a }, + .cal_offset = { 0x04, 0x04 }, .lvts_sensor = { { .dt_id = MT8192_AP_INFRA }, { .dt_id = MT8192_AP_CAM }, @@ -1356,7 +1356,7 @@ static const struct lvts_ctrl_data mt8192_lvts_ap_data_ctrl[] = { .hw_tshut_temp = LVTS_HW_SHUTDOWN_MT8192, }, { - .cal_offset = { 0x40, 0x43, 0x46 }, + .cal_offset = { 0x04, 0x04, 0x04 }, .lvts_sensor = { { .dt_id = MT8192_AP_MD0 }, { .dt_id = MT8192_AP_MD1 }, This example is tested and works for mt8195, (all sensors use the same calibration data offset for testing purposes). Thank you in advance for your help. Best regards, Balsam