Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp562574ybg; Wed, 10 Jun 2020 07:54:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwikV2DlKQGtQjDSEAIuO4pdqm6YXoYUl0giiO/PU6saoJTB9kA6UqEF4mb0g+svZ4PvLi X-Received: by 2002:a17:907:9d8:: with SMTP id bx24mr3623953ejc.517.1591800850299; Wed, 10 Jun 2020 07:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591800850; cv=none; d=google.com; s=arc-20160816; b=T6cLCjkwl3n6+YxBqfKMe1r7YSX1K3KjFqHCLZ5aRxmPo//whZgbRcExf4D1RjfpPq iSjknnsVqwkHGdlKIzLGc1RU6WJ7DKVBYG/XpVJYEvjV8bsQiPxNgfvMGMIaNWPzwwNs STdzKjaKqtDcuaMFhOrktxUcflbPZ0AbUTTTrt0xzfj5gAOLOqIa+zzpUXetGnDp8r4v JmicyJi/qOivYEu7hZ5UX3qhpPbF98g+Oz1KL8yASFuLcUd/9k75bbs3CF3wrXXF4kVZ 4BtmmLzBoc/b22YAq5KeaBSLK6jhzHvP0fA9YlIKKEE0gMhe1n9qJpypqbI5qqdfVHyo D6xQ== 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=msttcuXgTgSFdNl79f5Us0DrDSuIDFwDNZzBPlqdIFQ=; b=G6ZkpKWyOCrZrGinUB3qPkr2NGgTioJOYhBMhqot7wgmrGhpnmq2Z3Xix7RRpOxbDr QwuWSLeNMk+F3PULT6PaBp8m+L5M06wjvATtrxk532C3tTjVWp8VNC/7JJS7fDQMgziO AEnjP13blWYeLXhQ2E7Inzi2R4rpN1Jx9RbMRBm1Uab5XBNJTGnSiX47q1E0W22X4heZ ul4oWOhQiuti0WfFtnPo/JnWJbXKPNee7coyrIMYRPhoB8ZxahL1CU0JcJtvqbS36JbP FSB+/lnfElD62WTD7XUatuDXJj8bE3vnu2G6ekklUMJlaE4FaajOa7Ks7r5xCbIEg3Bw I6eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chromium.org header.s=google header.b=aX3EBJ3E; 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 dg21si890489edb.54.2020.06.10.07.53.45; Wed, 10 Jun 2020 07:54:10 -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=aX3EBJ3E; 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 S1727083AbgFJJH4 (ORCPT + 99 others); Wed, 10 Jun 2020 05:07:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727078AbgFJJHz (ORCPT ); Wed, 10 Jun 2020 05:07:55 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4A0BC08C5C1 for ; Wed, 10 Jun 2020 02:07:54 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id ne5so599030pjb.5 for ; Wed, 10 Jun 2020 02:07:54 -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=msttcuXgTgSFdNl79f5Us0DrDSuIDFwDNZzBPlqdIFQ=; b=aX3EBJ3ESkpfoWwYdS9w1TCVlPztY9Umy3YDrF8wPcfnGf5KFjPHEOjduewtzdeP9/ +HFL8CyS73LlRQoU2VcjR5damI7PvO67iu2Dw68511xhfPv7/aOLl1Ch8gLyUdkEbGjD +HPWcbx7w4kaL8NF1JKRbCLeALe0XdzqpQKiY= 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=msttcuXgTgSFdNl79f5Us0DrDSuIDFwDNZzBPlqdIFQ=; b=iO/quU302EYPJGdp7b0E6eQZg0AaHE7ceAcdiiJQrMCnlYxn+A8ZdRPvC/Pt9YPUBR 8Nb0u1oJvgmo9xWRGKxJj+s1AjprKQ34JFweu7jJCvSYUKFw9AbnXHRi7rmucMKKrUv+ Bobmj6AIg3xmKQayArO/mihEz/9B4TVNKhNfTKwwwpVhS1NEiuphkHUO232e3rReNfgv z08psnrYLc9Y7FrtqFgGc2HrQq3cVJKWxCuuatHXeNmXplEwxbSpZ3QQfhie5/koG5FX lol1JPrxneDcSiP0Cm36hvPo4ut/FoCCuvFJ+/PZAghCg5Wn+PuksPWr6vs3l//xrp+4 Vmsw== X-Gm-Message-State: AOAM532ee4rKnbGRW0xE3o+/mF1jbYvix6LAJormzVCgFf4PfZ9eUYRA FPjAjPxuPRMB0ZKC/9qF3/ZVuw== X-Received: by 2002:a17:90b:707:: with SMTP id s7mr2030037pjz.215.1591780074384; Wed, 10 Jun 2020 02:07:54 -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 j17sm10607644pgk.66.2020.06.10.02.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 02:07:53 -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 , Guenter Roeck , Gwendal Grignou , linux-kernel@vger.kernel.org (open list), Mark Brown , Tzung-Bi Shih , Yicheng Li Subject: [PATCH v3 0/2] Add support for voltage regulator on ChromeOS EC. Date: Wed, 10 Jun 2020 17:07:38 +0800 Message-Id: <20200610090748.45908-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. Changes from v2: * Add 'depends on OF' to Kconfig. * Add Kconfig description about compiling as module. Changes from v1: * Change compatible string to google,regulator-cros-ec. * Use reg property in device tree. * Change license for dt binding according to checkpatch.pl. * Address comments on code styles. 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 | 43 +++ drivers/regulator/Kconfig | 10 + drivers/regulator/Makefile | 1 + drivers/regulator/cros-ec-regulator.c | 262 ++++++++++++++++++ .../linux/platform_data/cros_ec_commands.h | 82 ++++++ 5 files changed, 398 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/cros-ec-regulator.yaml create mode 100644 drivers/regulator/cros-ec-regulator.c base-commit: 5b14671be58d0084e7e2d1cc9c2c36a94467f6e0 -- 2.27.0.278.ge193c7cf3a9-goog