From patchwork Thu Mar 21 18:43:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13599288 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 980EB58AC0; Thu, 21 Mar 2024 18:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046639; cv=none; b=ihp97EZmKxoUMYTSpbOpIJtl+iqVIqMUylFWe5OqR6M1I0wm3MhDjSfB/nOenjcn/GyFUl8iRZuqADWY9IScWJt0YAUiaLjCQtXOjpBCNznD0r/hwFCVPsHqBo9Q9gzk9r76KmFjFblK45n9NbZJCtcPd7bjl4sUfNCwN1zwzEM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046639; c=relaxed/simple; bh=KZoVHUkOuLwqSF6Q3U+Iq8ld3UyOQ5Eh+x0ZRakG7AY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VM4I1MId4cD66OQkUXJZ5932LoKUqzJNSaPnDijn8UgcAUL1yDAHxOUtLuUtQiE1kSXBcp+ZCWb2wXgSc1qnhOOyNfzhaCbWp5TwQpe2UGFPPx+2as8LDqUnyAFX11lxuBFBQHDXzWAqN2MEMgN0SHBIfOryuj/q56OoNU+KgI4= 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=B4H6jTQA; arc=none smtp.client-ip=209.85.218.51 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="B4H6jTQA" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a44ad785a44so163483866b.3; Thu, 21 Mar 2024 11:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711046636; x=1711651436; 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=hXrRijFskjj/x6bHaCTthhZrS7dvFVKx/yThbyuTabM=; b=B4H6jTQA+DiaQGXeG0hHF0ILHn8FxUec2W/HUmZ6KSWH4OXBuScXVPandlxbufCpCi AmUyswOqCGi0sLcYHIDJYpees6RROXzZf6rpl5qyIkfHtQU8qA749gkTssorLI94bG0P Wj5IX7j81anVdikfmj9Y1AOW/MwHBP4s8M43e4YbkTszRyzQk7w2yP3AXR9RI0TwR2aZ R9WcHupbCY3PWYpvDBUuPdO8PFDLUyGzCpzx0s4oGDd5Embysd51VETMyaO6o/wHz9Kg hrMMgwKSg1FuN/rWDUAQASI6mL3nO7ODmOCWUCgiALJP7ZKYd5Np4XAmchAXAmcwjyf/ v2pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711046636; x=1711651436; 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=hXrRijFskjj/x6bHaCTthhZrS7dvFVKx/yThbyuTabM=; b=q/9/mBveW74qdLpPDNJiTmAfK/MmVkJuVlaW/YjQUcRRqFSDteIRA+jkN5iMcEjWvq KP8NdluIxTJA0CLhbH0/OKPEOGpdmtvNt4D8fk1iEBH7Km5WAZ5EQ+l0rSmsVfoL17xj bHuHIDj5HdBin54iJa2OpUWF8cy//AGOQPiVC2XbsSmsGMz8wuJXJgXYkPGxy2CGqds9 tfrtNBCMYsO7R++uTIt7F9Gj6yGWY7f/nFA9zaHSnYnf4ua1IiOQOCz4WJSIGhJ5xOWQ DNRHcODJtYU1kljHD72G8NTdNIBQRc4CnU9N6T/G7uzBxWEl21DxJZIamqFrIm6Lw47+ uwcQ== X-Forwarded-Encrypted: i=1; AJvYcCXn/MovZda49DNh9pefyd8sG3LKtZQ0wgWMoUra5+Kwh2tF4WX8nJq1v/9HAO7nnKjS+M3fQDo5Z3DkhtGOlM7BNUNwGKPl9dJ6P1yyA5ordvBIt8HUEgKRcnspKlf1QbwV4YA9lLK54w== X-Gm-Message-State: AOJu0YyUMgiRwHWHmy39xOsK7DhhVypxrrzEXfisv8ewwSHfu78ltg8P 5DnrctjxH4lnHBFk52u9hNBEjAOCCswqFHK8JV+tI5T7zWhtyNXY X-Google-Smtp-Source: AGHT+IG9T7BGcTdrPesGcvj83c6iEs3oewPglnZiOuu/XZQVzeB9m7qcgDvuSRwkRNXDR4GMAkeMaQ== X-Received: by 2002:a17:906:fa92:b0:a46:d001:4ac1 with SMTP id lt18-20020a170906fa9200b00a46d0014ac1mr186929ejb.47.1711046635918; Thu, 21 Mar 2024 11:43:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 11:43:55 -0700 (PDT) From: Javier Carrasco Date: Thu, 21 Mar 2024 19:43:42 +0100 Subject: [PATCH 1/5] dt-bindings: hwmon: as370: convert to dtschema Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240321-hwmon_dtschema-v1-1-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=1883; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=KZoVHUkOuLwqSF6Q3U+Iq8ld3UyOQ5Eh+x0ZRakG7AY=; b=63I2hYN1+cDH++nFgodgGj/vcHWjnLPCypd4vLoj69cY3p4KiaCOMN8vcvrmaXuAFJb/T+8du i46xfcAQXp0C/JkOEosPup8wgArKbc+IndvOX04hVdlUTNQIMtAXirw 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 now new properties. Signed-off-by: Javier Carrasco Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/hwmon/as370.txt | 11 -------- .../devicetree/bindings/hwmon/syna,as370.yaml | 32 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/as370.txt b/Documentation/devicetree/bindings/hwmon/as370.txt deleted file mode 100644 index d102fe765124..000000000000 --- a/Documentation/devicetree/bindings/hwmon/as370.txt +++ /dev/null @@ -1,11 +0,0 @@ -Bindings for Synaptics AS370 PVT sensors - -Required properties: -- compatible : "syna,as370-hwmon" -- reg : address and length of the register set. - -Example: - hwmon@ea0810 { - compatible = "syna,as370-hwmon"; - reg = <0xea0810 0xc>; - }; diff --git a/Documentation/devicetree/bindings/hwmon/syna,as370.yaml b/Documentation/devicetree/bindings/hwmon/syna,as370.yaml new file mode 100644 index 000000000000..1f7005f55247 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/syna,as370.yaml @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/syna,as370.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synaptics AS370 PVT sensors + +maintainers: + - Javier Carrasco + +properties: + compatible: + const: syna,as370-hwmon + + reg: + description: + Address and length of the register set. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + sensor@ea0810 { + compatible = "syna,as370-hwmon"; + reg = <0xea0810 0xc>; + }; From patchwork Thu Mar 21 18:43:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13599289 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 00339133991; Thu, 21 Mar 2024 18:43:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046640; cv=none; b=FUTLA2zvQrK48qyXB+fwCFHd22FIPVqPHa8wQSJIVhMj8LEeRAjD0rJp9rKQwQ1YUDWORh8rSY51u4+CF+NYYGuPo+O/VE3vSjSk372C9d8gws0AtiUwaPju4EVH65bmW7h8KqyOCZSQfAkv16Vf2waPG/1b0hLZVb7TIVuUpO8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046640; c=relaxed/simple; bh=B4z+N7ahUY9ApzqDTqzWOq9rCMknJMon3IQBcjSmS+0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U799YZonlocLK4/63J5KfCJBpOWSrNAIMEWeUA+nJbiRYfUkXU7WoXMV2IfUdARdHBRrUkFBOmqVW6z6Inppj+oNy92mCcTK+Qis703YodA85GDrb8JdQaDQyvBn1iP4p74++ZYSBUdT/4F84Ic6cS20O4oKCDZ2xcX3hsUXvQo= 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=F1HFsahg; arc=none smtp.client-ip=209.85.218.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F1HFsahg" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a471f77bf8eso58138966b.2; Thu, 21 Mar 2024 11:43:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711046637; x=1711651437; 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=ZxQdV0gSwFea/wvwZN65K3fXrbPQE6rK+EuyPQNgzgU=; b=F1HFsahgpMrkDJ+e/sXO30+2fuaRodAkJLfK7rpmM5jD62odGzDsoAW9hriEtWppv/ bsACXLw+DS86xTw4en4JKn3PYpIsZXMrr0kIwhHGET45/vIekLuaHIfcNIUv0H+i7Dnf eB/qUK7YkL6QcGTMORQwYiHSIU0Op43AiHDrmzgQYrtHmTYKeJNvuOSOgM+6V8DY62Em kbUwhUM/ttEpbQfsAVfK2RJC/vvFFcaUanwN3ysLZDWwK8YdwXpoK4ED/VY0RRaXXnh4 RSZI1z6xIiO7Phyg2j/Nd0z1WnpYd7DndM9fn9dpGwPHDPAxaGWHfJ6wpSeH0S0WFzsN m0GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711046637; x=1711651437; 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=ZxQdV0gSwFea/wvwZN65K3fXrbPQE6rK+EuyPQNgzgU=; b=H7KIjuCOYQMKuDK6UE4kUaQSJTh0BfDYngYq/Icj9N8AGfloKMvoTM1ljbDrqDHYEk jkzYaapQ84j/3TIPUXDJMeoG/443zbQTJdQFzGGzC+kt+X5fvnkSIaYVt4ZP/idCy9zk 4rI0Or0V+hr2m5tUOVES8c5k1Kc1Y7wETCScLITqZ7dBeqmINWy+FmBcoc9cC/M3B4gf iCTgjHlXUVJaoeo11RiYKfXz6+UtMA0/QPmWynULE8iDO7fwkikYCyorHB0apvfE9Qkm 8RBQUl0eJo/79gXt/LX5/oVvoKT5/ZwCvR1hucYSMqpuVN6a4xPj1WAFowvoFvnXGuox 8NaA== X-Forwarded-Encrypted: i=1; AJvYcCVmXvKfOzMJvmueezvbyvqD7DMmgQMzf7kzvfvALRLLY5rW5AyEjQK2kFlLe0aEHHcRk5iEVe/Z4ivXJycIRNaGT2nmX7OomhyhFQNmvGECMpbqCX2t4bLQxjQxFLzo3EiPUmLqJEwWaQ== X-Gm-Message-State: AOJu0YzbmHyPUmZ9DbjVllPHJmUnJiSJW8WnkOupH40SzKOG6GSfZqzR 9PtWCYbRnTyra08idSR0wvqyVPX0fvCFWFlVKHhKmQMEDEL7scRX X-Google-Smtp-Source: AGHT+IEG3AMGQ1osr9ItXCZUq1B19nD5/fEmokg4CRjx7D3N3zMzsZXK4cQeC/aBxwlB5SfDdpP8lg== X-Received: by 2002:a17:906:fb06:b0:a46:b4c7:341c with SMTP id lz6-20020a170906fb0600b00a46b4c7341cmr203638ejb.58.1711046637340; Thu, 21 Mar 2024 11:43:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 11:43:57 -0700 (PDT) From: Javier Carrasco Date: Thu, 21 Mar 2024 19:43:43 +0100 Subject: [PATCH 2/5] dt-bindings: hwmon: ibmpowernv: convert to dtschema Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240321-hwmon_dtschema-v1-2-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=2489; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=B4z+N7ahUY9ApzqDTqzWOq9rCMknJMon3IQBcjSmS+0=; b=oqyia0IGym0y9rYVCkRgAlrQNxtFb7uL+qIR3kHFpYZ4LBCMWtK9h2dIytpqyKwpEpo0Nu34S 7L5GmIk/5n3DJ6sb2wPxsv1/D2ozM6IoFmN6E47+RW9/n2CiOoHptmi 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 now new properties. Signed-off-by: Javier Carrasco --- .../devicetree/bindings/hwmon/ibm,powernv.yaml | 37 ++++++++++++++++++++++ .../devicetree/bindings/hwmon/ibmpowernv.txt | 23 -------------- 2 files changed, 37 insertions(+), 23 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/ibm,powernv.yaml b/Documentation/devicetree/bindings/hwmon/ibm,powernv.yaml new file mode 100644 index 000000000000..27c949b94c7b --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ibm,powernv.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ibm,powernv.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: IBM POWERNV platform sensors + +maintainers: + - Javier Carrasco + +properties: + compatible: + enum: + - ibm,opal-sensor-cooling-fan + - ibm,opal-sensor-amb-temp + - ibm,opal-sensor-power-supply + - ibm,opal-sensor-power + + sensor-id: + description: + An opaque id provided by the firmware to the kernel, identifies a + given sensor and its attribute data. + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - sensor-id + +additionalProperties: false + +examples: + - | + sensor { + compatible = "st,stts751"; + sensor-id = <0x7052107>; + }; diff --git a/Documentation/devicetree/bindings/hwmon/ibmpowernv.txt b/Documentation/devicetree/bindings/hwmon/ibmpowernv.txt deleted file mode 100644 index f93242be60a1..000000000000 --- a/Documentation/devicetree/bindings/hwmon/ibmpowernv.txt +++ /dev/null @@ -1,23 +0,0 @@ -IBM POWERNV platform sensors ----------------------------- - -Required node properties: -- compatible: must be one of - "ibm,opal-sensor-cooling-fan" - "ibm,opal-sensor-amb-temp" - "ibm,opal-sensor-power-supply" - "ibm,opal-sensor-power" -- sensor-id: an opaque id provided by the firmware to the kernel, identifies a - given sensor and its attribute data - -Example sensors node: - -cooling-fan#8-data { - sensor-id = <0x7052107>; - compatible = "ibm,opal-sensor-cooling-fan"; -}; - -amb-temp#1-thrs { - sensor-id = <0x5096000>; - compatible = "ibm,opal-sensor-amb-temp"; -}; From patchwork Thu Mar 21 18:43:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13599290 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (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 C93F2134428; Thu, 21 Mar 2024 18:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046642; cv=none; b=R3EYTxwjVOXImbcFcHFgoKnxtIDHbor0onPZY4D6kZ0lNzAyS0eyFVUPDHDbbIeLGiSbFQKq7eilt/xBHnoBohtIVfIIlQ4xoHks6vn/Li1SrOMYbGRmivF6bBh5BMmgiuaSgtSUlS8RBzoPLypOOSMUQWkX8h6DpxWFMCDIRVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046642; c=relaxed/simple; bh=WtXVHWYckALrs2tiGdx+CdxFz78VsyEPGAXNNvu5zss=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bAZy6dQFoimPBVNGbHpS0qK7Nf9UCEFmNTWAKeaL7Db79jp4diUhbMPtQnusA2Tv1Ob4iazjpIghWzvhKBJw2A9phKv1DVZdRz978Dvv3v1npvgg0brpV1M8SS5lrS4a1BGgcBoAwormKM1XVsFOLW05elWOlqL0AIq0vgMlbMQ= 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=VBmRbaNC; arc=none smtp.client-ip=209.85.208.51 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VBmRbaNC" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-56ba6c83805so1635768a12.0; Thu, 21 Mar 2024 11:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711046639; x=1711651439; 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=hjH3xWAVxcLksXCnS4n7afqAXMFnAXHbQLt/fzJwwaQ=; b=VBmRbaNCFTYVkIk+dp5ufI2h8x2nlFr7RkZdQyzar7nE5Z0t8MsPvTW1E2f59eGI+I eGFd/PLzDRLKKM7LoJrLzW91PJMHAzO+OmvO8T9rxx7+1pJYKoM8YftGRZ7Ijb6M1IUY qqJTMhhler6qRZRTahY72WhcJExwfZc1VUgXkFPMGA9C3wFvmobfACidq9+BIck1GHq1 PKtv7lIhTy0VlKhzOUDFUx8rluD+DyHn3wM0qegXUZFtIRT4Qh9KkyU4S2PEbWER+gyc 57tQuCYVhX3e8xK43wUaAbRbk3kpB2uJQaJ8hWmeiyqhIVo+EPFCiri1zRwcuUGjYJCT IUHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711046639; x=1711651439; 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=hjH3xWAVxcLksXCnS4n7afqAXMFnAXHbQLt/fzJwwaQ=; b=b79abzZB2oTlOuLQSqa1rXpqqWNCmsc5zZB1am0Im570z7eQ0/2dxJI7z4m6u74EjT 0lgcV2eTu4Xu1nGCWciD0EKkth8z9pva6cmcshKOU8dcFuni4xemotTbXVzkd51USn4n 65sgqBmWTsrNqlFTOCkpyJpOH27OXSlT7pArr1JC6w9yXYng7Lx8xcyVZhqU6rxM+IoD 5k48Y5yxEFUtoOCxNWVNYN/quOsvTcKrQaZjsCOjECNqNclCLIuUfbkYbSnh+g61sgAF T1SK5B56eLMIkB4lSwwdSX8HF48aU+QmNmb/RhwrUXv4NJgcc6vEUHE9LZKG8JUpbD/W I5lQ== X-Forwarded-Encrypted: i=1; AJvYcCX0tp3tdsrOoA92p7kNP+XoMbpbyK4Y7v0yFFB4gz/RZQpXpgjgHCISxv+8fY+K8yjxFL19aP7+mMnTWJNXwS3VucUgqQo08KiLi2QZLBMn56c/+SEVCmJ9d7JaoT+TwxYHpll+5x9O7A== X-Gm-Message-State: AOJu0YxG6WLNr68bK8ZvP1USVfFQ9E6S9zs7Y20s0UFTu5LX2TX7yn1p l0eODLsluRfBUnu+aFG39b/URv1Q48W0F9eeY5zKYK4tlpREYnh8 X-Google-Smtp-Source: AGHT+IEyc+V2rYgEcWFTuNuI3kDNAkEe3lfiXa14/sba7m/sCsfv0r/xLVN623itYwLZeUtC/K826w== X-Received: by 2002:a17:906:1387:b0:a46:c8e2:40f6 with SMTP id f7-20020a170906138700b00a46c8e240f6mr197265ejc.1.1711046639107; Thu, 21 Mar 2024 11:43:59 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 11:43:58 -0700 (PDT) From: Javier Carrasco Date: Thu, 21 Mar 2024 19:43:44 +0100 Subject: [PATCH 3/5] dt-bindings: hwmon: pwm-fan: drop text file Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240321-hwmon_dtschema-v1-3-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=541; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=WtXVHWYckALrs2tiGdx+CdxFz78VsyEPGAXNNvu5zss=; b=bQuEUQ397vzy8Jfx9LXE1DLb9HcUz0E9hVk1DYfWLzvdIqRa7kwMM7XS2iVsuxw1M9Jk1I4A/ cv3JecbM8T4CRJR4jtV7jJtpUQW1Gt2GFqpZ8rXg2nQ+VqWzFO01uJK X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= This binding was converted to dtschema a year ago. Signed-off-by: Javier Carrasco Acked-by: Rob Herring --- Documentation/devicetree/bindings/hwmon/pwm-fan.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt b/Documentation/devicetree/bindings/hwmon/pwm-fan.txt deleted file mode 100644 index 48886f0ce415..000000000000 --- a/Documentation/devicetree/bindings/hwmon/pwm-fan.txt +++ /dev/null @@ -1 +0,0 @@ -This file has moved to pwm-fan.yaml. From patchwork Thu Mar 21 18:43:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13599291 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="VixaplNH" 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-Google-Smtp-Source: AGHT+IFm+lPaPah3aU9llD7EleeYDcjEK0aQBz65oztMXNAemS6XipbJkF1x1Cl8Q/EmmxGIB6bBkQ== 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-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>; -} From patchwork Thu Mar 21 18:43:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13599292 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 E86FF134CF7; Thu, 21 Mar 2024 18:44:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046645; cv=none; b=UGqf0+uLLh8mePDntKGfeyJ/5y0p29xwUCqM7LrloMz7+wQmq3VwZySujntXtVauz/ltC5rSmoS17Gvu9dKhy/IuH3QmAG7X6YI3iSdMuzk3MlpQD3CYzqCbnRHCy98yxzi3OuZLpaxFvgkyDT5K1D6i0iPoxD5SexbN6ashqOM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711046645; c=relaxed/simple; bh=V6VzvACmmg1HSyifxT5g+gPzhNzirrHnP3f/hmF8jMU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=K0bE3RJ2DavaoxDIDcoUB6KMeLDrk37VQS9Bw8jn5Sl5YCypkd0ai7vV+WsgctxEFB/R+x0rqfnZJBaZezgI0YLHiG78WmdVVNaaLmcZSmYUJuT33prgOCPa3WUtb+M8VPUB7+oVYaBpiujxUhYD+ef3LIecD819FONWcbORrCM= 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=UXon3lwB; arc=none smtp.client-ip=209.85.218.44 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UXon3lwB" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a3fb8b0b7acso157543666b.2; Thu, 21 Mar 2024 11:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711046642; x=1711651442; 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=HZP+gNYu/Kkn8nZAdI78yJHmmqjo52vGxGg0tHY+NoU=; b=UXon3lwBlgxUTDfDVIeJ0P+2Vuvd9PlM6v2qK0LXcTSYLwJkLsv3xi73iwOz9vC4vY 33xsU9IuSkKLYK3yAs3QsedjL9nHtVEy/GYwjecC2pko/fYBQPwnt4Vy1S1B2sL2AolE Mbu9yJ8/DKqKUk7HqYbzt0glg6E96DusqtbXQcbrtsSv7PqAfGvBYxONQL7Tgy8jbeE1 /KHuIt9M6LBEcrHbSYxABwWAZC9Yfwt1o7SrwbDC4XwSaLXPXZJiqMrMlxG3rWtA2Yos dR72rmgOahBBud/GoXG4YE/oCKAintcV6QaUSN50vR4VbttlDzhfbkXWgHm4nkiVSjwn UJiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711046642; x=1711651442; 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=HZP+gNYu/Kkn8nZAdI78yJHmmqjo52vGxGg0tHY+NoU=; b=A+R9p+p4ByisNi2tV08EU0J0q13ZxUN6US1+N9Qkv2WFo6Qfc3CdjR/P7QAWuhdq1g /kB1kQ0LBe6mtnX5GZ18kQAmFRnKFdjA+5WrsOpHabzjDAUd0qAV2TWykQbzkjSyj59q wR73qK+OohTyJZ9qb+gLxlWtvd7D8pQrvcc25RpIrvXT6BVbTeUHbync6DY+gKpHhhX9 bZeIPIBNJUtAsSMPu6JLf+FbpUgW8udzZyV4FwbO6Szidx/jFS2H/aGfM675GfrdRh4E weX/4r5NlEN4/lk81wLHXpoSLt6ZD55AL9T8wN+0CDcm8i4SGS54BIPrFqkSbbmJ52Lh o0AQ== X-Forwarded-Encrypted: i=1; AJvYcCUunAdk0mjKz9IPb0L+a1Os5zDc3WrU0dvw7yZ2O6ttA1V1XR+rFrNxEbrqB+Uu+ZUBA4LWVxsK3eJn07oR3PSa+Id0RiOxT7tAMRhBhnxHubCU00S0Uo+LbLZ5x4zDqa82CssiLq94dg== X-Gm-Message-State: AOJu0YwqHC25f6Lp8mV9O9lAx5b7TbTkRmq8iYE8SaS1Qccd86/K8urj hexA51Mh+6hbwkqMx+TmCc46FYSZk7XjOMHoAZAHDFt2ZhLs5DKk X-Google-Smtp-Source: AGHT+IF7he+6hAV9Yv95T9uxTXIAXg6hiYAdZakGXqqD9dT16Y++ep9u6yth94oazmiB/4HP9J5m+A== X-Received: by 2002:a17:906:278e:b0:a46:f888:70b9 with SMTP id j14-20020a170906278e00b00a46f88870b9mr197252ejc.51.1711046642214; Thu, 21 Mar 2024 11:44:02 -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.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 11:44:01 -0700 (PDT) From: Javier Carrasco Date: Thu, 21 Mar 2024 19:43:46 +0100 Subject: [PATCH 5/5] dt-bindings: hwmon: ibm,p8-occ-hwmon: move to trivial devices Precedence: bulk X-Mailing-List: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240321-hwmon_dtschema-v1-5-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=2007; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=V6VzvACmmg1HSyifxT5g+gPzhNzirrHnP3f/hmF8jMU=; b=TXRk7ekifN2YtRLJ/Oo1oWCpa34HsD7o7GbskHBhTUhjZ/+c8V9/Lo9lAKj1cgeGDnIUGQN/h 5eAaiamzRueCoaHV4HQTQMpkmSZUfx9tlT1/TlKltdb/wu3ufWHZaUu X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= This binding meets the requirements to be converted to dtschema via trivial-devices.yaml. Signed-off-by: Javier Carrasco Reviewed-by: Rob Herring --- .../devicetree/bindings/hwmon/ibm,p8-occ-hwmon.txt | 25 ---------------------- .../devicetree/bindings/trivial-devices.yaml | 2 ++ 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/ibm,p8-occ-hwmon.txt b/Documentation/devicetree/bindings/hwmon/ibm,p8-occ-hwmon.txt deleted file mode 100644 index 5dc5d2e2573d..000000000000 --- a/Documentation/devicetree/bindings/hwmon/ibm,p8-occ-hwmon.txt +++ /dev/null @@ -1,25 +0,0 @@ -Device-tree bindings for I2C-based On-Chip Controller hwmon device ------------------------------------------------------------------- - -Required properties: - - compatible = "ibm,p8-occ-hwmon"; - - reg = ; : I2C bus address - -Examples: - - i2c-bus@100 { - #address-cells = <1>; - #size-cells = <0>; - clock-frequency = <100000>; - < more properties > - - occ-hwmon@1 { - compatible = "ibm,p8-occ-hwmon"; - reg = <0x50>; - }; - - occ-hwmon@2 { - compatible = "ibm,p8-occ-hwmon"; - reg = <0x51>; - }; - }; diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index e07be7bf8395..87b0dd9b0734 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -126,6 +126,8 @@ properties: - ibm,cffps1 # IBM Common Form Factor Power Supply Versions 2 - ibm,cffps2 + # IBM On-Chip Controller hwmon device + - ibm,p8-occ-hwmon # Infineon barometric pressure and temperature sensor - infineon,dps310 # Infineon IR36021 digital POL buck controller