From patchwork Tue Oct 17 10:11:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 734617 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 ED2053FB24 for ; Tue, 17 Oct 2023 10:11:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TdHR09/F" Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 029F4E8; Tue, 17 Oct 2023 03:11:28 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1c9b70b9656so32612115ad.1; Tue, 17 Oct 2023 03:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697537487; x=1698142287; 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=L/xhityidHANRldjqCZLdwURqWfb6ZxMT/TSWeuUQRw=; b=TdHR09/FojOWswG0B9uZQ0Gafvv6fm/jrtC82N64ET9P38KoASGB0nhv2kJofNyZZs ddZog2+bMQ1pqFJBW7d16aFpOlx7OCGxK7MlLKd5AygTMBdalLTaKpKoCUSQNzde1Rwo aJD4zT1TH3f6NFVQcbrJOP7q+pZSlUc/PltVGKkSgEd/el/VVp+6g/q8CW/aaPQxk0HD yIdSTDkypnHod+SXywL0ceHaeT9eyqu9fItV5Fp1qwNwov/S81I/YAL0vdW7O3NaFGoH D3x4gYymLRocDEvihgwum4T1yJlu9OarG/Rjdf9Lt0D1yG406QN9Iy8nWZHTzj8MJbmF NZ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697537487; x=1698142287; 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=L/xhityidHANRldjqCZLdwURqWfb6ZxMT/TSWeuUQRw=; b=BAoUVpqE1NKjAD4mqm+ucWocRb+bkSnNLsAiW1vuzSCpuGUl7ro++idwt4azkLDlso 3XZ8bDSR6Mn4MujOcwAosfmM4Rcrd3ivJ176oyRfJ8F4Qu95TQjfag9dMbtYmJJtxGta dA1zOiyZeUUiYRSpunQrqgflYd5g/4+us0ubqhyHPhRl33UXrCGjNjtZ3fwXox3D2i1D GKur2dalbF2YoXRsb06bl8cA1mcLHC8TOQgQpjZyvWeXGHRGMWkJ0K6SQT7G1j073LiY YQARyhVqlPLVgJii7EUUydnleIMrjLinUmAnaIEfaqdYhrAuocY7ZHROBCju6xq+yIHQ nCUA== X-Gm-Message-State: AOJu0Yxa5bI9yMq63bS/nTY3lS968RP1ZpU51TVe5gbSanDhz4Rvifkw NrwJ0AuuN+q/qq6oQAqcpr8= X-Google-Smtp-Source: AGHT+IERzA5Z7Z0TYiNwEpJH1G57kh34XWYQ19Y6Czdr8THGHCovdeCYtJWE1UDEHzJ5penp9zhgfQ== X-Received: by 2002:a17:902:ce8b:b0:1ca:3d53:2867 with SMTP id f11-20020a170902ce8b00b001ca3d532867mr2062576plg.15.1697537487400; Tue, 17 Oct 2023 03:11:27 -0700 (PDT) Received: from toolbox.iitism.net ([103.15.228.94]) by smtp.gmail.com with ESMTPSA id q9-20020a170902dac900b001bbb8d5166bsm1127634plx.123.2023.10.17.03.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:11:26 -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, Krzysztof Kozlowski Subject: [PATCH v9 1/3] dt-bindings: net: Add ti,cc1352p7 Date: Tue, 17 Oct 2023 15:41:12 +0530 Message-ID: <20231017101116.178041-2-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231017101116.178041-1-ayushdevel1325@gmail.com> References: <20231017101116.178041-1-ayushdevel1325@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Add DT bindings for Texas Instruments Simplelink CC1352P7 wireless MCU BeaglePlay has CC1352P7 co-processor 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. Signed-off-by: Ayush Singh Reviewed-by: Krzysztof Kozlowski Reviewed-by: Nishanth Menon --- .../devicetree/bindings/net/ti,cc1352p7.yaml | 51 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 57 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..3dde10de4630 --- /dev/null +++ b/Documentation/devicetree/bindings/net/ti,cc1352p7.yaml @@ -0,0 +1,51 @@ +# 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: + items: + - description: high-frequency main system (MCU and peripherals) clock + - description: low-frequency system clock + + clock-names: + items: + - const: sclk_hf + - const: sclk_lf + + reset-gpios: + maxItems: 1 + + vdds-supply: true + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include + + serial { + mcu { + compatible = "ti,cc1352p7"; + clocks = <&sclk_hf 0>, <&sclk_lf 25>; + clock-names = "sclk_hf", "sclk_lf"; + reset-gpios = <&pio 35 GPIO_ACTIVE_LOW>; + vdds-supply = <&vdds>; + }; + }; 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 Tue Oct 17 10:11:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayush Singh X-Patchwork-Id: 734616 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 B73AB3FB24 for ; Tue, 17 Oct 2023 10:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K7DVooVv" Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3B88FA; Tue, 17 Oct 2023 03:11:35 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1c9a1762b43so44075095ad.1; Tue, 17 Oct 2023 03:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697537495; x=1698142295; 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=TdZHxOOzFLZn0VZMmX6FQaeZ+Bg8TaP/zYXcfd62xjk=; b=K7DVooVv8x7/FtT8Zjmu0aijlCQX723olTGyLQtKCNEjzovcF7kKZ5qVchBtoel4jU RntZ7hZvqj2sqloWlhB/B3VWgj07Oqoh7T28Z3jq1rfj0swMfowOr3nHTMTAlDqiSpnR t2A5nBO3Ute4t7y3DN5DLfgvKj2XECC9VHCMhM/lTaTUJ+KTPhUzrwy2CWoZHHsiMnq+ B/Rnqmg+KQkZY1CwL8Yjl1xI3eX3LO6lA0FgjJQq6EwlJ4Z7zbpGhbd3bcllZJ/TWyqH dOzd656pnl1N3Qzp0Ukk8KfGnLsX5VYzlnfXyipM9u3M1t/Q9j1UxgqYGB8DKll2983D NG1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697537495; x=1698142295; 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=TdZHxOOzFLZn0VZMmX6FQaeZ+Bg8TaP/zYXcfd62xjk=; b=UiwuqRb2v4pRE8DGaXrXvz7rm0bIviDW3qOrBx5rjosHanjoX27X3CpRy1lJqYaLUt ntCVCCKsb9j7D+PJM/zCfpcy5VVuMC1LY75BDEkKoYtNK8k/QwuJ8NmX6EWMRghg9H// 8WhXPQCjFsJ3p62gR9xz2xgSX2OJaCW/B9ej/B92ZDkt4HcbebIcsvo48wZ0QvulOWeb KTIeiyMa4A6HjxA8IwjSwIM+oJrn5NjWHqZk/EJB3vuSe1Maeqp4FNba+pVuKxC2N3Qt yJ3F2VAz0FOn8DsKo/3E7Lknq4WjOOqpvI5JBbKZ5DVZO8C4Q2LgxrncGBcZLhE5z9cB c3NA== X-Gm-Message-State: AOJu0YxychDHw57Vk7JlFXrTWAfLez1pqsrgbu/NizEw30k0XHt9c0EH z+P/80wfutDp8W1okvB2qzbFhltg5pOzPQ== X-Google-Smtp-Source: AGHT+IHQXTP0m+NaoCHVUd8uWZQaMgS9sF8ezdPJ0f/jGcALWbjn+T04o1aN+MFG8Kf+5mQ+l+ionA== X-Received: by 2002:a17:903:5cc:b0:1c7:23c9:a7db with SMTP id kf12-20020a17090305cc00b001c723c9a7dbmr1742966plb.26.1697537495397; Tue, 17 Oct 2023 03:11:35 -0700 (PDT) Received: from toolbox.iitism.net ([103.15.228.94]) by smtp.gmail.com with ESMTPSA id q9-20020a170902dac900b001bbb8d5166bsm1127634plx.123.2023.10.17.03.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 03:11:35 -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 v9 3/3] dts: ti: k3-am625-beagleplay: Add beaglecc1352 Date: Tue, 17 Oct 2023 15:41:14 +0530 Message-ID: <20231017101116.178041-4-ayushdevel1325@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231017101116.178041-1-ayushdevel1325@gmail.com> References: <20231017101116.178041-1-ayushdevel1325@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net The BeaglePlay board by BeagleBoard.org has a CC1352P7 co-processor 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 | 6 ++++++ 1 file changed, 6 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..d2e0b11242b6 100644 --- a/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts +++ b/arch/arm64/boot/dts/ti/k3-am625-beagleplay.dts @@ -870,6 +870,12 @@ &main_uart6 { pinctrl-names = "default"; pinctrl-0 = <&wifi_debug_uart_pins_default>; status = "okay"; + + mcu { + compatible = "ti,cc1352p7"; + reset-gpios = <&main_gpio0 72 GPIO_ACTIVE_LOW>; + vdds-supply = <&vdd_3v3>; + }; }; &dss {