2017-04-07 15:42:08 +00:00
|
|
|
From patchwork Fri Feb 24 18:47:21 2017
|
|
|
|
Content-Type: text/plain; charset="utf-8"
|
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Transfer-Encoding: 7bit
|
|
|
|
Subject: [v4,4/4] mfd: mt6397: Add MT6323 LED support into MT6397 driver
|
|
|
|
From: sean.wang@mediatek.com
|
|
|
|
X-Patchwork-Id: 9591021
|
|
|
|
Message-Id: <1487962041-6548-5-git-send-email-sean.wang@mediatek.com>
|
|
|
|
To: <rpurdie@rpsys.net>, <jacek.anaszewski@gmail.com>, <lee.jones@linaro.org>,
|
|
|
|
<matthias.bgg@gmail.com>, <pavel@ucw.cz>, <robh+dt@kernel.org>,
|
|
|
|
<mark.rutland@arm.com>
|
|
|
|
Cc: devicetree@vger.kernel.org, keyhaede@gmail.com,
|
|
|
|
Sean Wang <sean.wang@mediatek.com>, linux-kernel@vger.kernel.org,
|
|
|
|
linux-mediatek@lists.infradead.org, linux-leds@vger.kernel.org,
|
|
|
|
linux-arm-kernel@lists.infradead.org
|
|
|
|
Date: Sat, 25 Feb 2017 02:47:21 +0800
|
|
|
|
|
|
|
|
From: Sean Wang <sean.wang@mediatek.com>
|
|
|
|
|
|
|
|
Add compatible string as "mt6323-led" that will make
|
|
|
|
the OF core spawn child devices for the LED subnode
|
|
|
|
of that MT6323 MFD device.
|
|
|
|
|
|
|
|
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
|
|
|
|
---
|
|
|
|
drivers/mfd/mt6397-core.c | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
|
|
|
--- a/drivers/mfd/mt6397-core.c
|
|
|
|
+++ b/drivers/mfd/mt6397-core.c
|
2017-05-15 11:11:05 +00:00
|
|
|
@@ -48,6 +48,10 @@ static const struct mfd_cell mt6323_devs
|
2017-04-07 15:42:08 +00:00
|
|
|
.name = "mt6323-regulator",
|
|
|
|
.of_compatible = "mediatek,mt6323-regulator"
|
|
|
|
},
|
|
|
|
+ {
|
|
|
|
+ .name = "mt6323-led",
|
|
|
|
+ .of_compatible = "mediatek,mt6323-led"
|
|
|
|
+ },
|
|
|
|
};
|
|
|
|
|
|
|
|
static const struct mfd_cell mt6397_devs[] = {
|