Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2371617ybt; Tue, 16 Jun 2020 04:30:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCJMJj/cwz6+x3gi+fAXCvivAsTOx2RCvMJPwI1ERDE7p/3QyG5dOv7Qb6iEWFtTtv/e4f X-Received: by 2002:a17:907:42d2:: with SMTP id ng2mr2224372ejb.301.1592307010183; Tue, 16 Jun 2020 04:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592307010; cv=none; d=google.com; s=arc-20160816; b=vkInVF5M/nxcpsc8zigRrfDeulnSXytgn62hc07NogRtC3CPj8bPTxsH+k6xLwQYl9 +75czDc1qKDkOiHVijORsRLYrjf75jETPOYrsY0QYm6OwAkyF+fjlSzSz1yCL8lsBvh5 leaCSurT3cdpanYr3jKfJUWQcpcXkETLZ3RSoOmQ/pM3EFx7VWkAFgFdZHcIqz4qO/3F 9UTe734T+FDojOisvHEj5MjTs/NXu00wExaA///mmzcCwvh55DNm2M6sVhdBEIp7xh+X XR7cUCdl/FUBqtR4fsuBk4E/HZFv6od8iPAVeDG56WPdCz1zi3lzebWHwUQsPYGlMOK9 k+aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=C66Iy0udb87vhjoDYd71Ql6l2XA6eYACBYbwZNfMhzU=; b=vnulX4/h2XEWUAlG1dTjuDDlZknfYsjb4CV3rqNFV1gLR28o8UEbqbOB+a18tzhy4M DigcVcGVwddiZ+awSd4Yak/Mqtti0XsxMQ+41LX+1C4Ef5+S8uYVyTR4AS2oSmp36n2t IKVtAz+9zKgOEcsNmd0EFFpQPGdoaOWnJst8axWgpaCi33NIclcxm8rxMP7JYYiEK2PC COHQFgv1QcDiQAQjxmJjGZ97Qz4JERLi32zhEvgeYK8d6IJ1recM8FEl1G0kD0VzS/l9 AB1LoZI4/0omdRwImEIwFNY7F//P392r0Kv7Srl2SIhN5tJiYVt7YnVURCTs32ljy+MG oueQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ICJev4x2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm27si9974266edb.248.2020.06.16.04.29.48; Tue, 16 Jun 2020 04:30: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=pass header.i=@gmail.com header.s=20161025 header.b=ICJev4x2; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728559AbgFPL2D (ORCPT + 99 others); Tue, 16 Jun 2020 07:28:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbgFPL2C (ORCPT ); Tue, 16 Jun 2020 07:28: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 7218AC08C5C2; Tue, 16 Jun 2020 04:28:02 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id i12so1300787pju.3; Tue, 16 Jun 2020 04:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=C66Iy0udb87vhjoDYd71Ql6l2XA6eYACBYbwZNfMhzU=; b=ICJev4x2OgJ6X7xmSzWcGWWwJAyPTOuhILDrFDfIxcor78l92hde85mv/ysyicxvef iPNwenqBqzDbFYvb1JN0CUUfCD/bVIu8lN07+lYRk/zQ79/IhvUQXPkBOAMQHdCG5CLq w5Sq6/CXDDYr0RG7p6vn79pM30Dl03IYtNXE4GfkD0tlZFOzpYLWUvcRW0T2WAK+H2/S 6dRw9Bh5DKve8/a1Nd85Gd7LTgTsOPUU1p2F6w3ozF/XkHf/bG/7J2lhs7lGUJtze0wc f8CojXLI6JoBPREEVLMQjgXwOSuemXoDk4DjB7x7zXK9YgYMX8a87KK7rZeLaVKjY4Xk I0ew== 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; bh=C66Iy0udb87vhjoDYd71Ql6l2XA6eYACBYbwZNfMhzU=; b=EdKzUrRfmbCbnmP49siiLiLPVE4Ex5tuQSJpIwaQKqb56z5lV3LOmNVz+jZ/OjMZll Xs250XTMjceZ+YezbuNS6r05vPddbE4FPJZic6NbYG1riAAl+bEDre71qGoqAUs5SPtC xVVvItWzj1YFNzBnJN6HmmzJRhrsFWpgLaPeRc0XrrAOtOZvG0a63gm7wqD17PIjkYaX qmQdK4mh7nUTpp812OXl+QOqaS8Eg6AXEkxTdtSwG6yPW59auPni//4wFmBmNKMLU0KP dlkueKLtgAEaJ4yOb7LWLek1sd1IX60i9qsUpDOhVttl8JH+ja4GZTQ7wkHYm9DpuLWJ U8aw== X-Gm-Message-State: AOAM530Khz1/lnGEv1qJZP2OGElHGOq/4nqSmo5yojkF0ahUmjGYmYdy swxaowYDbetV5BIAhsIDBcQ= X-Received: by 2002:a17:90a:c85:: with SMTP id v5mr2248738pja.114.1592306882003; Tue, 16 Jun 2020 04:28:02 -0700 (PDT) Received: from localhost.localdomain ([101.12.205.96]) by smtp.gmail.com with ESMTPSA id b19sm16617701pft.74.2020.06.16.04.27.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jun 2020 04:28:01 -0700 (PDT) From: Gene Chen To: robh+dt@kernel.org, matthias.bgg@gmail.com Cc: lee.jones@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, gene_chen@richtek.com, Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com Subject: [PATCH] dt-bindings: mfd: Add bindings for the Mediatek MT6360 PMIC Date: Tue, 16 Jun 2020 19:27:56 +0800 Message-Id: <1592306876-3504-1-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gene Chen Add devicetree binding document support Mediatek MT6360 PMIC Signed-off-by: Gene Chen --- Documentation/devicetree/bindings/mfd/mt6360.txt | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.txt diff --git a/Documentation/devicetree/bindings/mfd/mt6360.txt b/Documentation/devicetree/bindings/mfd/mt6360.txt new file mode 100644 index 0000000..e25b5c6 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mt6360.txt @@ -0,0 +1,53 @@ +MediaTek MT6360 Multifunction Device Driver + +MT6360 is a multifunction device with the following sub modules: +- ADC +- Battery Charger/OTG boost +- Flash LED/RGB LED/moonlight LED +- 2-channel Buck +- 6-channel LDO +- USB_PD + +It is interfaced to host controller using I2C interface. +This document describes the binding for MFD device and its sub module. + +Required properties: +- compatible: Must be "mediatek,mt6360_pmu" +- reg: Specifies the I2C slave address of PMIC block, Must be <0x34> +- interrupts: I2C device IRQ line connected to the main SoC. + +Optional subnodes: +- ADC + Required properties: + - compatible: "mediatek,mt6360_adc" +- battery charger/OTG boost + Required properties: + - compatible: "mediatek,mt6360_chg" +- Flash LED/RGB LED/moonlight LED + Required properties: + - compatible: "mediatek,mt6360_led" +- 2-channel Buck + Required properties: + - compatible: "mediatek,mt6360_pmic" +- 6-channel LDO + Required properties: + - compatible: "mediatek,mt6360_ldo" +- USB_PD + Required properties: + - compatible: "mediatek,mt6360_tcpc" + +Example: + + #include + + pmu: mt6360_pmu@34 { + status = "ok"; + compatible = "mediatek,mt6360_pmu"; + reg = <0x34>; + wakeup-source; + interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>; + interrupt-names = "IRQB"; + interrupt-controller; + #interrupt-cells = <2>; + }; + -- 2.7.4