Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp796509lqb; Fri, 15 Mar 2024 06:52:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZqAVzCfjJh1XtuUQGsHu+TkLXTHVIpdHj7r7nwrsS+mFBvTD/G79j2cef33zDIe+v1b+eaI0ZSNa7ZtKPd0/N8lXgLKdTWwqTzOlRWQ== X-Google-Smtp-Source: AGHT+IFdj9eaRYfEHaUEwvPRcM892AgpJvq5wtm613PZTucQF/IBANblf/OK/CkoRP+qeMIGYV+1 X-Received: by 2002:a05:6808:159b:b0:3c3:7c09:9562 with SMTP id t27-20020a056808159b00b003c37c099562mr323579oiw.18.1710510741864; Fri, 15 Mar 2024 06:52:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710510741; cv=pass; d=google.com; s=arc-20160816; b=AMUitI+nutLdJIDHD+OGgdgjptSRZBNPMjhq5xuy1iUnMhtdOvN5dZ61PT87abAPZE F7e444vnmq0aFQ67STV4KQ8ZxMwZu8pj8pDhA5/XsIOrHqlKA2vgv/yJ9H/c5LNqkKDo AvoqN5rvJgbMwDHQZlhi8VF5NvKqxmhxyZrIyo8Tcjz7NxqHZlsLG8yUvmTpelmOR40l W6kgh48d2q7I1rIs8J3Ld0WA6IbKb3HLHb5izb79aVP5GK8NV1mZuBOutJcvMTupp5+l /8RX4ChFVgtYqR8l4tNx+FL++/MZbGqZ58mEsHfMqK7KP5G6em8V10B1OlTcbudJhjXh +Aeg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Nxttk6i4S5fPsJtVEJyIG7bTTXwduxjYx9lH8uNZiz0=; fh=VVSrWbEcpqE6Tq4nfuP+ekmFfF2HXZ2q8wM8vN0dsNA=; b=a9lENFdYI4ZfO4Z/zOcnzHCY9I81/7ZBpON1zVHYCgClGKQ5PFfpLbZv5XomCJYjE8 9++t2QgnibpLaWrt0XUGTnMDoQCe/5itk3I9UIPB4pxqtqQgPMEtHp5dGGhf8s1ouOC7 a1BqIS4s4Z/BwE1+qr3hycTJo9K3DJJLuAY4lG92Ygl6G0q9hoo428pZP8RCEDzKVgF4 nNVqGobGV8FsUr1DvZo1BlA6CXMhxRkXd4nBW48yjoRqbQmPOPz7QLaa27hSxx4M3Sgw y90mGhJ/lHAPczyz4nZWw0CzkWJc6KTDBMvwso04Ad44HbLJufFa1T7ja1oFY+qCtZz1 seaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=xxy8kxYf; arc=pass (i=1 spf=pass spfdomain=trvn.ru dkim=pass dkdomain=trvn.ru dmarc=pass fromdomain=trvn.ru); spf=pass (google.com: domain of linux-kernel+bounces-104466-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104466-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gw6-20020a0562140f0600b0068caf6856eesi2939976qvb.205.2024.03.15.06.52.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 06:52:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104466-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=xxy8kxYf; arc=pass (i=1 spf=pass spfdomain=trvn.ru dkim=pass dkdomain=trvn.ru dmarc=pass fromdomain=trvn.ru); spf=pass (google.com: domain of linux-kernel+bounces-104466-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104466-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9209E1C21ABD for ; Fri, 15 Mar 2024 13:52:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C3E8381A8; Fri, 15 Mar 2024 13:51:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b="xxy8kxYf" Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) (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 4016F2E418; Fri, 15 Mar 2024 13:51:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.87.146.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710510718; cv=none; b=Y8rrhplqIv6VbVJ/BF9k3MVJgKUh6RMhK8pOkr1PweAmexF0DIhm3jlwNC8ci38CF8mUO604E2ckz8838OqlH0tgzUPbpz5LbZBZdBHo2ljRRyMjxvmiPW3ypoc+EJx36W2YLIaER+0MA0rrwktCw7OR05kISk904xrdpoLpOKQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710510718; c=relaxed/simple; bh=MMLcHJokdcrZX5tapxsxk9MOEOCy6mrRPWqgEtSNWMA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d/QJltDIDD625Mt5kYTdAYaxe39QpTSvexx0BfNVKUxZfdOH4jTNfxhoK8Cef+GciGXmwkm0pZhjaSWxE3dghy5lYxXjAgx+y+vuSdl72nrp12Z3vTx7GwR5qxvJY3fxAKc8BPEe95GahyadGv4qQEytNpYYaxLhKSrM4DITBVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru; spf=pass smtp.mailfrom=trvn.ru; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b=xxy8kxYf; arc=none smtp.client-ip=194.87.146.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=trvn.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=trvn.ru Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 1DE5641EF0; Fri, 15 Mar 2024 18:51:36 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1710510696; bh=MMLcHJokdcrZX5tapxsxk9MOEOCy6mrRPWqgEtSNWMA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=xxy8kxYfOlFEgkH3P8TxNY3RDMXTysILsaQWb+Aet//GgUcok+/VK8cAgTOLGjjt4 LxJBG8YqYi3s7u4QX98/WK0PorCNMFLQ5AV9EMs7Wxgyy60BSoClu223p02B3uS8F1 /6vxH89PubvjWOZ799UXq2kI0TjX7xa5mCYiFmcptr5MSjTsdMMPRloNc+tgRP43t5 8mYm5RnGokca/SPDxg40JyQREgs6DWQBVfJz68lkiPB6i2Um4Cj1GKS90YlyxbN/Pb V0+QlliAgqqnIvX4AeqAFTQTUb2sRQpw8qyR0l2kAf39GZJF3v7Vq989lnwCzF5alj GQJS73soSJBDQ== From: Nikita Travkin Date: Fri, 15 Mar 2024 18:51:15 +0500 Subject: [PATCH v5 1/4] dt-bindings: platform: Add Acer Aspire 1 EC 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240315-aspire1-ec-v5-1-f93381deff39@trvn.ru> References: <20240315-aspire1-ec-v5-0-f93381deff39@trvn.ru> In-Reply-To: <20240315-aspire1-ec-v5-0-f93381deff39@trvn.ru> To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Bryan O'Donoghue Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, platform-driver-x86@vger.kernel.org, Nikita Travkin X-Developer-Signature: v=1; a=openpgp-sha256; l=2056; i=nikita@trvn.ru; h=from:subject:message-id; bh=MMLcHJokdcrZX5tapxsxk9MOEOCy6mrRPWqgEtSNWMA=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBl9FJl1s0w28vFfb5wmB5kcBEPkAABTgUxBJiuu ReEcYhF0OCJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZfRSZQAKCRBDHOzuKBm/ dbCuD/4gBu5TlOhWt45gMihtRlgK1dbDires315S9k7yIeRikQwTXjp0u/AVTyeJXPJiGLJcJbs B+Yc9n1OfInJ3gqs0j0NW7G5n+1ucEZ1tOyCP+FsXiCIuCbM78RNjJcmi/GBfzstpEIM6RXsLN+ eFRk2NKafGEV9dh4fykIl6TWMuanl4yup/R+/vJtxNhJd38witTzAi7AH9S9FKENB5hZFR4r5eD Rb4BC6XYJAktomTRbdFdFVsVefRJ23+CubU3NjvfvIrSkXYdYWkpEUsEPlzquevdAr+GT1nsoTV GHoIbSNgpOMMMLb6icCLRJCEYfIIjMtiySRvkmwF9nhiLAhAxUWPiZcyKs17sonzzasUfX4b4Gk Yfbx4TUsiaAO+kWvmavGHGaeBOVEfGRhWBhUk80lVENq+3fa0/fEhRDNGrQ+MmmoEaZ0EPLl3yL wVkdztzKqFtJlkfHPk5ssszse+822i9svd/kwxwrmtcxBZ557tx9RegiYEfgKEjpQTdXy4pGLE5 ae7/oKrW3ecbJwMhcnQjyEb8Uf+U/Rhk+Ugd63soN5tSGINYPruj639ayxKRhkAlXnz2+QSyfNq KN5shnDr0v0v79hPtqsaLhW9yvnOsiVQXiuDKwKilZg2lYJwMg+jA/E61FEpjddLL4TrGyRXAOQ gu0K+XPHOcje+rg== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 Add binding for the EC found in the Acer Aspire 1 laptop. Reviewed-by: Rob Herring Signed-off-by: Nikita Travkin --- .../bindings/platform/acer,aspire1-ec.yaml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/Documentation/devicetree/bindings/platform/acer,aspire1-ec.yaml b/Documentation/devicetree/bindings/platform/acer,aspire1-ec.yaml new file mode 100644 index 000000000000..7cb0134134ff --- /dev/null +++ b/Documentation/devicetree/bindings/platform/acer,aspire1-ec.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/platform/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 + + connector: + $ref: /schemas/connector/usb-connector.yaml# + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + embedded-controller@76 { + compatible = "acer,aspire1-ec"; + reg = <0x76>; + + interrupts-extended = <&tlmm 30 IRQ_TYPE_LEVEL_LOW>; + + connector { + compatible = "usb-c-connector"; + + port { + ec_dp_in: endpoint { + remote-endpoint = <&mdss_dp_out>; + }; + }; + }; + }; + }; -- 2.44.0