ASoC: dt-bindings: nau8315: Convert to dtschema
Subsystems (2)
PATCH 1/1 ASoC: dt-bindings: nau8315: Convert to dtschema
Convert the NAU8315 audio CODEC bindings to DT schema.
--- .../devicetree/bindings/sound/nau8315.txt | 24 ---------- .../bindings/sound/nuvoton,nau8315.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 24 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/nau8315.txt create mode 100644 Documentation/devicetree/bindings/sound/nuvoton,nau8315.yaml
Documentation/devicetree/bindings/sound/nau8315.txt deleted +0 -24
@@ -1,24 +0,0 @@ -Nuvoton NAU8315 Mono Class-D Amplifier - -Required properties: -- compatible : "nuvoton,nau8315" - "nuvoton,nau8318" - -Optional properties: -- enable-gpios : GPIO specifier for the chip's device enable input(EN) pin. - If this option is not specified then driver does not manage - the pin state (e.g. chip is always on). - -Example: - -#include <dt-bindings/gpio/gpio.h> - -nau8315 { - compatible = "nuvoton,nau8315"; - enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; -}; - -nau8318 { - compatible = "nuvoton,nau8318"; - enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; -};
Documentation/devicetree/bindings/sound/nuvoton,nau8315.yaml new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 14 lines · David Lin
Convert the NAU8315 audio CODEC bindings to DT schema.
Signed-off-by David Lin <[email protected]>---
Documentation/devicetree/bindings/sound/nuvoton,nau8315.yaml new file +8
-0+allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - nuvoton,nau8315 + - nuvoton,nau8318
Documentation/devicetree/bindings/sound/nuvoton,nau8315.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/sound/nuvoton,nau8315.yaml new file +10
-0+ + '#sound-dai-cells': + const: 0 + + enable-gpios: + maxItems: 1 + description: + GPIO specifier for the chip's device enable input(EN) pin. + If this option is not specified then driver does not manage + the pin state (e.g. chip is always on).
The only thing driver is doing is to toggle this pin. If it is missing the entire driver is noop, thus above comment is a bit funny. It probably should be mandatory pin. But I see it was there since beginning so ok.
Best regards,
Krzysztof
Quoted 29 lines · Krzysztof Kozlowski
Quoted 13 lines · David Lin
Convert the NAU8315 audio CODEC bindings to DT schema.
Signed-off-by David Lin <[email protected]>---
Documentation/devicetree/bindings/sound/nuvoton,nau8315.yaml new file +8
-0+allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - nuvoton,nau8315 + - nuvoton,nau8318Documentation/devicetree/bindings/sound/nuvoton,nau8315.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/sound/nuvoton,nau8315.yaml new file +10
-0+ + '#sound-dai-cells': + const: 0 + + enable-gpios: + maxItems: 1 + description: + GPIO specifier for the chip's device enable input(EN) pin. + If this option is not specified then driver does not manage + the pin state (e.g. chip is always on).The only thing driver is doing is to toggle this pin. If it is missing the entire driver is noop, thus above comment is a bit funny. It probably should be mandatory pin. But I see it was there since beginning so ok.
Quoted 4 lines
Reviewed-by Krzysztof Kozlowski <[email protected]>Best regards,
Krzysztof
For "the chip is always on" might be make EN pin is always pull high in the schematic.
so driver didn't need to manage it. Of course, this driver will just have software switch.
Generally, the schematic will design an extra gpio for control.
Quoted 1 line
________________________________
________________________________
The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original sender of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such a person, please kindly reply to the sender indicating this fact and delete all copies of it from your computer and network server immediately. Your cooperation is highly appreciated. It is advised that any unauthorized use of confidential information of Nuvoton is strictly prohibited; and any information in this email irrelevant to the official business of Nuvoton shall be deemed as neither given nor endorsed by Nuvoton.
Mark Brown
maintainerQuoted 6 lines · On Wed, May 17, 2023 at 11:28:46AM +0800, AS50 CTLin0 wrote:
Quoted 4 lines · Krzysztof Kozlowski
The only thing driver is doing is to toggle this pin. If it is missing the entire driver is noop, thus above comment is a bit funny. It probably should be mandatory pin. But I see it was there since beginning so ok.
No, it's not just that - the driver also describes the supported formats and rates to the subsystem so we can constrain the DAI appropraitely.
Mark Brown
maintainerQuoted 3 lines · David Lin
Convert the NAU8315 audio CODEC bindings to DT schema.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: dt-bindings: nau8315: Convert to dtschema
commit: 268777caf0dd8d3c852cccb949ae73b7ea7b2f5e
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark