Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3628649rwb; Tue, 8 Nov 2022 06:44:56 -0800 (PST) X-Google-Smtp-Source: AMsMyM7ThiHWFO0jL1PixPQF0DKJtB/PQ6vslRN3iT1rMa50zIceAMym7jwI0aTaqK7ZR/4ObRdV X-Received: by 2002:a05:6402:3c2:b0:464:61f5:6d86 with SMTP id t2-20020a05640203c200b0046461f56d86mr24891825edw.382.1667918696720; Tue, 08 Nov 2022 06:44:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667918696; cv=none; d=google.com; s=arc-20160816; b=uWucx5lfOJu3BDIv+CkaujuLjrUTRxpWx9xYuPfJIxK0Th7BvUfOU8lz03igDURtaA hVan4siqShIfDMF3cuXYgpEOq+Ml4Z+18XSQv60Wm1s5q2PXchqzC2wdbvtbC83Dyb5t 9YShFGbSVtJUObciFk8rLT1aiOYbTXL6mLiRgz3B35umU1m69ayzhSAS0sWQnMmZ+Kgp 6MZ04G4/2ITWYSUehGOo1WLI3G20lW6s7hWzwPUwvM1sRj2UUfKmQ1AHUgMHuwDBIvlF 3Fq+piBwwpcR9Wvdrk07RJVA9ySgSTDss9YTLCBGPwIjWDjpOmBK/+4AYRWmlNYXfYEw xT6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=wGVXuEoAPmPbQoreRTrRoY/n0nHiv20NUhwR+DCT1Uw=; b=H9T9BR6zutDvHNV6Nz7rJ1taXML1xbZm4EogPoSqrp5gddVLi5xPLcS8ZUDpVJmTRd fVwntWE9U0d/KzMRFFbrKURNSMC0Ya3SVS3RpGxSliTzeazANhxw+hTjDu8QacwjjdPG 2OgSCdLn1tk9B1erD7VqRZD0NwkpxBBfKOpMoDISOh7FtofPF95uw7JoZK2WDQ7brDDk Zbl9RgHWayQlWcAN4a1Y1DfgGcZMu8cg+QPzKlGbCtHs7mxols7UNh2HOXNqSIroz2bE DXlSTaU0kW9jjKUxcuD9E5tmEfXufFQXbPCQm1cPV/7jxkAzx8FKJACtSNixmmfA+aLw vzgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W3ceUzX0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu7-20020a170906a14700b0078b0865d468si9718709ejb.549.2022.11.08.06.44.34; Tue, 08 Nov 2022 06:44:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=W3ceUzX0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234564AbiKHOWp (ORCPT + 92 others); Tue, 8 Nov 2022 09:22:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234477AbiKHOWK (ORCPT ); Tue, 8 Nov 2022 09:22:10 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71D6154B14; Tue, 8 Nov 2022 06:22:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667917330; x=1699453330; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qk9qwz/jghx/lz9m3Vhf8durMxo4bHUw+WpVmuVNBr4=; b=W3ceUzX0eDx7P0ui9icX6qPZ4B8mFM/HFNLDlLtfHDFdGWxyk0wHZtqE Q4EFsz8DuVwCXyAlNRmaQlktzaBzfKJjVGpdbWI/O45FVkZXOJvDfQv4D uQR26IPbg72rMNmg1Irk1cFB9nUyu9m9B0+qhQkP8URpdC7LXhPQYJtM8 Sz2ZMZzVnqNum7gQlde9x5TjUNsW8TMGVTa8LbvDXoOCvmwyTv26to6WU 0sL29vFYK4ePd0uqVhqet7ktxdZth8awidttuEJtr9em9EU0IQj9o9Obf eIxOIcFTaRSk6nGqmRuScijaQS9cSdriK8uTO3HftfXfT1+Efel5cMrlU A==; X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="298219285" X-IronPort-AV: E=Sophos;i="5.96,148,1665471600"; d="scan'208";a="298219285" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 06:22:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="699938292" X-IronPort-AV: E=Sophos;i="5.96,148,1665471600"; d="scan'208";a="699938292" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 08 Nov 2022 06:22:03 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id 5E0F915C; Tue, 8 Nov 2022 16:22:27 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , Mika Westerberg , Hans de Goede , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Thierry Reding , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org Cc: Andy Shevchenko , Linus Walleij Subject: [PATCH v2 0/6] pinctrl: intel: Enable PWM optional feature Date: Tue, 8 Nov 2022 16:22:20 +0200 Message-Id: <20221108142226.63161-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a continuation of the previously applied PWM LPSS cleanup series. Now, we would like to enable PWM optional feature that may be embedded into Intel pin control IPs (starting from Sky Lake platforms). I would like to route this via Intel pin control tree with issuing an immutable branch for both PINCTRL and PWM subsystems, but I'm open for other suggestions. Hans, I dared to leave your Rb tags, however the patches are slighly differ, because of the Uwe's suggestion on how to handle the missing headers. I hope you is okay with that. If not, please comment what must be ammended then. Changelog v2: - added tag (Mika) - added base-commit to the series, to make sure LKP can test it Cc: Hans de Goede Cc: Mika Westerberg Andy Shevchenko (6): pwm: Add a stub for devm_pwmchip_add() pwm: lpss: Rename MAX_PWMS --> LPSS_MAX_PWMS pwm: lpss: Include headers we are direct user of pwm: lpss: Allow other drivers to enable PWM LPSS pwm: lpss: Add pwm_lpss_probe() stub pinctrl: intel: Enumerate PWM device when community has a capabilitty drivers/pinctrl/intel/pinctrl-intel.c | 29 +++++++++++++ drivers/pwm/pwm-lpss.c | 2 +- drivers/pwm/pwm-lpss.h | 34 ++++----------- .../linux/platform_data/x86}/pwm-lpss.h | 41 ++++++++----------- include/linux/pwm.h | 5 +++ 5 files changed, 61 insertions(+), 50 deletions(-) copy {drivers/pwm => include/linux/platform_data/x86}/pwm-lpss.h (51%) base-commit: 3886bc3523db24814c98c57d74fe66d7a21bf40b -- 2.35.1