Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2558104rdh; Wed, 27 Sep 2023 06:22:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3wRiRmHGo5XIlEhAxizj4+vXso2yEdObysznF61gd7p8jwSKnnyK68M2jJVnDmEjZypIh X-Received: by 2002:a05:6808:f07:b0:3a7:b094:8f2 with SMTP id m7-20020a0568080f0700b003a7b09408f2mr2767224oiw.45.1695820923253; Wed, 27 Sep 2023 06:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695820923; cv=none; d=google.com; s=arc-20160816; b=atxEokMn+f6CZax4K+jaWdlMdcWbkhrS+eoCASBhJQWAjnb7SCxZIl5C6TZt58GQ1C /E00eNHpW0ocoqgIzg06ERkKiNHyF88FZ0RZXRzQ3WSvAIKxNNBQFcqnvRcg2kouJNHQ 0mE3/vVs9Je6+bigXUnfvGoXHR155tBApwDsrvAbGeLrAPCYaSYtAXuCZGS7wpztm38l 9cAxNhkFqlTn+3q3anuL64X58NfDdfojB1PLrV4mT83jL2Ac5LqsfeXVIxSdTb/wzfeg 37Vl6RREd4kpvH+fAlWYPKHb9pIbojoA9XyRlcGi3B4z9wJnza1KHWw6yUQd2NEnkZsU h8Nw== 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=rSntJzNRkDUBipvu6Tg7v17n59l9JHnPOx2LgwDDlc0=; fh=rqgC35ipwg31Y/rjYkXO7IHxVFzojSk3dyN5MMku5Vg=; b=AfUSN+vPr234PXfbGDNaa6jkM4ld9PmibiL04s3HyI7+OP8RZ/E3prR9YJJfJ60fVF YC3DIT9GPMtPHwT46BpIaMnL6nvsA7CC9fyf5gT0YMiYDmTS2lpka2t7cwjTmP9BQF9P wmVPdPSG7h5aTHJMp3IJUPRyfh/ezWLDejOqVeFcQB+EKS8ybrzW/7rqwXW4Ws1vp7r9 DptqaO4I+CxzjtNXIuIlK0dCT2YSmnI/nMYxC7yOjeedzkKNzItYtN9SZZff4SXR2/eB ubzvYNWwW6ePBJhleeFoNi830ZALxoqvjdhQ1ZUwxzMa6Gx7AvOaP7w36AROWCiF/lDC Ih/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mjcM7UlK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id cl6-20020a056a0032c600b0069339f19f7dsi1406803pfb.199.2023.09.27.06.22.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 06:22:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mjcM7UlK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2D2C88113408; Tue, 26 Sep 2023 12:08:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235665AbjIZTId (ORCPT + 99 others); Tue, 26 Sep 2023 15:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235619AbjIZTIc (ORCPT ); Tue, 26 Sep 2023 15:08:32 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01594126; Tue, 26 Sep 2023 12:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695755305; x=1727291305; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+4CIGQkiHpdKp7raUQTHIHbkLXKoETSn/0+bWyXrAyU=; b=mjcM7UlKJV027aOUyzh0lz0PE1kXLKemuJGS3kgTrGhxDQ4BudCEIP1x 24j2/7g2idonF/v0v5lJSqKOAZVRTVKYBjWB5ZqlX6PuYsR9dUGhIKou3 eGqHGv/Mbta88X2HIRaNP86RMuikWPJKqGzN9GRicY04f4/xzMvFMrCJa 58Hfr0SY+hcVQQ67zxGLe0gYhGLBzde1T4j7yyHAjEnqK1hZcIJZF5kzC Sws+IFaFYArzzx3hnwy4zWLzmf0ArvB+sNTMnd4QCpAe3uxU49mxVot2C ASpPZai5CovFHNYrjgMegFVUaBPKuBA3zkFhtlDPdIAK9wPVJ3MxjN7Ic Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="448142580" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="448142580" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 12:08:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="819142506" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="819142506" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga004.fm.intel.com with ESMTP; 26 Sep 2023 12:08:23 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id D97F211D; Tue, 26 Sep 2023 22:08:21 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij , Takashi Iwai Subject: [PATCH v1 1/1] pinctrl: denverton: Enable platform device in the absence of ACPI enumeration Date: Tue, 26 Sep 2023 22:08:18 +0300 Message-Id: <20230926190818.931951-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 26 Sep 2023 12:08:35 -0700 (PDT) This is to cater the need for non-ACPI system whereby a platform device has to be created in order to bind with the Denverton pinctrl platform driver. Signed-off-by: Andy Shevchenko --- drivers/pinctrl/intel/pinctrl-denverton.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/pinctrl/intel/pinctrl-denverton.c b/drivers/pinctrl/intel/pinctrl-denverton.c index 0c4694cfa594..a1a7242e0451 100644 --- a/drivers/pinctrl/intel/pinctrl-denverton.c +++ b/drivers/pinctrl/intel/pinctrl-denverton.c @@ -257,6 +257,11 @@ static const struct acpi_device_id dnv_pinctrl_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, dnv_pinctrl_acpi_match); +static const struct platform_device_id dnv_pinctrl_platform_ids[] = { + { "denverton-pinctrl", (kernel_ulong_t)&dnv_soc_data }, + { } +}; + static struct platform_driver dnv_pinctrl_driver = { .probe = intel_pinctrl_probe_by_hid, .driver = { @@ -264,6 +269,7 @@ static struct platform_driver dnv_pinctrl_driver = { .acpi_match_table = dnv_pinctrl_acpi_match, .pm = &dnv_pinctrl_pm_ops, }, + .id_table = dnv_pinctrl_platform_ids, }; static int __init dnv_pinctrl_init(void) @@ -281,4 +287,5 @@ module_exit(dnv_pinctrl_exit); MODULE_AUTHOR("Mika Westerberg "); MODULE_DESCRIPTION("Intel Denverton SoC pinctrl/GPIO driver"); MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:denverton-pinctrl"); MODULE_IMPORT_NS(PINCTRL_INTEL); -- 2.40.0.1.gaa8946217a0b