From patchwork Fri Sep 24 08:42:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 1532107 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=Ug9Ka/0x; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4HG5D502LQz9sRf for ; Fri, 24 Sep 2021 18:43:48 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 17CAA83433; Fri, 24 Sep 2021 10:43:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.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=canonical.com header.i=@canonical.com header.b="Ug9Ka/0x"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D35BE8343F; Fri, 24 Sep 2021 10:43:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5017483431 for ; Fri, 24 Sep 2021 10:43:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alexandre.ghiti@canonical.com Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 01CD240264 for ; Fri, 24 Sep 2021 08:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1632473017; bh=JyJWVG/fK8V+YFgX4Krl3xpNvItyfa3EwsNnJNIX1ng=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ug9Ka/0xEJtUdTYuFocGNvgSeDG3ex/DLRCNZqk/7RbpKCl4f+p6FIgGchkQYn3Zw 0RMr3BEEk+JZdFYM3qF+zUriPfXcP5S6rlqkqnrrs61NLZrXgtLvoxE+RPqkrdKUR0 nlfK3ot2QzgfXHlEV6bokE0LedzOJ2sww9jwh+htmhyHKBKzzSBrqQegAkjhu9RfO5 DpQcaOBtYEKskZib4BuYVg0lycKnlKwtnA08H7juHO9TmsRip6px5s6WnODiTgm39Q SlXg/DCGdJ04kDrQtR8zOpJrWTkw+5mvn2sSw0vOidt3Mx9FfZN9IhJrY+u3Me9Ue4 f1bYOwe1jkmug== Received: by mail-wr1-f70.google.com with SMTP id c15-20020a5d4ccf000000b0015dff622f39so7400388wrt.21 for ; Fri, 24 Sep 2021 01:43:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JyJWVG/fK8V+YFgX4Krl3xpNvItyfa3EwsNnJNIX1ng=; b=q/+PRjvd4WZVJqTYPEkPnPtm0EPIzwPbecDlGZKo8M7iyVyhKIdp5J+HrhH2DW5lZZ R74O2kGRrf6QXn2quOhNrMerHFqRLrN+kCqfO73nD7UTef7EoBAXiMUYag2+yt+NOqGE DCbhBGMUQJJWdNX3e0H8BgrikSsh/iDNt0LYnRUtVeZhA0+1QqIFItuJOikVim9y+nbF bMjzmCRDx7JKbSN8A/BHybbT7bWWcGbDAkMLg8AsQc7QkSnl0/NiyYOJayduLxM79lZt rfeNZzWNEOEP16yjF2jAWwsUY7ls4XnL6mHDyV36Ma24KmsytEZe9PGirXcFhMOY2XaU fFTw== X-Gm-Message-State: AOAM530eufuuxN5UkukgZmnTeDJ2DQ7BNuj9ukWI8p4OVMUYMQani7zb hHwaxxHzXEQjkWRz3d5Rx7S1YnyP/TJmo8cWCASzWHoIUf+cEj7oslonW/mR/rFpDkrV5ucFpPO g1WmClIc9oDW20A5DpGvidVwocWy8VNg= X-Received: by 2002:adf:db0c:: with SMTP id s12mr10227455wri.322.1632473014731; Fri, 24 Sep 2021 01:43:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxME00g93+CcdCFev48Zgesy9IBuBM7YZfvzsCbgy5bBSH5QwopcKt6l+bSHO5iB7PYwtXOPg== X-Received: by 2002:adf:db0c:: with SMTP id s12mr10227436wri.322.1632473014562; Fri, 24 Sep 2021 01:43:34 -0700 (PDT) Received: from localhost.localdomain (lfbn-lyo-1-470-249.w2-7.abo.wanadoo.fr. [2.7.60.249]) by smtp.gmail.com with ESMTPSA id u13sm7774395wmq.33.2021.09.24.01.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 01:43:34 -0700 (PDT) From: Alexandre Ghiti To: Paul Walmsley , Pragnesh Patel , Green Wan , Jaehoon Chung , Heinrich Schuchardt , u-boot@lists.denx.de Cc: Alexandre Ghiti Subject: [PATCH v2 1/4] dt-bindings: power: Add da9063 PMIC device bindings Date: Fri, 24 Sep 2021 10:42:28 +0200 Message-Id: <20210924084231.3311216-2-alexandre.ghiti@canonical.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210924084231.3311216-1-alexandre.ghiti@canonical.com> References: <20210924084231.3311216-1-alexandre.ghiti@canonical.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean This new device tree binding documentation is largely inspired by the Linux Kernel same document, minus the unimplemented devices and properties. Signed-off-by: Alexandre Ghiti --- doc/device-tree-bindings/power/da9063.txt | 62 +++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 doc/device-tree-bindings/power/da9063.txt diff --git a/doc/device-tree-bindings/power/da9063.txt b/doc/device-tree-bindings/power/da9063.txt new file mode 100644 index 0000000000..30873ca360 --- /dev/null +++ b/doc/device-tree-bindings/power/da9063.txt @@ -0,0 +1,62 @@ +* Dialog DA9063/DA9063L Power Management Integrated Circuit (PMIC) + +DA9063 consists of the following sub-devices (I2C Only): + +Device Supply Names Description +------ ------------ ----------- +da9063-regulator : : LDOs & BUCKs + +====== + +Required properties: + +- compatible : Should be "dlg,da9063" or "dlg,da9063l" +- reg : Specifies the I2C slave address (this defaults to 0x58 but it can be + modified to match the chip's OTP settings). + +Sub-nodes: + +- regulators : This node defines the settings for the LDOs and BUCKs. + The DA9063(L) regulators are bound using their names listed below: + + bcore1 : BUCK CORE1 + bcore2 : BUCK CORE2 + bpro : BUCK PRO + bmem : BUCK MEM + bio : BUCK IO + bperi : BUCK PERI + ldo1 : LDO_1 (DA9063 only) + ldo2 : LDO_2 (DA9063 only) + ldo3 : LDO_3 + ldo4 : LDO_4 (DA9063 only) + ldo5 : LDO_5 (DA9063 only) + ldo6 : LDO_6 (DA9063 only) + ldo7 : LDO_7 + ldo8 : LDO_8 + ldo9 : LDO_9 + ldo10 : LDO_10 (DA9063 only) + ldo11 : LDO_11 + +Example: + + pmic0: da9063@58 { + compatible = "dlg,da9063" + reg = <0x58>; + + regulators { + DA9063_BCORE1: bcore1 { + regulator-name = "BCORE1"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1570000>; + regulator-min-microamp = <500000>; + regulator-max-microamp = <2000000>; + regulator-boot-on; + }; + DA9063_LDO11: ldo11 { + regulator-name = "LDO_11"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <3600000>; + regulator-boot-on; + }; + }; + };