Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3724059ybl; Mon, 12 Aug 2019 05:26:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXUYIK0Mzlu+mKkWkhjXDFNAMqQUMrnYfbDg8SpwQssCk9pc8e/0fuQQXOdoi8GoeEEzbd X-Received: by 2002:aa7:81ca:: with SMTP id c10mr358822pfn.185.1565612774599; Mon, 12 Aug 2019 05:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565612774; cv=none; d=google.com; s=arc-20160816; b=DHNL9Jv1GhLQDH3TtQMWHTRdy/+sSofmNy+9f8DpxePBobTMlqFINPFzcfIF/5kusJ +IKc1FLQFdhD8FoG6wPmXKQLnIhYn/4kbSk/8cH9xyL6/Kfc2A9fgd0vHVXfRPhv2Den 4qePCJZJHaulHlvQEAWRl8pEpkNeBd62HPki0npItQ8O6iB7TBzuRd1cMYF19A3MM08y 1JcVhvTgV2+vSRQu9IFDRR/U6LgLqG40nrJBrCXdrI2cat/T7OULq6vD2S2j0rBwJpVK BVzWXj/+2DrLDlnYyXKyhs1kuOIiljynmoCl2TjppGAHFpGlKv4GzmXupgb61cB2LoZf vrfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=NTQu27/0jRCgdLs5oYfO4kZO8Lh224yBho954ZKXqaw=; b=QzXoujotXFDqOFLK56bYYED/1cSM+4ZWa1vF6lz88n52nLshqhDce1nIQTmKLP1glS da1dFRdRy7Ujm1JvC6M17nnLG++TgqGBpba4liwQYqhcm1zYoZuHu0Xq6WXxKJV5MzJI pHdwty6KjsR+AhLZhahDCMAdAbDvBcPzNJSqj3tLmDGgwM0GBNp/62tAiyMmwo85v6u5 D39+rPbyiFMEuSOv0/9Rs671l13+TuLLCr4Y+bMY7uCQt+5IrguzTqGJeCtZ6dVnpYcf 2zjNqbPYxtTdd1qrDtTWZDgRKUGT0eux/794h60b3zw3F3PQfhIcaw4932KQg9y9RHU4 ksog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b35si58269239plb.249.2019.08.12.05.25.58; Mon, 12 Aug 2019 05:26:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728766AbfHLMYq (ORCPT + 99 others); Mon, 12 Aug 2019 08:24:46 -0400 Received: from mxwww.masterlogin.de ([95.129.51.220]:59242 "EHLO mxwww.masterlogin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728390AbfHLMYK (ORCPT ); Mon, 12 Aug 2019 08:24:10 -0400 Received: from mxout2.routing.net (unknown [192.168.10.82]) by new.mxwww.masterlogin.de (Postfix) with ESMTPS id 67BAA96D7A; Mon, 12 Aug 2019 12:15:29 +0000 (UTC) Received: from mxbox2.masterlogin.de (unknown [192.168.10.253]) by mxout2.routing.net (Postfix) with ESMTP id A21DA647BC; Mon, 12 Aug 2019 12:15:29 +0000 (UTC) Received: from localhost.localdomain (fttx-pool-217.61.152.193.bambit.de [217.61.152.193]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id DD8EC100D06; Mon, 12 Aug 2019 14:15:26 +0200 (CEST) From: Frank Wunderlich To: Alessandro Zummo , Alexandre Belloni , Allison Randal , "David S. Miller" , devicetree@vger.kernel.org, Eddie Huang , Greg Kroah-Hartman , Jonathan Cameron , Kate Stewart , Lee Jones , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, Mark Rutland , Matthias Brugger , Mauro Carvalho Chehab , Nicolas Ferre , Richard Fontana , Rob Herring , Sean Wang , Sebastian Reichel , Thomas Gleixner , "Tianping . Fang" Cc: Josef Friedl , Frank Wunderlich Subject: [PATCH v5 01/10] dt-bindings: add powercontroller Date: Mon, 12 Aug 2019 14:15:02 +0200 Message-Id: <20190812121511.4169-2-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190812121511.4169-1-frank-w@public-files.de> References: <20190812121511.4169-1-frank-w@public-files.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Josef Friedl add mt6323-rtc and mt6323-pwrc to mt6397 mfd DT bindings an example is shown in mt6323-poweroff.txt Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich Acked-for-MFD-by: Lee Jones --- changes since v4: use relative path changes since v3: none changes since v2: separated rtc-mt6397.txt to part 2 --- .../devicetree/bindings/mfd/mt6397.txt | 20 +++++++++++++------ .../bindings/power/reset/mt6323-poweroff.txt | 20 +++++++++++++++++++ 2 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/Documentation/devicetree/bindings/mfd/mt6397.txt index 0ebd08af777d..063f5fe1cace 100644 --- a/Documentation/devicetree/bindings/mfd/mt6397.txt +++ b/Documentation/devicetree/bindings/mfd/mt6397.txt @@ -8,11 +8,12 @@ MT6397/MT6323 is a multifunction device with the following sub modules: - Clock - LED - Keys +- Power controller It is interfaced to host controller using SPI interface by a proprietary hardware called PMIC wrapper or pwrap. MT6397/MT6323 MFD is a child device of pwrap. See the following for pwarp node definitions: -Documentation/devicetree/bindings/soc/mediatek/pwrap.txt +../../bindings/soc/mediatek/pwrap.txt This document describes the binding for MFD device and its sub module. @@ -22,14 +23,16 @@ compatible: "mediatek,mt6397" or "mediatek,mt6323" Optional subnodes: - rtc - Required properties: + Required properties: Should be one of follows + - compatible: "mediatek,mt6323-rtc" - compatible: "mediatek,mt6397-rtc" + For details, see ../../bindings/rtc/rtc-mt6397.txt - regulators Required properties: - compatible: "mediatek,mt6397-regulator" - see Documentation/devicetree/bindings/regulator/mt6397-regulator.txt + see ../../bindings/regulator/mt6397-regulator.txt - compatible: "mediatek,mt6323-regulator" - see Documentation/devicetree/bindings/regulator/mt6323-regulator.txt + see ../../bindings/regulator/mt6323-regulator.txt - codec Required properties: - compatible: "mediatek,mt6397-codec" @@ -39,12 +42,17 @@ Optional subnodes: - led Required properties: - compatible: "mediatek,mt6323-led" - see Documentation/devicetree/bindings/leds/leds-mt6323.txt + see ../../bindings/leds/leds-mt6323.txt - keys Required properties: - compatible: "mediatek,mt6397-keys" or "mediatek,mt6323-keys" - see Documentation/devicetree/bindings/input/mtk-pmic-keys.txt + see ../../bindings/input/mtk-pmic-keys.txt + +- power-controller + Required properties: + - compatible: "mediatek,mt6323-pwrc" + For details, see ../../bindings/power/reset/mt6323-poweroff.txt Example: pwrap: pwrap@1000f000 { diff --git a/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt b/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt new file mode 100644 index 000000000000..933f0c48e887 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/mt6323-poweroff.txt @@ -0,0 +1,20 @@ +Device Tree Bindings for Power Controller on MediaTek PMIC + +The power controller which could be found on PMIC is responsible for externally +powering off or on the remote MediaTek SoC through the circuit BBPU. + +Required properties: +- compatible: Should be one of follows + "mediatek,mt6323-pwrc": for MT6323 PMIC + +Example: + + pmic { + compatible = "mediatek,mt6323"; + + ... + + power-controller { + compatible = "mediatek,mt6323-pwrc"; + }; + } -- 2.17.1