Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1916011rdb; Tue, 20 Feb 2024 10:41:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4gXTk2cczdlSWUyCW/Q0pDSarPS3Xrc4vT8+C4bKH2Il6CJv0/745OcXZyH4YdvVL+Cf0tB9bXUxMG9k/CHgBd6MzedEibuM6YkRKEA== X-Google-Smtp-Source: AGHT+IHZV+7ujWlR48Jz59L3Y9EMDa0+wtk+0zeliRy4nAwwdTmZgrrZHehj3rOOAgm/edlkQLSo X-Received: by 2002:a05:6a00:1da9:b0:6e4:8af5:7c25 with SMTP id z41-20020a056a001da900b006e48af57c25mr528813pfw.16.1708454490134; Tue, 20 Feb 2024 10:41:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708454490; cv=pass; d=google.com; s=arc-20160816; b=hgGttu+G0QUsZod9HQ8j4zUDIKN1dvZFAQHD8TVJMAIiLDQfx1NGUiR1Hzme1mEu1q 5S1dFtsHzk4eejZvIBMowaqYp1iQI1hNdUNw+1wqfDhkAFjoZnZRWgSRPijsC7VfwZ+t XXVhjy1re+d0Pg3DVg+RVm9ANv5G+MxS0RQZHveDsmpK1yOvHc7qh26Yy+RJjvg5bzz5 tlQ4nhTDtmHxEwEl6h3pTsfYKvIStaor9fjpIDZb1aIrPMPalK7gz5XhVQV1CCgfiXad gGATt6ewhgnWSAlmsC/7vJTLLFEjg6hUHafXPZR/MRq/6PUmktv0B8b3C+1haMzS3ILG 3erQ== ARC-Message-Signature: i=2; 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:dkim-signature; bh=EBWzKSUTWuNxwDONX+JJWrpahWaG33/2WvzMm2jFFZY=; fh=Uwq6dN23Pc7SExP2BgZtWxGl7xmLjnlENQiaEyz3Y8o=; b=iuOd2GrAxTMvyXpyaVKrqbH0WOOQARaUN3xczXB6iJlAtFy25Rle+mqqmPJaVVEqAE IsnT916xjgpUU9Esn6bsBbzRSCmhEAsu0RhQH8TOrD1+fBlZG89Yeh68EUfJmNHES09Y tcRDbwYx1iS/qXLOQv56bB3iNI9rufYJZV+c7hAayY/Cssw9LdLTmm9MJN4NmaJwGP3L O1oE+hse9cASSaSH2FMoF4nACwQYfmbeDxDD/2DgCT1EodO4uCSq0wJerdWCBxgVjPvr U8vTaQpkhVL3qHQQ8XXD3Bth8Kn8Z2eowHyGpeanXA06Be6FCq4bDkVUUPdJWk+elbOI IzXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I6yoiswL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73521-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h15-20020a056a00170f00b006e465f8059bsi3471288pfc.278.2024.02.20.10.41.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 10:41:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I6yoiswL; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-73521-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73521-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CEDB2285B73 for ; Tue, 20 Feb 2024 18:41:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A70C013473D; Tue, 20 Feb 2024 18:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="I6yoiswL" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA2FA12F5AA; Tue, 20 Feb 2024 18:41:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708454471; cv=none; b=jK2kfH6Gy2azKb8Qo7v2ITcr0Ra4Od1VxAb5jtlsufLdjf2zsWMp/2bOBs7jA2JIxdJn4XXCcpmgkhaemndtAMKBNZABBoNQ76hGGN6R52oFVcnhtRuNXPqfbz1Yk+fkrfNWjkJ4JlhcOCTF+MuBSjKa5v7P2k6Y4KWN+rDU1hU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708454471; c=relaxed/simple; bh=15wVNh60n0mKgmlzygAoNpmkEvxBvaqNjKfNeAsjQ4w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ueb46aWJ3x00zNeV1FVSzKmGyY6RPudqvvngIULgg11YRZoJ7mvp7JoxtY/LYQj23h86zQ3wiG9nRurKXOZTiVNkypuNuzyZlWYIi6JxStYH7skOlAkvKdpymXP0TusQxUw8W0CRCGqHZ48DKo5E3cVzf6+VQ6eUGe7tBVj4kpk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I6yoiswL; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4B2AC433F1; Tue, 20 Feb 2024 18:41:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708454471; bh=15wVNh60n0mKgmlzygAoNpmkEvxBvaqNjKfNeAsjQ4w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I6yoiswLuwvRkTOyHtca4QBI0nxQq61xnDFGgF7WkbRQhu0MCSk8+YurXOGrdIiMl 3d5XPZ2nvg4A7VQjpqyNT995DJFhhfoW2gQKyrdhURCr+NNitthjAHKDQRccYbqH1B /t9BEYBB+YUfEE87SvH+CPIhYMKMy6KWPiDinKDiyTU7f5dB/o6FU4Q/7xt9V12D88 SVpDh/lkadi34h2cIfqSiewK74H6QYjNthXd5VwPI4r5TazIMDnqQbrBuo5BECsrxi gj0kd9p7/av53ieW5iBv48Xs/P8gZcj/EXu/1tZYkg9+JSk7Ofg4lON/xG1wSFGDu7 IU94Fw4NbtDbg== Date: Tue, 20 Feb 2024 18:41:06 +0000 From: Conor Dooley To: Nikita Travkin Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v3 1/3] dt-bindings: power: supply: Add Acer Aspire 1 EC Message-ID: <20240220-splinter-jackpot-ac1571af5b2d@spud> References: <20240220-aspire1-ec-v3-0-02cb139a4931@trvn.ru> <20240220-aspire1-ec-v3-1-02cb139a4931@trvn.ru> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="NyfVgNR6xsvZmS5r" Content-Disposition: inline In-Reply-To: <20240220-aspire1-ec-v3-1-02cb139a4931@trvn.ru> --NyfVgNR6xsvZmS5r Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Rob, On Tue, Feb 20, 2024 at 04:57:12PM +0500, Nikita Travkin wrote: > Add binding for the EC found in the Acer Aspire 1 laptop. >=20 > Signed-off-by: Nikita Travkin > --- > .../bindings/power/supply/acer,aspire1-ec.yaml | 69 ++++++++++++++++= ++++++ > 1 file changed, 69 insertions(+) >=20 > diff --git a/Documentation/devicetree/bindings/power/supply/acer,aspire1-= ec.yaml b/Documentation/devicetree/bindings/power/supply/acer,aspire1-ec.ya= ml > new file mode 100644 > index 000000000000..984cf19cf806 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/acer,aspire1-ec.yaml > @@ -0,0 +1,69 @@ > +# 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,fn-selects-media-keys: > + description: Configure the keyboard layout to invert the Fn key. > + By default the function row of the keyboard inputs media keys > + (i.e Vol-Up) when Fn is not pressed. With this option set, pressing > + the key without Fn would input function keys (i.e. F11). The > + firmware may choose to add this property when user selects the fn > + mode in the firmware setup utility. > + type: boolean We both had some comments on this property, and Nikita tried to follow up on yours (which was much more substantive than mine) but got no response: https://lore.kernel.org/all/20231214220210.GA988134-robh@kernel.org/ Reading what you said, I'm not entirely sure what you were looking for, my guess is that you were wanted something controllable from userspace, but I'm not sure how you figured that should work where the firmware alone is able to control this. Cheers, Conor. > + > + connector: > + $ref: /schemas/connector/usb-connector.yaml# > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - |+ > + #include > + i2c { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + embedded-controller@76 { > + compatible =3D "acer,aspire1-ec"; > + reg =3D <0x76>; > + > + interrupts-extended =3D <&tlmm 30 IRQ_TYPE_LEVEL_LOW>; > + > + connector { > + compatible =3D "usb-c-connector"; > + > + port { > + ec_dp_in: endpoint { > + remote-endpoint =3D <&mdss_dp_out>; > + }; > + }; > + }; > + }; > + }; >=20 > --=20 > 2.43.0 >=20 --NyfVgNR6xsvZmS5r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZdTyQgAKCRB4tDGHoIJi 0uv6AP9Hs2QQv/YYHGYhhHhpqKqfT4EvP4wIJ2I3XnFPTLp7TAEAlyyHmfzBrCjD AgFzbLCEjTAQEJtMRKbH3EJ7Q9jMRwk= =2TYU -----END PGP SIGNATURE----- --NyfVgNR6xsvZmS5r--