Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp666873lqp; Thu, 21 Mar 2024 11:45:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXFU4GaHZVqQ+PIH2rHbysWrcN6tpI6F2FAOftGjJo/oJiCqfcPk4PdXe/v4qkKEbK8NaUqu+D4oDGfDm8yVTJv4i0YNX0IZ28/2HUXpQ== X-Google-Smtp-Source: AGHT+IFacJ7wBxvff/rkMymLUVnzJrZI/2th46sEVm3C51Fm9BfZeKUy9rZllYGdzXxMPNOZgy/b X-Received: by 2002:a05:620a:3721:b0:78a:2e68:7737 with SMTP id de33-20020a05620a372100b0078a2e687737mr4647760qkb.18.1711046701757; Thu, 21 Mar 2024 11:45:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711046701; cv=pass; d=google.com; s=arc-20160816; b=C3MPcIquzWELkAYNB2fR2ihwAeiVoY9ljrX6pbiC8SfI9xGPfDrtG8otzZ1rQaw5Gj XumGoMcdIT4w2+6rX57aQDwUDK/a50YXMG183/cc66hL9Kf2zdiNWhVHgnAEoRqJQQVy sCtueNKId2PjweRfaCQzXkIhEagd1pQanF4ajCD4oTztEZ6zknlEJU4/sM/mheOKszEO lfQLHqPG/w6w9bVaHneNzcPFx1R1f2iZuVLPHdVqyemYG2MYwEFK36znL9chcT9Bf+QE 1aTVuPuz5lyYV1O7TLvx6ap+ZKWsr9vtYLCxxQc1e1324muoLMYj9SA4sO2dDKYFrnvW Yvbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=bZod9FP10mmkUa93vUHm2PRSdkHtpevTJB03xjoBD4k=; fh=Z3zKCg6NlI/uu53lgZ/Gqca7QRZFbQkDHUQsB+2mqy8=; b=bj/Cz6gB63P9nYKcnkcSdAVPPzJgXQGWimMhQ0qKpBHjsoQwWIdx+mx5EcSJ/XtjYW ghp30cHiwC2Qp0VJMMzhUDIv+kRoIf6yWx9cfQZoyfsxJQnnIHsY5VuQk5dxZW2rmb8y GluqZYqGBma1i7kaShdDG9vwqmYmxIrqfVPdaOcANWHQ5fGHMPm3cn67rHktjPpx0rTX xk41XTfCAwcakA6vfXy7IMydQ07GqxU7QcRRZtJ8lLbWOV2mrSuRPK9YmlVaSEPLRdeD EIIvlb/XwK9pCXVlw9x0QgJktqwGj7213aGQnIN5uS+HqrQDaikC+Fu6NZ3QrFq1Fz1d DXMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VixaplNH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-110569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z9-20020ae9f449000000b007884e2ac8d8si325803qkl.428.2024.03.21.11.45.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 11:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VixaplNH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-110569-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110569-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6A6F01C21975 for ; Thu, 21 Mar 2024 18:45:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B31D1350E8; Thu, 21 Mar 2024 18:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VixaplNH" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 AA265134759; Thu, 21 Mar 2024 18:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046644; cv=none; b=LIeuKWog/wCqqSVQ9FMqHgJFY+U6vKZCL0f5i24wzCpmV2MnbibEV5ubxNweOzFz7HK1JOj9pFLQc+cLEcx8C0sdSaLB+eYEhcyW6+AcE+Qm5zgZFq4oMafq21vEA5E/mTr52bxmK0vklLG0gAc38JQkcA74IY/GK2gVePvioGk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046644; c=relaxed/simple; bh=SL6IFykbfJaWw2tZ5nEHGx/wGHJSnUvcwuO85EyOS+w=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=iaD67Uw9fy6bm9zIxEW8YFWhr+pyXQiU9w+81xtPkQkyFAdxJV2KK5mWpA54UGJvwkJkYXC8hb+cRBgfzGWCL7U606TaVLxud3fYfKVuxd78fLZ+71EfdILRSZ2WO8yLvnW1PsrezSFWZsvYlJNnokpjaM1BY6ztp9ol61WDn3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=VixaplNH; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-513d717269fso1703916e87.0; Thu, 21 Mar 2024 11:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711046641; x=1711651441; 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=bZod9FP10mmkUa93vUHm2PRSdkHtpevTJB03xjoBD4k=; b=VixaplNH0IVSwsMoeNBoPVqUAgbSVyS4QQZuRWT9dzLcKtM7G4GLfttDljM5coF4vI LP6+DqgrGCLOBH237zOrqad3R3daUQYQIWD7j+pv8MiJYiiOAlktANV3GFqmYjQDgp0v hTkfiBzfncbp9vsagHnuohulT2sbPIAtr3Kgz0NBPQsK4uVrk/Y7nzfMKkWvo0XdcyRT JFC7lefjCiYmJ8j6hofLe8ApNLBaEx7ypkCxPXqnMzxyzDgGsIz2ZlcBalGdEWCASlbq NaWiv1DU2LHSILa+mb2qIA4ZQfuhqLjZGkEBPntb/8SCTOKyETx40FOSzVFN2NW6XMIK y4LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711046641; x=1711651441; 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=bZod9FP10mmkUa93vUHm2PRSdkHtpevTJB03xjoBD4k=; b=phByYrL29+KIFQ8c83zG3ZCNl2z80G0jbpChYnGal+Qr++n3lLMXVrSkiMPMJDRiv+ HL43eYutfrxj5vFYBcdSMA1u+g+Icr46coMucqhh5FcxU6TFHc4SX6RbfKUSYZrrzz1N l3eceFvHPdvO+/tEZ0nkVjuaY2W7mO8WGc5xcQ50H9Bib+BblMrD2tZnKSMafDphQZGs Zx+QdScmmOdT/fzJEvgOvREtUIHIQ8G3hMAD5HCW/tyrCrPwtFg/4vav8E7RVXuGXQ1U yHgpzebxwbFmWXQgoyv56guSIzFk0XZJAQyJdHBEZU43xMlxkoiFT0CpbumP0RBhk71E OTaA== X-Forwarded-Encrypted: i=1; AJvYcCWDfWObCXdSyh8cG+Wl+9AE2BOyo5+q32SNb/6QI+4pZ8tEh60h+26SepB5q+Yo+Isvkz8UR28UYi/ce2Ln1pHgfftWYLymbaHWb/WGWT7+5kI2gLQBk+NzVKtL3hgyQhf6hZcoRkmCkw== X-Gm-Message-State: AOJu0YwZ6gFfgNkF+FlsO3t8qDfJ4mgFbBOdhuBT8bgt6oZi68FjYzcO F3oY+blPzFwFMXJbpVghbbncafNhy42aB9AERN2KKu+uDZ8wxk+Z X-Received: by 2002:a19:5e55:0:b0:513:c60a:5fc0 with SMTP id z21-20020a195e55000000b00513c60a5fc0mr192787lfi.0.1711046640578; Thu, 21 Mar 2024 11:44:00 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-7db2-5855-2c59-b89b.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:7db2:5855:2c59:b89b]) by smtp.gmail.com with ESMTPSA id t6-20020a17090616c600b00a4576dd5a8csm188627ejd.201.2024.03.21.11.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 11:44:00 -0700 (PDT) From: Javier Carrasco Date: Thu, 21 Mar 2024 19:43:45 +0100 Subject: [PATCH 4/5] dt-bindings: hwmon: stts751: convert to dtschema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240321-hwmon_dtschema-v1-4-96c3810c3930@gmail.com> References: <20240321-hwmon_dtschema-v1-0-96c3810c3930@gmail.com> In-Reply-To: <20240321-hwmon_dtschema-v1-0-96c3810c3930@gmail.com> To: Jean Delvare , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1711046632; l=2153; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=SL6IFykbfJaWw2tZ5nEHGx/wGHJSnUvcwuO85EyOS+w=; b=vuGSNmDWCGBI3R/HkrLqvea2y0JsHVO8pRszHqQINVTNy0Mz5yoK4xwonUQ5ZhBdIJrOy+5Sv 34YVfNecs3wABT2e0Vzp0zo17fwdU9eiJP+87R2dm0QCJU/BopLOpjG X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= Convert existing binding to support validation. This is a straightforward conversion with no new properties. Signed-off-by: Javier Carrasco --- .../devicetree/bindings/hwmon/st,stts751.yaml | 41 ++++++++++++++++++++++ .../devicetree/bindings/hwmon/stts751.txt | 15 -------- 2 files changed, 41 insertions(+), 15 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/st,stts751.yaml b/Documentation/devicetree/bindings/hwmon/st,stts751.yaml new file mode 100644 index 000000000000..9c825adbed58 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/st,stts751.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/st,stts751.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: STTS751 Thermometer + +maintainers: + - Javier Carrasco + +properties: + compatible: + const: st,stts751 + + reg: + maxItems: 1 + + smbus-timeout-disable: + description: + When set, the smbus timeout function will be disabled. + $ref: /schemas/types.yaml#/definitions/flag + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + thermometer@48 { + compatible = "st,stts751"; + reg = <0x48>; + smbus-timeout-disable; + }; + }; diff --git a/Documentation/devicetree/bindings/hwmon/stts751.txt b/Documentation/devicetree/bindings/hwmon/stts751.txt deleted file mode 100644 index 3ee1dc30e72f..000000000000 --- a/Documentation/devicetree/bindings/hwmon/stts751.txt +++ /dev/null @@ -1,15 +0,0 @@ -* STTS751 thermometer. - -Required node properties: -- compatible: "stts751" -- reg: I2C bus address of the device - -Optional properties: -- smbus-timeout-disable: when set, the smbus timeout function will be disabled - -Example stts751 node: - -temp-sensor { - compatible = "stts751"; - reg = <0x48>; -} -- 2.40.1