From patchwork Wed May 31 21:53:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 687963 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB416C77B73 for ; Wed, 31 May 2023 21:53:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230208AbjEaVxi (ORCPT ); Wed, 31 May 2023 17:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbjEaVxh (ORCPT ); Wed, 31 May 2023 17:53:37 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2105.outbound.protection.outlook.com [40.107.14.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1461F12F; Wed, 31 May 2023 14:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ahmcRu7+el/fS3aYyixtJCcXmMnXMXp0Zv+KqXp5Hn3XsxBxqVd/gictQAWT+QIW9x3eROzQ+StxmenDkPePcWtYXc/DkZRJEQEq9eUhwhTRVrVptuWBG56yvgJ4c9kvHnBgGoNVBGwlsaaai4wyFs0wQHD6TpraNIyNc/dep857wtRWHlEey/jaSYaOnsR+ne+sZHNhvjmRQgOraiIWDMNnDBbVbDVBHCgf6mHOsv36yLDatvS59aUyu7DSyKtYN4dtj7i3BDANaCE73kuE300pUc99w/w/7wvgmm6DEaKoFmFyeA0xXAA6ufcSzBnFv2lz5NYRYZK2alsffMscFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3GcN5weOiED80XjQf3IBDI/MC+ZU6buzm61KcH0//ig=; b=SE/WBsZD5AZ9gYYXl7e+kfiESI3MBihIw8l1hOocSIXPEdwOEIWYL1PK0oD+qBA+RqaVxmbVmiil1I2E0XKMooovn3unVxufEBMQ/cNFXhKhI+n1TrN5iWFbC4AaHHoFwEEG4eSZ7SG3DNI1piSCg5SPFGV+L1KowUKGbmsH+FbDtnt199icVpLU1Wo/Su43JTOX2c840Y/FOP0UDu3D5cBqS+rE0JPyzV8lZNLS+9tVI4iyFFi7AYQd+SQtBh/isdrgDiO1NMDCVK/5qeNDe2SSro9dJtldUWnCcqY56QwDVeKGo64fOGIse0K5NdAnNLU4BNSTdap/cWly17KADA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axentia.se; dmarc=pass action=none header.from=axentia.se; dkim=pass header.d=axentia.se; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3GcN5weOiED80XjQf3IBDI/MC+ZU6buzm61KcH0//ig=; b=aIpJW3AHgGPDDJ3zEil2VIiRKM9wpWd9F101o2lTHNC6+Cf2SguxlOttgHitOqt1/T5k2kqqlxZMjR8ie2UHbKfQGJRt3FD2B8BUtIe6p4hQeUpmCZj1bOFPhFDggW6esxxK3ILTs0CfV1kBCvQ+vBW+dOvvvbAg59kOaHe4OMo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axentia.se; Received: from AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) by PAWPR02MB9854.eurprd02.prod.outlook.com (2603:10a6:102:2e8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Wed, 31 May 2023 21:53:30 +0000 Received: from AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::f54c:7d45:d4a3:841]) by AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::f54c:7d45:d4a3:841%4]) with mapi id 15.20.6433.024; Wed, 31 May 2023 21:53:30 +0000 Message-ID: Date: Wed, 31 May 2023 23:53:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: sv-SE In-Reply-To: <1149c073-b761-8ad3-2930-3ef10ea7cf0b@axentia.se> To: Greg Kroah-Hartman Cc: LKML , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "devicetree@vger.kernel.org" From: Peter Rosin Subject: [PATCH 1/2] mux: mmio: drop obsolete dependency on COMPILE_TEST X-ClientProxiedBy: MM0P280CA0105.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:9::14) To AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR02MB4436:EE_|PAWPR02MB9854:EE_ X-MS-Office365-Filtering-Correlation-Id: e4fe1372-e615-4d1d-7615-08db62217876 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6F88LapSKkUNbjycW5nouFu0zIVhcVwbQp52S0i/JBFR6MxCGk8wnBwZ1rMnfuqmiav4M5hO+/1qNGPgeMu6QpBBqkyQu1VUZryTMFgFpMRzj/dlC6HOKN2BB3I0/tEMlUAixuYTqtRycNyYtrdcTZzzzxLGZmVH/kqaPPU1KT4GsBx95WtY6kcXTQYsi4f7HmZosb1Dba7xGG8yz1Nv1KNQNaeJvdLSgaL06kAciAFK1SfKV+nmLjHrkRL6PEf7B1CSfMbchXBCn5dUZZU/V51+TzJBtEvimmOOa+fm+JmVjnw6cjJiHS2UWLsx2Xc8qQq6eUbXrvAWp6yDSjtn8PgcznaA6o9k6B8Qjdy90f3crXvV1mmlOpnip37hebqR7xLAf2R/iWJOY1ZNm/c80GDpE6K65b/WNkCzn1HvTSVJ5K/wafpMAQrCJ1/sU5EgwQd4lqlsVRRftJGmKTxk/Aho8hJrY10CNF1rkWegxVFmwsEho9MY+Yrs0w6pWk3HjsdChFXbupkNXpds0yp/lCAsaP9tnt44FzIKUrF9jJ74ClNgvxaSuwhBi6wa8WhJm1SB/hyNBnXSgFz7j/IL2n192akZL49j+rZJ9FVtZFcNbYcZd/IZf+/KPHABxxITs6TlTPX8zDsAXlO8ouBe8Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR02MB4436.eurprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(136003)(39840400004)(346002)(376002)(366004)(451199021)(83380400001)(66946007)(6666004)(316002)(5660300002)(36756003)(66476007)(4326008)(6916009)(66556008)(86362001)(31696002)(38100700002)(41300700001)(8936002)(8676002)(6486002)(2616005)(54906003)(2906002)(6506007)(186003)(31686004)(6512007)(478600001)(26005)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ZdOegmNuuvJsAp5zj7i3Vr7+kdYP?= =?utf-8?q?2+93D+5nMAXRw5V2kNC62UvOeCWt6iVSusrMQjageanwkXIMUmrlo1ZwifJYk8NYV?= =?utf-8?q?AiADaWNag2cAYfNO+nHsz/rJtD5wgftygp87vKrz7x9gTL0INgdILD70a7uTiTPuK?= =?utf-8?q?2jokzZFQLh2lWWfbDTJTUW1LWoDAqin1orVHpVdlXfyVTe0TKITWqYLNlULCL3kl7?= =?utf-8?q?5+/UJKDf6zf43kHK8Wn2V+Wlm+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RUiX0E6/GbXbqcVTRrHB5KqVQwEakiBO?= =?utf-8?q?znwboLqlcI4TguSTQWF3RRDZgqsoVqp7jCVYaLSmBkvMZg1WmXnCsJ8QZbXyxrPeC?= =?utf-8?q?4e+SWWMeSQyHKXCJ4gZH0XdFgWVrHBIx/SRpKFaPa4RajtQ7pgj/ml0k5mqSANz4t?= =?utf-8?q?X4c7xDMuC9h1s/1+O5A4nslJMIvij44q7phgAsn2MjtGL0/pt40h+xybCYp4kJdNz?= =?utf-8?q?k4pHZCH0zAdSgJ9QjPAlSwF7u+VuQ0pwG/f35BFAyXsOFa+QzOQ5vnMS+oJiTs4iz?= =?utf-8?q?aRehX8zip2WhNGsN++FK9JcuTs5nvu+lx7Jfg8ugT2puS/L6SkeaKCQVZ2sR3CfZl?= =?utf-8?q?9YbaGvpvr2AQfKmbExwhexCsla2WLwMpfAbcwIDX0rFQyCf7BM7/Ou+AVQq2P36mE?= =?utf-8?q?fngksh2XNchW?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: e4fe1372-e615-4d1d-7615-08db62217876 X-MS-Exchange-CrossTenant-AuthSource: AM0PR02MB4436.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2023 21:53:29.9832 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /jlbXNBbMUIDHc2SFODLWufQeJ2a2HmOA6DeZ00hzYAr+3KguRoDqfEGYw/QKJfG X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR02MB9854 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Jean Delvare Since commit 0166dc11be91 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. It is actually better to always build such drivers with OF enabled, so that the test builds are closer to how each driver will actually be built on its intended target. Building them without OF may not test much as the compiler will optimize out potentially large parts of the code. In the worst case, this could even pop false positive warnings. Dropping COMPILE_TEST here improves the quality of our testing and avoids wasting time on non-existent issues. As a minor optimization, this also lets us drop of_match_ptr(), as we now know what it will resolve to, we might as well save cpp some work. Signed-off-by: Jean Delvare Signed-off-by: Peter Rosin --- drivers/mux/Kconfig | 2 +- drivers/mux/mmio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mux/Kconfig b/drivers/mux/Kconfig index e5c571fd232c..80f015cf6e54 100644 --- a/drivers/mux/Kconfig +++ b/drivers/mux/Kconfig @@ -47,7 +47,7 @@ config MUX_GPIO config MUX_MMIO tristate "MMIO/Regmap register bitfield-controlled Multiplexer" - depends on OF || COMPILE_TEST + depends on OF help MMIO/Regmap register bitfield-controlled Multiplexer controller. diff --git a/drivers/mux/mmio.c b/drivers/mux/mmio.c index 44a7a0e885b8..245bc07eee4b 100644 --- a/drivers/mux/mmio.c +++ b/drivers/mux/mmio.c @@ -131,7 +131,7 @@ static int mux_mmio_probe(struct platform_device *pdev) static struct platform_driver mux_mmio_driver = { .driver = { .name = "mmio-mux", - .of_match_table = of_match_ptr(mux_mmio_dt_ids), + .of_match_table = mux_mmio_dt_ids, }, .probe = mux_mmio_probe, }; From patchwork Wed May 31 21:53:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 687480 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DDD8C77B73 for ; Wed, 31 May 2023 21:53:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbjEaVxt (ORCPT ); Wed, 31 May 2023 17:53:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbjEaVxn (ORCPT ); Wed, 31 May 2023 17:53:43 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2117.outbound.protection.outlook.com [40.107.104.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02A5D11D; Wed, 31 May 2023 14:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bgZv/JSP7Hou+aQBsRz6IFhVSqA3p445+Oq8IogSnMcBUy6qYIItAmDD62HltcLUCqxHvtyx4WZpYcWSfRjBL+WKHBZvobEtGhfGZj1HkbQ5z9FHtVynPnwszRK7casIvqGVmzaTk9QadVCr1ouUgUh5R7EdgVyFKE28rzB4Fl/VVg7OW+oSbMyNu5cEH3FMh5xqQ16cFyh/ADeVIEwoeqfWKtoKcnWdfEVETqcFeZOJIKu1Q9qKlvgyoS9IGgGtRBBfPsmWPP15uHBSn2CKp8aGXHZmis+jed3qpGGv8dmADW9Iyx4W5dhumipBv69e/2CKjWTyjRopLh4Xxbbn9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=teAmGcFTytk4RS08rl1JVbL/T6XAMWOTB4v/mKbGBRM=; b=QKgA7Dszkg6ZI8loSWgJQ2/fUgGhO0ergCVMyeTaJP9arlDZQy9ARhWI2Uxqos9h8t3/PQb/YGjlP4bkgbmNZrVYL2F5Xu6KzZo8tDjYmUO9UqbfIv8PQ8GDbOfuGMdzAUl0K4/TZd38DtWg5cE89nusmzpwVJU6Jc5Avrc0StVUqktR/eSaruZbk9464DgP03UIWI9a5QYWbCF72LGAJ9ueVAubcgw1zofisMY3F1B/KgZSygO+15WHu5WXzr8lsS4unw3ZAILLDP6oLkDSPdRts+GZCTFscvDMCZwo5hIUDRI1qpYCBjrT3yIIaSmHFY4+CXTiDq1U1vrY+6VEdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=axentia.se; dmarc=pass action=none header.from=axentia.se; dkim=pass header.d=axentia.se; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=teAmGcFTytk4RS08rl1JVbL/T6XAMWOTB4v/mKbGBRM=; b=aENhRvFzTLXwhofT7oJQw7fnhKJ72IowJPiKyA44Q6ggq9PP/0otAQH3SkJPxIdGMG6vAI9upJyjEeNnQVLw9yrjJGw+tK5BTACXVsyfnUJNWEphnEoNEU0a/4Mc2vk3mJnaYGtCiZFhimI0wM7PLsfPO2jh4upmqMQMQHo2xf8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=axentia.se; Received: from AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) by PAWPR02MB9854.eurprd02.prod.outlook.com (2603:10a6:102:2e8::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.23; Wed, 31 May 2023 21:53:40 +0000 Received: from AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::f54c:7d45:d4a3:841]) by AM0PR02MB4436.eurprd02.prod.outlook.com ([fe80::f54c:7d45:d4a3:841%4]) with mapi id 15.20.6433.024; Wed, 31 May 2023 21:53:40 +0000 Message-ID: <755a14f1-92ad-ce4b-3fde-2a4b0650475c@axentia.se> Date: Wed, 31 May 2023 23:53:38 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: sv-SE In-Reply-To: <1149c073-b761-8ad3-2930-3ef10ea7cf0b@axentia.se> To: Greg Kroah-Hartman Cc: LKML , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "devicetree@vger.kernel.org" From: Peter Rosin Subject: [PATCH 2/2] dt-bindings: ti-serdes-mux: Add defines for J784S4 SoC X-ClientProxiedBy: MM0P280CA0095.SWEP280.PROD.OUTLOOK.COM (2603:10a6:190:9::13) To AM0PR02MB4436.eurprd02.prod.outlook.com (2603:10a6:208:ed::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR02MB4436:EE_|PAWPR02MB9854:EE_ X-MS-Office365-Filtering-Correlation-Id: 112ce558-7970-4361-67f6-08db62217e73 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: obJknQRBGHXSU6Ador+fQIisDxLRElUmVcnD5fDlN2jQbdLarvukraXFWOqrasAy6hsIw+ulFHOFFU1k7iLfJXT/urJJRoSQ7a7p0oWoPJQTZRr9Fhtimqym1ErParnhn2AmHp13nmqIZ9g5URSHvy9inMpdve8nKq9Hp1VAqQSX2iZ1AsBrGYLwiBqdMYHOWTJXMFCZofyow14S2z+AJAhfd/vmpEH8sPnb0owxbpdMmIhcRM1mzYp9k43Byv/phyg1FQjaE1USAeLUxYJ2HmK3xxFTMMJXZQGYASwzwf+ESaM7J/vfLuLi2zBUNgWbvv7mGGu8IVdtprgAcnncydlSXb0QHYbrLqLBSG5iH9Nbg7aFZJKZx5Bg6JyUfU12ncYp4BpLIwdBdXvy9lPIn0AjxPPfLguGV2bFbmcUF35RWiHxENbTGoOb86KQVgD8iEwATc/+r2OXMt5Gp6cE3Q5bj3qAwWPPGPcPqe2U2/DpvrWuOmvKkygQpr8SrXpX4ixL8LoiRNIfcBQGpmPtICYFuiUiLS2TK/maXq3c3NXt+JP8xSyONDT57/jENOtUO3p1UctlMfsqZSRJSRIqcVoNGW35SuinUyf+aGILTV6hkfxNuND2rV6C9Gr1Wdgpj5FV1jd02+QH7QgMKpJ2uA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR02MB4436.eurprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(396003)(136003)(39840400004)(346002)(376002)(366004)(451199021)(66946007)(316002)(5660300002)(36756003)(66476007)(4326008)(6916009)(66556008)(86362001)(31696002)(38100700002)(41300700001)(8936002)(8676002)(6486002)(2616005)(54906003)(2906002)(6506007)(186003)(31686004)(6512007)(478600001)(26005)(45980500001)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dgVUD5WaqvP3ggVD/ig2j2OFP31/?= =?utf-8?q?eE5EG+f42Yc+Az1gT4x/xTa9T0hLthe5kSM1C+JT8WlncKoTb+jv3bycV6m9+jby7?= =?utf-8?q?gpBkF3McqpkxPrJfFdpr1FHR9eBJLfHfnp43f0XxsydgFeJ1upcrqonnTYxCOvvgA?= =?utf-8?q?NZJaEr7W1kiqMpMZOVHYqpBGL2TFzf0sth/OldjVUkFBLDFArwztrsOLD+ZFzgkSV?= =?utf-8?q?5eyOL0l6lcDMYds8x6/teEhNiXb8pqigtyOp7q3rKoCa2I1MAdA6Z0TKtDeuDeaHg?= =?utf-8?q?VNPzTCkStCbEbpbcVWqEwOUGhsd/SYwmmtQkis3Y54W5LL1CyW9Sy9Y9LXFLsfN+3?= =?utf-8?q?U+0Wp0rNWMXAXjyWJxMVNjOB8BKvrom2xmD0ShJGsmwdeW5Ep0ZONYh35gDr7lObo?= =?utf-8?q?vO4NUdPRayaFIKsp6kQZXw5Pts/NIf6X3apIO7zLbXMVABEMz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fwHI30exOaQ7v8wCNjipu/4IcbH?= =?utf-8?q?MThiwYhvOz3JHRFzmbUs2rkF7KI7SzpkeFnsgqIHsXURAKhfa6o42fkGYyhKdb0PW?= =?utf-8?q?ux5MAnuy165xUJbfYxbliZxXZLZz0ByWOgOfGDjXLzTqWIcA+iPOrt+EiNh+tn2AG?= =?utf-8?q?Vo1AKbnlv3YojPNSDZCNJZli9MjTJ76354rhmZ9QmKYqDmLlpF6siCeT7ZEWSH1b6?= =?utf-8?q?GjkHc3rZxVOc?= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-Network-Message-Id: 112ce558-7970-4361-67f6-08db62217e73 X-MS-Exchange-CrossTenant-AuthSource: AM0PR02MB4436.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2023 21:53:39.9403 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Iz1df+KVXY94+pA+gmmPWVGHDTnjHlUIiPLB38PsDtkv5VsXelfpj1GI+cgKSTxQ X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR02MB9854 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Matt Ranostay There are 4 lanes in the single instance of J784S4 SERDES. Each SERDES lane mux can select up to 4 different IPs. Define all the possible functions. Signed-off-by: Matt Ranostay Acked-by: Krzysztof Kozlowski Signed-off-by: Siddharth Vadapalli Signed-off-by: Peter Rosin --- include/dt-bindings/mux/ti-serdes.h | 62 +++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/include/dt-bindings/mux/ti-serdes.h b/include/dt-bindings/mux/ti-serdes.h index d3116c52ab72..669ca2d6abce 100644 --- a/include/dt-bindings/mux/ti-serdes.h +++ b/include/dt-bindings/mux/ti-serdes.h @@ -117,4 +117,66 @@ #define J721S2_SERDES0_LANE3_USB 0x2 #define J721S2_SERDES0_LANE3_IP4_UNUSED 0x3 +/* J784S4 */ + +#define J784S4_SERDES0_LANE0_IP1_UNUSED 0x0 +#define J784S4_SERDES0_LANE0_PCIE1_LANE0 0x1 +#define J784S4_SERDES0_LANE0_IP3_UNUSED 0x2 +#define J784S4_SERDES0_LANE0_IP4_UNUSED 0x3 + +#define J784S4_SERDES0_LANE1_IP1_UNUSED 0x0 +#define J784S4_SERDES0_LANE1_PCIE1_LANE1 0x1 +#define J784S4_SERDES0_LANE1_IP3_UNUSED 0x2 +#define J784S4_SERDES0_LANE1_IP4_UNUSED 0x3 + +#define J784S4_SERDES0_LANE2_PCIE3_LANE0 0x0 +#define J784S4_SERDES0_LANE2_PCIE1_LANE2 0x1 +#define J784S4_SERDES0_LANE2_IP3_UNUSED 0x2 +#define J784S4_SERDES0_LANE2_IP4_UNUSED 0x3 + +#define J784S4_SERDES0_LANE3_PCIE3_LANE1 0x0 +#define J784S4_SERDES0_LANE3_PCIE1_LANE3 0x1 +#define J784S4_SERDES0_LANE3_USB 0x2 +#define J784S4_SERDES0_LANE3_IP4_UNUSED 0x3 + +#define J784S4_SERDES1_LANE0_QSGMII_LANE3 0x0 +#define J784S4_SERDES1_LANE0_PCIE0_LANE0 0x1 +#define J784S4_SERDES1_LANE0_IP3_UNUSED 0x2 +#define J784S4_SERDES1_LANE0_IP4_UNUSED 0x3 + +#define J784S4_SERDES1_LANE1_QSGMII_LANE4 0x0 +#define J784S4_SERDES1_LANE1_PCIE0_LANE1 0x1 +#define J784S4_SERDES1_LANE1_IP3_UNUSED 0x2 +#define J784S4_SERDES1_LANE1_IP4_UNUSED 0x3 + +#define J784S4_SERDES1_LANE2_QSGMII_LANE1 0x0 +#define J784S4_SERDES1_LANE2_PCIE0_LANE2 0x1 +#define J784S4_SERDES1_LANE2_PCIE2_LANE0 0x2 +#define J784S4_SERDES1_LANE2_IP4_UNUSED 0x3 + +#define J784S4_SERDES1_LANE3_QSGMII_LANE2 0x0 +#define J784S4_SERDES1_LANE3_PCIE0_LANE3 0x1 +#define J784S4_SERDES1_LANE3_PCIE2_LANE1 0x2 +#define J784S4_SERDES1_LANE3_IP4_UNUSED 0x3 + +#define J784S4_SERDES2_LANE0_QSGMII_LANE5 0x0 +#define J784S4_SERDES2_LANE0_IP2_UNUSED 0x1 +#define J784S4_SERDES2_LANE0_IP3_UNUSED 0x2 +#define J784S4_SERDES2_LANE0_IP4_UNUSED 0x3 + +#define J784S4_SERDES2_LANE1_QSGMII_LANE6 0x0 +#define J784S4_SERDES2_LANE1_IP2_UNUSED 0x1 +#define J784S4_SERDES2_LANE1_IP3_UNUSED 0x2 +#define J784S4_SERDES2_LANE1_IP4_UNUSED 0x3 + +#define J784S4_SERDES2_LANE2_QSGMII_LANE7 0x0 +#define J784S4_SERDES2_LANE2_QSGMII_LANE1 0x1 +#define J784S4_SERDES2_LANE2_IP3_UNUSED 0x2 +#define J784S4_SERDES2_LANE2_IP4_UNUSED 0x3 + +#define J784S4_SERDES2_LANE3_QSGMII_LANE8 0x0 +#define J784S4_SERDES2_LANE3_QSGMII_LANE2 0x1 +#define J784S4_SERDES2_LANE3_IP3_UNUSED 0x2 +#define J784S4_SERDES2_LANE3_IP4_UNUSED 0x3 + #endif /* _DT_BINDINGS_MUX_TI_SERDES */