From patchwork Fri Sep 20 11:15:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13808481 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7DA9C78820 for ; Fri, 20 Sep 2024 11:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=IqkRbX7cvnqn3NxpF9ZaXzLw5MpKO313tJC374Y70as=; b=AQxD5cSUQJ1xT6+2m7luVJfdgw /w2z65Z8gUTGDq8a/fxs8iMyKEkolztbI69cqanGTY7ztwjPQeuXY+i6DEmslCSiuAL4MzgcaT9r+ kHjSwiWHCY3ZTU3Awx6tNA6gigQPc+8gZZqoqtJY1FBd1D3BeiZ0QgW27HJu+m3+uo8DDO+LBnru8 QJ6Dq1tkUFI0uGsYgnku2Os/bBVVbqh8yBDuS3Vst3Rr5WDeEsHIH8RGboXDc8c7jqFRPwJul0I6R ZbzsCANQA1AKnJ4RlUyCkn0Y7AfxUWsOCJE67z83HogrlfXcmumaBCxypYEy8sd9ni0j4xMz6b48d GOURKAOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srbdn-0000000C4IK-0rRn; Fri, 20 Sep 2024 11:17:35 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srbbb-0000000C41w-0anJ for linux-arm-kernel@lists.infradead.org; Fri, 20 Sep 2024 11:15:20 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-5365392cfafso1990006e87.0 for ; Fri, 20 Sep 2024 04:15:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726830917; x=1727435717; darn=lists.infradead.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=IqkRbX7cvnqn3NxpF9ZaXzLw5MpKO313tJC374Y70as=; b=Z/H3Zs9WZERRkPVLyjil/br7hT+6qEkc3MU1lUqGb0mPZ6eJgJIrnTJy6tUjjb91Hk FUAJq4Hp4GoJ7tKw0WV8AaX45i/ORtyYfNPiEChAdtsxW0qaR4IG8tUJ8mVwsPWQM0/i Bs/wEoNPAGQYZVvTEx7J+s0bNv6jCA6DagCarPEUWi4P+pcudPePZ5bEz/hkGaMrbl+v eehoUtLlFddo+NTQDPSVmI/hiqJOTRWSEAlUdNCn8k/9p0lXUkeTiyX2G95L10XVmNS+ 3LEObSqWOrNDJ7i5NLoy5pZhE67+lVe7ntzWZZXkvQGSRWxBaZDlOelyJy9cJD2w5/nD OHLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726830917; x=1727435717; 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=IqkRbX7cvnqn3NxpF9ZaXzLw5MpKO313tJC374Y70as=; b=Z5ZwM2pZmzuTbghM/6AbYgARzcSI0V4dH50mLrtdLIJ9fspzsW+WyjHaWXu/Ftxz+n g/vdZb/SDlTqXf9Io2b0rIKeIS09FgRTvMI5VjZQ8324ZsU25gtir9eEEpAHYckaDuWy UIQ+pR+C14jna4UaKIyYF2Ds/8WIbgTq3UZtZVjhACwXQsK9cSepm6CAlG2bWLt+4S0w 8q8oLiJTbDFkPKeMLbHynTUabosT0GFzrX1UA+9ZLaMWMTp1S+RGPvXOkg3IH/YrGUFm rhr5xUwHSJjLWEFYfEOJ6cYUfz2DoILg7BjbDkSKBAwnj+dI0AYfVXCCTBHABaQ/2pLi 6VHA== X-Forwarded-Encrypted: i=1; AJvYcCXu54HPkQQKsg/pXEuVxINh9OTpzV5WpXMsCHw7/ycA6QrTP0IqAggsIX4VENzspxAWPySPPi5Y+mbIdsZewoMP@lists.infradead.org X-Gm-Message-State: AOJu0YyV2zVmN8GUWLS0+aG3On+4+FL1xXz8W4l6uVjOle0CboljyZJ8 Bc+J7A5TOANNGtHz5jNOSQFuojAkCllSh0pl7ZgSWZjVBNUYpZJ8VKkCC9Vm0eZ62zxm3XFt1Dq / X-Google-Smtp-Source: AGHT+IEeYpo8PQHRLHcz+C5f+4ycbwcLk1+m5tXAcsiG5bPi6YAeNtkNq5R30PtO1zoYrVGQDM/Dvw== X-Received: by 2002:a05:6512:1191:b0:534:3cdc:dbfe with SMTP id 2adb3069b0e04-536ac2f509emr1546809e87.28.1726830916661; Fri, 20 Sep 2024 04:15:16 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90610f452csm838261266b.89.2024.09.20.04.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 04:15:16 -0700 (PDT) From: Linus Walleij Date: Fri, 20 Sep 2024 13:15:12 +0200 Subject: [PATCH 1/2] dt-bindings: leds: bcmbca: Add bindings for BRCMBCA LEDs MIME-Version: 1.0 Message-Id: <20240920-bcmbca-leds-v1-1-5f70e692c6ff@linaro.org> References: <20240920-bcmbca-leds-v1-0-5f70e692c6ff@linaro.org> In-Reply-To: <20240920-bcmbca-leds-v1-0-5f70e692c6ff@linaro.org> To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Broadcom internal kernel review list Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij X-Mailer: b4 0.14.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240920_041519_217345_8051AD56 X-CRM114-Status: GOOD ( 15.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Broadcom BCA (Broadband Access) SoCs contain a unique LED block. Add bindings for it. Signed-off-by: Linus Walleij Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/leds/brcm,bcmbca-leds.yaml | 88 ++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/brcm,bcmbca-leds.yaml b/Documentation/devicetree/bindings/leds/brcm,bcmbca-leds.yaml new file mode 100644 index 000000000000..7fe2222c0c58 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/brcm,bcmbca-leds.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/brcm,bcmbca-leds.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCMBCA LEDs + +maintainers: + - Linus Walleij + +description: | + The Broadcom BCA (Broadband Access) SoCs have a LED control + block that can support either parallel (directly connected) + LEDs or serial (connected to 1-4 shift registers) LEDs. + The LEDs can optionally be hardware-triggered by ethernet port + traffic. + +properties: + compatible: + const: brcm,bcmbca-leds + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + brcm,serial-shifters: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + This describes the number of 8-bit serial shifters + connected to the LED controller block. If this property + is definied, it is implicit that the driver is using + serial LED control, if it is missing, parallel LED + control is assumed. + +patternProperties: + "^led@[0-9a-f]+$": + type: object + $ref: common.yaml# + unevaluatedProperties: false + + properties: + reg: + minimum: 0 + + required: + - reg + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + #include + + soc { + #address-cells = <1>; + #size-cells = <1>; + + led-controller@800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcmbca-leds"; + reg = <0x800 0xc8>; + + led@0 { + reg = <0>; + active-low; + function = "ext"; + color = ; + }; + + led@1 { + reg = <1>; + active-low; + function = "ext"; + color = ; + }; + }; + };