From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.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 AA5CC369206 for ; Thu, 20 Aug 2026 15:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787238168; cv=none; b=hcdUf4A3u3OuXtBnwpYvTS/DiedGpAhmPyUB9mV+ASLYV1377nYwFX0QWLWnwxfRlLNgcXQiH2S8SXX7NZjWi8GbtGb3Znli5Xo/essEuR/0rw8cIV1B9AKnlQh1LNfni5zmg/gmL6kycfBd9pAufuYa90A5y2RL1TuSokKimwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787238168; c=relaxed/simple; bh=AE25EeEjaWGU1m2oqDoDFrdsS+1c279+IqqNRhxagKI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=OnWcHM9sjptlY6ewxwNc0A9S6cAdQCA+jjv+SzHITlO+EvS3RLCRfruGTr1cDtp5eoJtrMaY2KlDfdAYqqlW2ba0IV4/OWlSpujS/neSb2AkNFRIUlPNOOUPLmNk8qXl6cU+s+a60nFsMEYSi6pqGDtk26NSqVjVpzO8ScI11Ys= 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=rjfLgEyr; arc=none smtp.client-ip=209.85.210.45 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="rjfLgEyr" Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-7e9eaf04bfaso1069666a34.1 for ; Thu, 20 Aug 2026 08:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787238164; x=1787842964; 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:content-type; bh=zUq0HK7LDm2Wlhb8fJRsqKOxAYntKmHEI3XG8JYK3rc=; b=rjfLgEyrid5nnFIeHjikmt85ZV2weWUtlDd3OaoZTrM2ZPRA+dWt6E/SEyB81Ol8S4 RKhWpNympE+yaeNdl8RDYAP4artAA79zgl3eeX0Bb4snTXmhHVtP9hVBU/k/c8CQnXMP VyKzFXvmgnwvr5pz4Tms6XCuvBJL97hflIGAdgOFmVkVwpHF1MrSOuCCpEK7gqN0RCkg 5bwI5LFvSVEpzFFl+yFvBDUvmqHjFwWm6OGTJ9LgIbEa/tnNwEBY1CDEoRIbCTtTaCMA Azpr3bdvLuOtmJBBzs/QKpr+EOPxY38LwaEPmqxgCYlXPHf5ZDCbtBcVWRJD0U5jxarN xy+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787238164; x=1787842964; 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:content-type; bh=zUq0HK7LDm2Wlhb8fJRsqKOxAYntKmHEI3XG8JYK3rc=; b=MAMqaDyc6cuesZY7dZE/i45iLjVyj2bTc+pOgnP4XlC8NLV7kSC33mToxE5kupxyqD UxAwfdKF+n3FvHSxf8hDWT6PMHZGX5jEkI6WdTnWLb0oGIZ5o/YXgCAjbYqgzSp2l8DW IODK7bsO7D96HvKpLl9P1lNflPyYzZkopcvnCLshbSC/h6c8SzyGcQ9xklcOkDfXVikF QZ5q+2+3LNG8rrp9YSxGhgNe+zyqkng6FO15f7nUCAFU+8/36UMpFJW4T+dFG5bhHVb6 hFD5WI7FH+sd7XO9OBGV6vlYrFJR1qdDc2I+Ll7JthRcQghhzWC138kcMBZXEpaSO4Sg mzOw== X-Forwarded-Encrypted: i=1; AHgh+RpwpbVnR4yyvdsGaS5pz6PkRA7t3r3Jq3X/eqF3wnQoit/FrmhIQlZZdaUmKAQ+KtHR6E2OxyL2I1HcBD4=@vger.kernel.org X-Gm-Message-State: AOJu0YyU21Pd/aPHC8qt83f3Foerjc/Ifz9UyGZVdvpBzHiqklpKMuPP BMjCu1VrTQjSC0A0tnrcc1Zw90QycaI1V7ofZyzWzFQe3bjoHs8lgyNC X-Gm-Gg: AR+sD12Y5+bsWzvZ3Mthp2wUBz2M1Pto9ASMPMlBx8motk0GzwpzV3Y8bGF/SYWleaJ 7F2T0kquxIxE0MF+9rEOl2JrjX1mZBL7TwI9qFIDcNYYqRlinntneTL7mEeSsOC/UElGKnQ76OB veWh87L/32S1d3uid0h35mpzwzfTK/oF/Y256lL9DiTm9BWuhJqMu0rEuuGGptabf1hWuhcFlq2 ERi9rvqYA5kM0TKHFAaIDVtrFCsWVKwPvvSqwcYUSKfGkh6TQJ0M6A+YWAn6+Wc00nwVwS5Hqh0 VKW2EQ9AHdRnjo7MWt/jIZsFmbEEXyVFG8wELkYUY7JpAqBDBbiisXY0eoxEfiAvsWGUk3JNaaw CUwz45QqNQJ2w38KK2k2DALmQRaU9TvuQE37e9gfilPNzW0TyC1apWFVvogRL27UQlIYGusXqF2 2AUcDCiwoWVzxP/agQRsKwZu9T7aTXw5MEgx0C+8tZlLbu3gajL1TAminQtOmykSYP13uB2LRzA 9759F81Dpw= X-Received: by 2002:a05:6830:43a1:b0:7eb:9464:ac2e with SMTP id 46e09a7af769-7f43fa11176mr11894586a34.11.1787238164556; Thu, 20 Aug 2026 08:02:44 -0700 (PDT) Received: from inhnjlux1020.ls.ege.ds ([2401:4900:c11a:be2a:e6d4:534b:5f9d:7945]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7f43fea8a04sm5489816a34.12.2026.08.20.08.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Aug 2026 08:02:44 -0700 (PDT) From: Udaya Kiran Challa To: lee@kernel.org, pavel@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: skhan@linuxfoundation.org, me@brighamcampbell.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Udaya Kiran Challa Subject: [PATCH] dt-bindings: leds: lacie,netxbig-leds: Convert to DT schema Date: Thu, 20 Aug 2026 20:32:23 +0530 Message-Id: <20260820150223.108374-1-challauday369@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert lacie,netxbig-leds devicetree binding from legacy text format to DT schema. Signed-off-by: Udaya Kiran Challa --- .../bindings/leds/lacie,netxbig-leds.yaml | 134 ++++++++++++++++++ .../devicetree/bindings/leds/leds-netxbig.txt | 92 ------------ 2 files changed, 134 insertions(+), 92 deletions(-) create mode 100644 Documentation/devicetree/bindings/leds/lacie,netxbig-leds.yaml delete mode 100644 Documentation/devicetree/bindings/leds/leds-netxbig.txt diff --git a/Documentation/devicetree/bindings/leds/lacie,netxbig-leds.yaml b/Documentation/devicetree/bindings/leds/lacie,netxbig-leds.yaml new file mode 100644 index 000000000000..ffdd47458d24 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/lacie,netxbig-leds.yaml @@ -0,0 +1,134 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/lacie,netxbig-leds.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LaCie/Seagate netxbig CPLD LEDs + +maintainers: + - Simon Guinot + +description: | + Binding for the CPLD LEDs (GPIO extension bus) found on some LaCie/Seagate + boards (Example: 2Big/5Big Network v2, 2Big NAS). + +properties: + compatible: + const: lacie,netxbig-leds + + gpio-ext: + description: Phandle for the gpio-ext bus. + $ref: /schemas/types.yaml#/definitions/phandle + + timers: + description: | + Timer array. Each timer entry is represented by three integers: + Mode (gpio-ext bus), delay_on and delay_off. + $ref: /schemas/types.yaml#/definitions/uint32-array + +required: + - compatible + - gpio-ext + +additionalProperties: + description: Each child node represents a single LED + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + mode-addr: + description: Mode register address on gpio-ext bus. + $ref: /schemas/types.yaml#/definitions/uint32 + + mode-val: + description: | + Mode to value mapping. Each entry is represented by two integers: a mode and + the corresponding value on the gpio-ext bus. + $ref: /schemas/types.yaml#/definitions/uint32-array + + bright-addr: + description: Brightness register address on gpio-ext bus. + $ref: /schemas/types.yaml#/definitions/uint32 + + max-brightness: + description: Maximum brightness value. + $ref: /schemas/types.yaml#/definitions/uint32 + + required: + - mode-addr + - mode-val + - bright-addr + - max-brightness + +examples: + - | + #include + + netxbig-leds { + compatible = "lacie,netxbig-leds"; + + gpio-ext = <&netxbig_gpio_ext>; + + timers = ; + + blue-power { + label = "netxbig:blue:power"; + mode-addr = <0>; + mode-val = ; + bright-addr = <1>; + max-brightness = <7>; + }; + red-power { + label = "netxbig:red:power"; + mode-addr = <0>; + mode-val = ; + bright-addr = <1>; + max-brightness = <7>; + }; + blue-sata0 { + label = "netxbig:blue:sata0"; + mode-addr = <3>; + mode-val = ; + bright-addr = <2>; + max-brightness = <7>; + }; + red-sata0 { + label = "netxbig:red:sata0"; + mode-addr = <3>; + mode-val = ; + bright-addr = <2>; + max-brightness = <7>; + }; + blue-sata1 { + label = "netxbig:blue:sata1"; + mode-addr = <4>; + mode-val = ; + bright-addr = <2>; + max-brightness = <7>; + }; + red-sata1 { + label = "netxbig:red:sata1"; + mode-addr = <4>; + mode-val = ; + bright-addr = <2>; + max-brightness = <7>; + }; + }; diff --git a/Documentation/devicetree/bindings/leds/leds-netxbig.txt b/Documentation/devicetree/bindings/leds/leds-netxbig.txt deleted file mode 100644 index 5ef92a26d768..000000000000 --- a/Documentation/devicetree/bindings/leds/leds-netxbig.txt +++ /dev/null @@ -1,92 +0,0 @@ -Binding for the CPLD LEDs (GPIO extension bus) found on some LaCie/Seagate -boards (Example: 2Big/5Big Network v2, 2Big NAS). - -Required properties: -- compatible: "lacie,netxbig-leds". -- gpio-ext: Phandle for the gpio-ext bus. - -Optional properties: -- timers: Timer array. Each timer entry is represented by three integers: - Mode (gpio-ext bus), delay_on and delay_off. - -Each LED is represented as a sub-node of the netxbig-leds device. - -Required sub-node properties: -- mode-addr: Mode register address on gpio-ext bus. -- mode-val: Mode to value mapping. Each entry is represented by two integers: - A mode and the corresponding value on the gpio-ext bus. -- bright-addr: Brightness register address on gpio-ext bus. -- max-brightness: Maximum brightness value. - -Optional sub-node properties: -- label: Name for this LED. If omitted, the label is taken from the node name. -- linux,default-trigger: Trigger assigned to the LED. - -Example: - -netxbig-leds { - compatible = "lacie,netxbig-leds"; - - gpio-ext = &gpio_ext; - - timers = ; - - blue-power { - label = "netxbig:blue:power"; - mode-addr = <0>; - mode-val = ; - bright-addr = <1>; - max-brightness = <7>; - }; - red-power { - label = "netxbig:red:power"; - mode-addr = <0>; - mode-val = ; - bright-addr = <1>; - max-brightness = <7>; - }; - blue-sata0 { - label = "netxbig:blue:sata0"; - mode-addr = <3>; - mode-val = ; - bright-addr = <2>; - max-brightness = <7>; - }; - red-sata0 { - label = "netxbig:red:sata0"; - mode-addr = <3>; - mode-val = ; - bright-addr = <2>; - max-brightness = <7>; - }; - blue-sata1 { - label = "netxbig:blue:sata1"; - mode-addr = <4>; - mode-val = ; - bright-addr = <2>; - max-brightness = <7>; - }; - red-sata1 { - label = "netxbig:red:sata1"; - mode-addr = <4>; - mode-val = ; - bright-addr = <2>; - max-brightness = <7>; - }; -}; -- 2.34.1