From patchwork Mon Oct 2 18:24:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 147479 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1701478vqb; Mon, 2 Oct 2023 14:30:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHwfMqOwfQqgethOJ84neNax9usMgi7l/+2XJKudAZm3DMfId3nvb40+D1XrY4a2MZWiCNY X-Received: by 2002:a9d:620a:0:b0:6be:e553:334 with SMTP id g10-20020a9d620a000000b006bee5530334mr13009428otj.7.1696282207209; Mon, 02 Oct 2023 14:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696282207; cv=none; d=google.com; s=arc-20160816; b=Vg0W+smN84KeZybqXx0q3dHiQ/5qMkCZlrOy2TmLKhC4XhTL/Dl6pck4Yqpxvm490z qayQAXtwWgsqx6aaA92FAm6Bee7C79rQ4DtA54dUhWw7SpR2kZ1c9mGWMvvUr8fnQjVw 1H6R7VYjlM6AU7UFfbliv5xMYfa4IsvIzImvVPbe9pl1YhbKXFwfQt3N1+xqV1GMkG2g /9FaOXVQHty2T1gbnbAyWFnFcADzXBOCK2S/ZaIDSTsRB13tWNudhIq+G5zVEL1Nlo62 mVHeAWlfbDepCF1hsGXNfQfsRqqxklCc0CV1T9HDybiYR5hcIlpjlR0bTaccWlLS4VUY B6QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=deMrdhI7n6d43o9ynRDnYKYyrcO/xdvIoxsUthjyE5k=; fh=s9z7nQI8bejycky2Sj3FV9x0KoR9nNTVf/pJEfm3xpg=; b=T/2WgYVJTjQIsYZAGhUiQFt40/R/GGW0lnJiG8MQ0VpThq3tEh79JaVULW/I1RDQsx fBnadlRjnrx1mxFJ0mMxY36oWhj/71xS/TxbF+gXDwIzL9EPdcNmul40UD7tm6rgi2zk kRTwHPkzpMPRhEOOijFz2105anGVSXwGsPZvoum/YoLlt20kX7dIAKmEHLfn6mWVHROx mob8BdvXps2Tf5kw5hDFuYoT7seapTN91Me3r9ietRx8l5i/T0eNlrQhS88j8OUD3HOb yJoc0414LnHsJoQa6xKVAi5ECmKxuM5imTdC/8mR2PyLSJqJs1U8bcS+k6fgSmFrXUaf abOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dfIcc9Um; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id z3-20020a633303000000b00584d16c6439si17071351pgz.622.2023.10.02.14.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 14:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=dfIcc9Um; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 8AC67808A429; Mon, 2 Oct 2023 11:27:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236879AbjJBS0j (ORCPT + 18 others); Mon, 2 Oct 2023 14:26:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236319AbjJBS0f (ORCPT ); Mon, 2 Oct 2023 14:26:35 -0400 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A350AB; Mon, 2 Oct 2023 11:26:32 -0700 (PDT) Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-57b706f604aso36035eaf.0; Mon, 02 Oct 2023 11:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696271191; x=1696875991; 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=deMrdhI7n6d43o9ynRDnYKYyrcO/xdvIoxsUthjyE5k=; b=dfIcc9UmlO+rUUVyQyhyOsaSdDVtD0CVxerEh5mxALGYoUcbwm5UizUKW0R9W8wnPS seF+agmQlf/q6HUw9WsI1ZYqvv4wVLtm/jOrAWNkUg4uRuet23kbSOVzoppi9/vnwm6c rMQOiKuR5N30uOxzHSp2+An3QmiQsjcj34TPpXaGjS/43TohldALecVKjSC85JAEF2eF RV5i2muvSKxEafyfler4xnCfe4+sWc05wPgjDKHC9/P9t/V7R+VXABSAh2SFaVYbNViL WLcqIhfr5ODfmKdAk/5i2gcVmD1m8itPlC6IE9Q+X4yEAppm62jJrfTuZqu3+B7aVqnd rAuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696271191; x=1696875991; 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=deMrdhI7n6d43o9ynRDnYKYyrcO/xdvIoxsUthjyE5k=; b=OYOt0nYhZKpK6Zf+Eur5xKUvmUvU3CkcgB6hMsJ0IA5VDjw0vKdJwV74tmLb7osF/f QVVAGxPcthWFo3C5GCzgDPzmmKPGBViMYvy0mEi977oAI2Z10XN+5Y9/rV0OCBFSvRpa f2SrtLQ0aern3x+QZ81kFwNrE95+p06CI6Gnr/n3OjfxSnmS4leAs+zJ/zdQXe5QiIA4 kDCcMLkBL/55x7kF3IfpsX9xpppQfqV0b1ZsVQpmDuVdhnkC1ZO7iZ4PmbnNWzOIx4gI r5rwfw/wllrIiuCnGl3qHsY6xRo7J8vg8MhmFDPHLnTbKdKDfnEPx/1b6gxIHntlUJPI qBqA== X-Gm-Message-State: AOJu0YwAp6sR5MM7Zvw+XfQuuWkJMeKH3soE/lReHLVoeiPBxpgaknLY Ofsy59iOpTSv+a/BYgn4Xo4= X-Received: by 2002:a05:6358:339f:b0:142:d1cb:48ab with SMTP id i31-20020a056358339f00b00142d1cb48abmr14693012rwd.15.1696271191244; Mon, 02 Oct 2023 11:26:31 -0700 (PDT) Received: from toolbox.iitism.net ([103.15.228.93]) by smtp.gmail.com with ESMTPSA id a8-20020a637f08000000b0057d86bb613esm17249584pgd.45.2023.10.02.11.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 11:26:30 -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@beagleboard.org, jkridner@beagleboard.org, nm@ti.com, krzysztof.kozlowski+dt@linaro.org, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 1/3] dt-bindings: Add beaglecc1352 Date: Mon, 2 Oct 2023 23:54:50 +0530 Message-ID: <20231002182454.211165-2-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231002182454.211165-1-ayushdevel1325@gmail.com> References: <20231002182454.211165-1-ayushdevel1325@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:27:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778680811512630356 X-GMAIL-MSGID: 1778680811512630356 Add DT bindings for BeaglePlay CC1352 co-processor. The BeaglePlay has a CC1352 co-processor. This co-processor is connected to the main AM62 (running Linux) over UART. In the BeagleConnect Technology, CC1352 is responsible for handling 6LoWPAN communication with beagleconnect freedom nodes as well as their discovery This commit adds net/ti,cc1352p7. It is used by gb-beagleplay greybus driver. Signed-off-by: Ayush Singh --- .../devicetree/bindings/net/ti,cc1352p7.yaml | 48 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/ti,cc1352p7.yaml diff --git a/Documentation/devicetree/bindings/net/ti,cc1352p7.yaml b/Documentation/devicetree/bindings/net/ti,cc1352p7.yaml new file mode 100644 index 000000000000..57bc2c43e5b1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/ti,cc1352p7.yaml @@ -0,0 +1,48 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/ti,cc1352p7.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments Simplelink CC1352P7 wireless MCU + +description: + The cc1352p7 mcu can be connected via SPI or UART. + +maintainers: + - Ayush Singh + +properties: + compatible: + const: ti,cc1352p7 + + clocks: + maxItems: 2 + + reset-gpios: + maxItems: 1 + + power-gpios: + maxItems: 3 + description: + The device has three power rails that are exposed on external pins VDDS, + VDDR and DCOUPL. + + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include + + serial { + mcu { + compatible = "ti,cc1352p7"; + clocks = <&sclk_hf 0>, <&sclk_lf 25>; + reset-gpios = <&pio 35 GPIO_ACTIVE_LOW>; + power-gpios = <&pio 1 GPIO_ACTIVE_HIGH>, <&pio 2 GPIO_ACTIVE_HIGH>, <&pio 3 GPIO_ACTIVE_HIGH>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 37b9626ee654..5467669d7963 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/net/ti,cc1352p7.yaml + GREYBUS SUBSYSTEM M: Johan Hovold M: Alex Elder From patchwork Mon Oct 2 18:24:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 147435 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1637936vqb; Mon, 2 Oct 2023 12:14:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6neWRL4ag/ITdovRvwVpYuAsPaAqVBl42QsSruiJL7Uu7djr6NRFLHa0fX4oU5iusTYbH X-Received: by 2002:a17:902:d2c3:b0:1c6:2b3d:d918 with SMTP id n3-20020a170902d2c300b001c62b3dd918mr14415093plc.3.1696274053993; Mon, 02 Oct 2023 12:14:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696274053; cv=none; d=google.com; s=arc-20160816; b=OoeztK9ActPFPUKNhSiWAcaO97EKmVaKz27bt+6o4ZR+0yMZocjVhW9kbgHHebJ+fZ K/sHi3nhfoipPhdHEZmQO84H1ElOz9E/AL0n1FgFZy2seporAOxTmXv/OylAEpMVPSZH Txu0JAUj9091JlmLMlHC6s5eTYp1yESNc2I1Wn7/hGNuRtQzlp3HGalC4mQxabOBwpiZ DNLpeBTKYcTC4STJqrvlOtVa8GxbrzDH3IYG1Yro2KZUU9OcZRzFdMNq2osuYsKQ1Ecj rxz+Rgxmqnk3wxt5oVtTepvI3s/orxmdFVR/sC5s60wrGhHV+tIf7N281YZYBnU3yEHz OHHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SriUj9w7hwJc6UKzrwavavOXBgjM3Dof91uJYFP4tkM=; fh=LhjtXm9rSZ+NpYlXaUu0FdJsNfcELaak2z7ufLFrL0k=; b=C2lQY8DvlOlI/KMwUwdp3XwvA0NAQ5jyEmUBRqvXib71rBjDi/wvmaRkOkxnSbg1ig lmSiOfwmkykjLU2R32Xt/6wyN0eumPCIJHRUEaYgZLXtObqroi8TTxFr1nyE4A84dkbQ oG0MLimEIxFDiMG67DyILvdzaeyWbpP2r91F6epSHURuNRg3Xf85ZZTolWcZWBeeTk7v cHIXbdAN1yk+tV77fokh4OkA5XNM79/3/KpUVzmIOiexMh+xMrmNyIJ1RhPA4BlTpePi MUmjrkHYO4mMLLnNuKU0QxhcL8wjub0kNLdi3KPucbFiN0myTRk194z2PIlkr2J6iadx TJQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Hf5+Sspw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id l12-20020a170903244c00b001bbb6f4cd6dsi29999723pls.334.2023.10.02.12.14.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 12:14:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Hf5+Sspw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id CA55F8029A2A; Mon, 2 Oct 2023 11:27:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238701AbjJBS0m (ORCPT + 18 others); Mon, 2 Oct 2023 14:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238620AbjJBS0k (ORCPT ); Mon, 2 Oct 2023 14:26:40 -0400 Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05ECBD3; Mon, 2 Oct 2023 11:26:36 -0700 (PDT) Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-57bc2c2f13dso21085eaf.2; Mon, 02 Oct 2023 11:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696271195; x=1696875995; 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=SriUj9w7hwJc6UKzrwavavOXBgjM3Dof91uJYFP4tkM=; b=Hf5+Sspw/2OFmdqFoZZO4Bj/RW5Zn/DsteCPRgNkF1WAYD5vjd1h0xMEcGjZbjqJLO cFp4y7M5uai84TlzuBaz6ha88/7JMv8fAJc+v9UkJUPxDs0YBAQSc2RR5kEtClqRVhiB 4ZD9CU3V6kB7Wz5g7HzYBt7EhJRTblnPQzMHwllZgMLRXWNpy6JpjC2LeOdbEl9gIw/d Khyt4nHSHoZsCPg20+OFuhZlNnjxJtt5YIc3lxnHUddf7CT9j2biodS1zd2rtWkCg40M WsiuDX3D/U6YxCqR+Y4+wPijFuGX1G1YYZVZ1V9RDNdrkj2TLJm8kytDTUv8UzTmMgWk 0A/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696271195; x=1696875995; 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=SriUj9w7hwJc6UKzrwavavOXBgjM3Dof91uJYFP4tkM=; b=KAhFbyOXSjn+CSoYmfVR+IRJX4WPL8tWT77T3bo1Bjx/AaeXQYiQZpQ2EZd7xCIhxx apaNyuyvmcGbxvuhZPRPCtT0QxCF2lCAyjmcKwsIjpe+Nl9Ai9s2+gwLmR/FfQW+tp0w Y6UvGTdC2ASQeEFxSnddBJudr+zyrU7K3gC940HZ091J0ZqLVcG+cKtNvdwsJUBAZzu1 WiYCASrOK7vmzrSxy4OkjW1dKN5GDNQPMYzWmbc/1puHVoFMDP6tMW/zmZBFS9OS+2ns ePeHJVtKDtS9OwmeLkcnIshPOVPoe4CfFtxmmocdQp+g4o8//IDtbo4Fm7xE3jTJmjQX eHeg== X-Gm-Message-State: AOJu0YwU85op6DdrTKQSZAwbXJvSD+y7MCnQZhTjQO7NiqDy8mO70Th7 j4Kb+BnPG1CPCvedlaXVC8s= X-Received: by 2002:a05:6358:8809:b0:143:864e:f96f with SMTP id hv9-20020a056358880900b00143864ef96fmr12810254rwb.1.1696271195118; Mon, 02 Oct 2023 11:26:35 -0700 (PDT) Received: from toolbox.iitism.net ([103.15.228.93]) by smtp.gmail.com with ESMTPSA id a8-20020a637f08000000b0057d86bb613esm17249584pgd.45.2023.10.02.11.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 11:26:34 -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@beagleboard.org, jkridner@beagleboard.org, nm@ti.com, krzysztof.kozlowski+dt@linaro.org, johan@kernel.org, elder@kernel.org Subject: [PATCH v6 2/3] greybus: Add BeaglePlay Linux Driver Date: Mon, 2 Oct 2023 23:54:51 +0530 Message-ID: <20231002182454.211165-3-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231002182454.211165-1-ayushdevel1325@gmail.com> References: <20231002182454.211165-1-ayushdevel1325@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:27:08 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778672262358700317 X-GMAIL-MSGID: 1778672262358700317 Add the Greybus host driver for BeaglePlay board by BeagleBoard.org. The current greybus setup involves running SVC in a user-space application (GBridge) and using netlink to communicate with kernel space. GBridge itself uses wpanusb kernel driver, so the greybus messages travel from kernel space (gb_netlink) to user-space (GBridge) and then back to kernel space (wpanusb) before reaching CC1352. This driver directly communicates with CC1352 (running SVC Zephyr application). Thus, it simplifies the complete greybus setup eliminating user-space GBridge. This driver is responsible for the following: - Start SVC (CC1352) on driver load. - Send/Receive Greybus messages to/from CC1352 using HDLC over UART. - Print Logs from CC1352. - Stop SVC (CC1352) on driver load. Signed-off-by: Ayush Singh --- MAINTAINERS | 1 + drivers/greybus/Kconfig | 10 + drivers/greybus/Makefile | 2 + drivers/greybus/gb-beagleplay.c | 495 ++++++++++++++++++++++++++++++++ 4 files changed, 508 insertions(+) create mode 100644 drivers/greybus/gb-beagleplay.c diff --git a/MAINTAINERS b/MAINTAINERS index 5467669d7963..d87e30626a6a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8974,6 +8974,7 @@ M: Ayush Singh L: greybus-dev@lists.linaro.org (moderated for non-subscribers) S: Maintained F: Documentation/devicetree/bindings/net/ti,cc1352p7.yaml +F: drivers/greybus/gb-beagleplay.c GREYBUS SUBSYSTEM M: Johan Hovold diff --git a/drivers/greybus/Kconfig b/drivers/greybus/Kconfig index 78ba3c3083d5..fd4f26d09c53 100644 --- a/drivers/greybus/Kconfig +++ b/drivers/greybus/Kconfig @@ -17,6 +17,16 @@ menuconfig GREYBUS if GREYBUS +config GREYBUS_BEAGLEPLAY + tristate "Greybus BeaglePlay driver" + depends on TTY + help + Select this option if you have a BeaglePlay where CC1352 + co-processor acts as Greybus SVC. + + To compile this code as a module, chose M here: the module + will be called gb-beagleplay.ko + config GREYBUS_ES2 tristate "Greybus ES3 USB host controller" depends on USB diff --git a/drivers/greybus/Makefile b/drivers/greybus/Makefile index 9bccdd229aa2..d986e94f8897 100644 --- a/drivers/greybus/Makefile +++ b/drivers/greybus/Makefile @@ -18,6 +18,8 @@ obj-$(CONFIG_GREYBUS) += greybus.o # needed for trace events ccflags-y += -I$(src) +obj-$(CONFIG_GREYBUS_BEAGLEPLAY) += gb-beagleplay.o + # Greybus Host controller drivers gb-es2-y := es2.o diff --git a/drivers/greybus/gb-beagleplay.c b/drivers/greybus/gb-beagleplay.c new file mode 100644 index 000000000000..831e3244661d --- /dev/null +++ b/drivers/greybus/gb-beagleplay.c @@ -0,0 +1,495 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Beagleplay Linux Driver for Greybus + * + * Copyright (c) 2023 Ayush Singh + * Copyright (c) 2023 BeagleBoard.org Foundation + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define RX_HDLC_PAYLOAD 256 +#define CRC_LEN 2 +#define MAX_RX_HDLC (1 + RX_HDLC_PAYLOAD + CRC_LEN) +#define TX_CIRC_BUF_SIZE 1024 + +#define ADDRESS_GREYBUS 0x01 +#define ADDRESS_DBG 0x02 +#define ADDRESS_CONTROL 0x03 + +#define HDLC_FRAME 0x7E +#define HDLC_ESC 0x7D +#define HDLC_XOR 0x20 + +#define CONTROL_SVC_START 0x01 +#define CONTROL_SVC_STOP 0x02 + +/* The maximum number of CPorts supported by Greybus Host Device */ +#define GB_MAX_CPORTS 32 + +/** + * BeaglePlay Greybus driver + * + * @sd: underlying serdev device + * + * @gb_hd: greybus host device of this driver + * + * @tx_work: hdlc transmit work + * @tx_producer_lock: hdlc transmit data producer lock. acquired when appending data to buffer. + * @tx_consumer_lock: hdlc transmit data consumer lock. acquired when sending data over uart. + * @tx_circ_buf: hdlc transmit circular buffer. + * @tx_crc: hdlc transmit crc-ccitt fcs + * + * @rx_buffer_len: length of receive buffer filled. + * @rx_buffer: hdlc frame receive buffer + * @rx_in_esc: hdlc rx flag to indicate ESC frame + */ +struct gb_beagleplay { + struct serdev_device *sd; + + struct gb_host_device *gb_hd; + + struct work_struct tx_work; + spinlock_t tx_producer_lock; + spinlock_t tx_consumer_lock; + struct circ_buf tx_circ_buf; + u16 tx_crc; + + u16 rx_buffer_len; + bool rx_in_esc; + u8 rx_buffer[MAX_RX_HDLC]; +}; + +/** + * Structure to represent part of HDCL frame payload data. + * + * @len: buffer length in bytes + * @buf: payload buffer + */ +struct hdlc_payload { + u16 len; + void *buf; +}; + +static void hdlc_rx_greybus_frame(struct gb_beagleplay *bg, u8 *buf, u16 len) +{ + u16 cport_id; + struct gb_operation_msg_hdr *hdr = (struct gb_operation_msg_hdr *)buf; + + memcpy(&cport_id, hdr->pad, sizeof(cport_id)); + + dev_dbg(&bg->sd->dev, "Greybus Operation %u type %X cport %u status %u received", + hdr->operation_id, hdr->type, cport_id, hdr->result); + + greybus_data_rcvd(bg->gb_hd, cport_id, buf, len); +} + +static void hdlc_rx_dbg_frame(const struct gb_beagleplay *bg, const char *buf, u16 len) +{ + dev_dbg(&bg->sd->dev, "CC1352 Log: %.*s", (int)len, buf); +} + +/** + * Consume HDLC Buffer. This function assumes that consumer lock has been acquired. + */ +static void hdlc_write(struct gb_beagleplay *bg) +{ + int written; + /* Start consuming HDLC data */ + int head = smp_load_acquire(&bg->tx_circ_buf.head); + int tail = bg->tx_circ_buf.tail; + int count = CIRC_CNT_TO_END(head, tail, TX_CIRC_BUF_SIZE); + const unsigned char *buf = &bg->tx_circ_buf.buf[tail]; + + if (count > 0) { + written = serdev_device_write_buf(bg->sd, buf, count); + + /* Finish consuming HDLC data */ + smp_store_release(&bg->tx_circ_buf.tail, (tail + written) & (TX_CIRC_BUF_SIZE - 1)); + } +} + +/** + * Queue HDLC data for sending. This function assumes that producer lock as been acquired. + */ +static void hdlc_append(struct gb_beagleplay *bg, u8 value) +{ + int tail, head = bg->tx_circ_buf.head; + + while (true) { + tail = READ_ONCE(bg->tx_circ_buf.tail); + + if (CIRC_SPACE(head, tail, TX_CIRC_BUF_SIZE) >= 1) { + bg->tx_circ_buf.buf[head] = value; + + /* Finish producing HDLC byte */ + smp_store_release(&bg->tx_circ_buf.head, + (head + 1) & (TX_CIRC_BUF_SIZE - 1)); + return; + } + dev_warn(&bg->sd->dev, "Tx circ buf full"); + usleep_range(3000, 5000); + } +} + +static void hdlc_append_escaped(struct gb_beagleplay *bg, u8 value) +{ + if (value == HDLC_FRAME || value == HDLC_ESC) { + hdlc_append(bg, HDLC_ESC); + value ^= HDLC_XOR; + } + hdlc_append(bg, value); +} + +static void hdlc_append_tx_frame(struct gb_beagleplay *bg) +{ + bg->tx_crc = 0xFFFF; + hdlc_append(bg, HDLC_FRAME); +} + +static void hdlc_append_tx_u8(struct gb_beagleplay *bg, u8 value) +{ + bg->tx_crc = crc_ccitt(bg->tx_crc, &value, 1); + hdlc_append_escaped(bg, value); +} + +static void hdlc_append_tx_buf(struct gb_beagleplay *bg, const u8 *buf, u16 len) +{ + size_t i; + + for (i = 0; i < len; i++) + hdlc_append_tx_u8(bg, buf[i]); +} + +static void hdlc_append_tx_crc(struct gb_beagleplay *bg) +{ + bg->tx_crc ^= 0xffff; + hdlc_append_escaped(bg, bg->tx_crc & 0xff); + hdlc_append_escaped(bg, (bg->tx_crc >> 8) & 0xff); +} + +static void hdlc_transmit(struct work_struct *work) +{ + struct gb_beagleplay *bg = container_of(work, struct gb_beagleplay, tx_work); + + spin_lock_bh(&bg->tx_consumer_lock); + hdlc_write(bg); + spin_unlock_bh(&bg->tx_consumer_lock); +} + +static void hdlc_tx_frames(struct gb_beagleplay *bg, u8 address, u8 control, + const struct hdlc_payload payloads[], size_t count) +{ + size_t i; + + spin_lock(&bg->tx_producer_lock); + + hdlc_append_tx_frame(bg); + hdlc_append_tx_u8(bg, address); + hdlc_append_tx_u8(bg, control); + + for (i = 0; i < count; ++i) + hdlc_append_tx_buf(bg, payloads[i].buf, payloads[i].len); + + hdlc_append_tx_crc(bg); + hdlc_append_tx_frame(bg); + + spin_unlock(&bg->tx_producer_lock); + + schedule_work(&bg->tx_work); +} + +static void hdlc_tx_s_frame_ack(struct gb_beagleplay *bg) +{ + hdlc_tx_frames(bg, bg->rx_buffer[0], (bg->rx_buffer[1] >> 1) & 0x7, NULL, 0); +} + +static void hdlc_rx_frame(struct gb_beagleplay *bg) +{ + u16 crc, len; + u8 ctrl, *buf; + u8 address = bg->rx_buffer[0]; + + crc = crc_ccitt(0xffff, bg->rx_buffer, bg->rx_buffer_len); + if (crc != 0xf0b8) { + dev_warn_ratelimited(&bg->sd->dev, "CRC failed from %02x: 0x%04x", address, crc); + return; + } + + ctrl = bg->rx_buffer[1]; + buf = &bg->rx_buffer[2]; + len = bg->rx_buffer_len - 4; + + /* I-Frame, send S-Frame ACK */ + if ((ctrl & 1) == 0) + hdlc_tx_s_frame_ack(bg); + + switch (address) { + case ADDRESS_DBG: + hdlc_rx_dbg_frame(bg, buf, len); + break; + case ADDRESS_GREYBUS: + hdlc_rx_greybus_frame(bg, buf, len); + break; + default: + dev_warn_ratelimited(&bg->sd->dev, "unknown frame %u", address); + } +} + +static int hdlc_rx(struct gb_beagleplay *bg, const u8 *data, size_t count) +{ + size_t i; + u8 c; + + for (i = 0; i < count; ++i) { + c = data[i]; + + switch (c) { + case HDLC_FRAME: + if (bg->rx_buffer_len) + hdlc_rx_frame(bg); + + bg->rx_buffer_len = 0; + break; + case HDLC_ESC: + bg->rx_in_esc = true; + break; + default: + if (bg->rx_in_esc) { + c ^= 0x20; + bg->rx_in_esc = false; + } + + if (bg->rx_buffer_len < MAX_RX_HDLC) { + bg->rx_buffer[bg->rx_buffer_len] = c; + bg->rx_buffer_len++; + } else { + dev_err_ratelimited(&bg->sd->dev, "RX Buffer Overflow"); + bg->rx_buffer_len = 0; + } + } + } + + return count; +} + +static int hdlc_init(struct gb_beagleplay *bg) +{ + INIT_WORK(&bg->tx_work, hdlc_transmit); + spin_lock_init(&bg->tx_producer_lock); + spin_lock_init(&bg->tx_consumer_lock); + bg->tx_circ_buf.head = 0; + bg->tx_circ_buf.tail = 0; + + bg->tx_circ_buf.buf = devm_kmalloc(&bg->sd->dev, TX_CIRC_BUF_SIZE, GFP_KERNEL); + if (!bg->tx_circ_buf.buf) + return -ENOMEM; + + bg->rx_buffer_len = 0; + bg->rx_in_esc = false; + + return 0; +} + +static void hdlc_deinit(struct gb_beagleplay *bg) +{ + flush_work(&bg->tx_work); +} + +static int gb_tty_receive(struct serdev_device *sd, const unsigned char *data, size_t count) +{ + struct gb_beagleplay *bg = serdev_device_get_drvdata(sd); + + return hdlc_rx(bg, data, count); +} + +static void gb_tty_wakeup(struct serdev_device *serdev) +{ + struct gb_beagleplay *bg = serdev_device_get_drvdata(serdev); + + schedule_work(&bg->tx_work); +} + +static struct serdev_device_ops gb_beagleplay_ops = { + .receive_buf = gb_tty_receive, + .write_wakeup = gb_tty_wakeup, +}; + +static int gb_message_send(struct gb_host_device *hd, u16 cport, struct gb_message *msg, gfp_t mask) +{ + struct gb_beagleplay *bg = dev_get_drvdata(&hd->dev); + struct hdlc_payload payloads[2]; + + dev_dbg(&hd->dev, "Sending greybus message with Operation %u, Type: %X on Cport %u", + msg->header->operation_id, msg->header->type, cport); + + if (msg->header->size > RX_HDLC_PAYLOAD) + return dev_err_probe(&hd->dev, -E2BIG, "Greybus message too big"); + + memcpy(msg->header->pad, &cport, sizeof(cport)); + + payloads[0].buf = msg->header; + payloads[0].len = sizeof(*msg->header); + payloads[1].buf = msg->payload; + payloads[1].len = msg->payload_size; + + hdlc_tx_frames(bg, ADDRESS_GREYBUS, 0x03, payloads, 2); + greybus_message_sent(bg->gb_hd, msg, 0); + + return 0; +} + +static void gb_message_cancel(struct gb_message *message) +{ +} + +static struct gb_hd_driver gb_hdlc_driver = { .message_send = gb_message_send, + .message_cancel = gb_message_cancel }; + +static void gb_beagleplay_start_svc(struct gb_beagleplay *bg) +{ + const u8 command = CONTROL_SVC_START; + const struct hdlc_payload payload = { .len = 1, .buf = (void *)&command }; + + hdlc_tx_frames(bg, ADDRESS_CONTROL, 0x03, &payload, 1); +} + +static void gb_beagleplay_stop_svc(struct gb_beagleplay *bg) +{ + const u8 command = CONTROL_SVC_STOP; + const struct hdlc_payload payload = { .len = 1, .buf = (void *)&command }; + + hdlc_tx_frames(bg, ADDRESS_CONTROL, 0x03, &payload, 1); +} + +static void gb_greybus_deinit(struct gb_beagleplay *bg) +{ + gb_hd_del(bg->gb_hd); + gb_hd_put(bg->gb_hd); +} + +static int gb_greybus_init(struct gb_beagleplay *bg) +{ + int ret; + + bg->gb_hd = gb_hd_create(&gb_hdlc_driver, &bg->sd->dev, TX_CIRC_BUF_SIZE, GB_MAX_CPORTS); + if (IS_ERR(bg->gb_hd)) { + dev_err(&bg->sd->dev, "Failed to create greybus host device"); + return PTR_ERR(bg->gb_hd); + } + + ret = gb_hd_add(bg->gb_hd); + if (ret) { + dev_err(&bg->sd->dev, "Failed to add greybus host device"); + goto free_gb_hd; + } + dev_set_drvdata(&bg->gb_hd->dev, bg); + + return 0; + +free_gb_hd: + gb_greybus_deinit(bg); + return ret; +} + +static void gb_serdev_deinit(struct gb_beagleplay *bg) +{ + serdev_device_close(bg->sd); +} + +static int gb_serdev_init(struct gb_beagleplay *bg) +{ + u32 speed = 115200; + int ret; + + serdev_device_set_drvdata(bg->sd, bg); + serdev_device_set_client_ops(bg->sd, &gb_beagleplay_ops); + ret = serdev_device_open(bg->sd); + if (ret) + return dev_err_probe(&bg->sd->dev, ret, "Unable to open serial device"); + + speed = serdev_device_set_baudrate(bg->sd, speed); + serdev_device_set_flow_control(bg->sd, false); + + return 0; +} + +static int gb_beagleplay_probe(struct serdev_device *serdev) +{ + int ret = 0; + struct gb_beagleplay *bg; + + bg = devm_kmalloc(&serdev->dev, sizeof(*bg), GFP_KERNEL); + if (!bg) + return -ENOMEM; + + bg->sd = serdev; + ret = gb_serdev_init(bg); + if (ret) + return ret; + + ret = hdlc_init(bg); + if (ret) + goto free_serdev; + + ret = gb_greybus_init(bg); + if (ret) + goto free_hdlc; + + gb_beagleplay_start_svc(bg); + + return 0; + +free_hdlc: + hdlc_deinit(bg); +free_serdev: + gb_serdev_deinit(bg); + return ret; +} + +static void gb_beagleplay_remove(struct serdev_device *serdev) +{ + struct gb_beagleplay *bg = serdev_device_get_drvdata(serdev); + + gb_greybus_deinit(bg); + gb_beagleplay_stop_svc(bg); + hdlc_deinit(bg); + gb_serdev_deinit(bg); +} + +static const struct of_device_id gb_beagleplay_of_match[] = { + { + .compatible = "ti,cc1352p7", + }, + {}, +}; +MODULE_DEVICE_TABLE(of, gb_beagleplay_of_match); + +static struct serdev_device_driver gb_beagleplay_driver = { + .probe = gb_beagleplay_probe, + .remove = gb_beagleplay_remove, + .driver = { + .name = "gb_beagleplay", + .of_match_table = gb_beagleplay_of_match, + }, +}; + +module_serdev_device_driver(gb_beagleplay_driver); + +MODULE_LICENSE("GPL"); +MODULE_AUTHOR("Ayush Singh "); +MODULE_DESCRIPTION("A Greybus driver for BeaglePlay"); From patchwork Mon Oct 2 18:24:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 147480 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1703743vqb; Mon, 2 Oct 2023 14:35:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZ214uVCyGera3mj1CLzLgO7ki20CmzoOca9K/4lrG9XRwCq6lMXOXG96t7738OhV5IAOP X-Received: by 2002:a9d:6ac3:0:b0:6b9:a795:512f with SMTP id m3-20020a9d6ac3000000b006b9a795512fmr12257359otq.10.1696282513598; Mon, 02 Oct 2023 14:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696282513; cv=none; d=google.com; s=arc-20160816; b=eSDmvC5eQ7oUSZHld3wE0CxjRipINCr18hVIe9uAhhxRzm6M/g6N1zw8xbrce4Y8JT tWHUCvmVWGN5EXC4oSSwdr9yiBm1oxaV0ulEqgaWHUMlSUYUJzE6OEZEvdppzRlYIJSN HzUOu/fMu61x8xMWEVbQ5kuaRnvuQelExzQNGOzglvJ6eYUmyKlq1LLp2lpM1F2x/llZ 10f5UERZJ/REnMns5qeZZLMwO86+I2PqOYJC9FGJ9X8S4WDfSguZEmLM3JxO/cOlMr/9 mApUzI/TM+jYwTKJfUTqR2VUabQaRP8iyFoEBKFNiJN7gpWZ8YCuii969SlCSBfhJ4n6 b6hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yMeCSX/w7tJc0iityHO3Qn4uN/ryo/E1f99r0zVNUKE=; fh=s9z7nQI8bejycky2Sj3FV9x0KoR9nNTVf/pJEfm3xpg=; b=BJMLRkx5A9yP9DFoHfm5YZgNA3A1S7zdUtLmW/jCLMERRTvQtnyZWeW7bzQyCQz87S Dw/z72mEuSDZKdG1Iaiep2KrRZHWsDuWVegDAL9Y1T8VNr9E2ZNFiwU3rKr7Z5BeZoHR fST2aqIZI6MWBVB0ggFLo2mJCGNjM7/3ACJnqViSl/u/AMVW1hjOZ/NPoEK+JBtMC0Fv SnpLpyYoXr6s5vZg5OouGfYuWWSIWmqu1Jx4yzhtLF8xIYnavFrMBbHJCoFoqegoMjn5 je1oMrH7PHfOLMdzmuNB2wwxhNcsLFiSCTHB1B/MDl++1Vv/pe3e1/xdAH1x7OLwJ628 Ntjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VTUIujk4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id m9-20020a654389000000b00578bb707e6esi27514895pgp.806.2023.10.02.14.35.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 14:35:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=VTUIujk4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6825C808A90F; Mon, 2 Oct 2023 11:27:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238775AbjJBS0u (ORCPT + 18 others); Mon, 2 Oct 2023 14:26:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238787AbjJBS0p (ORCPT ); Mon, 2 Oct 2023 14:26:45 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2112DE6; Mon, 2 Oct 2023 11:26:40 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1dc9c2b2b79so18514fac.0; Mon, 02 Oct 2023 11:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696271200; x=1696876000; 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=yMeCSX/w7tJc0iityHO3Qn4uN/ryo/E1f99r0zVNUKE=; b=VTUIujk4e45qleTGbBuHa/n+rIE538mhqPRS/reqOckatBZpUGIsnd65+KIPMCQ8ay tfhfTtQahks21mDGXUr9IEuAn7MK34JYd0Cx+BaBFyJDgCj7bE9VCa6n7sB/IoMxUtGk LgPhxSzC8R5Wssw0glSHEinDVu6Sy2GfaHPG63k+BIC3GBrVdFSPYjTqNuMyRj1UnOUo aIyDx/Bi+fQwtIoLTyjb+GXgvuQ3wRV3OLS45uZFeARaeRl/jzoYK74uSGowCEEQebR9 EfCIxNv4IY669smVvEEynxZAo2Vo8MshOOybx85sXVOFMELDGnyTz37NR7+q0qX04kVR wDqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696271200; x=1696876000; 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=yMeCSX/w7tJc0iityHO3Qn4uN/ryo/E1f99r0zVNUKE=; b=Flh8vGftAIDjnzDv5vMkFXPsZuPEC9crcJWDCbPfVYvbHWRHCyU0C49FAxPnpx9yTK tTt/NNZ5v2UdKpJvmyY8WrF1451EWw2Ioy9jg3ZuisKbPa5iXgfJ/VqjLuTa1eAoSiAm wNz3YS6nWdI9iHqJzvCqzL5RtlUeI7e0eOoDrqFMKWUW5y3RZK83OM/P8ZtMQASx2jVM eLYwEZM2/jxVdDSQoy32GHOrXBgDORB9SoziPK48NkORA1dQU9CQNPBPnoPUH73ZFwcs ZJbZD6OsO8fa+6gvsYVJ1bGiH3t0+vMjIfLpGgqLvGq1y6KOe3rdCor5u7eVeQJLP8A8 I/pA== X-Gm-Message-State: AOJu0YxROuNSTY2QEUktAMHEr7PAa7jLMwoyGlPeb/NirJ5fMuNQmFts fcT7UaRRxoDqstWRozGjgCQ= X-Received: by 2002:a05:6871:80e:b0:1d6:cb43:71cb with SMTP id q14-20020a056871080e00b001d6cb4371cbmr13457621oap.54.1696271200054; Mon, 02 Oct 2023 11:26:40 -0700 (PDT) Received: from toolbox.iitism.net ([103.15.228.93]) by smtp.gmail.com with ESMTPSA id a8-20020a637f08000000b0057d86bb613esm17249584pgd.45.2023.10.02.11.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 11:26:39 -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@beagleboard.org, jkridner@beagleboard.org, nm@ti.com, krzysztof.kozlowski+dt@linaro.org, vigneshr@ti.com, kristo@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 3/3] dts: ti: k3-am625-beagleplay: Add beaglecc1352 Date: Mon, 2 Oct 2023 23:54:52 +0530 Message-ID: <20231002182454.211165-4-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231002182454.211165-1-ayushdevel1325@gmail.com> References: <20231002182454.211165-1-ayushdevel1325@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 02 Oct 2023 11:27:09 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778681133151163970 X-GMAIL-MSGID: 1778681133151163970 The BeaglePlay board by BeagleBoard.org has a CC1352 co-processor. This co-processor is connected to the main AM62 (running Linux) over UART. In the BeagleConnect Technology, CC1352 is responsible for handling 6LoWPAN communication with beagleconnect freedom nodes as well as their discovery. This mcu is used by gb-beagleplay, a 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..5160923b4dc2 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"; + + mcu { + compatible = "ti,cc1352p7"; + }; }; &dss {