Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp330836ybg; Tue, 9 Jun 2020 01:30:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtdMUGPR8MocNBCvOlIUJLQlpHfDb7eeC9HqufBsP1YvmxgocHGZjuqcMtzsbx7cJjjY4G X-Received: by 2002:a50:a721:: with SMTP id h30mr23843423edc.153.1591691457057; Tue, 09 Jun 2020 01:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591691457; cv=none; d=google.com; s=arc-20160816; b=YrvB8QiQES5jAG3Z5acjRHyfs7fZZkdx/2V/AFnWHqkxnZDpyH8t+wzRGPzPpgKrzW JKW/o3/hdFcVd8R13i1Uvc2kmDeNpsJ4YRdAFXsRx4PCBrCvFc6Hj3uQzfaRgtbDhzSz 39QsqDiL+ZCXwsN7BHLyBvkn+4GyvzRGBrcqwbc//48JTaGIc2hhiPuKNgDIf1n4Va0+ uIMs9s50WuBeXzzsT3IevK6CA6/E0UohPMV1CfL2k7o867gDLnZHXgy2HvQQxt3JU/Ha 2X4fYlP3BnYBpXvKR6Q/stHlxovj4qmchoo0nvb5Hs9PZHU/atjJ140JK22E4Hc/G1hv AYFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=itzxgfnqgSAh1Ay9xpcVxwCgvgDCbiUVPTUe7WIvLJs=; b=wIsLvaD7LP2g2PGTUuY34NfN3F6/otXuiU1KV71UWQ+qEE4bLhS+RN2TYV6CK5wfbo 1cwU7QjNUPVvVHtktXCvdhM/lfEobuJgNlZeS9Fk65T5DXdXByXatPNJAJUyNn2AbDLZ u+Eb44MSqcK6xtH8iAr5QsJ+qLDpbHtNsixLIgMdgjOBRc0FG2O3UDBaOWRjsVBX45ht QH79UveGFA1pjraMrbEIBkF0DYuYHQZpsP+y+sLcS0m+zV1JN13j9YxDfAXlFQZyNJbC iLS2NWYZRyyNJja/u8Gm9cU6XH+fceKccX/FKUQyg4Vcu9vfjUVaX1qoNMTXw+5BQCAW th4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=hFW4BRQ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs24si10273689edb.4.2020.06.09.01.30.32; Tue, 09 Jun 2020 01:30:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=hFW4BRQ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727023AbgFIIBE (ORCPT + 99 others); Tue, 9 Jun 2020 04:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726911AbgFIIBC (ORCPT ); Tue, 9 Jun 2020 04:01:02 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA3A5C03E97C for ; Tue, 9 Jun 2020 01:01:01 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id jz3so1067470pjb.0 for ; Tue, 09 Jun 2020 01:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=itzxgfnqgSAh1Ay9xpcVxwCgvgDCbiUVPTUe7WIvLJs=; b=hFW4BRQ9AwTSpzVGCnmWrFZVGvxQL5CD0ubfoFZOJ0Lzf+2Cs+4RmDTgWleXAy1aug fmX4WtC4KI8t/fzCUBDw0yC/nMUJEfDsV2g32yq0gMCNy42Il/eKyEGi3fXfh+uMUE+o OzPB/CFZO3Sp/PnarEI7e0OltYNMfzXOSCO+E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=itzxgfnqgSAh1Ay9xpcVxwCgvgDCbiUVPTUe7WIvLJs=; b=rOxsKt00rFtMhr0Q6ovQVWYAKGsOiF/E469FPCW5dnFB2+5nwwCjpiyhDEVA+KyL/l 0FLQ5iN3xY8o+0ZXja2MHi3P+lN2NWM2KQiYYU3vu1g41hSVtvlAQcpQ0qRCz1uFyV5/ K7kxpdu+qdwX7yxAqR9YruQlaVFd84OVr3hs4DZIJTieO7uL2djYXQC+4S6O9n+TFf3V 174zt2YEoAm9FdOzywCsS/DCNd1iB+3D3IeM3/mSvErx0lqh+hJKeaNjRD3e/s3tbbT/ QZ2ByBlYWFlZO4xk98InarhuXegUORE9P18XH2mChQBtKBAgXX/G7dgHxWx+KQNzfaYZ 9zPg== X-Gm-Message-State: AOAM533+G0E1zBJiQWc8SETL6HgKOZv4mEdpCeqiRixqs9XO9FYgxTri U1Av3zR3IQfDtZRwGsDBfhNq9Q== X-Received: by 2002:a17:902:82ca:: with SMTP id u10mr2213141plz.294.1591689660329; Tue, 09 Jun 2020 01:01:00 -0700 (PDT) Received: from pihsun-glaptop.lan (180-176-97-18.dynamic.kbronet.com.tw. [180.176.97.18]) by smtp.googlemail.com with ESMTPSA id gt22sm2506252pjb.2.2020.06.09.01.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 01:00:59 -0700 (PDT) From: Pi-Hsun Shih Cc: Pi-Hsun Shih , Nicolas Boichat , Benson Leung , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), Enric Balletbo i Serra , Fabien Lahoudere , Guenter Roeck , Gwendal Grignou , Lee Jones , linux-kernel@vger.kernel.org (open list), Tzung-Bi Shih Subject: [PATCH 0/2] Add support for voltage regulator on ChromeOS EC. Date: Tue, 9 Jun 2020 15:59:53 +0800 Message-Id: <20200609080001.121499-1-pihsun@chromium.org> X-Mailer: git-send-email 2.27.0.278.ge193c7cf3a9-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for controlling voltage regulator that is connected and controlled by ChromeOS EC. Kernel controls these regulators through newly added EC host commands. Pi-Hsun Shih (2): dt-bindings: regulator: Add DT binding for cros-ec-regulator regulator: Add driver for cros-ec-regulator .../bindings/regulator/cros-ec-regulator.yaml | 39 +++ drivers/regulator/Kconfig | 7 + drivers/regulator/Makefile | 1 + drivers/regulator/cros-ec-regulator.c | 261 ++++++++++++++++++ .../linux/platform_data/cros_ec_commands.h | 82 ++++++ 5 files changed, 390 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/cros-ec-regulator.yaml create mode 100644 drivers/regulator/cros-ec-regulator.c base-commit: abfbb29297c27e3f101f348dc9e467b0fe70f919 -- 2.27.0.278.ge193c7cf3a9-goog