Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5410988ybi; Wed, 12 Jun 2019 02:00:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGAvkNFTSa3uWRAswbMr3sX8I1311PIDHlm+WsRCqIYZOS6aoGQ3oKwqN2KX5q6pgsOr7s X-Received: by 2002:a63:87c8:: with SMTP id i191mr24615023pge.131.1560330008984; Wed, 12 Jun 2019 02:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560330008; cv=none; d=google.com; s=arc-20160816; b=UWfVqTHO8Ik9SLALUcnk5A7Bqpxcp7SwGo2V6qusAMKn8i6qXuUwvlKceo7BDXPIDK B1H/2nzDtANW0JfGP976ufvfuqYP3ldN0k6l+fZpsjjcNSytVrxGsI7SI8SxUt7ECGsI Z7h9o8Fe5lxc1rktX90ClpWmlZkRUL0JaIdXlidJqYsg3MUKf3gYRTOYdUD1qiWOdTV/ KCOthH+Izsw4v8Xe1g22m3bCkI/Z+U8DdYNnwzzgA5c0hSbYw9PDwZAGCZqTU3RCGVO2 apSNZ4esN2iTv09T7Ixc/fp8nB1HmqBfYmcE8XesBQVudgcYVO6wSJFplIspDpiawBtM ap0w== 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; bh=QmbYGrCfx07w9s6RGgKd0Bi0vFOjuz8V8NGquhiynS8=; b=yQc3IJfh86WOY5sAW660DrzExBOZo0a5nKE3fJe58tyHeX0IZ/MC3coViEXUIbavWK x2pezZ/Zy2FeS/pQ8OiupGIOQ2Fn+yCAV4TYc+wbsc0rcaYtpKQWwrgN3O8sIQ0RZQLz deNKspQsRY0h4vHvwj988m8+ac1blyVz7iMe2tKFA8Zeag1KBc2WhGqy1BVcvSTaXMG0 gY6U0YhmiRp6YT1A3mRYcY5xZLpzUE2pPdNvR+9c/TZHi3KxybO3ItDsazhmimiqWgvK z+PrV3C55MGOlna5w1TjP7jgJiWb6HKuOYopo55WGwOG8gFd3SY6DwzUi5l8ncL0F6W6 nqkQ== 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 m74si15025012pga.410.2019.06.12.01.59.53; Wed, 12 Jun 2019 02:00:08 -0700 (PDT) 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 S1731808AbfFLIpj (ORCPT + 99 others); Wed, 12 Jun 2019 04:45:39 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:43570 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727031AbfFLIpi (ORCPT ); Wed, 12 Jun 2019 04:45:38 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.17.1