From patchwork Tue Dec 20 02:47:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13077441 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21E38C3DA7C for ; Tue, 20 Dec 2022 02:47:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbiLTCr3 (ORCPT ); Mon, 19 Dec 2022 21:47:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232842AbiLTCr1 (ORCPT ); Mon, 19 Dec 2022 21:47:27 -0500 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B361513CD3 for ; Mon, 19 Dec 2022 18:47:26 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id o6so11705419lfi.5 for ; Mon, 19 Dec 2022 18:47:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fvuwLhbvCBU1vTHX00Mr3U7sB++VpvhJ7GWo/kANsp8=; b=XjUBqRPLfJCukqsk2ihdeWgI9CEu7tGIOjxSZhz5YOrOqM+IUj0YR4e8UOe6CntMIg PEkkGo+v8QnPEu41ekCZcB4nW9QqbIVFtMJsUHHwnpFGpGvTD6ZrqhXnthoXT8IQq5tC WmVkVGJ2ptinGLgPZhF8Sdu887vkUR+PweSjKF5ZkQQSTAxVmet4nUJ7FQNGukYygwm3 43KrtfT5s7LuLEK+liuRT1dE5TXy1c2ExBPRSaV5oU+VP6XIURktYn76G0beRKf+PTYq RzWdBAL0EO4Kh3W87+CHlyB5yBddpgG2nZR2dLltH2j5VBU0zf0wQ/VpArIZEDiUTZwP H38w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fvuwLhbvCBU1vTHX00Mr3U7sB++VpvhJ7GWo/kANsp8=; b=pV0yw9VdZYwXHbw0h0v9dN4rtk2UVkW6/JFyvTzdqEQS7tnxeM6gipX41POSnjblFA Xgg6+sBmsmCSQwAkaeeO+SOt+/UYmfwfjym/54YbcB9VFeCvFR+AxpGqeo82dpvZfrBT 2Db8hIrWzisHwl22VO2Rr3wgdJZZYvVGnHOBKXlgQKqBTY3ugeW7WD+a4uP5Jzj7MmjT sB0xEJPBg3eJqozDDnZ1b9UMWbmJUexcybRUlhA7o2BoMTGO3/VYKOE9L9lZ8RYxOzQn uM/YKeRdIWTzjmJk5p//wi/2YaoMsfirHzRzXEomNerWz0SDRzvWSh1sqD5+e7g7d+np 3oCg== X-Gm-Message-State: ANoB5pmgbciRfWJ8/XCwzbn5b51OAHCKbYm38F+/wON2sNYEmyZm125C tCIygrJAcY4j2lqM2odZtgO9qQ== X-Google-Smtp-Source: AA0mqf5KyJBUvWhns2WW55mkd8AnwfSXqUVWXIIPOvuLUHbBD29J/XkTjkYX5yDQRdm2V90aYL2wdw== X-Received: by 2002:a05:6512:2023:b0:4b5:2bbc:e119 with SMTP id s3-20020a056512202300b004b52bbce119mr18211043lfs.65.1671504444969; Mon, 19 Dec 2022 18:47:24 -0800 (PST) Received: from eriador.lan (dzccz6yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a085:4d00::8a5]) by smtp.gmail.com with ESMTPSA id e13-20020a05651236cd00b004b5a85e369asm1274866lfs.252.2022.12.19.18.47.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 18:47:24 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Amit Kucheria , Thara Gopinath , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v3 03/15] dt-bindings: thermal: tsens: add per-sensor cells for msm8974 Date: Tue, 20 Dec 2022 04:47:09 +0200 Message-Id: <20221220024721.947147-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221220024721.947147-1-dmitry.baryshkov@linaro.org> References: <20221220024721.947147-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The msm8974 platform uses two sets of calibration data, add a special case to handle both of them. Acked-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- .../bindings/thermal/qcom-tsens.yaml | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index da7b5bd4abd5..3e6ba0509bd0 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -91,6 +91,11 @@ properties: description: | Reference to nvmem cells for the calibration mode, two calibration bases and two cells per each sensor + # special case for msm8974 / apq8084 + - maxItems: 51 + description: | + Reference to nvmem cells for the calibration mode, two calibration + bases and two cells per each sensor, main and backup copies, plus use_backup cell nvmem-cell-names: oneOf: @@ -137,6 +142,59 @@ properties: - const: s14_p2 - const: s15_p1 - const: s15_p2 + # special case for msm8974 / apq8084 + - items: + - const: mode + - const: base1 + - const: base2 + - const: s0_p1 + - const: s0_p2 + - const: s1_p1 + - const: s1_p2 + - const: s2_p1 + - const: s2_p2 + - const: s3_p1 + - const: s3_p2 + - const: s4_p1 + - const: s4_p2 + - const: s5_p1 + - const: s5_p2 + - const: s6_p1 + - const: s6_p2 + - const: s7_p1 + - const: s7_p2 + - const: s8_p1 + - const: s8_p2 + - const: s9_p1 + - const: s9_p2 + - const: s10_p1 + - const: s10_p2 + - const: use_backup + - const: mode_backup + - const: base1_backup + - const: base2_backup + - const: s0_p1_backup + - const: s0_p2_backup + - const: s1_p1_backup + - const: s1_p2_backup + - const: s2_p1_backup + - const: s2_p2_backup + - const: s3_p1_backup + - const: s3_p2_backup + - const: s4_p1_backup + - const: s4_p2_backup + - const: s5_p1_backup + - const: s5_p2_backup + - const: s6_p1_backup + - const: s6_p2_backup + - const: s7_p1_backup + - const: s7_p2_backup + - const: s8_p1_backup + - const: s8_p2_backup + - const: s9_p1_backup + - const: s9_p2_backup + - const: s10_p1_backup + - const: s10_p2_backup "#qcom,sensors": description: