From patchwork Thu Jun 27 16:26:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 13714798 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 A684BC3064D for ; Thu, 27 Jun 2024 16:29: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=+ccOqRF95rvK7M/qswICcqSLYl9oR0H6qjszvfV+fi4=; b=WqDTHg+7MW0u7X4lv9w91YQskG qVpa0QaGENn6UanbRo8kk+HYIkKRZ9QBDkkay/GjMjcJ4mhGFaeiLWRXRi4/6N2NMBppP7Ro3l+qN nruV0sJ9YpfhoLm5Qf3ykcQ+C/0ekmKTwIKS40NkcOJuPmN583KZfFstKVVvL/e+45ATGAsIcvb4A Fhi8Ofm3383fIgvwLMRPACguDW1O9oLp0/rOu++I0TQk6LF4WnrUks0cF4kg2tYFZGAzXRNI315j8 wZKgIvhCHHqUIAOY8ugtu5aNkOTfbkBZ7xKsjdAVXIbPoXOO+mna19thk2J2Av7pWj1nVpbUa55Ti XUXZbVgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMrzj-0000000B2lq-18ad; Thu, 27 Jun 2024 16:29:11 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMrzY-0000000B2fF-31h6 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 16:29:02 +0000 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-7068ca5a807so238700b3a.3 for ; Thu, 27 Jun 2024 09:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20230601.gappssmtp.com; s=20230601; t=1719505740; x=1720110540; 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=+ccOqRF95rvK7M/qswICcqSLYl9oR0H6qjszvfV+fi4=; b=l54hAR8x6iWzvDB8vuXz6XESLtC+zi5SGuOx7VzxzKNrAYy9gDqrWdcHaQWx8SNfJn enNd7XZgDvua3JeXH6OcVN7mYEWhwMsWoxXoUWI8LtWfb4YLxeWyiOxqizhwhNXmoJuW IKIBfKfTK5zRbcfhLtprLrCnxBjvqIZg27rGVS23Hr65x3BbLXgHcMJoIAlncoqIrjo3 W0Hd8Q9ji7BWGtKM9qCCKqtLW5yrOxeXNUycjptYzLCQPLIYHrIOi4cCNWNtgBhA45Kc czDgUuqNeO1wkAGcAoBHvYPbJBKUztLvnCgMfrsuTY44b493/6SeMVlemy4G+zYuW4Pq OBCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719505740; x=1720110540; 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=+ccOqRF95rvK7M/qswICcqSLYl9oR0H6qjszvfV+fi4=; b=BRUWK4tCUh+9BN0PL1u6395qhNiqGYVALGTDV16Fj9oBMuTgbPxZqJjRVSMLJDFc8y jWoqt28Cw7D9i/9H2nlhGDKzs6t48gj3DeHGdWH8IjNqWsvZgbKnK1hwGZ7x0c3zrWQp phav1Oa9eTdN1c0HEsl0FX7y/T2Q1hec0aU+1NV8yf/7TKA2u6DK7Y2FztJy5ja+qb+5 fI2q00FH5f5QHA8uaikRPNS+jWV7ZgCLL/c4a0X3m8LaOXIkUJZ/gMuNIYJ0YE6Ycr/E IdDnxqVzgNIDB1HtZI9gZMp1rfWZ1TCWIYQbHVg/mllTf3lJOJ88voECIrZrtB2Eol4Z 7vIw== X-Forwarded-Encrypted: i=1; AJvYcCXc4giPxiyP3UBu4moIgPs4NgbefZC1ps0QeTGyW2zkMzPwhksK1+v8sqRIC4KhELKXoFZkUg/ma6xiIyTFVAacocpyQtcjCCuD7+hmKxajiKxF2V0= X-Gm-Message-State: AOJu0YyupQsWeow2vZ6mhRr9tNxQLfmLqt2E0Ckt6Uh0/OH7cWZf9aTP akt48OVgWOXptFGyHefhi7nPpb41DPzvZZza7v23JG28cHDfeWkRnShE9HyuLA== X-Google-Smtp-Source: AGHT+IFk7HX+UKAgfs/mOuNh+uAKaBrAUQCaRjadcUs82yFBm92OurvtId01tZ+4k4Mj1CxjuWO1vw== X-Received: by 2002:a05:6a00:6085:b0:705:d60f:e64e with SMTP id d2e1a72fcca58-70667e2b1cfmr16013801b3a.1.1719505739742; Thu, 27 Jun 2024 09:28:59 -0700 (PDT) Received: from [127.0.0.1] ([2401:4900:1f3e:18b0:e4e6:ed1:4c03:dcec]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-706b4a58dbdsm1560739b3a.198.2024.06.27.09.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 09:28:59 -0700 (PDT) From: Ayush Singh Date: Thu, 27 Jun 2024 21:56:12 +0530 Subject: [PATCH v5 2/7] dt-bindings: mikrobus: Add mikrobus board base MIME-Version: 1.0 Message-Id: <20240627-mikrobus-scratch-spi-v5-2-9e6c148bf5f0@beagleboard.org> References: <20240627-mikrobus-scratch-spi-v5-0-9e6c148bf5f0@beagleboard.org> In-Reply-To: <20240627-mikrobus-scratch-spi-v5-0-9e6c148bf5f0@beagleboard.org> To: Mark Brown , Vaishnav M A , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Michael Walle , Andrew Lunn , jkridner@beagleboard.org, robertcnelson@beagleboard.org Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ayush Singh X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1971; i=ayush@beagleboard.org; h=from:subject:message-id; bh=Qx+Gj82f7/BC0AtS5BoDh2/utfcW2CADbnoJO4Ly0ms=; b=owEBbQKS/ZANAwAIAQXO9ceJ5Vp0AcsmYgBmfZM386HpYhQNB0PpqxdYqTINwd7DNpxa1qpT3 BXwROSootiJAjMEAAEIAB0WIQTfzBMe8k8tZW+lBNYFzvXHieVadAUCZn2TNwAKCRAFzvXHieVa dI77EAContjZVyred1K/HQTl7UUY2WxuOSylfSAEp/dre8J2S0HEpt2NJE9MFdKzEVzBvp+0euk VpHNC/jIngtHlWsnOs+Hgy4VahO/Ohkxix1aM4YJhm6rXAi4I1E8mw3tVtro2+AAdqwh4ZzQ91Q J/bofN5cTWytbgd9BawV7HIE1aoi1q2jK7oE/uKCrLCi75zfUWRDwPcPj0T9DLrt36lnRRFwF39 BefYCRZcgN60wjf/QDdDG4r5mueY3yUZiRe8VV7reVnA+mjft7r+HTOd/FDHokZSIJK8NGm0AlX elUbHGmlgGHCnUAY3zraeyy21giGTjAUL1S+F3yuYBGW06FK4Sh5xRXkcvve/MgjDADLqEaN1IB uL62G8on4ywN8I3bZznwBDTocmUots1B/MCFu6uftT2wgIFWjv66SkSHx1GNFDnD9Lx0f7JeovI nmTOrQ0aUtRBP6THY+5D4tMGbo0P9L/UPbP+nMtc2Bf9hzW10m03fbv0TNO8kPtAY/nfPOCg4vn L4aZ8c2zeLASNtG4osr4DTBRcJUHdpsSPA+oj+9qC+2MmDpBtP+V8neKEMIsNNqA/Ubbwgq/cf4 4knrbpAh8IekyYZBmneWz4gxXGIrPu4UwaOjXPVklytAKWvlOtfJ/tllwAtaITp0qyMM/9TSU/i bQczVjt5RwcnSEA== 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-20240627_092900_827601_CD735410 X-CRM114-Status: GOOD ( 13.03 ) 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 Base dt bindings for mikrobus addon boards. Contains properties that are part of all types of boards (SPI, I2C, etc). Each pin in mikroBUS connector can either be used for it's original purpose (UART, I2C, SPI, etc) or as a normal GPIO. Introducing `pinctrl-apply` allows selecting the pin configuration by name. Note: Some mikrobus-connectors might not support all valid pinctrl. Signed-off-by: Ayush Singh --- .../devicetree/bindings/mikrobus/mikrobus-board.yaml | 20 ++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 21 insertions(+) diff --git a/Documentation/devicetree/bindings/mikrobus/mikrobus-board.yaml b/Documentation/devicetree/bindings/mikrobus/mikrobus-board.yaml new file mode 100644 index 000000000000..42e2219c596f --- /dev/null +++ b/Documentation/devicetree/bindings/mikrobus/mikrobus-board.yaml @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mikrobus/mikrobus-board.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: mikroBUS add-on board properties + +maintainers: + - Ayush Singh + +properties: + pinctrl-apply: + minItems: 1 + maxItems: 9 + items: + enum: [default, pwm_default, pwm_gpio, uart_default, uart_gpio, i2c_default, i2c_gpio, spi_default, + spi_gpio] + +additionalProperties: false diff --git a/MAINTAINERS b/MAINTAINERS index 8e4115e93aeb..14eba18832d5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -15113,6 +15113,7 @@ M: Ayush Singh M: Vaishnav M A S: Maintained F: Documentation/devicetree/bindings/connector/mikrobus-connector.yaml +F: Documentation/devicetree/bindings/mikrobus/mikrobus-board.yaml MIKROTIK CRS3XX 98DX3236 BOARD SUPPORT M: Luka Kovacic