From patchwork Sat Jul 20 14:19:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 13737832 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 10BCAC3DA49 for ; Sat, 20 Jul 2024 14:20:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=I6Hg8WBP57DRyJVp1BvPBKzTrjFGhBPj6kRTLtOW2vE=; b=sJ680s94CsX2vURk5B57C2ltlW Ch/8d3h3Y5BXqYpVPsBALh4iZ1OW/81f38ip3tRh92wStyYntHhBLqK3tfs6d2RPLwzu/DKjq1tWk vDup1DI2wV9h+Cm12l3vX8FxxnIdcxetXl4AIyKJIrf/pFEqy2xZU/hNr0ZEbh8olaPVxZKipKABv CtrRdc1SAVaATgr1GzxVMqFdcAXvvilqhlA4XtjLxf448VDoplVZ6V8UwGXUEuKihxHpkY7XpQ+vG GGF4zqwJP7SIHLAYdSFjtHBb2StE2kiNrOmZOU7Z9lKBwH2/goOfK8UqknGZqhGiRa5iyGXw1ZM9j 7pH9jx4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVAx0-00000005E89-3i0v; Sat, 20 Jul 2024 14:20:42 +0000 Received: from mail-westeuropeazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c201::3] helo=AS8PR04CU009.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sVAw1-00000005Dm3-1CiI; Sat, 20 Jul 2024 14:19:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=N4RvzW/ucw8zeQBnH8WupgjZtmz3K2nscZBDFDlOCEjPPtQFleXxzqscnDRq/X+jPAAv2/dK3EGOUtDr/Fq6yjWn/2U5y0Em0wUXwnQ/ePS6QsezWHqGB76sh5Yv1UxmmLZHh0s7EBd/cNqPujgV5N08qrJUGRP6LpT9+YhQOsG5IjDQlh8W93KOHiRniXnjx0A35xWEXVrqU6N/DS0A9fEmB41tQlL/PCL4sm3qlahc8ncF/v2pYcNd0IPdVOW1ohDVVNt8WTXE2/BgZLWa2DknKrRkKHY4tyYA7VdaLzHzLzOo0DgEiQE++BESVXB73N8nyDR6T9b2jhBHBYkb2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=I6Hg8WBP57DRyJVp1BvPBKzTrjFGhBPj6kRTLtOW2vE=; b=oFpc8om4dNYLsvzDCG/xLnTuuvasukzj4sQyqgI7CtBRUPR0SPqCaz1alCsowzyf1EoRpjz2jEZ0wFbipfKfxNG0QTiPBOce7LuA2QaImYeYVd2SXPVV1fih3/0xiHeTGmxVipCaz9ge7S7PB8DZun92qCs73O5mojriT7qHog4dZNK5bImoJxPLSDFG/FYWB8Fb+uyBJsxmevqnkRSowYURwRSJfW/2cx7u05qhVYOLWYwPPLAiVAjS9Za3MIEeB4IP+VX7QIdaN+GpQZB6TSMsJasmQk25QLh40SWFI5m+TeH+0nIhUQK8ngYCUfnYNRur72Q8wHz4T9XAmCaBQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=solid-run.com; dmarc=pass action=none header.from=solid-run.com; dkim=pass header.d=solid-run.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=solidrn.onmicrosoft.com; s=selector1-solidrn-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I6Hg8WBP57DRyJVp1BvPBKzTrjFGhBPj6kRTLtOW2vE=; b=mkf26Y1zdn6ShfOO77NUKiZCLP5w9m5z/vWIolEX+ofvzYuFywB1DQdTkzgd+KtXfQgzlMoeDH5/WLsrdsOYk5ApSOBy8cHF2qEBSGxd15JKSkR4pdBa64QZiIWd5X4Rg1CvDWFo3hb0wmqtB/47tLaYYEF/IoFsO9CJxrdlmgE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) by VI0PR04MB10299.eurprd04.prod.outlook.com (2603:10a6:800:238::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.16; Sat, 20 Jul 2024 14:19:28 +0000 Received: from AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529]) by AM9PR04MB7586.eurprd04.prod.outlook.com ([fe80::c04e:8a97:516c:5529%3]) with mapi id 15.20.7762.027; Sat, 20 Jul 2024 14:19:28 +0000 From: Josua Mayer Date: Sat, 20 Jul 2024 16:19:19 +0200 Subject: [PATCH RFC v3 2/6] arm: dts: marvell: armada-388-clearfog-base: add rfkill for m.2 Message-Id: <20240720-a38x-utmi-phy-v3-2-4c16f9abdbdc@solid-run.com> References: <20240720-a38x-utmi-phy-v3-0-4c16f9abdbdc@solid-run.com> In-Reply-To: <20240720-a38x-utmi-phy-v3-0-4c16f9abdbdc@solid-run.com> To: Vinod Koul , Kishon Vijay Abraham I , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Russell King , Konstantin Porotchkin Cc: Yazan Shhady , linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR3P281CA0190.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a4::8) To AM9PR04MB7586.eurprd04.prod.outlook.com (2603:10a6:20b:2d5::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB7586:EE_|VI0PR04MB10299:EE_ X-MS-Office365-Filtering-Correlation-Id: 311e237d-e47f-422d-74dd-08dca8c6f719 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|366016|376014|52116014|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?HI2ilqk/qfQWQ+4xsascUt0v3Y/1wmR?= =?utf-8?q?+h+DUyiov9ivNFglOdruy8faO1wBFZnplIissappP5n8JXNXKbMnUKSwoLRPE8TXs?= =?utf-8?q?u8X/Zdks8EyjAuJXxXhpyXIcmekmpj6gxRn+gB8sFdFKMZFT2L/ClNmnu6P65Q3eg?= =?utf-8?q?Y4lL3KN9WI0FRwNMBNJvYTtIXPo01ku/jTCakA28ADg425RmxzJv+9NFELtEn+J6H?= =?utf-8?q?mxnOKzbpMOMvR5USzHeFup2sleTIVr2PlN9Jg/nnnEA762syv200mvzDOw6hXxf8b?= =?utf-8?q?8NsxE2yoh3B3Cpha7IKDKWyDqLT4Qp4CpGjt5CUePkahQ+xZcVUhuRhsKTqpDurjz?= =?utf-8?q?VYN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-8?q?IIJqLmZpZo9dgKeg03RUN/my44Y2ncO/6qXLbgazYWGgDge+srSFr2rXMI1b2BVbJ?= =?utf-8?q?JrAMILB5rsB22CPF4nXogoWH75avGx0jk65WfudBz4SmRv4RARt87/wuGjiXfrkj3?= =?utf-8?q?/WmT95mLUofOZhuJiVCYu0zn8D2+QIQfCjg23vnhjVoKNdtP36HPbYI=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB7586.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(7416014)(366016)(376014)(52116014)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?+ClRMpkz1Ika7JW1SiNBlSHRleas?= =?utf-8?q?KSOuaiJKDfUODK/fFf8DsnfFfkZspKbBI3H1GhyfBK6tRt7TBa67SFaNbfZPNVtej?= =?utf-8?q?H56SvbJ38wp3Nx+OapB7cAF1X5D2mCcTngn0sZOh9i2NqVw72p9PR3/g8POYiTRTn?= =?utf-8?q?KzbJ9BuXpwM6ug4NAnJ73ZZ72WOe7OCnbJSMV3SEZsJ52JUH/FMxwgs4EEa7PWsb+?= =?utf-8?q?jgmWB7E+SEA6hBURNGVgp7azULcKKUbM7ccNmQO9ml/RHRKzvR4pMR2jE9dWd6FRP?= =?utf-8?q?r6pE7n5yQ5byfCF4pGUz9cmvWhf1sh7ti1Ye1kX7MsAakbNszzvac78YB/30I/9+x?= =?utf-8?q?I1YWkbyt5dQ9zB/QWoJSHInTGwmM+CsZWLthjj4Jt1yuUCy1xARrdI/lwWez3Ns61?= =?utf-8?q?1iWwJmLDITCx4Ff0vYcQMkA7fLlzsqGQOPxN0dfMlsDicfg+t1CsXW1o9779QcuvU?= =?utf-8?q?nz84bnqjNUax0Yxij7pc6vz5ESDUgxCJ9VUQn0SwvCq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IBYIEy9NV///aUDKSco5w+J?= =?utf-8?q?BqBZuQuozX1+ZGSGapZOe9CeJyvEJQ7QR2MFzBM/sPXuuL+eLfbWR6ZH69EvujfKo?= =?utf-8?q?PYqpn8to0oy6bZxNGK3aOjMHgGAvTiqtl/btC+QxWVbFNCH6LNh4tsYbuy1lv6Fd6?= =?utf-8?q?sQLQkEgtPsZO?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 311e237d-e47f-422d-74dd-08dca8c6f719 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB7586.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2024 14:19:28.3106 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a4a8aaf3-fd27-4e27-add2-604707ce5b82 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fr1As5pYzMQXlQRyeryaFcd5Bz/TMXHpX4W3x7iLCNLiRW4cybmlmjL3oXUhKfBb47p0rUT5FKTI7zUkrgioCQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10299 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240720_071941_487480_7E337916 X-CRM114-Status: UNSURE ( 8.34 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Armada 388 Clearfog Base has a USB-3.0 / SATA capable m.2 connector, with various pins controlled by the host: - FULL_CARD_POWER_OFF#: When low, M.2 LTE modules are switched off. Many modules include pull-down, thus it must be driven high actively. - RESET#: Puts modules into reset when low. Modules are expected to include pull-up. - GNSS_DISABLE# - W_DISABLE# Add rfkill devices for gnss and wwan. Signed-off-by: Josua Mayer --- arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts b/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts index 03153186c7bb..308ad9d1c70f 100644 --- a/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts +++ b/arch/arm/boot/dts/marvell/armada-388-clearfog-base.dts @@ -27,6 +27,23 @@ button-0 { linux,code = ; }; }; + + rfkill-m2-gnss { + compatible = "rfkill-gpio"; + label = "m.2 GNSS"; + radio-type = "gps"; + /* rfkill-gpio inverts internally */ + shutdown-gpios = <&expander0 9 GPIO_ACTIVE_HIGH>; + }; + + /* M.2 is B-keyed, so w-disable is for WWAN */ + rfkill-m2-wwan { + compatible = "rfkill-gpio"; + label = "m.2 WWAN"; + radio-type = "wwan"; + /* rfkill-gpio inverts internally */ + shutdown-gpios = <&expander0 8 GPIO_ACTIVE_HIGH>; + }; }; ð1 {