From patchwork Fri Sep 20 21:59:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 830082 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 D137C168BE for ; Fri, 20 Sep 2024 21:59:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726869554; cv=none; b=lr0c7B1vuUUX96CWlFDv7i2tfxXKH70p4CM7Ha47/acXjZ2VeKZXPX1R8k9xUeGVCTfpsvU4U5ir/Ox8ggT96rMhueR4zpRipWqCiqA88KikbmB0MKIVxGXls07FiMudU2ALKdFw7jnyrowClmDWo0KamwvAHPjroSfr1kcFeYc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726869554; c=relaxed/simple; bh=DvY9DFD9b9t8rQ1JtJZZEfq4XE+Tf9u8G6wm8mF4NTU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rvmL6PdoFsH3NOrLLf1BHQZJRXN4GD2CXgWGK+LxY7CRPqmQHHigGjaHMYsZ645E3CPFruAzPQfQ9PmBQ0fYVWaigrGWvQTCNSzYJgLNgPJJgfZFGEvcbfifBFAxXGoS3TK5WWXE3wQcgMg7Vgt0jnEiHFthK+8FYsSEOdWecME= 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=c3ieJLdI; arc=none smtp.client-ip=209.85.218.52 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="c3ieJLdI" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a8d4093722bso340136766b.0 for ; Fri, 20 Sep 2024 14:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726869551; x=1727474351; 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=PHFVyTEyWrghE/mlQrlwWY3jxy+uPAACrjFVhyBG0rc=; b=c3ieJLdIgnbdUj/b8XsDWEjxLo/7YodkkGvExcxboj/4k2nY/FyG1CmNIKDxY8JHW+ C7Cqz6i60hmSj+YW4Z2KlFaS3tYY8qE9GxUJpmo16ZJ8F25QObCTfsAEV37mzLI4njMV 4ihKE7LXJcQ2V53tOxRIr94rjo56OzKUj/p1zlEMOISnWyVagziF2Yn9buS/DMj+8vpc eqBV3ynadl4MAZMPFMxWhN7zPEV/XwX9jQZ97vbWU4PVEAfhvygmwwNSV1X7smjy6YeU bjRNiCQfWrrQwp0UyISD89Lu0Fekm61+tefeIhYtXyUr3HzA7dPw2O7GwL4qH6ygJ14S zFkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726869551; x=1727474351; 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=PHFVyTEyWrghE/mlQrlwWY3jxy+uPAACrjFVhyBG0rc=; b=psNaI70unJgWT6Yx79lcYbPsYa9M6OXtpgKpZ3L852mfKHEdlGd2B64ZtJXDZJ6UK2 QCOA5PBfLaKeW3QTqSMP6gG28VCKlVyUQRpsNOQijrreJIvlmYE4aPtHL2D41j7VeyPc ztFUNSoO3yq/O7gA4eqGvbRVDvScKvGJpw3Ap9wijXnGFaaeE1D/pANTfuuEBveTwCsF abC/JUb51toB84G6NUQNg1v+jcwOWTOuiN7m7Pt/cTMzAuSbP1JjilAbp/NOyBrvuYS6 k7cUBSlD/uarnRXAAAN6h2cMzdQ6PYUiLVEdJrTDpVt0pKxP29NEctwE3exlHD1LqwXD sKhA== X-Gm-Message-State: AOJu0Yxqx2IijeJDregmHTZ+fRSnyHISizZyM6Q/Qsldg86B8QEiaaDN sWr9u4NS0up/UuF+E7vCHXpaKY3qCpFM5N+9rF3EemChikKqI/QKpz2LGG2ZAI0= X-Google-Smtp-Source: AGHT+IEV1Riqig1Z9WNoxQk7VnkUSFUw5x/HTUfl+q6HhTFJEyduDswG93G45SjfxA6YdXEmAnixoQ== X-Received: by 2002:a17:907:e62a:b0:a86:b64e:bc4d with SMTP id a640c23a62f3a-a90d58045femr333982666b.44.1726869550832; Fri, 20 Sep 2024 14:59:10 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a90612b3a04sm900617766b.125.2024.09.20.14.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 14:59:10 -0700 (PDT) From: Linus Walleij Subject: [PATCH 0/4] leds: bcm63138: Add some new bindings and code Date: Fri, 20 Sep 2024 23:59:02 +0200 Message-Id: <20240920-bcm63138-leds-v1-0-c150871324a0@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=H4sIACbw7WYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDSyMD3aTkXDNjQ2ML3ZzUlGJdw6Rk0zQTw2QT8+QUJaCegqLUtMwKsHn RsbW1AFiCt2hfAAAA 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 --- Linus Walleij (4): dt-bindings: leds: bcm63128: Add shift register bits leds: bcm63138: Use scopes and guards leds: bcm63128: Handle shift register config leds: bcm63128: Add some register defines .../devicetree/bindings/leds/leds-bcm63138.yaml | 13 ++++++++++ drivers/leds/blink/leds-bcm63138.c | 28 ++++++++++++---------- 2 files changed, 29 insertions(+), 12 deletions(-) --- base-commit: 98f7e32f20d28ec452afb208f9cffc08448a2652 change-id: 20240920-bcm63138-leds-1bc5f41c47cd Best regards,