From patchwork Mon May 23 19:32:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 12859372 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7B09C4332F for ; Mon, 23 May 2022 19:39:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232167AbiEWTjx (ORCPT ); Mon, 23 May 2022 15:39:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232194AbiEWTjg (ORCPT ); Mon, 23 May 2022 15:39:36 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FBE0DFF4C for ; Mon, 23 May 2022 12:32:08 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id s14so13973218plk.8 for ; Mon, 23 May 2022 12:32:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1wnCjP5k4eX2zs3WnXnoMhMGUr28/cypjl3o/2Z6tes=; b=f96L1AT0mMjn1RyAtdZVgkH33HDZ3/VSA/ng8TU23JHBipyGveEAF7DkL2d00oCE6H zIMx6xWWYXMx89FXNceFqwrVXxVGbmsTeNwpkhojYLOXsICJ9JOQ1LKjsOgCtbFgOoK2 kZqvPnK/6aGbuIab5p6ELE0mTUnLLj4sS8rFM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1wnCjP5k4eX2zs3WnXnoMhMGUr28/cypjl3o/2Z6tes=; b=7AlPrEF3Up2ikL3qb7czvg50XO7JWuMZzyP1Thw8KfEywY1+9lbDJQoECMFZs/uAR7 K/K+xGrf3uAWAK5xcQ0kZumO/SF61iD1aYZqn5WxBZvNDaoHGXxrxlZ1wSqiZDHqlsK+ hzqJ2MQw0QjekCst5IJ0CJPY7tCtYv09VBN6MLOrAEltD3WImsZbxndKzL3uFxFtWPUu OaFhbg7BbvPRkFNyd+A968Q6wzPT8N6Br+OtNbXbsjPZYaIn4TG7+Gm0gnEqwh9BmY1G 8EVfIIBSfrhAw/pchMBcupYKvymy1hQZHS2+rND9WRxA37lV6ctZGdRgWXR11QPqfMw5 gNGg== X-Gm-Message-State: AOAM531yHiY1Q0yyXM4AFNO1TWxRJUGz0y7aGd6mdvPuf5dvDeBnIE35 Wovg/JQYMzNGA5Q/nS8Vcl7FbA== X-Google-Smtp-Source: ABdhPJxX6NxzBbaQ+Q2IdSpZVtxZcdeQA8n0q/eIC47fkQbMLtVd2ZTJsqFGaSkDZy+dM6YShA+Ltw== X-Received: by 2002:a17:903:1104:b0:15f:bce:1a0c with SMTP id n4-20020a170903110400b0015f0bce1a0cmr23570068plh.149.1653334327861; Mon, 23 May 2022 12:32:07 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:46dd:d5d8:48f6:713e]) by smtp.gmail.com with UTF8SMTPSA id p8-20020a637f48000000b003c14af50631sm5138505pgn.73.2022.05.23.12.32.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 12:32:07 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Douglas Anderson , linux-kernel@vger.kernel.org, Matthias Kaehlcke Subject: [PATCH v2 1/2] arm64: dts: qcom: sc7280: herobrine: Don't disable the keyboard backlight node Date: Mon, 23 May 2022 12:32:03 -0700 Message-Id: <20220523123157.v2.1.I47ec78581907f7ef024f10bc085f970abf01ec11@changeid> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On herobrine boards the keyboard backlight is controlled through the PWM LED driver. Currently both the PWM LED node and the node for the keyboard backlight are disabled in sc7280-herobrine.dtsi, which requires boards with a backlit keyboard to enable both nodes. There are no other PWM LEDs on herobrine boards besides the keyboard backlight, delete the 'disabled' status from the keyboard backlight node, with that boards only have to enable the 'pwmleds' node for keyboard backlight support. Also add a label to the 'pwmleds' node to allow board files to refer to it with a phandle. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- (no changes since v1) arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi index 9cb1bc8ed6b5..55b513912e79 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi @@ -295,11 +295,10 @@ pp1200_wf_cam: pp1200-wf-cam-regulator { /* BOARD-SPECIFIC TOP LEVEL NODES */ - pwmleds { + pwmleds: pwmleds { compatible = "pwm-leds"; status = "disabled"; keyboard_backlight: keyboard-backlight { - status = "disabled"; label = "cros_ec::kbd_backlight"; pwms = <&cros_ec_pwm 0>; max-brightness = <1023>; From patchwork Mon May 23 19:32:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 12859371 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1441EC433EF for ; Mon, 23 May 2022 19:39:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232220AbiEWTjv (ORCPT ); Mon, 23 May 2022 15:39:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232167AbiEWTjg (ORCPT ); Mon, 23 May 2022 15:39:36 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 033051078B2 for ; Mon, 23 May 2022 12:32:09 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id 202so7551585pfu.0 for ; Mon, 23 May 2022 12:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=se1gv6FKWc2mQF+0R3JQfs3NqSabq03RBDglYxWWN7A=; b=le2gVkm6L5LuiRam9nCTm4Wj24nwfbU+3wQgtb8kUHOKzxB30srlECttSlis+VEBem ey6tBpE9xSszV3OWSFNmqsRtEaN8tBU+xkf0Sc5stjtqfrxfrMZWMw4wr4zOnmbokMjZ h/E0tNLgfUefQnFH7GEgsYGLM24ECovsSXpNY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=se1gv6FKWc2mQF+0R3JQfs3NqSabq03RBDglYxWWN7A=; b=qhWss04TNFVdO2o6pmbj5hY1k0i65mZ0+2XK7WdwUNMDfHjFHAcht0cVndI8mNx0Ry ywJtJtOwzihI+hS3cpLP5tauYqa8m1uAT/msj/KOCWaVzoPR0IS3m0Sle9MtSb0A6nMu Y9zTua0mzNTrFUw7lRtVtTe2vhmgbZLtWkt3R29old0+wDkuwQNnMIgcb8SW9Zw851/K BWJG2VReurdb1UQ3BVk6/zdy89cgoiQUtBBP4CkBuBiWwb484ZpPCvHHNcoVaM3Yanc0 2sLAvkgjDweiYnrpEfThx97gTVZyrdjiqdPv5HPh++Vx+OvTcmxr+3kUK+hilb25b8ji e5uA== X-Gm-Message-State: AOAM530H6YCiMHPrujrylRbE8oZGho6nXlwb+yDhR889hfIZcw9Dc4XI ojlOEr3DFz4TaeItSPiTA5N/Gw== X-Google-Smtp-Source: ABdhPJyI4gzbQl+r37YzEYsQL+OZUIjN0paUW09/Ya7gT00eZ6ZpWdUH8xzShQ9aAGIoMHAPIiwofA== X-Received: by 2002:a05:6a00:140f:b0:4e0:6995:9c48 with SMTP id l15-20020a056a00140f00b004e069959c48mr24736401pfu.59.1653334329218; Mon, 23 May 2022 12:32:09 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:46dd:d5d8:48f6:713e]) by smtp.gmail.com with UTF8SMTPSA id q9-20020a170902f78900b0015e8d4eb292sm3518878pln.220.2022.05.23.12.32.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 12:32:09 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Douglas Anderson , linux-kernel@vger.kernel.org, Matthias Kaehlcke Subject: [PATCH v2 2/2] arm64: dts: qcom: sc7280: Enable keyboard backlight for villager Date: Mon, 23 May 2022 12:32:04 -0700 Message-Id: <20220523123157.v2.2.I3d1b5a109675a0cc90e66a4e0b45cb823edbdee7@changeid> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog In-Reply-To: <20220523123157.v2.1.I47ec78581907f7ef024f10bc085f970abf01ec11@changeid> References: <20220523123157.v2.1.I47ec78581907f7ef024f10bc085f970abf01ec11@changeid> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Villager has a backlit keyboard, enable support for the backlight. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- (no changes since v1) arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r0.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r0.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r0.dts index d3d6ffad4eff..290cd3b1f1f1 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r0.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r0.dts @@ -76,6 +76,10 @@ &pcie1_phy { status = "okay"; }; +&pwmleds { + status = "okay"; +}; + /* For eMMC */ &sdhc_1 { status = "okay";