From patchwork Sat Sep 2 18:28:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 719793 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 2612EC71153 for ; Sat, 2 Sep 2023 18:29:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbjIBS3g (ORCPT ); Sat, 2 Sep 2023 14:29:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230505AbjIBS3d (ORCPT ); Sat, 2 Sep 2023 14:29:33 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BD8FE54; Sat, 2 Sep 2023 11:29:30 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1bdf4752c3cso650335ad.2; Sat, 02 Sep 2023 11:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693679370; x=1694284170; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BV45jbupLFx2TG+9F8H1M507c169iOaYL5EH+k/ISNQ=; b=b57UZ3FlyFHEQLVUacAPzoi2SbGk7j0H39K2qdRqk2M6Ae03NSoanidOVapHAtc1xh ywzpo/TpmdNpk2Mci+WqgbEA8JRtZ8X77do0LuxvYlY+vyFY7rVHjU8/VGbRK5sBVFPC BhlSEH0jAezc1CbLb2Bww47CRyyFzQaq4EEtcxZMNKR/9cuxRaHD75fbWYyllQBx/Q+v YWMu/V4Gq/C8w/RvB5rs0eAvKdiJtFyWX0uKd6VzZqZrEFUtBINpVgaF8/E6p8pzojbe yJ0V5l/PZHKv+NxuLrqVaNdKKbgWhIt+rDoyKPIfEMlZ8y7O3+fjxsz+Dad04vwHG/gy mynw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693679370; x=1694284170; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BV45jbupLFx2TG+9F8H1M507c169iOaYL5EH+k/ISNQ=; b=RXt8CYadxfMzKDCi6YEKvsNWqoyS7BL8/DG68kDJsxhDV28G3ksY7Ej/HEWEn7ny/k qMCDQKIlbxessx/qGLtcolol11q+UhbGyrd5F0eSjG5IqWOo6iWsTEUuze8kLINcRfwV cNswANMPXjTI+fQGEJoEIF9a91Xx+Fdr/2mR06FKv2dJZ/oAIcMKK/CEnHZBZmdZ7vbj pTwACsidD8LMMPuPV6uEuCMuGpvjAAm6NqYAqAW2R6WUT+rRPLXJvbiupNguZJcf0urR kljmaKeaPdOXu5+JlqZcG3TB6Wi/lIM2sk33d48jSTIso9PE2oRV3rUkORaeFtjgD9Dv wB4w== X-Gm-Message-State: AOJu0Yx4IFWxM/XdR5YOwPhhO27T7fvneLe/2sfDY4l64biYsXi0tpfk 9FdfJmgedN0R1XDHUy3TtMk= X-Google-Smtp-Source: AGHT+IHPRUuIj1BKSj0LtnsNRNydQthbMqyTlX8mU4BFRpAG81lwjVcjG4Gude2PnINdpETkwpBLfg== X-Received: by 2002:a17:902:f54a:b0:1be:e851:c070 with SMTP id h10-20020a170902f54a00b001bee851c070mr6497245plf.22.1693679369900; Sat, 02 Sep 2023 11:29:29 -0700 (PDT) Received: from toolbox.iitism.net ([103.15.228.93]) by smtp.gmail.com with ESMTPSA id i6-20020a170902eb4600b001bf846dd2d0sm4918970pli.13.2023.09.02.11.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 11:29:29 -0700 (PDT) From: Ayush Singh To: greybus-dev@lists.linaro.org Cc: Ayush Singh , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, Vaishnav M A , Jason Kridner , Nishanth Menon Subject: [PATCH v4 1/3] dt-bindings: Add beaglecc1352 Date: Sat, 2 Sep 2023 23:58:41 +0530 Message-ID: <20230902182845.1840620-2-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230902182845.1840620-1-ayushdevel1325@gmail.com> References: <20230902182845.1840620-1-ayushdevel1325@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT bindings for BeagleCC1352 co-processor UART. The BeaglePlay has a CC1352 co-processor. This co-processor is connected to the main AM62 (running Linux) over UART. The CC1352 can run Zephyr and other embedded OS. This commit adds DT bindings for the BeagleCC1352 UART, which will allow Linux platform drivers to identify and access this device. This commit adds serial/beaglecc1352 for identifying this UART. It is used by an upcoming gb-beagleplay greybus driver. Signed-off-by: Ayush Singh --- .../bindings/serial/beaglecc1352.yaml | 25 +++++++++++++++++++ MAINTAINERS | 6 +++++ 2 files changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/beaglecc1352.yaml diff --git a/Documentation/devicetree/bindings/serial/beaglecc1352.yaml b/Documentation/devicetree/bindings/serial/beaglecc1352.yaml new file mode 100644 index 000000000000..54db630a2a50 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/beaglecc1352.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/beaglecc1352.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: BeaglePlay CC1352 serial UART + +maintainers: + - Ayush Singh + +properties: + compatible: + const: beagle,cc1352 + +required: + - compatible + +additionalProperties: false + +examples: + - | + beaglecc1352 { + compatible = "beagle,cc1352"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 37b9626ee654..9d1b49a6dfad 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8969,6 +8969,12 @@ F: drivers/staging/greybus/sdio.c F: drivers/staging/greybus/spi.c F: drivers/staging/greybus/spilib.c +GREYBUS BEAGLEPLAY DRIVERS +M: Ayush Singh +L: greybus-dev@lists.linaro.org (moderated for non-subscribers) +S: Maintained +F: Documentation/devicetree/bindings/serial/beaglecc1352.yaml + GREYBUS SUBSYSTEM M: Johan Hovold M: Alex Elder From patchwork Sat Sep 2 18:28:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 719792 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 4D96BC83F2C for ; Sat, 2 Sep 2023 18:29:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231334AbjIBS3n (ORCPT ); Sat, 2 Sep 2023 14:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231464AbjIBS3k (ORCPT ); Sat, 2 Sep 2023 14:29:40 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F49810F0; Sat, 2 Sep 2023 11:29:36 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-68c0d262933so92836b3a.0; Sat, 02 Sep 2023 11:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693679376; x=1694284176; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nnrT7LHJjUAagSGCNBHonhWO840GVzI76QQJKTy0U0o=; b=CL0eI76EZtaH66cY9GuSviVKG30QxD7m0VmLdjKLT/u1pki/13B79pKgO/WRzPSBcb 4gCDz8N1oWvMXWncCZcVg5kYElUPhJYMbf1kT0C72jiPo8zxeMsQ6vR9eIK8fOa4Jw2O tSiTVfA/8OfQ8ymBU9x14l7caSJAVtzHavoHX3oEFD08SdOQGAqjPu/AaopaT7O9ssSI HS2egYl6GyXv0kPpoGWDoJPdVh4ikalAWpdDJyD/lC2fGwa5KbL4B/g5+8tcZhLqUSDc 7xGepAM6rQvz8mR0/5gE/N/NyuL09gIImLr31VyP0eepW1rfQpvALCHtuWsLr5JqDhcu GP1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693679376; x=1694284176; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nnrT7LHJjUAagSGCNBHonhWO840GVzI76QQJKTy0U0o=; b=iz3/dar326rDPG+qNF+QGP5SNgyhNFPzPog+j0wNpnau/FkKporkBRVxOjTtMQQGeP 3C6rQsQ0kIuga5D8OvFagEykoTXqOjOZH2R2WtV8XTadBEz+kJvNkl1Oy2kouhezntX6 9i6lDLSgZS1nSMGvxCdDY6PaNrn34Zfm34ivhTItdf3J3hOKAsyDhNSzJ2MZLFlnMp0u qN+rhaL9QAX+suyTczyzcSG89t5fB6F6MTpAV05apPPYF8soBqpchQzRycdozmxH0vKE eNvpM5Ysa0A1x4SnCu9bG62hzbSEqw9JdSXuAC+OByY5lV8PbmucdXWgXwWW7mEtV5zQ hqMg== X-Gm-Message-State: AOJu0Yx+8RsEanK+G2FdmkVwZjeCkN4/8GmQc/l1OlvCQaNxUD7opCmw C9TW30Xl1U2qm/BApxnl4VV0Kml/4DA= X-Google-Smtp-Source: AGHT+IFyh/QK01pwrTqOJo0jEmHr/IuRlq/pYy1squww9SSU2If6HdRuDy0sTSLQ0E0NRXRHYegpnQ== X-Received: by 2002:a05:6a20:8f17:b0:138:1c5b:2653 with SMTP id b23-20020a056a208f1700b001381c5b2653mr6667590pzk.41.1693679376415; Sat, 02 Sep 2023 11:29:36 -0700 (PDT) Received: from toolbox.iitism.net ([103.15.228.93]) by smtp.gmail.com with ESMTPSA id i6-20020a170902eb4600b001bf846dd2d0sm4918970pli.13.2023.09.02.11.29.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 11:29:36 -0700 (PDT) From: Ayush Singh To: greybus-dev@lists.linaro.org Cc: Ayush Singh , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, Vaishnav M A , Jason Kridner , Nishanth Menon Subject: [PATCH v4 3/3] dts: ti: k3-am625-beagleplay: Add beaglecc1352 Date: Sat, 2 Sep 2023 23:58:43 +0530 Message-ID: <20230902182845.1840620-4-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230902182845.1840620-1-ayushdevel1325@gmail.com> References: <20230902182845.1840620-1-ayushdevel1325@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The BeaglePlay board by BeagleBoard.org has a CC1352 co-processor. This co-processor is connected to the main AM62 (running Linux) over UART. The CC1352 can run Zephyr and other embedded OS. This commit adds support for the CC1352 in the Linux kernel DTS. This allows Linux platform drivers to identify the device and communicate with it. This UART is used by gb-beagleplay, an upcoming Greybus driver for BeaglePlay. Signed-off-by: Ayush Singh --- arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts b/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts index 7cfdf562b53b..10abbb8feda5 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts @@ -870,6 +870,10 @@ &main_uart6 { pinctrl-names = "default"; pinctrl-0 = <&wifi_debug_uart_pins_default>; status = "okay"; + + beaglecc1352 { + compatible = "beagle,cc1352"; + }; }; &dss {