From patchwork Wed Sep 11 14:27:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 13800702 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 46D17EE49BD for ; Wed, 11 Sep 2024 14:39:23 +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:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: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=JlMR806TYOVdOaLq5xGwhlKGdGKzP0R1k8RJuGsmWvQ=; b=jUEzYTIkALQLRYrxPxDjVlk017 PIAaDDw8TCLeF0vIEYg63Njd5uxVn7fW6Qj3bSN0odhV4Nq7+K9JpNG/wMQIru1D/ay0HTseumw25 OoU/iL5lBBsSyan02F70tEnRZi1nbxalXgwlcSks2Nosz1CiSJ9Og3swPCkZFPdOQYN8wTYJEASjK J6E1ooiTfe/paDSsguMW5reOFcGK0Hhcc0nGc+B2bJNJYEpCiyppNHUfHhKzqq8iQb0pXggKtI3rZ tRCRJGLRvPvqCJUni3HU8w8t9zgo7d+1kgo3yPKaKcH7WyEcdTooceYJA8TQKPloCuras7nQgndUX TvhSl8ow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOUz-00000009y84-3YLd; Wed, 11 Sep 2024 14:39:13 +0000 Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1soOKg-00000009u5x-0Yxu for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2024 14:28:35 +0000 Received: by mail-pj1-x1042.google.com with SMTP id 98e67ed59e1d1-2d8b96c18f0so5377957a91.2 for ; Wed, 11 Sep 2024 07:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20230601.gappssmtp.com; s=20230601; t=1726064913; x=1726669713; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=JlMR806TYOVdOaLq5xGwhlKGdGKzP0R1k8RJuGsmWvQ=; b=VRwxJjYQWgFjcYiCm89KX1bcyQTsc5N4dFiqfeymefTxGM8aSUUfJLYVaxmCtObnif UKBa5QNiTY65N8z/EV9Lhb9mGosJDHEroT6+z7T89OssqdjXZi+Z1EI5I2JJxdGGMWvR ySAWgSvj7vLfSLBbmOeTv+W9ORqqd5SLWg9Gc4tlj3ZtFeUE9zMbN0uXZUAWQcUB6rGX qgfFyrAYqFhufGfCts5zPwfIGnai/stCtQue9W2EPPFgZ6IVeroQtBu6srmxMIMks10G dbCxtxCHZ7lkyZ1Q9b/JWvwa+2LsaKcjgJdHc4+q44ctAw2o28RQCgzNdu6QgOVBiqx+ BSpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726064913; x=1726669713; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JlMR806TYOVdOaLq5xGwhlKGdGKzP0R1k8RJuGsmWvQ=; b=qPMJcro6VDjIy4rdxonh1QpEn7gdJyfLkMoxypbrrPt8ZWV6QOmyVF2pChKHaM1lR5 I5Ls60Z8En/PY0vgVZB8n74B2rP+wao7GO6Ubff0hBJB1QzuuyRsJzETEaVm/KoG+wWF HzhsxsF/vXMz8WpalIAVc9eYfmQQtRuqBcbMQaUDieNAYOuHf23uaQefd8Vl06MPFLD7 EN7cTfSCVy/QwzSl8fwq0QXvEbLg5c+AfhKJ8qEOJyJGuisM9vr1mx+ToODnlMpnNNEk Ia14kYSvN5u36Fo4sohquOyhJl+J3SOG9pgf4qlatlkFdDVZK2TiOEPnFHWExjLT9d53 A6Tw== X-Forwarded-Encrypted: i=1; AJvYcCV8Ys4+jiuBX06oq3nT8tjWPUGkxCx4SvO6o6woZJ2vmpGTJDxZN7PRdUH6cmOnrGY6Ggum7KPwybkBRNUbZeY+@lists.infradead.org X-Gm-Message-State: AOJu0Yw965VyOcSyKlw7agmewpPLSn3314wVYlYgDkHJaxUex0lee5ah Seletyji12cIjNZpvZ8AFgn7pYLK38iu6vgaWx+myJUqA4tDdhXDuO+vBuoqjg== X-Google-Smtp-Source: AGHT+IHRrdqyQFRaRmsKjM6oktmwEYz8v7brNVgKFqMiIsYA0fFkZWGIxkp8KhBcAVk9BeIUsCTqIw== X-Received: by 2002:a17:90a:8a15:b0:2d8:99c4:3cd9 with SMTP id 98e67ed59e1d1-2dad4de1392mr20249725a91.3.1726064913104; Wed, 11 Sep 2024 07:28:33 -0700 (PDT) Received: from [172.16.118.100] ([103.15.228.94]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dadbfe46c9sm10639116a91.11.2024.09.11.07.28.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 07:28:32 -0700 (PDT) From: Ayush Singh Date: Wed, 11 Sep 2024 19:57:22 +0530 Subject: [PATCH 5/8] dts: ti: beagleplay: Add mikrobus connector symbols MIME-Version: 1.0 Message-Id: <20240911-mikrobus-dt-v1-5-3ded4dc879e7@beagleboard.org> References: <20240911-mikrobus-dt-v1-0-3ded4dc879e7@beagleboard.org> In-Reply-To: <20240911-mikrobus-dt-v1-0-3ded4dc879e7@beagleboard.org> To: fabien.parent@linaro.org, d-gole@ti.com, lorforlinux@beagleboard.org, jkridner@beagleboard.org, robertcnelson@beagleboard.org, Andrew Davis , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Nishanth Menon , Vignesh Raghavendra , Tero Kristo Cc: linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ayush Singh X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=3949; i=ayush@beagleboard.org; h=from:subject:message-id; bh=IcBXeYkgbGJ84tFNH0R4kvTUzdaSViwAKRjIOvyTAgE=; b=owEBbQKS/ZANAwAIAQXO9ceJ5Vp0AcsmYgBm4ajWghgpKd00BK2WrYHEfO2v34WYsJS/sPbi3 Ri3U7ObHMGJAjMEAAEIAB0WIQTfzBMe8k8tZW+lBNYFzvXHieVadAUCZuGo1gAKCRAFzvXHieVa dIdcD/4stLzHpCelSOc5jWiixqKiBrSIgY7aRw86NzyMO2AxyJUyY00HFjV8qPobGSydzuu24lW kUYGiYHiTLliPqp4yWG2+OrxVOA4NshkkMDZ3spo65xWAkzisKaD4PlGK/AsyFiBVF68VwKbCHt B9DukvzmiV5v5iGrZfrWgNLWuUFfexKp4m2PoBVxZLp2KTEF8xSbkyih/X5hNFkgHMritjVHpjo CDP12rRdn7Qu0JcRNRAxQtywDTQSbUU0TrHllh/C00M9Pxc8tCNRsHGpu7uTfwWkOYpAie/kQMX TqUVTk9Cbcp52BqzNGKZFZeU5l9FLTM3bf0PAqGtq6XzA/rnPbyGorUfUX92bagqz81TnilSLil zh8f04hJlO755Nm1H5OyJd5DEfVv+M5Y3hqDz7DzC27WD3GWHWd+JoPqOz8/fM6goS/b/GqLEV1 euVT7nF5iQqmd8hc8fFxWTjfRCpwPOp3W6zaryE67FMESzrOBOTRMYMVWLMdD7rneobzFOcJ90I 3v+Mk7cdxbDbfokJ5VEfiH/9HjL8cOSQgWDeBC1fdlKKPftFR2q4QWNPhMXLq5KkKJEJW4XC0q8 G895xHNXsA3yI7mGnLAD7uesXYMrQJlA3KStcRO3KhTfFXXgSH5J6IskouY7ncg8mtPN30rxPzG AYsAQ2R/6InpZ7A== X-Developer-Key: i=ayush@beagleboard.org; a=openpgp; fpr=DFCC131EF24F2D656FA504D605CEF5C789E55A74 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240911_072834_214331_33655BCC X-CRM114-Status: GOOD ( 14.91 ) 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 - I2C, UART, PWM symbols - MIKROBUS_GPIO defines a gpio-controller that defines the pins in the following order: 0: PWM 1: INT 2: RX 3: TX 4: SCL 5: SDA 6: MOSI 7: MISO 8: SCK 9: CS 10: RST 11: AN - PWM should always use channel 0. Use nexus node for routing Signed-off-by: Ayush Singh --- MAINTAINERS | 1 + arch/arm64/boot/dts/ti/Makefile | 1 + .../k3-am625-beagleplay-mikrobus-connector0.dtso | 49 ++++++++++++++++++++++ 3 files changed, 51 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d0c18bd7b558..95f228c85a40 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15432,6 +15432,7 @@ F: drivers/usb/image/microtek.* MIKROBUS CONNECTOR M: Ayush Singh S: Maintained +F: arch/arm64/boot/dts/ti/k3-am625-beagleplay-mikrobus-connector0.dtso F: Documentation/devicetree/bindings/connector/mikrobus-connector.yaml F: drivers/misc/mikrobus.rs diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index bcd392c3206e..c628954a357b 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -12,6 +12,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-ov5640.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-csi2-tevi-ov5640.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am625-beagleplay-mikrobus-connector0.dtbo dtb-$(CONFIG_ARCH_K3) += k3-am625-phyboard-lyra-rdk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-am625-verdin-nonwifi-dahlia.dtb diff --git a/arch/arm64/boot/dts/ti/k3-am625-beagleplay-mikrobus-connector0.dtso b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-mikrobus-connector0.dtso new file mode 100644 index 000000000000..81d370249f64 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay-mikrobus-connector0.dtso @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/** + * MikroBUS Overlay for BeaglePlay MikroBUS Connector 0 + * + * Copyright (C) 2024 Ayush Singh + */ + +/dts-v1/; +/plugin/; + +&{/} { + __symbols__ { + MIKROBUS_CONNECTOR = "/mikrobus-connector0"; + + /* GPIO controller for all pins */ + MIKROBUS_ALL_GPIO = "/mikrobus-connector0"; + + /* MikroBUS connector 0 SCL Pin options */ + MIKROBUS_SCL_MUX_I2C_SCL = "/bus@f0000/pinctrl@f4000/mikrobus-i2c-default-pins"; + MIKROBUS_SCL_MUX_DIGITAL = "/bus@f0000/pinctrl@f4000/mikrobus-i2c-gpio-pins"; + + /* MikroBUS connector 0 SDA Pin options */ + MIKROBUS_SDA_MUX_I2C_SDA = "/bus@f0000/pinctrl@f4000/mikrobus-i2c-default-pins"; + MIKROBUS_SDA_MUX_DIGITAL = "/bus@f0000/pinctrl@f4000/mikrobus-i2c-gpio-pins"; + + /* MikroBUS connector 0 UART_TX Pin options */ + MIKROBUS_TX_MUX_UART_TX = "/bus@f0000/pinctrl@f4000/mikrobus-uart-default-pins"; + MIKROBUS_TX_MUX_DIGITAL = "/bus@f0000/pinctrl@f4000/mikrobus-uart-gpio-pins"; + + /* MikroBUS connector 0 UART_RX Pin options */ + MIKROBUS_RX_MUX_UART_RX = "/bus@f0000/pinctrl@f4000/mikrobus-uart-default-pins"; + MIKROBUS_RX_MUX_DIGITAL = "/bus@f0000/pinctrl@f4000/mikrobus-uart-gpio-pins"; + + /* MikroBUS connector 0 PWM Pin options */ + MIKROBUS_PWM_MUX_PWM = "/bus@f0000/pinctrl@f4000/mikrobus-pwm-default-pins"; + MIKROBUS_PWM_MUX_DIGITAL = "/bus@f0000/pinctrl@f4000/mikrobus-pwm-gpio-pins"; + + /* MikroBUS connector 0 uses main_i2c3 for I2C on BeaglePlay */ + MIKROBUS_SCL_I2C = "/bus@f0000/i2c@20030000"; + MIKROBUS_SDA_I2C = "/bus@f0000/i2c@20030000"; + + /* MikroBUS connector 0 uses main_uart5 for UART on BeaglePlay */ + MIKROBUS_TX_UART = "/bus@f0000/serial@2850000"; + MIKROBUS_RX_UART = "/bus@f0000/serial@2850000"; + + /* MikroBUS connector 0 uses ecap2 for PWM on BeaglePlay */ + MIKROBUS_PWM_PWM = "/bus@f0000/pwm@23120000"; + }; +};