From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 BD86B23EA89 for ; Fri, 1 May 2026 10:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777630892; cv=none; b=cuYCwuKkcLkuuSbZqihRyr/0GzlUQ7MRPqCakA9fR8y51mbbaulzfGeMPsBKqOcGM6d/JV2+bkc0LuMAXdqNWBzsRQVaHMkS2eAeeFZOV6yqG50OEMUdyMsGn01mWNBvHUTTYHlu5jBhceVD0W9b5AlNos5jU35nLIRXatNVLII= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777630892; c=relaxed/simple; bh=Lo3+DqGac6IlEiZ2czM1lRh0/V9vMHG9J90YVU5aqGY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LiqLAcPOl6PvoQZCXV3SoT3J6WqR8lUIpHqlXjmvvXvfe7lLzM1cWfCBfV9pCQ0VTs8ap/RsJzBJjyQtNpC21eKLJuHuvjDKImr64C8ycmSu1zyqO3CNzpPubdeExm+hdbS43zaI9yhf5Jo5JyZhF3aqwBDf0Mul6VycVFsnHHk= 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=caqdJDgh; arc=none smtp.client-ip=209.85.215.175 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="caqdJDgh" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-c7961d7bc09so742822a12.1 for ; Fri, 01 May 2026 03:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777630890; x=1778235690; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WqnN+2BfCLE5+NYkaRPGHIh+GKWc00ij8KyAPoVlJGA=; b=caqdJDgh5UsIxg557i8chSK+q+6/tnhudYgtCawy72rgLlZs2ukgkBkPIfic6DOvDH f6arVHBF6J9KVEB5nAUT6n5rrhbOzgOYnWuRocRg1ZId6Agz4HsB47BiE51uXWt0VE9T D3bSvmjo8S24N7P6uBPg2skIp/1wEXkGktuSMhr4k6hgRX3GkhkLgCjc3sZ2v8P5qN9W +UodpyXpmCiwAaGvfduX0Cboh/cjI+yQtr9Tl3LzixShGAhTkvh6h59Qhl7sp0kpuzP4 oCJSWfq57JQGaYvwONDelrOS4svxjgmbMBeNAwWjovnwOGvnQ7VaQbnQxh8PNFLBfMiq dfYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777630890; x=1778235690; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WqnN+2BfCLE5+NYkaRPGHIh+GKWc00ij8KyAPoVlJGA=; b=ZSM6KA0AopqMRdAHajCijZjYd7dMt/LVZ7XGAvLF006gj+gVb/erBJkLyIQOS7jdWI vxV4RNKL1xpeJEhBw0b6YFjXRjL/pDNaxrOuPKGnk1+0ygXgMFjo0wenbJMsA3z3AV0C dPqXK3Ktjs2LOGuIcG5ebyIu7BfHFJj2E677TApBADwPITkm/kleIlU4IRSlMTQASct0 Z4Zy9VmBngbMgoSk4HIJgsnVqunG/zw7ZAQAunbJYLtoDKYlXFSg4zg3YDhM5/yzvLgO ewfb0y27LR7aAVNLNi4VDa9z0hxGjM5gjZEPQf/80xm63VoCmCInxjFA3kd+XchMMsRG DDdg== X-Forwarded-Encrypted: i=1; AFNElJ+z3xJdgH86RdTV9/L616CVPrw+75ws7tudpVH7ZIwiyp+BGQYaoerMycdsJy4txuTrA2Va10b/8vFb@vger.kernel.org X-Gm-Message-State: AOJu0Yz0c6lTNR7Q+19Yd3ma/2YNI5prvUvBMEKcXvBYtgNk8O1Q9bNe Mj+tqNgIKikFNCVU+tGvL8bMYf9AhYBx+5tMiFopr6tTC+0mV/hxO0pyvNcZFwWL X-Gm-Gg: AeBDievOdS6UFWfB2K++WdSTZPZdylQMjFux4zwYGVR/PO57lu6qw4vjN8IoRALjgr9 inEuvPVSm4bvO1cc1BUARKNt9kZlONdWz/tOjmKlNAT4qRE6IJLaMiiI1shycwvbj+HFsLBwP5z ZF+l5y0xcgPx3MY2Wz7kIE5vIM+2QCdrvCk2lgeZVpP/JAHzKp3zKusVmJHFQlu50ekt24zqsKN 4P19GlYyRNj/E7/K7hU7etI4KThhCZxvCQrDRM0nOULpAlQQ8FRDRJEIbYlFOQ5X9jkEDuUoby1 RG6/Rl8MyJiTM5ZM/00d6svt1t3dpoxIduHxGxUK1i2W1bNSd71RBx0V5Er3VN7X4sdR7SR14ul WuqbmieyCxzq7VH+WhjlX6A6838hra+QlcLymCr3V2pEoiNNg7U1bz4CondwpcFM2i1ZtGAjs7N xr988fqSK3wXrE7tyoqhHU6k/2wbgs/Nv3wsbv28aW72J2HQ4VWnuWAh/ZRH4Gl4eXRAa584UgE ukX9tevbvkMzBqI X-Received: by 2002:a05:6a20:5483:b0:395:ce56:4448 with SMTP id adf61e73a8af0-3a3cf68b511mr7357065637.25.1777630890111; Fri, 01 May 2026 03:21:30 -0700 (PDT) Received: from Ubuntu.. ([49.37.171.148]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83515b87869sm2344295b3a.61.2026.05.01.03.21.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 May 2026 03:21:29 -0700 (PDT) From: Manish Baing To: linux@roeck-us.net, linux@baker-net.org.uk, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, manishbaing2789@gmail.com Subject: [PATCH] dt-bindings: hwmon: zyxel,nsa320-mcu: convert to DT schema Date: Fri, 1 May 2026 10:21:16 +0000 Message-ID: <20260501102116.8275-1-manishbaing2789@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert the ZyXEL NSA320 MCU bindings from text format to YAML schema. Signed-off-by: Manish Baing --- .../devicetree/bindings/hwmon/nsa320-mcu.txt | 20 ------- .../bindings/hwmon/zyxel,nsa320-mcu.yaml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 20 deletions(-) delete mode 100644 Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt create mode 100644 Documentation/devicetree/bindings/hwmon/zyxel,nsa320-mcu.yaml diff --git a/Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt b/Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt deleted file mode 100644 index 0863e067c85b..000000000000 --- a/Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt +++ /dev/null @@ -1,20 +0,0 @@ -Bindings for the fan / temperature monitor microcontroller used on -the Zyxel NSA 320 and several subsequent models. - -Required properties: -- compatible : "zyxel,nsa320-mcu" -- data-gpios : The GPIO pin connected to the data line on the MCU -- clk-gpios : The GPIO pin connected to the clock line on the MCU -- act-gpios : The GPIO pin connected to the active line on the MCU - -Example: - - hwmon { - compatible = "zyxel,nsa320-mcu"; - pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act>; - pinctrl-names = "default"; - - data-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; - clk-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; - act-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; - }; diff --git a/Documentation/devicetree/bindings/hwmon/zyxel,nsa320-mcu.yaml b/Documentation/devicetree/bindings/hwmon/zyxel,nsa320-mcu.yaml new file mode 100644 index 000000000000..a111f8125e09 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/zyxel,nsa320-mcu.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/zyxel,nsa320-mcu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ZyXEL NSA320 MCU + +maintainers: + - Adam Baker + - Guenter Roeck + +description: + The ZyXEL NSA320 uses a dedicated microcontroller to manage system-critical + functions like fan speed and power monitoring. It is connected to the SoC + via a GPIO-based serial protocol. + +properties: + compatible: + const: zyxel,nsa320-mcu + + data-gpios: + maxItems: 1 + description: GPIO pin connected to the data line on the MCU. + + clk-gpios: + maxItems: 1 + description: GPIO pin connected to the clock line on the MCU. + + act-gpios: + maxItems: 1 + description: GPIO pin connected to the active line on the MCU. + +required: + - compatible + - data-gpios + - clk-gpios + - act-gpios + +additionalProperties: false + +examples: + - | + #include + + hwmon { + compatible = "zyxel,nsa320-mcu"; + pinctrl-0 = <&pmx_mcu_data &pmx_mcu_clk &pmx_mcu_act>; + pinctrl-names = "default"; + + data-gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + clk-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; + act-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + }; -- 2.43.0