dt-bindings: net: bluetooth: convert MT7622 Bluetooth to the json-schema
Subsystems (5)
PATCH v2 1/1 dt-bindings: net: bluetooth: convert MT7622 Bluetooth to the json-schema
From: Rafał Miłecki <[email protected]>
This helps validating DTS files. Introduced changes:
1. Dropped serial details from example
2. Added required example include
---
V2: Simplify example
.../bluetooth/mediatek,mt7622-bluetooth.yaml | 51 +++++++++++++++++++ .../bindings/net/mediatek-bluetooth.txt | 36 ------------- 2 files changed, 51 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7622-bluetooth.yaml
Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7622-bluetooth.yaml new file +51 -0
@@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/bluetooth/mediatek,mt7622-bluetooth.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek SoC built-in Bluetooth + +description: + This device is a serial attached device to BTIF device and thus it must be a + child node of the serial node with BTIF. The dt-bindings details for BTIF + device can be known via Documentation/devicetree/bindings/serial/8250.yaml. + +maintainers: + - Sean Wang <[email protected]> + +allOf: + - $ref: bluetooth-controller.yaml# + +properties: + compatible: + const: mediatek,mt7622-bluetooth + + clocks: + maxItems: 1 + + clock-names: + const: ref + + power-domains: + maxItems: 1 + +required: + - clocks + - clock-names + - power-domains + +unevaluatedProperties: false + +examples: + - | + #include <dt-bindings/power/mt7622-power.h> + + serial { + bluetooth { + compatible = "mediatek,mt7622-bluetooth"; + power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; + clocks = <&clk25m>; + clock-names = "ref"; + }; + };
Documentation/devicetree/bindings/net/mediatek-bluetooth.txt +0 -36
@@ -1,39 +1,3 @@ -MediaTek SoC built-in Bluetooth Devices -================================== - -This device is a serial attached device to BTIF device and thus it must be a -child node of the serial node with BTIF. The dt-bindings details for BTIF -device can be known via Documentation/devicetree/bindings/serial/8250.yaml. - -Required properties: - -- compatible: Must be - "mediatek,mt7622-bluetooth": for MT7622 SoC -- clocks: Should be the clock specifiers corresponding to the entry in - clock-names property. -- clock-names: Should contain "ref" entries. -- power-domains: Phandle to the power domain that the device is part of - -Example: - - btif: serial@1100c000 { - compatible = "mediatek,mt7622-btif", - "mediatek,mtk-btif"; - reg = <0 0x1100c000 0 0x1000>; - interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>; - clocks = <&pericfg CLK_PERI_BTIF_PD>; - clock-names = "main"; - reg-shift = <2>; - reg-io-width = <4>; - - bluetooth { - compatible = "mediatek,mt7622-bluetooth"; - power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; - clocks = <&clk25m>; - clock-names = "ref"; - }; - }; - MediaTek UART based Bluetooth Devices ==================================
Signature · 1 line
2.35.3
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=866412
---Test result---
Test Summary:
CheckPatch FAIL 4.99 seconds GitLint FAIL 2.33 seconds SubjectPrefix FAIL 0.32 seconds BuildKernel PASS 29.63 seconds CheckAllWarning PASS 32.01 seconds CheckSparse PASS 39.62 seconds CheckSmatch PASS 103.08 seconds BuildKernel32 PASS 28.62 seconds TestRunnerSetup PASS 520.84 seconds TestRunner_l2cap-tester PASS 38.33 seconds TestRunner_iso-tester PASS 36.89 seconds TestRunner_bnep-tester PASS 4.78 seconds TestRunner_mgmt-tester PASS 112.73 seconds TestRunner_rfcomm-tester PASS 7.44 seconds TestRunner_sco-tester PASS 14.99 seconds TestRunner_ioctl-tester PASS 7.79 seconds TestRunner_mesh-tester PASS 5.92 seconds TestRunner_smp-tester PASS 6.92 seconds TestRunner_userchan-tester PASS 4.96 seconds IncrementalBuild PASS 27.60 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
[V2] dt-bindings: net: bluetooth: convert MT7622 Bluetooth to the json-schema
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #121:
new file mode 100644
total: 0 errors, 1 warnings, 90 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
/github/workspace/src/src/13715485.patch has style problems, please review.
NOTE: Ignored message types: UNKNOWN_COMMIT_ID
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[V2] dt-bindings: net: bluetooth: convert MT7622 Bluetooth to the json-schema
WARNING: I3 - ignore-body-lines: gitlint will be switching from using Python regex 'match' (match beginning) to 'search' (match anywhere) semantics. Please review your ignore-body-lines.regex option accordingly. To remove this warning, set general.regex-style-search=True. More details: https://jorisroovers.github.io/gitlint/configuration/#regex-style-search
16: B1 Line exceeds max length (98>80): " create mode 100644 Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7622-bluetooth.yaml"
##############################
Test: SubjectPrefix - FAIL
Desc: Check subject contains "Bluetooth" prefix
Output:
"Bluetooth: " prefix is not specified in the subject
---
Regards,
Linux Bluetooth
Quoted 6 lines · Rafał Miłecki
From: Rafał Miłecki <[email protected]>
This helps validating DTS files. Introduced changes:
1. Dropped serial details from example
2. Added required example include
Quoted 9 lines
Signed-off-by Rafał Miłecki <[email protected]>---
V2: Simplify example.../bluetooth/mediatek,mt7622-bluetooth.yaml | 51 +++++++++++++++++++ .../bindings/net/mediatek-bluetooth.txt | 36 ------------- 2 files changed, 51 insertions(+), 36 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7622-bluetooth.yaml
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 9 lines · On Fri, 28 Jun 2024 07:46:35 +0200 you wrote:
From: Rafał Miłecki <[email protected]>
This helps validating DTS files. Introduced changes:
1. Dropped serial details from example
2. Added required example includeSigned-off-by Rafał Miłecki <[email protected]>[...]
Here is the summary with links:
- [V2] dt-bindings: net: bluetooth: convert MT7622 Bluetooth to the json-schema
https://git.kernel.org/bluetooth/bluetooth-next/c/31cdab2ae178
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html