Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6292916rdb; Thu, 14 Dec 2023 14:02:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJfLMZQEgX2o2BMVFqq5U2i3wHet4EJqDCLqLwZoe/4fX9Yrvrs9q61H2/fSQjA2DS/RFX X-Received: by 2002:a17:902:b696:b0:1d0:b6b9:2504 with SMTP id c22-20020a170902b69600b001d0b6b92504mr5050786pls.66.1702591354957; Thu, 14 Dec 2023 14:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702591354; cv=none; d=google.com; s=arc-20160816; b=BLFxKBYdEupk6s2osMxLUzANgYXe8QL11ovkj5QXRIHVCdQ0lHAwr/QbsCYWFCVoFc KMb4BScFL/+D9hgoFWjmyqOijC79kv0VmdBVtMCBaOoCbvDB80HQUpLEEkdDRTyG+f/V zsedwrgiTDNMO6yccLSd/jx0eQZF7N8KaB1wF352wubdCsxgvw2lJJuqSRObgZlkUSK3 oWa701ncrdAjQNbn4VSH/O5/FululRUpNASrF4yd5Emjlm1z639q8FJ/GXvYkOe2GjeG VNs3kVgmyqZG6WbkDJ7oR+YJj8QVcq0GXaDzwmO9uFcSKMvlYQhGgzboQJYVJM5rNm7b igJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=BPemIXHsGC2pL7OrGhnuYvM+owbrAtZjLeJGA6HoXBA=; fh=s9i0rkx/C3Ui85X5yfv+f3YLmaI02853wXVEaWWnGEA=; b=AqALsxztLtEMgf6e5r7U7aqQF0RlPfS2pwJW8EZ1YziK4EtkZWbBJNYpY8Cu6YXlYQ 2J9FP3cjn6iwPyC8+Fx/lRIMINf8fL2jKsdnzGmlbKtX3CEJQnvGv2xMSeGS39dLuuWf YZkqYsuSyhTUV61laPOoh0GF7J1KXwoe0mw6d5Ff7ztXVaO0+f5surmaGW3ueKGX33EM LalXaqotBpcYGRkrG7VFJIaIZkHqf3HWRx97ijlUI7zY26YjZ789hAo/jdaECNP7aIkT HyrDZD9V66tGrzNOMWq0cQPoF5dVna6o+tPjHLTOFgQ7kUPg0m8UMyWGXH1E6pDtKtaZ EU9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c6-20020a170902848600b001d0050e2452si1527318plo.45.2023.12.14.14.02.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 14:02:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-169-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9E4D1B21ABB for ; Thu, 14 Dec 2023 22:02:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 65020282E7; Thu, 14 Dec 2023 22:02:16 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f49.google.com (mail-ot1-f49.google.com [209.85.210.49]) (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 BC70F2C682; Thu, 14 Dec 2023 22:02:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ot1-f49.google.com with SMTP id 46e09a7af769-6d9f879f784so47022a34.2; Thu, 14 Dec 2023 14:02:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702591333; x=1703196133; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=BPemIXHsGC2pL7OrGhnuYvM+owbrAtZjLeJGA6HoXBA=; b=QNlEn0B49sH5JPtWTNLKwVzVSTAh7+9a4l6kEoIm+kAg6yk9pxddBn+6Wb3jNahfUN JU0TAS/GzCA6vYyMSfA+/qDEPmfospNgzCs+q6Qs+ks5X9qA8X8g15FPkKMbrHNxLCD1 ij6CpledXq56WX5y45xa3UM7+KFk+wVasXELVTmTqamyJdCF3aswa9ie4ygQb9JluhWN oLJlAlISS82f1RCQqlGu45CMbsUTevJ0SR4GUv7ZoMX9gCU0Q/POjkcuFaRnxfCY4Ygg rdXOHv31Qdt69UChmuYK73Jy6104vkc7GZdszgLI9m03mrYSogpG2PtqWoa60OP1YFCJ HPyQ== X-Gm-Message-State: AOJu0Yy3DVWeDRdIAbYLU/mKygxYzonXx8rw2dseqMbqW5dRC4KF5MI3 U+9GaV2GRWW2dF1sWb9nPg== X-Received: by 2002:a05:6830:2081:b0:6d9:f68e:3c77 with SMTP id y1-20020a056830208100b006d9f68e3c77mr10021326otq.11.1702591332732; Thu, 14 Dec 2023 14:02:12 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id t21-20020a9d7f95000000b006d9214c03f2sm3337212otp.80.2023.12.14.14.02.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 14:02:12 -0800 (PST) Received: (nullmailer pid 1010455 invoked by uid 1000); Thu, 14 Dec 2023 22:02:10 -0000 Date: Thu, 14 Dec 2023 16:02:10 -0600 From: Rob Herring To: Nikita Travkin Cc: Sebastian Reichel , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: power: supply: Add Acer Aspire 1 EC Message-ID: <20231214220210.GA988134-robh@kernel.org> References: <20231212-aspire1-ec-v2-0-ca495ea0a7ac@trvn.ru> <20231212-aspire1-ec-v2-1-ca495ea0a7ac@trvn.ru> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231212-aspire1-ec-v2-1-ca495ea0a7ac@trvn.ru> On Tue, Dec 12, 2023 at 05:49:09PM +0500, Nikita Travkin wrote: > Add binding for the EC found in the Acer Aspire 1 laptop. > > Signed-off-by: Nikita Travkin > --- > .../bindings/power/supply/acer,aspire1-ec.yaml | 67 ++++++++++++++++++++++ > 1 file changed, 67 insertions(+) > > diff --git a/Documentation/devicetree/bindings/power/supply/acer,aspire1-ec.yaml b/Documentation/devicetree/bindings/power/supply/acer,aspire1-ec.yaml > new file mode 100644 > index 000000000000..1fbf1272a00f > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/acer,aspire1-ec.yaml > @@ -0,0 +1,67 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/supply/acer,aspire1-ec.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Acer Aspire 1 Embedded Controller > + > +maintainers: > + - Nikita Travkin > + > +description: > + The Acer Aspire 1 laptop uses an embedded controller to control battery > + and charging as well as to provide a set of misc features such as the > + laptop lid status and HPD events for the USB Type-C DP alt mode. > + > +properties: > + compatible: > + const: acer,aspire1-ec > + > + reg: > + const: 0x76 > + > + interrupts: > + maxItems: 1 > + > + acer,media-keys-on-top: > + description: Configure the keyboard layout to use media features of > + the fn row when the fn key is not pressed. The firmware may choose > + to add this property when user selects the fn mode in the firmware > + setup utility. > + type: boolean Besides the naming, this isn't really a property of the EC, but really part of the keyboard layout. It seems you just stuck it here because this is part of the specific device. It is also hardly a feature unique to this device. I'm typing this from a device with the exact same thing (M1 Macbook Pro). Actually, all 3 laptops I have in front of me have the same thing. The other 2 have a Fnlock (Fn+ESC) though. On the M1, it's just a module param which I set as persistent. Though I now wonder if the Fnlock could be implemented on it too. Being able to switch whenever I want would be nice. That would probably have to be in Linux where as these other laptops probably implement this in their EC/firmware? What I'm getting at is controlling changing this in firmware is not a great experience and this should all be common. Rob