Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6854565imu; Thu, 31 Jan 2019 00:26:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN66IW/ZSXh3gYbyi6Fr674RN+H+P+fu/CbJN8L9ePh31O+zwMR5y8GbBQ90BNz8QxMHif81 X-Received: by 2002:a62:1f9d:: with SMTP id l29mr33915033pfj.14.1548923160218; Thu, 31 Jan 2019 00:26:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548923160; cv=none; d=google.com; s=arc-20160816; b=KvBctXsBcaFshX9ddjhdrdXpG63TEAnItXEMvkHHRx0yt3qQ6r9HaCeEZ2Uk5KM96r NHJnB/jBuel7cHLJH7J+2Ydg6dTzpu3zELGonUJGtZ5yDRI1yuv4Dfsdpf91lCEWCHg4 1AXzoYXXSWbROJlF5G3DK2p4i3FXjnaX0EwZRGyp4c9J9VO21lxpdTLw4eX1zvXvWW9l f7sXgUwl0Ksx6C7qTb5V8cJlEcRgklH4h2dUJ9Vm2YS0OxTN/zV0uxzTQ6B67i32bp5v JqsC1oMLqFKUwwvfCCKfz/2msaThJkzUCrW63H54YJLOI2dSOqTOBwlE8u9fMedBAVVF ip+A== 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=j8OFP1xm6NBi62PbvANnUQHQNDwPnYgmRH7gmiiXKGQ0wNCBtmGO+Rw6uCT11QfTc0 bnuo5jxrn/F3qtDaglULPOgbpKxMn1h5304/ECFMNbGBtr8t7pwH+8hiJv4dmiMIj9a4 LUc7teCTMdWZbPZK2GCxRbIwS4aYKvvVpN4K5UeIiCfph7ZX4rvOfTRHEaoLr3jktZ4f 4RDz+0Q7NmFY21vNyKw/BMWtW3cFjNjlQS9nZozB6BO3yf20PnWtNzQQAXePbpJcnv/N Ibbgp2S/2XtD8wMwfLSrjBKUMaKLNFyJBEEb0yLa9STrm2lV4W+23h76hMIFPfhM7Hdq 0ouA== 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 38si3679181pgx.460.2019.01.31.00.25.44; Thu, 31 Jan 2019 00:26:00 -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 S1731637AbfAaIZb (ORCPT + 99 others); Thu, 31 Jan 2019 03:25:31 -0500 Received: from olimex.com ([184.105.72.32]:43365 "EHLO olimex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725961AbfAaIZa (ORCPT ); Thu, 31 Jan 2019 03:25:30 -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 ; Thu, 31 Jan 2019 00:25:26 -0800 From: Stefan Mavrodiev To: Lee Jones , Chen-Yu Tsai , linux-kernel@vger.kernel.org (open list:X-POWERS MULTIFUNCTION PMIC DEVICE DRIVERS) Cc: Stefan Mavrodiev Subject: [PATCH 2/5] mfd: axp20x: Add axp20x-led cell Date: Thu, 31 Jan 2019 10:23:04 +0200 Message-Id: <20190131082308.22522-2-stefan@olimex.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190131082308.22522-1-stefan@olimex.com> References: <20190131082308.22522-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