From patchwork Wed Aug 10 03:04:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 597182 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CBAAC3F6B0 for ; Wed, 10 Aug 2022 03:05:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbiHJDFM (ORCPT ); Tue, 9 Aug 2022 23:05:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbiHJDFF (ORCPT ); Tue, 9 Aug 2022 23:05:05 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2294A76972 for ; Tue, 9 Aug 2022 20:05:03 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id w196so11151224oiw.10 for ; Tue, 09 Aug 2022 20:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=rD2IyCzgtwCTzMLZzwIE/tb4oOftEB3n0yJKBiPeWqk=; b=UYMg4CGkX0lpqYqaTLWTh/oZoAsza29UnZN+v6fgIHyB29UiemiOIjPXy9Sj78Xirh 4nBt1/P2oB0qBeTEjR5UjzGbCJXGNAg9pO5E7FOOPooqXxrrzAZYdI2YyQktK6WrnrBv KhYjT75iEdt1JVcieiw1Xiw33npdRpsVU1c7XawsJF1IYKWuKMCV6LHl3Vr//TjWCijJ nZoS3TdVxQEMQ8ySV63bd26w9xtii/1Bp+VqsB56v/1hk95kPvwqtTaczwEEd6nIzfpv meMCTXUJ3Islgsfo2alhb8HuIlxCLy1FfLwx7QqKHqkqQmbvq3VXBu60duGCz58cwdXC cpQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=rD2IyCzgtwCTzMLZzwIE/tb4oOftEB3n0yJKBiPeWqk=; b=aCh4Om1AlITDp2jNXeJmk48dTGpuvsd5+0i03/wkxYSQhp559IkAK8MyCveveLQxh5 alkqAh1D24WFap+/vL51rd7IhjR9YjbL4LlsCvcG4tTQlXW+8TP1laPknwhoKBGb9iA9 pu06fkeroP4mS2etUMFnZQ651uX9LbT3HyUOCFCOj2eRsIQD5k+7eiV2k3jtAkdfZOky 15faQ9q2shBJaOMsXffGfHX8wC1Oqg35v75F1WfmmskhbJ+Zd0MTb5NWFZBOMISgWl7U fixaHlmzPT8uMoXu8j8ZRrel+y/r/cFSuJ0U7Me3Fm9tBxbG+zzOE+kaXSci+efZ5NMz 85Lg== X-Gm-Message-State: ACgBeo0fAWcjfv5p5rH+fzWGHOgLPEE4GilMCiTuezcA1O+4be/3cjO2 nGY3KVqzcbi5colykf1KRFVZrMHaGb3rnA== X-Google-Smtp-Source: AA6agR6LPBryazczwFOVsHVWIgeyDxW00+kt9qMZdi0LzwOY3/frp5T4tfubd3B+fY1AoDbDFIpNuQ== X-Received: by 2002:aca:ad0c:0:b0:342:f3e2:32a9 with SMTP id w12-20020acaad0c000000b00342f3e232a9mr595420oie.261.1660100702475; Tue, 09 Aug 2022 20:05:02 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id s20-20020a0568080b1400b0032f0fd7e1f8sm409004oij.39.2022.08.09.20.05.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 20:05:01 -0700 (PDT) From: Bjorn Andersson To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 0/2] power: supply: Lenovo Yoga C630 EC Date: Tue, 9 Aug 2022 22:04:58 -0500 Message-Id: <20220810030500.2793882-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This adds binding and driver for the Lenovo Yoga C630 Embedded Controller, to provide battery information and DisplayPort support. Bjorn Andersson (2): dt-bindings: power: supply: Add Lenovo Yoga C630 EC power: supply: Add Lenovo Yoga C630 EC driver .../power/supply/lenovo,yoga-c630-ec.yaml | 88 +++ drivers/power/supply/Kconfig | 11 + drivers/power/supply/Makefile | 1 + drivers/power/supply/yoga-c630-ec.c | 547 ++++++++++++++++++ 4 files changed, 647 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/lenovo,yoga-c630-ec.yaml create mode 100644 drivers/power/supply/yoga-c630-ec.c