Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2806206lqp; Mon, 25 Mar 2024 09:40:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7iUgAbjPc++ztuJxUWL8kFTr3YrWUS2Q9CBM3OnzhqXz9wQGjngrVQhykyukiWrDDX6ASK6ZjXH5wNptRXDvEylhIDf0MdBFnjTgKOA== X-Google-Smtp-Source: AGHT+IEFAMkmPvMjhk/q0+IT9t/VVhDv6LXBa/pr+fInl/MKmPjnFsyrNIEKq7UFYxHnNV/IkVP1 X-Received: by 2002:a17:906:1515:b0:a46:ede0:2370 with SMTP id b21-20020a170906151500b00a46ede02370mr5382500ejd.57.1711384852787; Mon, 25 Mar 2024 09:40:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711384852; cv=pass; d=google.com; s=arc-20160816; b=KYzVYLKrHFQla7N2oXdWFCKu9WHFYjHAuc/7P+EWN3IJFJd34dXZFZFI0FMQ3TxbZc prtSGaYnabJ95jLemWpIVweeZibFZ3VVcbmHbiZQzZ2gcUQJdchYbyoq9HYg2GscG8ht OurucCfWwL68KHjlCgD89W3w42XOr/W89cL6cLblS0uFNUX0zJ2PWfyYRXCs0hsmRtCl F0vH+/sg1bI+u+jzA362AOCozEZQ7xjHWo7eb8eWkBOQY/bleuZ81SR7B+siOtVqVRpC 9SZ3xCi+MJk6XloTfZ4sdMXT6Y3axyrtRN0rlgoJ18FhtgDDpCr22i8GQKDe/OA71BaH hOQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=6f76n+F3TImw5GBRyhLX3S/9HNrkYFUIIpB+Isg5Lho=; fh=D3lLvaHPry0eRsRQP1hOHF4nJjKxazdNuvsUt0L7mWs=; b=I+KgmZjOa9LOEbrRVS+PnwjshQJQbqeWo3ZvbrwvpYC1nioYi6gM1t4DjCcjPWjN3t S2fiaYduL85FH15Sr5XiM0aIqBYuPm3ZJTc6FRco8lIqlpv8g5wq9mRLeB6AzY2vjjRY vVweVMuLxVhSaqNC9lIVXNtf8EKKec4xTrpaFpW2XLr+281Biwys4TFEpt+nspncP/lY WAZgdXRCTabgXouK/TwoE2UbzyVpBmZlulVZ2KWa+Aj6FeAfbe1cc52Lga0kMG271U3V SQF/ycu5DVcYkHl8o2RqTub9YUilrcaqGa3IdD39hR6a3R0CWm1fe6l9YUGxFtyatGlE iSiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AvgEMMG8; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-117292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id wn8-20020a170907068800b00a46cc888c2fsi2782032ejb.994.2024.03.25.09.40.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 09:40:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AvgEMMG8; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-117292-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117292-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5840C1F618A0 for ; Mon, 25 Mar 2024 16:40:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9A1C15AD9A; Mon, 25 Mar 2024 14:51:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AvgEMMG8" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 70B2643ACC for ; Mon, 25 Mar 2024 14:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378269; cv=none; b=H4BYxy7gKZLTstVqKAsF0RV5xx+WsyEoiYZDquAl5WYTbdCY9zoHlQWnVLaw8DvQ+eIO30ohZnvBEa2N/viHSGInFBszzfqqzTQ/dcFLlRD8GSCD4S49EZ4oW/YBmdzYcSOYv1WSfQHgrHk0FuTOrm/Qzl71JwTBE4tsz7NuHVY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711378269; c=relaxed/simple; bh=fExKIKJW/Sui9p0QMSEHCLxBIxThmZtBvMsrSKs6nH4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=il0t9o+PJVJu6Z79nWibJ/kRCvnqOWJCdpShJw7eGTmeCekSKLvcKkYcWv1B9oc7rV3/saxGxMq7AEc2gCkvgmOmQfHbb91CREfKaAmJlYhjDM4QEsq8iRtr60t7hTKW6ZekOqQuUYGzxcAV4j+6V+Bt0b/sViuvZuKPuzSRIu0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=AvgEMMG8; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711378266; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6f76n+F3TImw5GBRyhLX3S/9HNrkYFUIIpB+Isg5Lho=; b=AvgEMMG8w7wH6FV6juLSEImLKjnR7tSQ0eINI8Nq+wY10bsMdh5aYEKKcmPkkfDkkIgnCI uABSp1DDAnAa0enzOeU8k9qLduPW5nxLYQgEIsKu4TeZ6tn9SPg9mHpbWhV7atDjZc5xym DzjhgEoBq96l20lKjg/m7MlzdUqL1AQ= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-558-hlmFIsLROUyoXR5jbD2Gig-1; Mon, 25 Mar 2024 10:51:03 -0400 X-MC-Unique: hlmFIsLROUyoXR5jbD2Gig-1 Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5684c1abc7fso1893933a12.3 for ; Mon, 25 Mar 2024 07:51:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711378261; x=1711983061; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6f76n+F3TImw5GBRyhLX3S/9HNrkYFUIIpB+Isg5Lho=; b=QqiOzkbTVx53i2+RgdeXl5P3GalFcHIXdzW5kTNjYIETLhffjG7rULTn+VKz7AENbx fZDAL2ScKkIjE0U8S8fhl2mkW9APgywrNVk8LBL9H5MR0QyXdtRICMWhUyV/pDa7KDCP c6neRnU6UDiBvZHhl5jnBOia65HM7HbBrETbpicMIQ0+pqbiR4yCCP/c3QAw+BU6PJCo FavUawUUMnhCWqp6vDADY4/bcwJx2fBJH7gGo9x3J+0va6eSdku1f16mqLCZ5NsYpAEA W876rgE1hK4tFIOanj+BNkdcZ3ssqyt323rp9d9EZLlnfserk0psXTJvg8S6RQl7f3h4 Q1sw== X-Forwarded-Encrypted: i=1; AJvYcCV/+iDBJ3t17Z7PQLgoB4tzwrKTU6aXQU6Dypax+bwVOu07E7QKi+WmOvGJ84jDAT0qWxXhqdtGF/ql5NXyp7anh1WaQbhVHPFrDwnN X-Gm-Message-State: AOJu0YxX2gZ82ZZu6/1SDT2kltVehBs68f8W1bvn62K5OTp7NbimJsih ZF5bWSuE8oh4GqxmZ27ApDlIHofc4iFcbKTCIf+KTpAPqzRVLav8rzxhL8ms6xFkARbg3WqurKb sdG4e+YHyZlJ8t4Dq/q4XAkNIPQSp6rdGAsczNyy7v7UVLJ3w2CQgCisPjkK1wQ== X-Received: by 2002:a50:d659:0:b0:565:665b:9c82 with SMTP id c25-20020a50d659000000b00565665b9c82mr5477529edj.8.1711378260919; Mon, 25 Mar 2024 07:51:00 -0700 (PDT) X-Received: by 2002:a50:d659:0:b0:565:665b:9c82 with SMTP id c25-20020a50d659000000b00565665b9c82mr5477507edj.8.1711378260600; Mon, 25 Mar 2024 07:51:00 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id l2-20020aa7cac2000000b00568e3d3337bsm3033238edt.18.2024.03.25.07.50.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Mar 2024 07:51:00 -0700 (PDT) Message-ID: Date: Mon, 25 Mar 2024 15:50:59 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 0/4] platform: arm64: Acer Aspire 1 embedded controller Content-Language: en-US, nl To: Nikita Travkin , =?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 References: <20240315-aspire1-ec-v5-0-f93381deff39@trvn.ru> From: Hans de Goede In-Reply-To: <20240315-aspire1-ec-v5-0-f93381deff39@trvn.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 3/15/24 2:51 PM, Nikita Travkin wrote: > The laptop contains an embedded controller that provides a set of > features: > > - Battery and charger monitoring > - USB Type-C DP alt mode HPD monitoring > - Lid status detection > - Small amount of keyboard configuration* > > [*] The keyboard is handled by the same EC but it has a dedicated i2c > bus and is already enabled. This port only provides fn key behavior > configuration. > > Unfortunately, while all this functionality is implemented in ACPI, it's > currently not possible to use ACPI to boot Linux on such Qualcomm > devices. Thus this series implements and enables a new driver that > provides support for the EC features. > > The EC would be one of the last pieces to get almost full support for the > Acer Aspire 1 laptop in the upstream Linux kernel. > > This series is similar to the EC driver for Lenovo Yoga C630, proposed > in [1] but seemingly never followed up... > > [1] https://lore.kernel.org/all/20230205152809.2233436-1-dmitry.baryshkov@linaro.org/ > > Signed-off-by: Nikita Travkin Thank you for your patch-series, I've applied the series to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans I've fixed the Kconfig typo Randy spotted while applying this. Once I've run some tests on this branch the patches there will be added to the platform-drivers-x86/for-next branch and eventually will be included in the pdx86 pull-request to Linus for the next merge-window. Regards, Hans > --- > Changes in v5: > - Various cleanups (Bryan, Ilpo) > - Add Bryan as Reviewer for platform/arm64 (Bryan, Ilpo) > - Link to v4: https://lore.kernel.org/r/20240312-aspire1-ec-v4-0-bd8e3eea212f@trvn.ru > > Changes in v4: > - Move to platform/arm64 (Sebastian, Hans) > - Drop fn mode dt property (Rob) > - Add fn_lock attribute in sysfs (Rob) > - Report psy present correctly (Sebastian) > - Link to v3: https://lore.kernel.org/r/20240220-aspire1-ec-v3-0-02cb139a4931@trvn.ru > > Changes in v3: > - Supress warning on few no-op events. > - Invert the fn key behavior (Rob, Conor) > - Link to v2: https://lore.kernel.org/r/20231212-aspire1-ec-v2-0-ca495ea0a7ac@trvn.ru > > Changes in v2: > - Drop incorrectly allowed reg in the ec connector binding (Krzysztof) > - Minor style changes (Konrad) > - Link to v1: https://lore.kernel.org/r/20231207-aspire1-ec-v1-0-ba9e1c227007@trvn.ru > > --- > Nikita Travkin (4): > dt-bindings: platform: Add Acer Aspire 1 EC > platform: Add ARM64 platform directory > platform: arm64: Add Acer Aspire 1 embedded controller driver > arm64: dts: qcom: acer-aspire1: Add embedded controller > > .../bindings/platform/acer,aspire1-ec.yaml | 60 +++ > MAINTAINERS | 16 + > arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts | 40 +- > drivers/platform/Kconfig | 2 + > drivers/platform/Makefile | 1 + > drivers/platform/arm64/Kconfig | 35 ++ > drivers/platform/arm64/Makefile | 8 + > drivers/platform/arm64/acer-aspire1-ec.c | 562 +++++++++++++++++++++ > 8 files changed, 723 insertions(+), 1 deletion(-) > --- > base-commit: a1e7655b77e3391b58ac28256789ea45b1685abb > change-id: 20231206-aspire1-ec-6b3d2cac1a72 > > Best regards,