From patchwork Wed Jun 2 06:12:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roderick Colenbrander X-Patchwork-Id: 12292873 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E56F1C47083 for ; Wed, 2 Jun 2021 06:13:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0D01613AD for ; Wed, 2 Jun 2021 06:13:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbhFBGP1 (ORCPT ); Wed, 2 Jun 2021 02:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbhFBGPZ (ORCPT ); Wed, 2 Jun 2021 02:15:25 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F24C7C061756 for ; Tue, 1 Jun 2021 23:13:42 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id ei4so1054225pjb.3 for ; Tue, 01 Jun 2021 23:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaikai-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nPQLnAvO0NoLejjj/G5agnrfa1ACwjvpC6bBzczsjoQ=; b=QWvkVse8D3Vu6Qi0ZdMcQZMAflrIM9G2DvpK0M75esTzRE+Io1TMd2rIlNcpBoDhTR 1Bk7LgJD2runhimlGs8pfmymjBAwr5D27pqj3NVLnk+PiFWVGstv50btcVfSZrNgSsdd y7E/93y04GVrtE3ysUq7KmSDYT2UrDrV+2t8oWOwNpYoOvAlPoF8iH2fwBzvF0q5d933 CGi7E7VRkiHAWIXy1ucF3O/sLhQIlexbSRjP9+3Xt2sfpz6iMLT/QWHDdEceahTA+P47 KtSX0UNPmpLwYCJ0qRnH/BVr5HzeY/H4XklbrbncsVz21bhFuXfw6Bi3KpYbyuMSM9Zk v2FA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nPQLnAvO0NoLejjj/G5agnrfa1ACwjvpC6bBzczsjoQ=; b=pfOoBygqGAFTRJ6XyWxetiYioDMfFQ5IXWWu722qIaCJZ2JLy1djyv++d8OEvSRzGR C1bgDKdsp8w/U4pNRkhxZcmupxWMG8DT95HHxoNlHuoV0wt6CkFIre3GViAPFrNX8RTV MG4SAo5T622x4Y6HL/lW917kxZ3LG+krfKPtQD1rBWHFNt5T/Ih8b/vX+mfgSp7/NQrz QD/WrcWjPCM5DXwVUytiyTBlOOLMFWxuPGBhSDLMXiLoXb2oP8M3q5ah4O9/roamuhI6 yI0648cCwvboNol9sBgRiObtWkZnDLOOTfl1rGbnnTnwW+NZsOLeRpfyaXRaPD8s25Oq qGBg== X-Gm-Message-State: AOAM530YbF0OrXm0Vr/TD60f7UYSqpfUcGhHgp6PAgsGbWPPgwx7tPz3 R7WuvHBAGdOoc9ZqvjoHGO48AQ== X-Google-Smtp-Source: ABdhPJyAMBgEJSTHOvy9/THVLT+kpKc/NwtJhTyDfUAtIvdvHALTgX0N/dNqWMKbnrjrM+zLPJldbQ== X-Received: by 2002:a17:90b:247:: with SMTP id fz7mr3839418pjb.137.1622614422454; Tue, 01 Jun 2021 23:13:42 -0700 (PDT) Received: from localhost.localdomain (cpe-76-87-77-78.socal.res.rr.com. [76.87.77.78]) by smtp.gmail.com with ESMTPSA id k20sm16535374pgl.72.2021.06.01.23.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 23:13:41 -0700 (PDT) From: Roderick Colenbrander To: Jiri Kosina , Benjamin Tissoires , Pavel Machek Cc: linux-input@vger.kernel.org, linux-leds@vger.kernel.org, =?utf-8?q?Barna?= =?utf-8?q?b=C3=A1s_P=C5=91cze?= , "Daniel J . Ogorchock" , Roderick Colenbrander Subject: [PATCH 0/3] HID: playstation: add LED support. Date: Tue, 1 Jun 2021 23:12:50 -0700 Message-Id: <20210602061253.5747-1-roderick@gaikai.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Roderick Colenbrander Hi, Earlier this year Sony published a new driver 'hid-playstation' to support our new DualSense controller. During the review process, the maintainers of the LED subsystem expressed that they wanted to be more strict about LED naming moving forward. There was little time to make the necessary changes for Linux 5.12 at the time, so LED support was taken out for Linux 5.12. This patch set adds support for the DualSense lightbar and player LEDs based on previous patches, but using a new naming scheme. The DualSense lightbar is exposed using a multi-color LED and is named after the 'main' input device and uses a name like "inputX:rgb:indicator". The player LEDs didn't have a suitable "function" type defined by the LED subsystem. This patch series introduces a new "LED_FUNCTION_PLAYER" type for these LEDs. This type is then used for 'hid-playstation' and long-term will be used by 'hid-nintendo' as well. The overall naming takes the form: "inputX:white:player-1" for the first player LED on a DualSense controller. Regards, Roderick Colenbrander Sony Interactive Entertainment, LLC Roderick Colenbrander (3): HID: playstation: expose DualSense lightbar through a multi-color LED. leds: add new LED_FUNCTION_PLAYER for player LEDs for game controllers. HID: playstation: expose DualSense player LEDs through LED class. drivers/hid/hid-playstation.c | 157 +++++++++++++++++++++++++++++- include/dt-bindings/leds/common.h | 3 + 2 files changed, 159 insertions(+), 1 deletion(-)