Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp874362imj; Fri, 15 Feb 2019 08:12:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IbN7faoPV1VTqC+XLuxOcgKtDjx3ejUa2OYzkaYzolXjDCmV9565n+yBPygZx5SWIzjI0Om X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr10986747plk.126.1550247165647; Fri, 15 Feb 2019 08:12:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247165; cv=none; d=google.com; s=arc-20160816; b=a4O9OSCALZcT52qJINEP1QIEkLVphCmJ+RtIR4hvMJdAZFU9sczmjp6zh0/Fo5kvU7 AHOjpnb9znQxoAGpRSjuc4kZS//tYHe2HHOjvBCGObeQBdD0bonTJmWNm3m/zUs6hpPF tXK72r4snvqmwXsi6U2fxA/PdYkGZJK87ylWHZt44HK7oiteu9s+SE5jxz+DY1ihqKbT gJK+ihhjbCwTQKPPRMzQ7h0NVUa5JemPkWYKshhm6XdrtjLAAvGKpiwibTM1AVK+lWlp thgvaBeuXhp8hTV+79Oaai4lqmOReEr8M59KbWbyc/Z+Er36289fGPofJ06uOLhLJMOP 9F4A== 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=jLR8+bY4JzxOZ1Q2+IoNnDXm2P23GqPbkXdXPfCoknM=; b=C15swGRsKlCb+QKa5Ydkvk05eJe7RnE5nLGG06B5O7OtcbwLbNVcY9NBlaR2AF/elD VFKQ0MNi9XhAT1tgSCOFV1gwDl1U956jn7YYk3Ooc2GxdmsGq3yMzOBGW4L16beSJhOF 2+hsAhI/76WUEZ3rSa/Iy9iqJiat4p5fw0c9VhjRhOBGUdLixAnYb0RjQ2SD94InMXu/ XN2HyGjWi/lHZrO+LtEc83H6ZzMUJ9Z6tO71Y1dFyZPTwJUnphJo2tW5olHqtDaDWp7v TlHvhe7k/mxObjeI1rrd28Ff/P7nkfuxbbLo8z1//MrZD1aLiKE9O5QLy6RXOFZun8vz HqHA== 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 a72si3693029pge.100.2019.02.15.08.12.29; Fri, 15 Feb 2019 08:12:45 -0800 (PST) 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 S2391359AbfBOLux (ORCPT + 99 others); Fri, 15 Feb 2019 06:50:53 -0500 Received: from olimex.com ([184.105.72.32]:56557 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393743AbfBOLuw (ORCPT ); Fri, 15 Feb 2019 06:50:52 -0500 Received: from localhost.localdomain ([195.238.85.143]) by olimex.com with ESMTPSA (ECDHE-RSA-AES128-GCM-SHA256:TLSv1.2:Kx=ECDH:Au=RSA:Enc=AESGCM(128):Mac=AEAD) (SMTP-AUTH username stefan@olimex.com, mechanism PLAIN) for ; Fri, 15 Feb 2019 03:50:42 -0800 From: Stefan Mavrodiev To: Jacek Anaszewski , Pavel Machek , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Lee Jones , linux-leds@vger.kernel.org (open list:LED SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list:X-POWERS MULTIFUNCTION PMIC DEVICE DRIVERS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Allwinner sunXi SoC support) Cc: Stefan Mavrodiev Subject: [PATCH v2 2/8] mfd: axp20x: Add axp20x-led cell Date: Fri, 15 Feb 2019 13:50:07 +0200 Message-Id: <20190215115013.11098-3-stefan@olimex.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190215115013.11098-1-stefan@olimex.com> References: <20190215115013.11098-1-stefan@olimex.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add axp20x-led cell for AXP20x, AXP221, AXP223, AXP228, AXP803, AXP809 and AXP813. Signed-off-by: Stefan Mavrodiev --- drivers/mfd/axp20x.c | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index 3c97f2c0fdfe..e6ab078f0462 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -610,6 +610,9 @@ static const struct mfd_cell axp20x_cells[] = { .of_compatible = "x-powers,axp202-usb-power-supply", .num_resources = ARRAY_SIZE(axp20x_usb_power_supply_resources), .resources = axp20x_usb_power_supply_resources, + }, { + .name = "axp20x-led", + .of_compatible = "x-powers,axp20x-led", }, }; @@ -636,6 +639,9 @@ static const struct mfd_cell axp221_cells[] = { .of_compatible = "x-powers,axp221-usb-power-supply", .num_resources = ARRAY_SIZE(axp22x_usb_power_supply_resources), .resources = axp22x_usb_power_supply_resources, + }, { + .name = "axp20x-led", + .of_compatible = "x-powers,axp20x-led", }, }; @@ -662,6 +668,9 @@ static const struct mfd_cell axp223_cells[] = { .of_compatible = "x-powers,axp223-usb-power-supply", .num_resources = ARRAY_SIZE(axp22x_usb_power_supply_resources), .resources = axp22x_usb_power_supply_resources, + }, { + .name = "axp20x-led", + .of_compatible = "x-powers,axp20x-led", }, }; @@ -719,6 +728,9 @@ static const struct mfd_cell axp288_cells[] = { .resources = axp288_power_button_resources, }, { .name = "axp288_pmic_acpi", + }, { + .name = "axp20x-led", + .of_compatible = "x-powers,axp20x-led", }, }; @@ -741,8 +753,12 @@ static const struct mfd_cell axp803_cells[] = { .of_compatible = "x-powers,axp813-ac-power-supply", .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), .resources = axp20x_ac_power_supply_resources, + }, { + .name = "axp20x-regulator" + }, { + .name = "axp20x-led", + .of_compatible = "x-powers,axp20x-led", }, - { .name = "axp20x-regulator" }, }; static const struct mfd_cell axp806_self_working_cells[] = { @@ -769,6 +785,9 @@ static const struct mfd_cell axp809_cells[] = { }, { .id = 1, .name = "axp20x-regulator", + }, { + .name = "axp20x-led", + .of_compatible = "x-powers,axp20x-led", }, }; @@ -793,6 +812,9 @@ static const struct mfd_cell axp813_cells[] = { .of_compatible = "x-powers,axp813-ac-power-supply", .num_resources = ARRAY_SIZE(axp20x_ac_power_supply_resources), .resources = axp20x_ac_power_supply_resources, + }, { + .name = "axp20x-led", + .of_compatible = "x-powers,axp20x-led", }, }; -- 2.17.1