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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A5D1C001B0 for ; Fri, 14 Jul 2023 16:16:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7A34786DCF; Fri, 14 Jul 2023 18:16:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="peDABKRI"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 730FF86DC8; Fri, 14 Jul 2023 18:16:45 +0200 (CEST) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 559FE86A7F for ; Fri, 14 Jul 2023 18:16:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=clamor95@gmail.com Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fbf1b82d9cso19221915e9.2 for ; Fri, 14 Jul 2023 09:16:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689351403; x=1691943403; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qA6bqtZ2+Z8w7neXqLkYuv24+z9xn4G66dEeOR7ljCo=; b=peDABKRI3a9GQ7aZaOZgSvvXLHpgEk9tyLevTQs5AobI+4HwZvBfe3sbwzkT6oDMHN nEFO7a2EoM7FVKNjkrYjp48FTIKD229k2NliFyPZ41cfdcovKVvkffALuAz1bNNv6OSK mZpr28Kr8P/Bhpejy5NSYL6PpK/qnhbQZheXzgVLe+afE26ZUwCS12Wr5pOh+7h5YDDw ACZOfL7UaUD3YhAIK9hh4O2jYwBkcb2Gc+rxvbpCOL/NtgzRRXK2wQmUTv+YPUz4zrdQ MR+q6UjokJ7QroJ3RNPg+NWxyznGJ4QtuudIxS7S21wxeWj/1jjh64pUYOS65v3YOsAw 60aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689351403; x=1691943403; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qA6bqtZ2+Z8w7neXqLkYuv24+z9xn4G66dEeOR7ljCo=; b=E+ycupKahBfcUA3Ey0YVIWlz9nXkz+8wr+J4sKeSVjVq0wqiXiBzXmH6F2kmfbPHDS 302velfWslx9f4JEMteFkcczOJj3mm1GJH29XfB2dHUcW9WBckNg7e6e5FCf6djZ3Hxr JxOzbstteAO8FaUciWIlvelEMk/mtoiFPfq/owbWWW0oXicLA2sG9sxHA99e2dwMsbN0 G4I1JfFUyOmCrU7jNQ0OdDuM7y3EL/a47OudTlhR/SKs3SRCX0QynmPPtZRNuMtzYiTh q6qwz5LviHBYJ59EcHZuvn1y8tzDItPZcVJjEJhcKA6/olw2W9BLWgNMWSSpxrczg4p9 cKSQ== X-Gm-Message-State: ABy/qLZ3qSwR0CrKBxJtlHiU17IP7zm173pjS+MLxtv0jRSONFq+0xf+ e2yXsHY9/RclACRs7/242x4= X-Google-Smtp-Source: APBJJlG1faKPyVciDOuIB0gT7U20uDhK+dmcYX4yYbkckgp1Fl08qtIQ+ZZzoBjhdkXlBkcJTl4OWQ== X-Received: by 2002:a5d:400e:0:b0:313:f38f:1f4e with SMTP id n14-20020a5d400e000000b00313f38f1f4emr4131718wrp.27.1689351402634; Fri, 14 Jul 2023 09:16:42 -0700 (PDT) Received: from xeon.. ([188.163.112.64]) by smtp.gmail.com with ESMTPSA id y7-20020a5d6147000000b0031412b685d2sm11280134wrt.32.2023.07.14.09.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 09:16:42 -0700 (PDT) From: Svyatoslav Ryhel To: Jaehoon Chung , Simon Glass , Svyatoslav Ryhel Cc: u-boot@lists.denx.de Subject: [PATCH v1 0/6] Add support for PMICs used on Tegra 3 devices Date: Fri, 14 Jul 2023 19:16:15 +0300 Message-Id: <20230714161621.76702-1-clamor95@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Patch set adds basic support for PMICs used in many Tegra 3 devices. All PMIC drivers are based on datasheets provided by vendors. Implemented API include regulator set/get voltage enable/disable and basic PMIC r/w capabilities. Drivers were tested by me on LG P895 (max77663), HTC One X (TPS80032) and ASUS TF300T (tps65911). Calculations and behavior were correct, predictable and reproducible. Svyatoslav Ryhel (6): power: pmic: add the base max77663 pmic support power: regulator: max77663: add regulator support power: pmic: add the base TPS80031 PMIC support power: regulator: tps80031: add regulator support power: pmic: tps65910: add TPS65911 PMIC support power: regulator: tps65911: add regulator support doc/device-tree-bindings/pmic/max77663.txt | 84 +++++ doc/device-tree-bindings/pmic/tps65911.txt | 78 ++++ doc/device-tree-bindings/pmic/tps80031.txt | 76 ++++ drivers/power/pmic/Kconfig | 12 + drivers/power/pmic/Makefile | 2 + drivers/power/pmic/max77663.c | 81 ++++ drivers/power/pmic/pmic_tps65910_dm.c | 26 +- drivers/power/pmic/tps80031.c | 82 ++++ drivers/power/regulator/Kconfig | 24 ++ drivers/power/regulator/Makefile | 3 + drivers/power/regulator/max77663_regulator.c | 362 ++++++++++++++++++ drivers/power/regulator/tps65911_regulator.c | 375 +++++++++++++++++++ drivers/power/regulator/tps80031_regulator.c | 296 +++++++++++++++ include/power/max77663.h | 40 ++ include/power/tps65910_pmic.h | 47 +++ include/power/tps80031.h | 42 +++ 16 files changed, 1627 insertions(+), 3 deletions(-) create mode 100644 doc/device-tree-bindings/pmic/max77663.txt create mode 100644 doc/device-tree-bindings/pmic/tps65911.txt create mode 100644 doc/device-tree-bindings/pmic/tps80031.txt create mode 100644 drivers/power/pmic/max77663.c create mode 100644 drivers/power/pmic/tps80031.c create mode 100644 drivers/power/regulator/max77663_regulator.c create mode 100644 drivers/power/regulator/tps65911_regulator.c create mode 100644 drivers/power/regulator/tps80031_regulator.c create mode 100644 include/power/max77663.h create mode 100644 include/power/tps80031.h -- 2.39.2