Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1150630ioo; Sun, 22 May 2022 05:24:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz74kmsjvCF0pqK3DEao0F0xyto+eFeldOeryKTlLjoN/4AT7lj/EntFfD+yxQKUcJZ0Tg3 X-Received: by 2002:a17:906:7313:b0:6f4:9079:2b2a with SMTP id di19-20020a170906731300b006f490792b2amr15694189ejc.377.1653222264089; Sun, 22 May 2022 05:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653222264; cv=none; d=google.com; s=arc-20160816; b=VYHhF+CWAfK5cwwAlkQCITL1ESt69Er+HqHw/uw/FMt5hnB4mp77g/Uyt7GPp1ssJc HeQcMp3hwz/kz3D+OGkLmyvp2YmIz8ZxghJ4daDeLpsgZDQXqWidrRvGvQPVbvrsTHEo uxU51Yk0JDDuzgEm+7RXSzUlbbH6RkUNnKO7SzVvsNy0MOrzUmktuEDsfH0Vd1ct23DK entiBzPBWRO9m/fhzifAt80efLQqgap1GuKC26mO+UDe9zpVivGX2aaVsOvqySL7NdyS T8QI8vxOShE+sATpkmM7mP5zW15nYiH7+dJMWyW1haWf7Yw4u2pdPi79M/lAwTVAcVDY huZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rbQPTM72ehryL5FYoSB2A2iBAshky0xebXkx4czYmNQ=; b=OevUpqPkZb1P2nStzrxPAyBcGQ/4OrT9fk+UowZKPDkQD8Qqh2dLdjk9fkpB2wlgtQ L0zKwa42B8HLBLDsU/hxTtUsgSvqkORvlnxv6ajpaG9mw5DxCm1x0/dxkm9d2zfYwJMc LDT1bK8KLUiTfhpXLCrA2IU7wahtdR6IMSCr4FtlThA0npee2/u9ftlp4P871DJMrgFd 5zO7R1wUUn9ExFc15FaNghDWouqHzn7WSPO32e0734vhen5J4c2CzRAkI7P1e7QmU5C+ gATowRhQSMVLSuw5esr8JSO34damK9QVAdo9+Gg6DKcfr2uROK0I9FOzQYNFmnYemk+L zFbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IPxznzUv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p13-20020a1709066a8d00b006f379d6f423si12491336ejr.582.2022.05.22.05.23.57; Sun, 22 May 2022 05:24:24 -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=@chromium.org header.s=google header.b=IPxznzUv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353506AbiETUie (ORCPT + 99 others); Fri, 20 May 2022 16:38:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348663AbiETUid (ORCPT ); Fri, 20 May 2022 16:38:33 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D04D18540E for ; Fri, 20 May 2022 13:38:32 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id jx22so4181840ejb.12 for ; Fri, 20 May 2022 13:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rbQPTM72ehryL5FYoSB2A2iBAshky0xebXkx4czYmNQ=; b=IPxznzUvQHNK+9WYxlWPVLNwNj8TMm7NjtzE+16cNKZ7k1Cf1JV3GKzDx5ZrujI/QS pR+FSDdXdcSJ/Xwso2HdPJSioY6htXGkjVUEHNZOzb6syjEJTudTxwgdBS4pCtkJ/1OJ 9KRXQpOW9LNh2cpV3Uk4IEODtoEFlosdmyXC0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rbQPTM72ehryL5FYoSB2A2iBAshky0xebXkx4czYmNQ=; b=jWACJBhrfsB/sR+7XRYdAvIDgQfU0SUSEiM1RBtZuluDlpd8V9O/eX65NtSAFE7Kn2 CvBrdFx7KS2tpBhohgfflu+OGfe/4bJySppQrbgTF74sghmPGP806qZg4fQlItCJ3Lse LkV5t8IDXbnKsNBRmaQPLbs2dxLVwJqWY9JoCNbfZt2pjkQv42Ombuvz4QBNwm+SFvP5 g/wKMFgn/SjNk4M68O09Jsw/eeQMosmJ6j+BQI7Ref7scujZuH2+I592Rk6BFaa2ncRG 29ggrEs0ylYLx6ZVMf9gkYNHoyEWvdIX4GCPj3skggO7qVBbMAdKaOwaGamm7b+KoJL8 Mrqg== X-Gm-Message-State: AOAM530pp6Tv78LZExrMbCZj+Y3xtwutq1MHc8U4Kf5fD9RcDp75ruYC TCG750AEj4EsKkcv2VkKwyLsGs1y9irCsX3hkec= X-Received: by 2002:a17:907:7204:b0:6f4:2c26:5f7 with SMTP id dr4-20020a170907720400b006f42c2605f7mr10021921ejc.506.1653079110896; Fri, 20 May 2022 13:38:30 -0700 (PDT) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com. [209.85.221.44]) by smtp.gmail.com with ESMTPSA id m5-20020a17090677c500b006f3ef214e28sm3576209ejn.142.2022.05.20.13.38.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 May 2022 13:38:29 -0700 (PDT) Received: by mail-wr1-f44.google.com with SMTP id e2so1320061wrc.1 for ; Fri, 20 May 2022 13:38:28 -0700 (PDT) X-Received: by 2002:a5d:5009:0:b0:20d:846:f4da with SMTP id e9-20020a5d5009000000b0020d0846f4damr9841738wrt.301.1653079108326; Fri, 20 May 2022 13:38:28 -0700 (PDT) MIME-Version: 1.0 References: <20220520124834.1.I7c51c6255bb53086a82c5b3f4fafffcc5ccbc4ae@changeid> In-Reply-To: From: Doug Anderson Date: Fri, 20 May 2022 13:38:15 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: dts: qcom: sc7280: Enable keyboard backlight for villager To: Matthias Kaehlcke Cc: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , LKML , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-msm Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi, On Fri, May 20, 2022 at 1:29 PM Matthias Kaehlcke wrote: > > On Fri, May 20, 2022 at 12:57:50PM -0700, Doug Anderson wrote: > > Hi, > > > > On Fri, May 20, 2022 at 12:48 PM Matthias Kaehlcke wrote: > > > > > > Villager has a backlit keyboard, enable support for the backlight. > > > > > > Signed-off-by: Matthias Kaehlcke > > > --- > > > > > > arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r0.dts | 8 ++++++++ > > > arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 2 +- > > > 2 files changed, 9 insertions(+), 1 deletion(-) > > > > > > 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..b6a6a1454883 100644 > > > --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r0.dts > > > +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-villager-r0.dts > > > @@ -58,6 +58,10 @@ &ap_sar_sensor1 { > > > status = "okay"; > > > }; > > > > > > +&keyboard_backlight { > > > + status = "okay"; > > > +}; > > > > Instead of doing this, can you just get rid of the status = "disabled" > > in herobrine.dtsi? I don't think there's any benefit to having two > > levels of "disabled" in the herobrine device tree. > > Sure. > > I guess the 'disabled' status was put as a micro-optimization to avoid > probing the 'pwm-leds' driver on boards that don't have any such LEDs. In > practical terms it shouldn't really make a difference in terms of memory > or CPU. Just to be clear, I was suggesting leaving the "disabled" at the pwm-leds level but removing the one at the "keyboard_backlight" level. I don't expect us to have any pwm_leds on herobrine devices that aren't for the keyboard backlight. If/when we do we can always add the two-levels of disabled back in... -Doug