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: 12940123 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 1B08FC25B0C for ; Wed, 10 Aug 2022 03:05:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbiHJDFM (ORCPT ); Tue, 9 Aug 2022 23:05:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbiHJDFF (ORCPT ); Tue, 9 Aug 2022 23:05:05 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EB5476957 for ; Tue, 9 Aug 2022 20:05:03 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id u14so8064106oie.2 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=GfB7Dek1Jlbjm3QOQYzOVNyWn1uO4QjWTKNonKabC0+5Zmn7e008wJ/GsOkJs6cQXu uiRvOHuryMGDv/3JDDm9WTSIGIGMBZj01WmTBNCLrEtN7cs3UkTQHsgLboXq4kMYq+Xq bO7pPsRTnwsrSuipnJepnAvRhaJcmjSYEsElNv1/8pbPEWNmIg0o83AtzoBil1GBTYb7 /aG8dAp0Bnam7Rgk1e3nwyQdpQcjEwU8F8BgGzurXzBvciy9qh4HxxeYUXQJ6LyGg91h YjgnCZkasdXfmKFAU6v0ys7OCj4pR3TVZPDxca9SBn8pU6SvSttDIE1QoLwRPDztDy5I U7hA== X-Gm-Message-State: ACgBeo04Hz3YI3bFBjNID07dFXdhexWSOUPm/BwA56PljpZrW+j5mjnb NgGX1GmIrJCvljkSNq3//CvDAA== 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-arm-msm@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 Tested-by: Steev Klimaszewski