From patchwork Fri Jan 12 17:12:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josua Mayer X-Patchwork-Id: 762252 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2047.outbound.protection.outlook.com [40.107.15.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6E361757F; Fri, 12 Jan 2024 17:12:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=solid-run.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=solid-run.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=solidrn.onmicrosoft.com header.i=@solidrn.onmicrosoft.com header.b="AIFepDPm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bnyl1xaMQtnjcogyi0yTin9Fh3ATLIp1y4NxmtgeLz1Q9/euKaQF02LC2AWno3zERN7PtIHWVvneMRsGdMyN8YXglz8khU40KBtjIr8aAsl3JdMDKqXZRB7QEI3w+QVSg5+v2tpACs3D6y0zTtjy+3D+GStJYm/Bb5E8kSRWk+DJbWODuUSD81i2dIXp5D6CycAK73fG4C/FN8dN2eUJZeAIuV67cQOC15Yw2mtDuB7HW3PLA2Ebjk1kPG4Jp+a5AVRZG3YbDp8T2yZw69bYxO0napnBmNJCgnffMpf8O294zT6dtYsvEXjYNtAnVX9rT0Sgh5omqIj0MnhE7IDDlg== 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=2tUMe/qVtRJndtosiXQ0Vl6Z4n0LNC/O18yMoBKt++I=; b=ZwG9yO4ndzvqDxe7s1pdeJiQ//uCjNsGndaUlUPUESGTt75OcDv+kLIn4fulfO3Ma3ZvdJTiTdNxRj2vH2aXe517hcFiHbpYQIhVEh4giu7tObwzZsNND22awYr5bzYsqxF5HbfH53qzNpkGG9SQKCS4995JDcgreO3vf5EVt6ZUC9LLdajA86Q+fYCw6eE2XQh5p2fGYoM05g2+EpTPQ0wTpN07AM3N6Rc+cCVitYoqsnMMJppguyYm00ZxtIZ4M5TnOLf+Wz8G4O212HXyWAeCkDWojUIGMd1VaBvHEmuJWMXUP4s/Fi3Rkcuya01xlybyKvG1eSZFmWQPq0L40w== 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=2tUMe/qVtRJndtosiXQ0Vl6Z4n0LNC/O18yMoBKt++I=; b=AIFepDPmLWci7a4HGZMpPL+xLVr/Jc/mGi6xOqw9hli4VEvqgmVWkC5RUae11dV7/nkNo+D6/7OP+880KpXWXswW04wD3lvD2H2+pwc8hcpM6EzWryg7A4VHz6YGYRo2ztkHf9hNTgDKaOsn7ogL72jSjnpy4COgMBINYasfUqY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=solid-run.com; Received: from AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) by DU2PR04MB9524.eurprd04.prod.outlook.com (2603:10a6:10:2f7::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21; Fri, 12 Jan 2024 17:12:42 +0000 Received: from AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::daf2:8c54:d469:793d]) by AS8PR04MB8963.eurprd04.prod.outlook.com ([fe80::daf2:8c54:d469:793d%7]) with mapi id 15.20.7181.020; Fri, 12 Jan 2024 17:12:42 +0000 From: Josua Mayer Date: Fri, 12 Jan 2024 18:12:30 +0100 Subject: [PATCH v2 5/5] arm64: dts: ti: hummingboard-t: add descriptions for m.2 pci-e and usb-3 Message-Id: <20240112-add-am64-som-v2-5-1385246c428c@solid-run.com> References: <20240112-add-am64-som-v2-0-1385246c428c@solid-run.com> In-Reply-To: <20240112-add-am64-som-v2-0-1385246c428c@solid-run.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alessandro Zummo , Alexandre Belloni Cc: Yazan Shhady , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, Josua Mayer X-Mailer: b4 0.12.4 X-ClientProxiedBy: FR0P281CA0098.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a9::8) To AS8PR04MB8963.eurprd04.prod.outlook.com (2603:10a6:20b:42e::18) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS8PR04MB8963:EE_|DU2PR04MB9524:EE_ X-MS-Office365-Filtering-Correlation-Id: 6bc58579-954d-43c7-cda2-08dc1391b027 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lFz5QOq/aOHF7Wnw5eEPzeVDjxIW1hzqkOrPCK9oQsHCDchsR4c4BCHLzOohar0IIzQ6K+CqkAZzr696jV/+KpXTsDgAiJ1YjFk0MPQIiT7Qq/smSANG6vUPTStHFS+31ukHELlhx/9fgbwsDhqbVZbskbjjXc3ytmMACWpmpRmV5U+OgZbjq0LqBATwXV9W06a8n1j6yriTic+oVZA3TI9RcTIqctB2lRJvoJ19xh1xxBRw0CcnSpS38biW4DXD9Z55QcT4wOSaoBjVOaJ3ujh93J6f+zEudJ0N/UZbDmIBbJz5v9KIdejcRj/Iek8mFZVbAkjDes4A24SHSqdOoNI6uav6eNGd6GG9KVk27PrKigmcWJAkCB6ZodDbKCu9oeBDndkc/MdciRbpfwNutLTq+L0wEuBPgs5SYLsc7vUyvZxI2uxJ/OIJp4JBjPPxclBthftvoRM4wn6ArkDfkGS+jJyxoCbHWKk7mwGlR+aRdAAhRIy0oMwYfjUdZWimT0KygQbDnvrmYmXOlpjUdbj5JtCrjkJ2mxF8PX0b0fNdjQI4Hlb/oRi2B7nhr+lffG/FjuvdnEjZAPWOE6Z1I04Rl0SxR4hNh0XJoNn7WhboOMI4dj1kEV35jT1mNY9o X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB8963.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366004)(376002)(396003)(346002)(39830400003)(136003)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(5660300002)(4326008)(7416002)(41300700001)(2906002)(38100700002)(38350700005)(86362001)(36756003)(316002)(6486002)(478600001)(66946007)(110136005)(66476007)(66556008)(8676002)(54906003)(8936002)(6666004)(2616005)(107886003)(83380400001)(26005)(6512007)(6506007)(52116002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WlbZeZNURwKI5vygBvRh5zTuzKns?= =?utf-8?q?eMWvhR0IXmQFqe7rLd95gcVPLuhLZjro2EMqiCpLqyr+TZdV/29zIaeMR6XmX72SX?= =?utf-8?q?MvVu6A3uq7/JRrmaKDsh9vfJk4zUakEFXGmVHRw1jv1Mm5yG+El+tZS4P6z7cJASv?= =?utf-8?q?/mLwfXUgGQWmJrw+vFw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FnIluMI5rMrJnVGd6N8nY1+q4hmE4uydAMQhvr7AWh+?= =?utf-8?q?jI6wzBjYc4gjBRVAW8SzeRYuVfQIQRzaAYE8sdbow9+c/1H1A69wSgfhayw2D8Y3c?= =?utf-8?q?1KqbSHZloNBi9ZR/ctgi+tbJSLqLx+85iKGRqfA2MkMwDqBrN1csvNtm/DtP02PSG?= =?utf-8?q?aa9y/YKoP5sXy1Zi+ULuZAiQXVB0SW71tNO/mdwTzA1JMaUvzaOyTdYwWtqNDk2ED?= =?utf-8?q?j9iFt2XO9ezLw+8NTO5uJIzftT55K/vjyjtkuuZTqBZcDzsvRLsEHUuz/r+oJUXoH?= =?utf-8?q?MPMucMSMPQESMLXbzcZPs4E92fUSinfMKSjtGVfDI7sF3XRVFPCOZfgTILKX8iwbX?= =?utf-8?q?bhJW6TdMJt+OjDt8SNh/dhl/WRNLsOQUwd6ex/lMTBBoRfAmnOAuPPoILiut0MyTm?= =?utf-8?q?Mdy7MrQgkZAyCwDs5kWky626YG5nf/UOOo4Rvyhxl04HhoYyHHj1NWYKZrBR7V6A5?= =?utf-8?q?CWqQ7B849dDV?= X-OriginatorOrg: solid-run.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6bc58579-954d-43c7-cda2-08dc1391b027 X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB8963.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2024 17:12:42.7181 (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: hxn5Mb7DQJK4OpOph5NcCzFbXT3NO4gQdrTCbGFvtHdYDGgKq33lpGXvLZnkc6K3tWU/uj7bsFx6EfPFgZHnlg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB9524 HummingBoard-T features two M.2 connectors labeled "M1" and "M2". The single SerDes lane of the SoC can be routed to either M1 pci-e signals, or M2 usb-3 signals by a gpio-controlled mux. Add dedicated dts for each configuration. - k3-am642-hummingboard-t.dts enables neither configuration - k3-am642-hummingboard-t-pcie.dts (new) configures serdes mux and pci-e controller for M1 - k3-am642-hummingboard-t-usb3.dts (new) configures serdes mux and usb-3 controller for M2 Signed-off-by: Josua Mayer --- arch/arm64/boot/dts/ti/Makefile | 2 ++ .../boot/dts/ti/k3-am642-hummingboard-t-pcie.dts | 31 ++++++++++++++++++ .../boot/dts/ti/k3-am642-hummingboard-t-usb3.dts | 37 ++++++++++++++++++++++ 3 files changed, 70 insertions(+) diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index 041c3b71155e..0e408555edf1 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -33,6 +33,8 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb # Boards with AM64x SoC dtb-$(CONFIG_ARCH_K3) += k3-am642-evm.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-hummingboard-t.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am642-hummingboard-t-pcie.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am642-hummingboard-t-usb3.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-phyboard-electra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am642-tqma64xxl-mbax4xxl.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-pcie.dts b/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-pcie.dts new file mode 100644 index 000000000000..5ba0029fcfb9 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-pcie.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2023 Josua Mayer + * + * DTS for SolidRun AM642 HummingBoard-T, + * running on Cortex A53, with PCI-E. + * + */ + +#include "k3-am642-hummingboard-t.dts" +#include "k3-serdes.h" + +/ { + model = "SolidRun AM642 HummingBoard-T with PCI-E"; +}; + +&pcie0_rc { + status = "okay"; +}; + +&serdes0_link { + cdns,phy-type = ; +}; + +&serdes_ln_ctrl { + idle-states = ; +}; + +&serdes_mux { + idle-state = <1>; +}; diff --git a/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-usb3.dts b/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-usb3.dts new file mode 100644 index 000000000000..12b0fedcd2bc --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t-usb3.dts @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2023 Josua Mayer + * + * DTS for SolidRun AM642 HummingBoard-T, + * running on Cortex A53, with USB-3.1 Gen 1. + * + */ + +#include "k3-am642-hummingboard-t.dts" +#include "k3-serdes.h" + +/ { + model = "SolidRun AM642 HummingBoard-T with USB-3.1 Gen 1"; +}; + +&serdes0_link { + cdns,phy-type = ; +}; + +&serdes_ln_ctrl { + idle-states = ; +}; + +&serdes_mux { + idle-state = <0>; +}; + +&usbss0 { + /delete-property/ ti,usb2-only; +}; + +&usb0 { + maximum-speed = "super-speed"; + phys = <&serdes0_link>; + phy-names = "cdns3,usb3-phy"; +};