[v9,1/3] dt-bindings: net: Add ti,cc1352p7

Message ID 20231017101116.178041-2-ayushdevel1325@gmail.com
State New
Headers
Series greybus: Add BeaglePlay Greybus Driver |

Commit Message

Ayush Singh Oct. 17, 2023, 10:11 a.m. UTC
  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 <ayushdevel1325@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Nishanth Menon <nm@ti.com>
---
 .../devicetree/bindings/net/ti,cc1352p7.yaml  | 51 +++++++++++++++++++
 MAINTAINERS                                   |  6 +++
 2 files changed, 57 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/ti,cc1352p7.yaml
  

Comments

kernel test robot Oct. 26, 2023, 2 p.m. UTC | #1
Hi Ayush,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 6269320850097903b30be8f07a5c61d9f7592393]

url:    https://github.com/intel-lab-lkp/linux/commits/Ayush-Singh/dt-bindings-net-Add-ti-cc1352p7/20231017-181305
base:   6269320850097903b30be8f07a5c61d9f7592393
patch link:    https://lore.kernel.org/r/20231017101116.178041-2-ayushdevel1325%40gmail.com
patch subject: [PATCH v9 1/3] dt-bindings: net: Add ti,cc1352p7
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231026/202310262150.cA8h8EiZ-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310262150.cA8h8EiZ-lkp@intel.com/

dtcheck warnings: (new ones prefixed by >>)
>> Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml:70:27: [error] string value is redundantly quoted with any quotes (quoted-strings)
   Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml:71:28: [error] string value is redundantly quoted with any quotes (quoted-strings)

vim +70 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml

fbc00b5e746f13 Liang Yang      2022-09-07   8  
fbc00b5e746f13 Liang Yang      2022-09-07   9  allOf:
fbc00b5e746f13 Liang Yang      2022-09-07  10    - $ref: nand-controller.yaml
fbc00b5e746f13 Liang Yang      2022-09-07  11  
fbc00b5e746f13 Liang Yang      2022-09-07  12  maintainers:
fbc00b5e746f13 Liang Yang      2022-09-07  13    - liang.yang@amlogic.com
fbc00b5e746f13 Liang Yang      2022-09-07  14  
fbc00b5e746f13 Liang Yang      2022-09-07  15  properties:
fbc00b5e746f13 Liang Yang      2022-09-07  16    compatible:
fbc00b5e746f13 Liang Yang      2022-09-07  17      enum:
fbc00b5e746f13 Liang Yang      2022-09-07  18        - amlogic,meson-gxl-nfc
fbc00b5e746f13 Liang Yang      2022-09-07  19        - amlogic,meson-axg-nfc
fbc00b5e746f13 Liang Yang      2022-09-07  20  
fbc00b5e746f13 Liang Yang      2022-09-07  21    reg:
fbc00b5e746f13 Liang Yang      2022-09-07  22      maxItems: 2
fbc00b5e746f13 Liang Yang      2022-09-07  23  
fbc00b5e746f13 Liang Yang      2022-09-07  24    reg-names:
fbc00b5e746f13 Liang Yang      2022-09-07  25      items:
fbc00b5e746f13 Liang Yang      2022-09-07  26        - const: nfc
fbc00b5e746f13 Liang Yang      2022-09-07  27        - const: emmc
fbc00b5e746f13 Liang Yang      2022-09-07  28  
fbc00b5e746f13 Liang Yang      2022-09-07  29    interrupts:
fbc00b5e746f13 Liang Yang      2022-09-07  30      maxItems: 1
fbc00b5e746f13 Liang Yang      2022-09-07  31  
fbc00b5e746f13 Liang Yang      2022-09-07  32    clocks:
fbc00b5e746f13 Liang Yang      2022-09-07  33      minItems: 2
fbc00b5e746f13 Liang Yang      2022-09-07  34  
fbc00b5e746f13 Liang Yang      2022-09-07  35    clock-names:
fbc00b5e746f13 Liang Yang      2022-09-07  36      items:
fbc00b5e746f13 Liang Yang      2022-09-07  37        - const: core
fbc00b5e746f13 Liang Yang      2022-09-07  38        - const: device
fbc00b5e746f13 Liang Yang      2022-09-07  39  
fbc00b5e746f13 Liang Yang      2022-09-07  40  patternProperties:
fbc00b5e746f13 Liang Yang      2022-09-07  41    "^nand@[0-7]$":
fbc00b5e746f13 Liang Yang      2022-09-07  42      type: object
e37eaf5ebc5be6 Miquel Raynal   2023-06-19  43      $ref: raw-nand-chip.yaml
fbc00b5e746f13 Liang Yang      2022-09-07  44      properties:
fbc00b5e746f13 Liang Yang      2022-09-07  45        reg:
fbc00b5e746f13 Liang Yang      2022-09-07  46          minimum: 0
fbc00b5e746f13 Liang Yang      2022-09-07  47          maximum: 1
fbc00b5e746f13 Liang Yang      2022-09-07  48  
fbc00b5e746f13 Liang Yang      2022-09-07  49        nand-ecc-mode:
fbc00b5e746f13 Liang Yang      2022-09-07  50          const: hw
fbc00b5e746f13 Liang Yang      2022-09-07  51  
fbc00b5e746f13 Liang Yang      2022-09-07  52        nand-ecc-step-size:
c3519aed2a3faf Arseniy Krasnov 2023-07-11  53          enum: [512, 1024]
fbc00b5e746f13 Liang Yang      2022-09-07  54  
fbc00b5e746f13 Liang Yang      2022-09-07  55        nand-ecc-strength:
fbc00b5e746f13 Liang Yang      2022-09-07  56          enum: [8, 16, 24, 30, 40, 50, 60]
fbc00b5e746f13 Liang Yang      2022-09-07  57          description: |
fbc00b5e746f13 Liang Yang      2022-09-07  58            The ECC configurations that can be supported are as follows.
fbc00b5e746f13 Liang Yang      2022-09-07  59              meson-gxl-nfc 8, 16, 24, 30, 40, 50, 60
fbc00b5e746f13 Liang Yang      2022-09-07  60              meson-axg-nfc 8
fbc00b5e746f13 Liang Yang      2022-09-07  61  
262bc0096b7c91 Arseniy Krasnov 2023-06-08  62        nand-rb:
262bc0096b7c91 Arseniy Krasnov 2023-06-08  63          maxItems: 1
262bc0096b7c91 Arseniy Krasnov 2023-06-08  64          items:
262bc0096b7c91 Arseniy Krasnov 2023-06-08  65            maximum: 0
262bc0096b7c91 Arseniy Krasnov 2023-06-08  66  
e37eaf5ebc5be6 Miquel Raynal   2023-06-19  67      unevaluatedProperties: false
e37eaf5ebc5be6 Miquel Raynal   2023-06-19  68  
350301a3d73b21 Arseniy Krasnov 2023-07-17  69      dependencies:
350301a3d73b21 Arseniy Krasnov 2023-07-17 @70        nand-ecc-strength: ['nand-ecc-step-size']
350301a3d73b21 Arseniy Krasnov 2023-07-17  71        nand-ecc-step-size: ['nand-ecc-strength']
350301a3d73b21 Arseniy Krasnov 2023-07-17  72  
e37eaf5ebc5be6 Miquel Raynal   2023-06-19  73  
fbc00b5e746f13 Liang Yang      2022-09-07  74  required:
fbc00b5e746f13 Liang Yang      2022-09-07  75    - compatible
fbc00b5e746f13 Liang Yang      2022-09-07  76    - reg
fbc00b5e746f13 Liang Yang      2022-09-07  77    - interrupts
fbc00b5e746f13 Liang Yang      2022-09-07  78    - clocks
fbc00b5e746f13 Liang Yang      2022-09-07  79    - clock-names
fbc00b5e746f13 Liang Yang      2022-09-07  80
  

Patch

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 <ayushdevel1325@gmail.com>
+
+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 <dt-bindings/gpio/gpio.h>
+
+    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 <ayushdevel1325@gmail.com>
+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 <johan@kernel.org>
 M:	Alex Elder <elder@kernel.org>