From patchwork Wed Jun 12 08:36:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolaus Voss X-Patchwork-Id: 10988959 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E33EA14E5 for ; Wed, 12 Jun 2019 08:36:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D00B5289BF for ; Wed, 12 Jun 2019 08:36:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3F71289C4; Wed, 12 Jun 2019 08:36:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70887289BA for ; Wed, 12 Jun 2019 08:36:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727834AbfFLIgk (ORCPT ); Wed, 12 Jun 2019 04:36:40 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:43404 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726533AbfFLIgk (ORCPT ); Wed, 12 Jun 2019 04:36:40 -0400 Received: from pc-niv.weinmann.com (localhost [127.0.0.1]) by mail.steuer-voss.de (Postfix) with ESMTP id AB75E4D037; Wed, 12 Jun 2019 10:36:36 +0200 (CEST) From: Nikolaus Voss To: "Rafael J. Wysocki" , Len Brown , Robert Moore , Erik Schmauss , Jacek Anaszewski , Pavel Machek , Dan Murphy , Thierry Reding Cc: Nikolaus Voss , linux-acpi@vger.kernel.org, devel@acpica.org, linux-leds@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, nv@vosn.de Subject: [PATCH v2 0/3] PWM framework: add support referencing PWMs from ACPI Date: Wed, 12 Jun 2019 10:36:05 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As described in Documentation/firmware-guide/acpi/gpio-properties.rst a GPIO can be referenced from ACPI ASL _DSD with the "gpios"-property of the form: Package () { "gpios", Package () { ref, index, pin, active_low }} The second patch of this series adds support for specifing a PWM reference in ASL of the form Package () { "pwms", Package () { ref, index, pwm-period [, pwm flags]}} The first patch of this series is necessary to resolve the "ref" in ASL if the table has been loaded by efivar_ssdt_load() or configfs. The third patch of this series makes leds-pwm use the ACPI-enabled PWM framework. v2: - fixes by Pavel Machek and Dan Murphy Nikolaus Voss (3): ACPI: Resolve objects on host-directed table loads PWM framework: add support referencing PWMs from ACPI leds-pwm.c: support ACPI via firmware-node framework drivers/acpi/acpi_configfs.c | 6 +- drivers/acpi/acpica/tbxfload.c | 11 ++++ drivers/leds/leds-pwm.c | 45 +++++++------ drivers/pwm/core.c | 113 +++++++++++++++++++++++++++++++++ include/linux/pwm.h | 9 +++ 5 files changed, 161 insertions(+), 23 deletions(-)