Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1431812rwb; Fri, 5 Aug 2022 01:35:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR4YqMPYDf+CRQLGW/bdKFd4X7XPZNyB1NujtFAJ6C9agYw2gS/7eeU3fhstP+KOj5vmaBEL X-Received: by 2002:a17:902:e94f:b0:16d:847b:3343 with SMTP id b15-20020a170902e94f00b0016d847b3343mr5876467pll.103.1659688519352; Fri, 05 Aug 2022 01:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659688519; cv=none; d=google.com; s=arc-20160816; b=bjlpGrRHw9BZ8FX0h1TWKJAl2XR0YQKG+z7HFUoL2oeINuLC+p/eglGZht430r3tTm 6XVo7EJ/jP8ZL2KqRelVhd2ByyAXF5F8XSKpxlsN6Xspi4ftoLWh7zf0S/yPUpl/0cTY RJD3r3wLv/R6sK+nW1WvM+v9khIbZyBUBXxUklpidHAGsJkuau5tyg2zqMrA6GO+LgjQ EtSq6Fg2zIWAZUi7h5EeCQ0yFM1vMMW45MJO1sucll94jFFLtfYAYV/b5aN9MORRdTS8 qiV61jY07AFWVnIX+O5e+uoWor3+tf7Y3G27+AEuTJgkEPrhpWnpTknxtflIe73lJBvL Wzvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=g+1gGUdyp6ZHUgxb6Gt0DXeBu7G+WTFmII/7zcLOU9A=; b=mQh6uwlnlrFSkapwzd8zv8gP2aIXNP8DiM1gMYf14U8Y5ednLTXYCLnC5PmdjoGZSJ 55JwA05IWdWfVFaQsh6wcPd6xoFAQD7XW7nMOhiesyuwGUAWBAmUWtkMX4mJ9YzTPnJ2 EcVkHto2A/52dDsDvB1LUAmo8QciLzrRntzrmrQD+KMlGaSpwpZRNyn6DV9atGfrrFiR YQvGcg1MEA2sYK40FZGLuD6J09+tIjdOtkUgY5Sj9A9V5Ly2+nfA6YuB5ZD7j2oPyKkL d3rrhbHUMMq8iP7qNW2EO6ro6HP/G1aBOB1dEn733EL9fs0qb5ZrbHjPL52PKVqq18tE +/+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm2 header.b=TsuywTsC; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=3UJ8h2ts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020a63b44f000000b0041c113bc5e8si1132976pgu.147.2022.08.05.01.35.04; Fri, 05 Aug 2022 01:35:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ljones.dev header.s=fm2 header.b=TsuywTsC; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=3UJ8h2ts; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240289AbiHEITZ (ORCPT + 99 others); Fri, 5 Aug 2022 04:19:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240197AbiHEITX (ORCPT ); Fri, 5 Aug 2022 04:19:23 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D666174DF7; Fri, 5 Aug 2022 01:19:21 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id E7E33320016F; Fri, 5 Aug 2022 04:19:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 05 Aug 2022 04:19:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1659687558; x=1659773958; bh=g+1gGUdyp6ZHUgxb6Gt0DXeBu 7G+WTFmII/7zcLOU9A=; b=TsuywTsCE03Sy99nJPfIovANLEDhP/nb4y6NsRSNo FE5kHRyWx9vT3ipH09/jI4C+xJgMCREo5JC9VOUNQ+mGC16Pf+MJVwLGft91bpkY DvAPGmE5gXti9da9qB1KYWZ/2uQ3LSEy/6KZmgPaoOb6EtJKw5cNTAiXq1djC77/ QcIXCgF+L/A9XQ9q0B3aA3A0tVSiJt1OJgNfC1/V4IHbBMD8ZDUVAUMrU6OcI3jQ NYKYsR3PN8WPsB8gR6RiGp8KvIgwQYVthwUnEUookZWq1n5LGbrr2nmNSAxLlhfq zQrKuDJJOrGhC5OpryGKT2hJ7Vih/u9xjpmg7y9iEjeiA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1659687558; x=1659773958; bh=g+1gGUdyp6ZHUgxb6Gt0DXeBu7G+WTFmII/ 7zcLOU9A=; b=3UJ8h2ts2cM1SSTgNG74UBc9xNJYKMFP3DsZqdmPFd5N25HgnXB MgYatxvcBrBMrnYEjUMUBQKR7tZLKJn8dpMEvQiOBGo5n12qnyRJFPSy2WgnNOXR cgjQ8lxPBsht5Gu9yENNwPT2eTC575N83c3x/2gAk0JTraEpUtKjGA1cAI6Cm/f5 cy4eZ2td/ImsAbKgDMOQ+Nher3hQn1bdYJAk3V0IkRWW0xCUJ7LZ8dlIciIPJkN2 0DukkpDbGyozRIfszJWN1xqVCln2JXAY1J+GBoy1McWh/kIo0yUdOpIWSsL9kR4h iV+RIG/AXP1mPy5SKFTjkq6i4/QjXUIAD2g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdefuddgtdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpedfnfhukhgvucffrdculfhonhgvshdfuceolhhukhgvsehljhho nhgvshdruggvvheqnecuggftrfgrthhtvghrnhepgfdujedthfduudekffefkeeiffdttd dvhfegudduueffuefhfefggeefteevvdegnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheplhhukhgvsehljhhonhgvshdruggvvh X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Aug 2022 04:19:16 -0400 (EDT) From: "Luke D. Jones" To: hdegoede@redhat.com Cc: markgross@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, "Luke D. Jones" Subject: [PATCH 0/5] asus-wmi: Add support for RGB keyboards Date: Fri, 5 Aug 2022 20:19:04 +1200 Message-Id: <20220805081909.10962-1-luke@ljones.dev> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a patch series to add RGB support for ASUS laptops. The laptops with this RGB tend to be the TUF series of gamer laptops. The first step is initial bringup of support using the multicolor LED API. These types of keyboards implement a slightly more complex interface than just RGB control however - they also have modes with can be static LED, blinking, rainbow, color cycles, and more. They also have some custom animations that can play depending on device state, such as suspended playing a fancy colour cycle, or playing a "wave" animation. Two of the patches add support for these features. The last patch adds documentation in: Documentation/ABI/testing/sysfs-platform-asus-wmi Some notes: - this patch series obsoletes the previous RGB patches by myself - it is not possible to add attribute groups to multicolor LED as they get overwritten by `led_multicolor_groups` in `led_classdev_multicolor_register_ext`. - the methods for RGB control do not provide a way to fetch exisiting state, so these methods are WO. - There is an existing `asus::kbd_backlight`, this provides a 4-step brightness to the RGB (off,low,med,high) individually to multicolor. I was unsure of the effect of adding a similar path so have used the `asus::multicolour::kbd_backlight` name to be clear about purpose. If the `asus::kbd_backlight` is off, then no RGB is shown at all.\ I'm hopeful that this patch series addresses all previous feedback related to the obsoleted patches. Luke D. Jones (5): asus-wmi: Add basic support for TUF laptop keyboard RGB asus-wmi: Add support for TUF laptop keyboard RGB mode control asus-wmi: Add support for TUF laptop keyboard states asus-wmi: Document many of the undocumented API asus-wmi: Convert all attr _show to use sysfs_emit .../ABI/testing/sysfs-platform-asus-wmi | 50 ++++ drivers/platform/x86/asus-wmi.c | 263 +++++++++++++++++- include/linux/platform_data/x86/asus-wmi.h | 5 + 3 files changed, 311 insertions(+), 7 deletions(-) -- 2.37.1