From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (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 AFDA137C90A for ; Thu, 20 Aug 2026 15:02:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787238167; cv=none; b=HyKQA+9R4F14JYTij7Xcmb/r06vLrRYaGKJD+rs8UV4GUqrAxvsInlRnJMx1hhIKKuafQ5XYqwQ3J/xIPiUqK1Ih3yPqgBko/VGr0d8TBnLqkYxP8BdAVkTGkI9hqdp0yHdLTB5TV0izO0ORel/kXagczMHxklC2PHdHr4U3n5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787238167; c=relaxed/simple; bh=AE25EeEjaWGU1m2oqDoDFrdsS+1c279+IqqNRhxagKI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Giex7dVa7uTaDuCJjZrSzXdCyRTy58sNOG8GC2BmlSt2JtaTV6tLM3OLEQEtcdfRqFbmiDjyWba99GMAghUiG0canmf3SHhReH7Zf7QBVZAdPc/dhyUXwWeWEuFqLbWA0lLGWv+rn1bB+veYd9wuNVx8mrTRRr3hfwA2IetOFEY= 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.49 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-f49.google.com with SMTP id 46e09a7af769-7ee37dc91f5so1287401a34.3 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=IiFEMhJaQYY5O2nt+wK4qsnEVPOjJV4b0jFC8D+DpEu5jE49RJGQf6OexdNyz6Jah3 wkdeiFZybgz8mkFTPOZLmSKuReRrSx3F2tjep9+2mfEJeM9xaK2JQ0dBWFAx9WK/c611 lvdWOJ+lkXnIwoUHHP6ZRbcEf8thEF4TPl0qHUFv+sfT3kaSoWii9YS6VNWjr7w1iT+m eu5LmD3//cuQ+ZcVcXT3MxnkDMBMTo8Fdv2CyD0JwNS03AEwbQyZrO9XhLh20uUsN6Ji a7gp3gKauGl/6t7vJIWhOUoj8j6GDUAsjQyqDAT8iTgfZolFY1+2kwLMumrP/qCSioiR wMww== X-Forwarded-Encrypted: i=1; AHgh+Rp+xer2cPpdzohEKWXsc8g2GKohB9wYwSvKV+ccxcrJWiKyF5V+vnC+hVXb4BFfqPrfyDEMkGf4qmdO@vger.kernel.org X-Gm-Message-State: AOJu0YyoXm3sTuBw1Lz586/EVdmsT/rjNgtB9m2QU7iprdQNIOuISLHL zUDq7reR77rQW7wfpOWi7O8N417uftCRmSo0/HOR+LFjSTPtOHkAkWx2 X-Gm-Gg: AR+sD13YuoVlF6GoWVGEUSt2aTHPbXS296L6xAgAZIo17iwH279ZP7TZLQrFuSos9G8 wgWDrMtf8Dh+VQPQZ6oQLU+WyKPSqAVMgwIc5s5jJab61K9w1qJOOoD9ZKZys0Syau5hloevm6Z jcXZ8VbUd02zh8hKafSsY2s/ZgrPZeLbeDRQ/5A1lyl/66qUTt41Q8WyrmOGuzAsODb2A16aGYU C4u7mGD+2JwPnArHYel1t9Z+mOcaQ8BX3ibHRexzaaLyyL72jBnFAyYUNTE6STN8zYcIx9hHR1b nh+zYOSd0lzBJufHwwZyVJMQ8thZrT0jBWfdqCR1g08dyrEKvI9eyKSWla1HBF+oVaKHUrPAy1B FzUjGKy11Jasp/gtdap9Hp8yMgltLnXy6ZiGd6uyyN2Emb5VYunBuORSBw8wMwOwUK3qj4i+IFA 0GFL7XA9fxLFjmOmnRXe7eru6J/CocxXqcK4u5LJpC4SXuOxOGoXGQxXLjBJ/92LbupE38Ic/DL Q1sDTAmJ6o= 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: devicetree@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