From patchwork Thu Oct 10 14:10:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 835303 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 1AACE1BBBF4 for ; Thu, 10 Oct 2024 14:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728569457; cv=none; b=H0z0nL4ZPSjungnG4sMJZ+G12p2M62DFxZliwFV93jio6xkm/yO4owFVuOiCQwoUA9P+wog+xdKOJgscn+e+eMcY1N0gULdeVhVbml5AYV3A3twTar6F2DTfh+u/jE2slNG20Z0q5ZdvpYfJ6qs0JZAX8JK8Xxy0o7WP2jn7NAw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728569457; c=relaxed/simple; bh=U5fUG1+TZhgNOxPIZGjJlbfOBXv21gJ5RbbrwNyZFvU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=T00Of1ERmjVX5tjkK1LjnZzoRCE9PJZASLut2+E730BuapZcA+1q/kSGYXOhnAjNAQzf6dQKpDmVnh6u4US/ndJrdci9WLNguFcQYiE5LFk62TlqpHABCpgLAyc8oNX/4A9505CcFOHlHrZJPF7jWwKM0swV3numkEAU8Y9vseg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uB9tL3aa; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uB9tL3aa" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a83562f9be9so123266266b.0 for ; Thu, 10 Oct 2024 07:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1728569454; x=1729174254; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=pr/Di5t8rnNhD42fefKyTB/dVh53BZsjOGP+dMUNL2I=; b=uB9tL3aawQHj1bt2vXMigQdA+P4XWNc/8F2HZ6r3YUwTTaQpnXVnpWgwmsBKw3S9+K ATGbhcoaU2TcjZGQ/cnZ7urdfq/u3j33zH8cvHIY22NJgvJ74iWKYGwKSX9gx+3YYgEV VWSvul42xBXcZgThJHFZL30AgsrLNOLjoOU72ldyBGtxDH2eXDCec1WjXW1Rg9KOet9w 153iGiKu/hyzxZUrncOSKeUeOO8l4hYIHGAq1qAxeHsElMlL5lz8EkdMvDeEcZ9TuT1R h7N6OZhSXdYOTBj7D5Yc42vFZRRUvCDwkH+U+xaK0GlJB6BFGHduNFQJ0qImLm65aU9f VXEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728569454; x=1729174254; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pr/Di5t8rnNhD42fefKyTB/dVh53BZsjOGP+dMUNL2I=; b=bpcigoCXEn+nfxuROTkgFf2H+B5PrhC1OhmKhSrY00xdjnRtWeaLKuMLtEVfKcl3eP l1kglqsEPTc4TUZ2ip4u5hf+siBzJWxU/p3fUbFwzoVtCpzihVAfAhRmMxQSK/wqD4rk d7LHGvGY7Q2F4gMS+8srTr39mNP7qvnmC/7x69uZz9e5wfN2D6Ws+aVqCp9ReOl6NSoG gXUMRGdxayyRognCeM3z3eX9urkUyc4s27ZAAvyPG6Pb+SycpAa/K5N/tf1aniQRVyLf oZxMdsCTrinuv+ispCIdJ9LDQHECFniSWxmzu+Bw3wy3ouLfUzSIhQn2W9cXFzCApu3q OH2Q== X-Gm-Message-State: AOJu0Yw9nCUxKxw+4eXg7Vb7pdBSV18UyCHLAYNp+mlJErTFPmZUaMD3 eq4JKwDKYsD0314+5nMBaibD2Qfqbz7dBqc8B/MqjKa3ejGl+gvdlUlbg1oq/FY= X-Google-Smtp-Source: AGHT+IEpLoYQ9BKs/spoXp/Tyg7YA/Vt5Mplc2HZ6lJYitfgHM+6tUQOBHl5dNxkX1ypBMMIc8cSag== X-Received: by 2002:a17:907:d59f:b0:a99:7869:a1e3 with SMTP id a640c23a62f3a-a998d313d4emr563262866b.40.1728569454298; Thu, 10 Oct 2024 07:10:54 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99a7ec5704sm94540866b.23.2024.10.10.07.10.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 07:10:53 -0700 (PDT) From: Linus Walleij Subject: [PATCH v4 0/4] leds: bcm63138: Add some new bindings and code Date: Thu, 10 Oct 2024 16:10:49 +0200 Message-Id: <20241010-bcm63138-leds-v4-0-cdb80780a555@linaro.org> Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGngB2cC/3XMSwrCMBSF4a1IxkZyk9uXI/chDvJqG6iNJBKU0 r2bdiBacXgOfP9Eog3ORnLcTSTY5KLzYx643xHdy7Gz1Jm8CWccWcMZVfpaChA1HayJFJQuWgS NlTYkm1uwrXusvfMl797Fuw/PNZ9gef+VElBGNRSsrkBwlOw0uFEGf/ChI0sq8U9ebznPvC2lR IOmtC3/4eLNgTHccpG5kk0ja4slquaLz/P8AruOnHopAQAA 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, Linus Walleij X-Mailer: b4 0.14.0 This brings over the few know-how items and little things I found about the BCMBCA LEDs in my previous duplicate driver. This was tested on the BCM6846-based Genexis XG6846B. The main addition is the ability to define the number shifting bits in the serial shift register which is necessary if the previous boot stages have not set up the hardware properly before. Signed-off-by: Linus Walleij --- Changes in v4: - Rebase on v6.12-rc1 - Add define for BCM63138_GLB_CTRL_SERIAL_LED_CLK_POL - Rename the BCM63138_POWER_LUT to BCM63138_POWER_LUT_BASE0 - Link to v3: https://lore.kernel.org/r/20241004-bcm63138-leds-v3-0-ba99a8e464b9@linaro.org Changes in v3: - Mention in the DT binding that hardware defaults will be used if the property is missing. - Link to v2: https://lore.kernel.org/r/20240928-bcm63138-leds-v2-0-f6aa4d4d6ef2@linaro.org Changes in v2: - Drop the u32 $ref in the schema, -bits is a standard suffix. - Fix algorithm for shift register configuration. - Fix spelling errors and numbering errors. - Link to v1: https://lore.kernel.org/r/20240920-bcm63138-leds-v1-0-c150871324a0@linaro.org --- Linus Walleij (4): dt-bindings: leds: bcm63138: Add shift register bits leds: bcm63138: Use scopes and guards leds: bcm63138: Handle shift register config leds: bcm63138: Add some register defines .../devicetree/bindings/leds/leds-bcm63138.yaml | 11 ++++++++ drivers/leds/blink/leds-bcm63138.c | 29 +++++++++++++--------- 2 files changed, 28 insertions(+), 12 deletions(-) --- base-commit: 840f68b874cfa5990e151f8716d33bf08098dda7 change-id: 20240920-bcm63138-leds-1bc5f41c47cd Best regards,