Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1964724lqb; Mon, 27 May 2024 03:38:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeh51MkZlLdPpCqpsUFHh4OLC/AEJF0XsprBFJbk9tup5rcBv9sNr8bJnjDPNhKUWVQXnPqlTVtRGIw4JxC4R0xaqSUKRXg1WEsduFew== X-Google-Smtp-Source: AGHT+IH5Gqq0A1DNbLjwdfgpt7xT+Fk1xICHHes3r0n0cx+0DFtmICXJMhfPvPbcO/8SCmY7m8v1 X-Received: by 2002:a05:6a00:1c83:b0:6f4:d079:bb2b with SMTP id d2e1a72fcca58-6f8f3186614mr9643820b3a.9.1716806316464; Mon, 27 May 2024 03:38:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716806316; cv=pass; d=google.com; s=arc-20160816; b=EBIku3HHYf0EfKC0JktMDEhmx0G8AVPTl1/awiCsdbkRZxDuVSlwycbvaVsdI0tI8x iatHgakZ7mXqDzUPzJL61lWFxHd6VeAwKEMnLHoiEu531ZnNPtJxOtTs1cyjjjvx7Pug 0vpDRGyDvv/Gav9kmDZ+g08d7zo7AAEpfUikxhOA7Xz4rXCMNABtC/EOwJvgUnzLw7G7 OPNvtasQR4vbTkL5YAlzQRxXtl97uyNxjHU3IXRKyEZW4Qhs2SBBAL/CXGAIrVMCLAvA PBJV/TblhmxHmnRUxuuNZCoaVxjdra1Sh1h1N3bsnWNDXYvipayZ4J5fUMLoJygcNLv4 cphQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=eg1Fuyd+apIB6nL/SwUYqdj5frjIeYEUq3P1TF9sWnU=; fh=hZddu136JHj8d0bTKfdfKiD2dck49UZt7kKReo09D2s=; b=jJDaSe7bpRn59iIZ5HHMF7LOOSO1WdMOHxueaqSQFZxHO72GCc4zLc+8GrDLIJnqgl pulK6R49XJckROc4BFGBLYWAcMgZ9Jme6g4DtyHtHsLHlOyAaKjeg1AoYeLuOQJrOOLh cU9xlgf50wgNbF8cOuOps26yowWZnDJuChdR8pU9U2N0KfoUmRXfDVIekHO/8e3qag+4 FnKylLOzdEzo/GqNrWbkMpTXCvzp/bOedbixVx6HM1nn6Pf2cUKLvoBZ5u0pnaWrO3qA ETFR1Ogyy11CGz/AuY1ELCjC08J7bPkmWIuqGDQY/4hFV6AcuVYAAp2E0v/6C7IZQvKL yvtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=ridocHYy; 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-190431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190431-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fc046de1si5974583b3a.18.2024.05.27.03.38.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 03:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190431-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; dkim=pass header.i=@trvn.ru header.s=mail header.b=ridocHYy; 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-190431-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190431-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 509B9B239D1 for ; Mon, 27 May 2024 10:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0486313B7A7; Mon, 27 May 2024 10:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=trvn.ru header.i=@trvn.ru header.b="ridocHYy" 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 7036113D281; Mon, 27 May 2024 10:29:03 +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=1716805746; cv=none; b=OSsvU8tBvfoDNniP2ZOqoWdE8ZPdcgtDZfu8YDRC37kcbtRe084CRI5kK9N70o0dRToG8qMJXR9Tw5dlwwVbNMQYnypTD3Bo5BPZ43NT4w/M1kyZZczW0X0FrBKGZ8ozdx1e0pEEVuZNSLd0eeicGTAht/XFymNQzpgmtDaR+3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716805746; c=relaxed/simple; bh=ZAOnZNIPCZ/gjfi2EqP8pXMwOx3RdNya75v5ylcZQ6c=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=TzUkMy8KbiZqGKPaBsljkj4zUVQ6zbSgFqpcN8INnsSQX316PJny4+iP6hD2FPKlm3ZRcqcQVc1Byr59WOqnqK7OEeoDd5DU4AgVwT66dufy84LcRspznnXpMH+LSe/j+y6oQs/0iArj9rCB9flonL0MxqHkkGw5ZLZKk2sV41Q= 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=ridocHYy; 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 283C2401B5; Mon, 27 May 2024 15:21:31 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1716805292; bh=ZAOnZNIPCZ/gjfi2EqP8pXMwOx3RdNya75v5ylcZQ6c=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ridocHYydGXxMzSw/4pmPPWYPapNbiLLDE25aOUH1yhRhqE9IxNCaygl7dmOhLvCu kfM7xS/lbMNMw/2UJ4se499cJTUropO7SxQVqXnkeEQlQxRyp/9VTqXzg16bnEijfs IHYiHStZPIA1pcEPsCINtqdueHIA969sfhk+BuCikO7BTUkWycZCY7+n8gtorHnkX2 eP+FnETfN6HL4lc3uPpUFXCKQS/zMBU9tgpYlkXroBji92nHZAhM9HryJhvB71Gki/ FZJx0S/x/EDP/GwgU+gPPxFGMOAJPq1Y2u8OF9T7RO7heMsl0piZ0PpjYNH+vqNXFf +sKjYJVMEd4Rw== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Date: Mon, 27 May 2024 15:21:27 +0500 From: Nikita Travkin To: Dmitry Baryshkov Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Hans de Goede , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Bryan O'Donoghue , Heikki Krogerus , Greg Kroah-Hartman , Konrad Dybcio , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org, Krzysztof Kozlowski Subject: Re: [PATCH v3 1/6] dt-bindings: power: supply: Add Lenovo Yoga C630 EC In-Reply-To: <20240527-yoga-ec-driver-v3-1-327a9851dad5@linaro.org> References: <20240527-yoga-ec-driver-v3-0-327a9851dad5@linaro.org> <20240527-yoga-ec-driver-v3-1-327a9851dad5@linaro.org> Message-ID: X-Sender: nikita@trvn.ru Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dmitry Baryshkov писал(а) 27.05.2024 15:03: > From: Bjorn Andersson > > Add binding for the Embedded Controller found in the Qualcomm > Snapdragon-based Lenovo Yoga C630. > > Signed-off-by: Bjorn Andersson > Reviewed-by: Krzysztof Kozlowski > Signed-off-by: Dmitry Baryshkov > --- > .../bindings/power/supply/lenovo,yoga-c630-ec.yaml | 83 ++++++++++++++++++++++ > 1 file changed, 83 insertions(+) > > diff --git a/Documentation/devicetree/bindings/power/supply/lenovo,yoga-c630-ec.yaml b/Documentation/devicetree/bindings/power/supply/lenovo,yoga-c630-ec.yaml > new file mode 100644 > index 000000000000..52a302850743 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/lenovo,yoga-c630-ec.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/supply/lenovo,yoga-c630-ec.yaml# Should this binding join aspire1 one in bindings/platform ? Nikita > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Lenovo Yoga C630 Embedded Controller. > + > +maintainers: > + - Bjorn Andersson > + > +description: > + The Qualcomm Snapdragon-based Lenovo Yoga C630 has an Embedded Controller > + (EC) which handles things such as battery and USB Type-C. This binding > + describes the interface, on an I2C bus, to this EC. > + > +properties: > + compatible: > + const: lenovo,yoga-c630-ec > + > + reg: > + const: 0x70 > + > + '#address-cells': > + const: 1 > + > + '#size-cells': > + const: 0 > + > + interrupts: > + maxItems: 1 > + > +patternProperties: > + '^connector@[01]$': > + $ref: /schemas/connector/usb-connector.yaml# > + > + properties: > + reg: > + maxItems: 1 > + > + unevaluatedProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - |+ > + #include > + i2c1 { > + clock-frequency = <400000>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + embedded-controller@70 { > + compatible = "lenovo,yoga-c630-ec"; > + reg = <0x70>; > + > + interrupts-extended = <&tlmm 20 IRQ_TYPE_LEVEL_HIGH>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + connector@0 { > + compatible = "usb-c-connector"; > + reg = <0>; > + power-role = "source"; > + data-role = "host"; > + }; > + > + connector@1 { > + compatible = "usb-c-connector"; > + reg = <1>; > + power-role = "source"; > + data-role = "host"; > + }; > + }; > + }; > +...