From patchwork Fri Jul 5 09:51:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 811154 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4B92152517 for ; Fri, 5 Jul 2024 09:52:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720173138; cv=none; b=pqkb3Jc5JdqdDR0OyXajyQzt19E3vQ+xhlFUECLvUYvNeEG7nKYOCQAkj/Ku+K27f4XeFzikBZtR2QAnKzkK3zffp6qxE6mfhlsLHlu0nWoe+k/3X46aom0Er3H34DhLc9k2uGy6hFvz7sO/Roxbx8JwG95LVJZ7ZFQiZ57o4jE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720173138; c=relaxed/simple; bh=a/lRhuB7v/RH3R5hhGbQWTk2cMSnvHEqh4aApez49W0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iCokYjqkLerznV1GLV+AinmRJ/amNktJUVI5m+KRjSK0oRqBEo5pNjsVDPVXCE24ITBn4jxaISUw0X0yPFUUcsbU/eufT4GFr+6akl2KF/yNaz6MjqrYYP/fdQOZUz1SRg94kp2qgFDdpb2Ovx07n+KUVPnIQePUUbvVk8djlJs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GSUz/9Ge; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GSUz/9Ge" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4256aee6e4dso9849895e9.1 for ; Fri, 05 Jul 2024 02:52:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720173134; x=1720777934; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SNLCghh0Yz7i7p/GLk3+VVI6b/6S91C5eV8NUz+ePr4=; b=GSUz/9GePihPKfZRE3dnpikaqXZ31V1jfMm1P+YKR/51M/tL0oh/cdSTyiSj0UEkJ5 gbKmEKKGaydWFHR1y+LPlalO/jLSoDbrJY8xTGCdiXx5B3Oplgr3FsrO4d6mNCm8gk/b ouCtYvKeoXi8cN+G5TxH0Oa0uRLl2dhdJU+52PhIJVKAB32xlD8jB3LLcv4Q1f9GkWCU xh+k91zdg2T0K3OoPIN8mX+/c6b5SRy71u6xnXQL3XjZXLcvUjGAmrtcC5sVKS/kGAFa a8GpOpY/a4TgxQQR0+RySY1PLBC8gbGuB6Dl6+6yUkYkoxKsSjEcmOUX/Nepf7w4i0nX EyVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720173134; x=1720777934; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SNLCghh0Yz7i7p/GLk3+VVI6b/6S91C5eV8NUz+ePr4=; b=XTmvsnCdSCR1cGTlKW9ePe1vHBzWLzZUODGpmy0iImy3pADWf/5glBJcEYgYxOD202 M/fgJB6ElP4dcS7LAjhl5OMVSWaeScQtcPBocLm0PqnoTEMBP+/+Mn83tapc2M97cMpt pkHaFphgpAWRHu0pheUgHoUevNRS8YhgQ+Y1BNjg9sDTJFmwMh5oYs+lLcDJbdUKkJ7E Pxg4SFRUawy+PfQ8+fro6jsx0bGgtU15T21+npFad6OgnbUB27Ugl+Fmb8bOVp7gd/ZI ksvMlINrC+3WDlg2j3Qis4XRPE8NDJLP6FZJ+XgrTsxiFr4wnW56tqZUz2zxZ+Eh13l9 vSEw== X-Gm-Message-State: AOJu0YxQvHGd6Z+YakVrlCgKkkdxxwfTnmDuTAGPciN0OXSHz6QFMejr lpLbgcmNn0NZyvFVKxUJr21JNgwXhptT8KG31HqtLR9RB65bJdiFfVpFlLJj+lU= X-Google-Smtp-Source: AGHT+IFYfb3KFQclQvKrC0bxRkYL5QT+2rGoFThcisJv2vbGuFeFm7mkup3MxH/OKF2jKfIZ5LbeHA== X-Received: by 2002:a05:600c:1c98:b0:422:4fcd:d4b3 with SMTP id 5b1f17b1804b1-4264a45f9b6mr29668465e9.37.1720173134425; Fri, 05 Jul 2024 02:52:14 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d1650sm55528995e9.2.2024.07.05.02.52.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 02:52:13 -0700 (PDT) From: Krzysztof Kozlowski Date: Fri, 05 Jul 2024 11:51:30 +0200 Subject: [PATCH RESEND 11/22] dt-bindings: thermal: qcom-tsens: reference thermal-sensor schema Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240705-dt-bindings-thermal-allof-v1-11-554061b52fbc@linaro.org> References: <20240705-dt-bindings-thermal-allof-v1-0-554061b52fbc@linaro.org> In-Reply-To: <20240705-dt-bindings-thermal-allof-v1-0-554061b52fbc@linaro.org> To: Daniel Lezcano , Zhang Rui , Rob Herring , Conor Dooley , Guillaume La Roque , Krzysztof Kozlowski , Chen-Yu Tsai , Fabio Estevam Cc: linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev, imx@lists.linux.dev, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Florian Fainelli , linux-rpi-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Dmitry Baryshkov , Amit Kucheria , Conor Dooley , Krzysztof Kozlowski X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1473; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=a/lRhuB7v/RH3R5hhGbQWTk2cMSnvHEqh4aApez49W0=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmh8ItUHW8uis0xqBnpaivnedFAv03y9sHCQoyi PU5+qzAltKJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZofCLQAKCRDBN2bmhouD 18AfD/9FP2sbB58gVOPvih1LQKxHYPR0Hs/4bGCOQweiMftG+QKq9EOPHzRIXTtK7kgNYMmiIPJ ESDVzDFpQtdPNScJKmQrrzckoPdulbnhSf/C+HvC+AOXeNQ3Y5rXnqVJyaVIzCATsGwB2G30OaX bwOopuCQR4XRMwuV1SSTvnm6iBuKVCpRBeIx1xF6whanxk5+b3/QcZ4sDwYhMkd8xYnhWtBaDOI LK+cxkel64DvnNqsQQIT12u1VVfMEgsLvlq+pBTxskUJ57J9xq2ZCpbbC0TJxa7haCFUdI8DXOZ ert0DERpvbg3lNVt2S9d6CdgftWlo9jIaMEqWl1k466LDEfu7skl8Bim3Muevr+0PTV39uJG2Vw Eu0o7uNkutPJRXAMgv+ikwQnff624dT9I5OsObJOX1sDCAn8vPv0eSCPw+7lFtRmfdJXGKOt4XN 33+A2HmS+If/cDDdBuNDc9oob72OJWXKk2I/1SRHVwTCxPAfWMIyXdGcqpo/g3qdnFe12hr0lwY EmfN9bd0R0r3sVz17OiSSyA9ooIkguFI8MpmZ3GynWf+OdUcpsi7IMHMcXwqfXkaUME59Qk7rhQ vMYrJqv9zEwcvxGkvh88o+St8318dVAOhwM82L/kj3iot6Tiw5uoXXZt1UOwj0JtT3PkO0y4caT +jSo368RDDbbF7Q== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Device is a thermal sensor and it requires '#thermal-sensor-cells', so reference the thermal-sensor.yaml to simplify it and bring the common definition of '#thermal-sensor-cells' property. Acked-by: Dmitry Baryshkov Reviewed-by: Amit Kucheria Acked-by: Conor Dooley Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/thermal/qcom-tsens.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml index 99d9c526c0b6..cce6624228c7 100644 --- a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml +++ b/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml @@ -217,18 +217,16 @@ properties: "#thermal-sensor-cells": const: 1 - description: - Number of cells required to uniquely identify the thermal sensors. Since - we have multiple sensors this is set to 1 required: - compatible - interrupts - interrupt-names - - "#thermal-sensor-cells" - "#qcom,sensors" allOf: + - $ref: thermal-sensor.yaml# + - if: properties: compatible: @@ -292,7 +290,7 @@ allOf: required: - reg -additionalProperties: false +unevaluatedProperties: false examples: - |