From nobody Mon Feb 9 13:14:51 2026 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 072BC1F03FA for ; Tue, 7 Jan 2025 12:59:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736254751; cv=none; b=JsISSDNQ1qkqAqzQklo5M4yz7mdMrS3q0AGJ8+F1LXI7XKnF/EQ0OMfY1E/Hvc5MbD2yNO4Ymc5R3dZRaJHLeY8fXNgG85l9tGEcFlmVBbCAPjWthr//HuTPZUkMjWI3tUo8p4DtKBqF5JyCDlJEscT+RPNe/McEEVPRAmiKaO4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736254751; c=relaxed/simple; bh=beNjrkx0ARKE/JZov8XeDoM0HVIvAlq6b4sGglUb1n4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FadMyBUTJLQLzPyZBiA7SyMJma1/4t7DlzmGcSsbRCi/U5goWp8lwVn0TC/brTLknu2zlsCk51uqnaL6e48kI0pGR2ksoAwVAnNHvp5DPalqeB31NRIYR+Yt5jVEWhiGZgb+w1WTW1JQpaKsSx4TazQKsfAdrICGkYC/bVVfBvI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=TrO781Dg; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TrO781Dg" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-385e44a1a2dso1789816f8f.3 for ; Tue, 07 Jan 2025 04:59:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736254744; x=1736859544; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xCxsFvviMvVH8lxnn1/Z1ousFt8F3cuC/oCQYEw7eDY=; b=TrO781DgV98ESkwT3Y1SfjRcB1opSM8aaRtSkEED13rnu1Uefh/W5EE2Vt2bByNsqj OmSwEZP2hbI92aIq/z2DEaVa3qgy+/uGdkwiY4fhP4WdJt/wjYje0aQnoYaEcrz+6O90 u+d99plQFnGnse8p7d/uv466fruBOILpEao55gfgT0Mx/AaOEh0yvNTs5e/GCnpZGRyk M00IBcmVgm7wGX3b+SF3QtBcKQQmi8FH6khkyJpebRyVcjq4o3UAGJ8UO7zUJb3mPYZO Kjl2iNqtqhbJRRhCtEVaDfDGHj9231KXQ/uO85N0XUSNr6EApO8RF7ABDFeGr7lmUYYZ xpUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736254744; x=1736859544; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xCxsFvviMvVH8lxnn1/Z1ousFt8F3cuC/oCQYEw7eDY=; b=vfVVS1/6M954/lU3qaV2230r9Jn/uGGXCWr7Yr1P7IoMmjiQ6DVKhwrxbRifizi1nK /EBIDWX8FXprd4AtJzLtmDVJwgtSBp//BGik6Ld1vatx1GqQvGQCzc5BWx5Mz1vPa+jG 25e73CC/9HmqYEhBgIOZ9ixMshE7NtH+fozx9j5EOJGMoDyVU9qNrBfwsxXm1YxbniCA pYhdo4OcIfDbUBtEPHETYmpuKJsXGeRsb23oXF9bOZ+A3Q/k7kI4XpM4enyP70Ck4zFJ vzvJqjRt0gzezut5boQs/KPgV9/elt1AXpxMHJypr7B6iJ7bE/H1HoJJ42jZse8Um2nw /tnQ== X-Forwarded-Encrypted: i=1; AJvYcCWPk0eahJmN2UMbi9lJ5A4fSAnP33Ux7EwGmZpT5IDftt9B/BpijghrUOrua42J/BiGONpJuSz2mtpYsN8=@vger.kernel.org X-Gm-Message-State: AOJu0YwE/Xi9zRdcp5ThZrka/7QUj12Z+AYXW1Ve34Crf1y2NTMBMmeL vAIJVjRzaEbFr9nkWs2vXEXhyZoZzc9iBXp4VzlU9tK9pp/hJLfj7L7P5KQ63AA= X-Gm-Gg: ASbGncuJpZV/gsXCDGyEyQ5mAb/EU3XkDt3XBzhUgV5s33JcUrJ70QQ/l3zCYyjSpxM TzKjYLgPgKYusvM9zm38fmWrZ5WDriaXz0fABUfqfhOYm2Z9SkJA2VhwF2K02FZOcbx48jlqqGh 4x6v//XP21cpYG2S7WxseCdPuCZuYva4bpMkDma76gJVTZYJlZMhscuw76O2S7fb/75lbd7XAN8 y1lQwGQlC1khPkQDrXgF0NCaCRzoRaybtZnAso2Uo/i73/EICVaoAtiWpSZBFTtx+cbHb0= X-Google-Smtp-Source: AGHT+IFQYKizWpNaDvJ6KxX9AG5fXoBmQ5o4USRpGCQKdWdOEUuBBQRqgC4zamXauluRTMoLmsSnZw== X-Received: by 2002:adf:a448:0:b0:385:fb2c:6038 with SMTP id ffacd0b85a97d-38a223fedc9mr13929024f8f.14.1736254744190; Tue, 07 Jan 2025 04:59:04 -0800 (PST) Received: from krzk-bin.. ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c89e261sm51139335f8f.76.2025.01.07.04.59.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2025 04:59:03 -0800 (PST) From: Krzysztof Kozlowski To: Lars-Peter Clausen , =?UTF-8?q?Nuno=20S=C3=A1?= , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shenghao Ding , Kevin Lu , Baojun Xu , Neil Armstrong , Shengjiu Wang , Viorel Suman , Daniele Alessandrelli , "Paul J. Murphy" , Igor Prusov , Andrew Davis , Shi Fu , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] ASoC: dt-bindings: Correct indentation and style in DTS example Date: Tue, 7 Jan 2025 13:58:58 +0100 Message-ID: <20250107125901.227995-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. While touching the lines do other non-functional changes: replace raw number with proper define for GPIO flag and use generic node name. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski --- .../bindings/sound/adi,ssm2518.yaml | 20 ++++++----- .../bindings/sound/everest,es71x4.yaml | 10 +++--- .../bindings/sound/everest,es7241.yaml | 19 +++++----- .../devicetree/bindings/sound/fsl,easrc.yaml | 32 ++++++++--------- .../devicetree/bindings/sound/fsl,xcvr.yaml | 34 +++++++++--------- .../bindings/sound/intel,keembay-i2s.yaml | 32 ++++++++--------- .../bindings/sound/neofidelity,ntp8918.yaml | 26 +++++++------- .../devicetree/bindings/sound/ti,pcm6240.yaml | 32 +++++++++-------- .../devicetree/bindings/sound/ti,tas2562.yaml | 30 ++++++++-------- .../devicetree/bindings/sound/ti,tas2770.yaml | 34 +++++++++--------- .../devicetree/bindings/sound/ti,tas2781.yaml | 36 ++++++++++--------- .../devicetree/bindings/sound/ti,tas27xx.yaml | 34 +++++++++--------- .../devicetree/bindings/sound/ti,tas57xx.yaml | 34 +++++++++--------- 13 files changed, 195 insertions(+), 178 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/adi,ssm2518.yaml b/Doc= umentation/devicetree/bindings/sound/adi,ssm2518.yaml index f3f32540779c..f1beae84cad1 100644 --- a/Documentation/devicetree/bindings/sound/adi,ssm2518.yaml +++ b/Documentation/devicetree/bindings/sound/adi,ssm2518.yaml @@ -36,12 +36,14 @@ unevaluatedProperties: false =20 examples: - | - i2c { - #address-cells =3D <1>; - #size-cells =3D <0>; - codec@34 { - compatible =3D "adi,ssm2518"; - reg =3D <0x34>; - gpios =3D <&gpio 5 0>; - }; - }; + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + codec@34 { + compatible =3D "adi,ssm2518"; + reg =3D <0x34>; + gpios =3D <&gpio 5 GPIO_ACTIVE_HIGH>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/everest,es71x4.yaml b/= Documentation/devicetree/bindings/sound/everest,es71x4.yaml index fd1b32812228..efe9f3fd3778 100644 --- a/Documentation/devicetree/bindings/sound/everest,es71x4.yaml +++ b/Documentation/devicetree/bindings/sound/everest,es71x4.yaml @@ -53,10 +53,10 @@ unevaluatedProperties: false =20 examples: - | - codec { - compatible =3D "everest,es7134"; - #sound-dai-cells =3D <0>; - VDD-supply =3D <&vdd_supply>; - }; + codec { + compatible =3D "everest,es7134"; + #sound-dai-cells =3D <0>; + VDD-supply =3D <&vdd_supply>; + }; =20 ... diff --git a/Documentation/devicetree/bindings/sound/everest,es7241.yaml b/= Documentation/devicetree/bindings/sound/everest,es7241.yaml index f179af758730..e5cfb40f1ef2 100644 --- a/Documentation/devicetree/bindings/sound/everest,es7241.yaml +++ b/Documentation/devicetree/bindings/sound/everest,es7241.yaml @@ -54,14 +54,15 @@ unevaluatedProperties: false =20 examples: - | - #include - codec { - compatible =3D "everest,es7241"; - #sound-dai-cells =3D <0>; - reset-gpios =3D <&gpio1 15 GPIO_ACTIVE_HIGH>; - VDDP-supply =3D <&vddp_supply>; - VDDA-supply =3D <&vdda_supply>; - VDDD-supply =3D <&vddd_supply>; - }; + #include + + codec { + compatible =3D "everest,es7241"; + #sound-dai-cells =3D <0>; + reset-gpios =3D <&gpio1 15 GPIO_ACTIVE_HIGH>; + VDDP-supply =3D <&vddp_supply>; + VDDA-supply =3D <&vdda_supply>; + VDDD-supply =3D <&vddd_supply>; + }; =20 ... diff --git a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml b/Docum= entation/devicetree/bindings/sound/fsl,easrc.yaml index 0782f3f9947f..c454110f4281 100644 --- a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml @@ -87,20 +87,20 @@ examples: #include =20 easrc: easrc@300c0000 { - compatible =3D "fsl,imx8mn-easrc"; - reg =3D <0x300c0000 0x10000>; - interrupts =3D <0x0 122 0x4>; - clocks =3D <&clk IMX8MN_CLK_ASRC_ROOT>; - clock-names =3D "mem"; - dmas =3D <&sdma2 16 23 0> , <&sdma2 17 23 0>, - <&sdma2 18 23 0> , <&sdma2 19 23 0>, - <&sdma2 20 23 0> , <&sdma2 21 23 0>, - <&sdma2 22 23 0> , <&sdma2 23 23 0>; - dma-names =3D "ctx0_rx", "ctx0_tx", - "ctx1_rx", "ctx1_tx", - "ctx2_rx", "ctx2_tx", - "ctx3_rx", "ctx3_tx"; - firmware-name =3D "imx/easrc/easrc-imx8mn.bin"; - fsl,asrc-rate =3D <8000>; - fsl,asrc-format =3D <2>; + compatible =3D "fsl,imx8mn-easrc"; + reg =3D <0x300c0000 0x10000>; + interrupts =3D <0x0 122 0x4>; + clocks =3D <&clk IMX8MN_CLK_ASRC_ROOT>; + clock-names =3D "mem"; + dmas =3D <&sdma2 16 23 0> , <&sdma2 17 23 0>, + <&sdma2 18 23 0> , <&sdma2 19 23 0>, + <&sdma2 20 23 0> , <&sdma2 21 23 0>, + <&sdma2 22 23 0> , <&sdma2 23 23 0>; + dma-names =3D "ctx0_rx", "ctx0_tx", + "ctx1_rx", "ctx1_tx", + "ctx2_rx", "ctx2_tx", + "ctx3_rx", "ctx3_tx"; + firmware-name =3D "imx/easrc/easrc-imx8mn.bin"; + fsl,asrc-rate =3D <8000>; + fsl,asrc-format =3D <2>; }; diff --git a/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml b/Docume= ntation/devicetree/bindings/sound/fsl,xcvr.yaml index 5e2801014221..f68d0e0ecfe5 100644 --- a/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml +++ b/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml @@ -140,21 +140,21 @@ examples: #include =20 xcvr: xcvr@30cc0000 { - compatible =3D "fsl,imx8mp-xcvr"; - reg =3D <0x30cc0000 0x800>, - <0x30cc0800 0x400>, - <0x30cc0c00 0x080>, - <0x30cc0e00 0x080>; - reg-names =3D "ram", "regs", "rxfifo", "txfifo"; - interrupts =3D , - , - ; - clocks =3D <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_IPG>, - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_PHY>, - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SPBA2_ROOT>, - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT>; - clock-names =3D "ipg", "phy", "spba", "pll_ipg"; - dmas =3D <&sdma2 30 2 0>, <&sdma2 31 2 0>; - dma-names =3D "rx", "tx"; - resets =3D <&audiomix_reset 0>; + compatible =3D "fsl,imx8mp-xcvr"; + reg =3D <0x30cc0000 0x800>, + <0x30cc0800 0x400>, + <0x30cc0c00 0x080>, + <0x30cc0e00 0x080>; + reg-names =3D "ram", "regs", "rxfifo", "txfifo"; + interrupts =3D , + , + ; + clocks =3D <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_IPG>, + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_PHY>, + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SPBA2_ROOT>, + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT>; + clock-names =3D "ipg", "phy", "spba", "pll_ipg"; + dmas =3D <&sdma2 30 2 0>, <&sdma2 31 2 0>; + dma-names =3D "rx", "tx"; + resets =3D <&audiomix_reset 0>; }; diff --git a/Documentation/devicetree/bindings/sound/intel,keembay-i2s.yaml= b/Documentation/devicetree/bindings/sound/intel,keembay-i2s.yaml index 76b6f2cf25df..dca617860938 100644 --- a/Documentation/devicetree/bindings/sound/intel,keembay-i2s.yaml +++ b/Documentation/devicetree/bindings/sound/intel,keembay-i2s.yaml @@ -72,19 +72,19 @@ unevaluatedProperties: false =20 examples: - | - #include - #include - #define KEEM_BAY_PSS_AUX_I2S3 - #define KEEM_BAY_PSS_I2S3 - i2s3: i2s@20140000 { - compatible =3D "intel,keembay-i2s"; - #sound-dai-cells =3D <0>; - reg =3D <0x20140000 0x200>, /* I2S registers */ - <0x202a00a4 0x4>; /* I2S gen configuration */ - reg-names =3D "i2s-regs", "i2s_gen_cfg"; - interrupts =3D ; - clock-names =3D "osc", "apb_clk"; - clocks =3D <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY= _PSS_I2S3>; - dmas =3D <&axi_dma0 29>, <&axi_dma0 33>; - dma-names =3D "tx", "rx"; - }; + #include + #include + #define KEEM_BAY_PSS_AUX_I2S3 + #define KEEM_BAY_PSS_I2S3 + i2s@20140000 { + compatible =3D "intel,keembay-i2s"; + #sound-dai-cells =3D <0>; + reg =3D <0x20140000 0x200>, /* I2S registers */ + <0x202a00a4 0x4>; /* I2S gen configuration */ + reg-names =3D "i2s-regs", "i2s_gen_cfg"; + interrupts =3D ; + clock-names =3D "osc", "apb_clk"; + clocks =3D <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_= PSS_I2S3>; + dmas =3D <&axi_dma0 29>, <&axi_dma0 33>; + dma-names =3D "tx", "rx"; + }; diff --git a/Documentation/devicetree/bindings/sound/neofidelity,ntp8918.ya= ml b/Documentation/devicetree/bindings/sound/neofidelity,ntp8918.yaml index 952768b35902..6946177e391a 100644 --- a/Documentation/devicetree/bindings/sound/neofidelity,ntp8918.yaml +++ b/Documentation/devicetree/bindings/sound/neofidelity,ntp8918.yaml @@ -55,16 +55,18 @@ unevaluatedProperties: false =20 examples: - | - #include - i2c { - #address-cells =3D <1>; - #size-cells =3D <0>; - audio-codec@2a { - compatible =3D "neofidelity,ntp8918"; - #sound-dai-cells =3D <0>; - reg =3D <0x2a>; - clocks =3D <&clkc 150>, <&clkc 151>, <&clkc 152>; - clock-names =3D "wck", "scl", "bck"; - reset-gpios =3D <&gpio 5 GPIO_ACTIVE_LOW>; + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + audio-codec@2a { + compatible =3D "neofidelity,ntp8918"; + #sound-dai-cells =3D <0>; + reg =3D <0x2a>; + clocks =3D <&clkc 150>, <&clkc 151>, <&clkc 152>; + clock-names =3D "wck", "scl", "bck"; + reset-gpios =3D <&gpio 5 GPIO_ACTIVE_LOW>; + }; }; - }; diff --git a/Documentation/devicetree/bindings/sound/ti,pcm6240.yaml b/Docu= mentation/devicetree/bindings/sound/ti,pcm6240.yaml index dd5b08e3d7a1..d89b4255b51c 100644 --- a/Documentation/devicetree/bindings/sound/ti,pcm6240.yaml +++ b/Documentation/devicetree/bindings/sound/ti,pcm6240.yaml @@ -159,19 +159,21 @@ additionalProperties: false =20 examples: - | - #include - i2c { - /* example for two devices with interrupt support */ - #address-cells =3D <1>; - #size-cells =3D <0>; - pcm6240: audio-codec@48 { - compatible =3D "ti,pcm6240"; - reg =3D <0x48>, /* primary-device */ - <0x4b>; /* secondary-device */ - #sound-dai-cells =3D <0>; - reset-gpios =3D <&gpio1 10 GPIO_ACTIVE_HIGH>; - interrupt-parent =3D <&gpio1>; - interrupts =3D <15>; - }; - }; + #include + + i2c { + /* example for two devices with interrupt support */ + #address-cells =3D <1>; + #size-cells =3D <0>; + + audio-codec@48 { + compatible =3D "ti,pcm6240"; + reg =3D <0x48>, /* primary-device */ + <0x4b>; /* secondary-device */ + #sound-dai-cells =3D <0>; + reset-gpios =3D <&gpio1 10 GPIO_ACTIVE_HIGH>; + interrupt-parent =3D <&gpio1>; + interrupts =3D <15>; + }; + }; ... diff --git a/Documentation/devicetree/bindings/sound/ti,tas2562.yaml b/Docu= mentation/devicetree/bindings/sound/ti,tas2562.yaml index 8bc3b0c7531e..3763ca16b91f 100644 --- a/Documentation/devicetree/bindings/sound/ti,tas2562.yaml +++ b/Documentation/devicetree/bindings/sound/ti,tas2562.yaml @@ -65,17 +65,19 @@ unevaluatedProperties: false =20 examples: - | - #include - i2c { - #address-cells =3D <1>; - #size-cells =3D <0>; - codec: codec@4c { - compatible =3D "ti,tas2562"; - reg =3D <0x4c>; - #sound-dai-cells =3D <0>; - interrupt-parent =3D <&gpio1>; - interrupts =3D <14>; - shutdown-gpios =3D <&gpio1 15 0>; - ti,imon-slot-no =3D <0>; - }; - }; + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + codec@4c { + compatible =3D "ti,tas2562"; + reg =3D <0x4c>; + #sound-dai-cells =3D <0>; + interrupt-parent =3D <&gpio1>; + interrupts =3D <14>; + shutdown-gpios =3D <&gpio1 15 GPIO_ACTIVE_HIGH>; + ti,imon-slot-no =3D <0>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/ti,tas2770.yaml b/Docu= mentation/devicetree/bindings/sound/ti,tas2770.yaml index 362c2e6154f0..5e7aea43aced 100644 --- a/Documentation/devicetree/bindings/sound/ti,tas2770.yaml +++ b/Documentation/devicetree/bindings/sound/ti,tas2770.yaml @@ -69,19 +69,21 @@ unevaluatedProperties: false =20 examples: - | - #include - i2c { - #address-cells =3D <1>; - #size-cells =3D <0>; - codec: codec@41 { - compatible =3D "ti,tas2770"; - reg =3D <0x41>; - #sound-dai-cells =3D <0>; - interrupt-parent =3D <&gpio1>; - interrupts =3D <14>; - reset-gpio =3D <&gpio1 15 0>; - shutdown-gpios =3D <&gpio1 14 0>; - ti,imon-slot-no =3D <0>; - ti,vmon-slot-no =3D <2>; - }; - }; + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + codec@41 { + compatible =3D "ti,tas2770"; + reg =3D <0x41>; + #sound-dai-cells =3D <0>; + interrupt-parent =3D <&gpio1>; + interrupts =3D <14>; + reset-gpio =3D <&gpio1 15 GPIO_ACTIVE_HIGH>; + shutdown-gpios =3D <&gpio1 14 GPIO_ACTIVE_HIGH>; + ti,imon-slot-no =3D <0>; + ti,vmon-slot-no =3D <2>; + }; + }; diff --git a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml b/Docu= mentation/devicetree/bindings/sound/ti,tas2781.yaml index 976238689249..5ea1cdc593b5 100644 --- a/Documentation/devicetree/bindings/sound/ti,tas2781.yaml +++ b/Documentation/devicetree/bindings/sound/ti,tas2781.yaml @@ -101,22 +101,24 @@ additionalProperties: false =20 examples: - | - #include - i2c { - /* example with quad tas2781s, such as tablet or pad device */ - #address-cells =3D <1>; - #size-cells =3D <0>; - quad_tas2781: tas2781@38 { - compatible =3D "ti,tas2781"; - reg =3D <0x38>, /* Audio slot 0 */ - <0x3a>, /* Audio slot 1 */ - <0x39>, /* Audio slot 2 */ - <0x3b>; /* Audio slot 3 */ + #include =20 - #sound-dai-cells =3D <0>; - reset-gpios =3D <&gpio1 10 GPIO_ACTIVE_HIGH>; - interrupt-parent =3D <&gpio1>; - interrupts =3D <15>; - }; - }; + i2c { + /* example with quad tas2781s, such as tablet or pad device */ + #address-cells =3D <1>; + #size-cells =3D <0>; + + audio-codec@38 { + compatible =3D "ti,tas2781"; + reg =3D <0x38>, /* Audio slot 0 */ + <0x3a>, /* Audio slot 1 */ + <0x39>, /* Audio slot 2 */ + <0x3b>; /* Audio slot 3 */ + + #sound-dai-cells =3D <0>; + reset-gpios =3D <&gpio1 10 GPIO_ACTIVE_HIGH>; + interrupt-parent =3D <&gpio1>; + interrupts =3D <15>; + }; + }; ... diff --git a/Documentation/devicetree/bindings/sound/ti,tas27xx.yaml b/Docu= mentation/devicetree/bindings/sound/ti,tas27xx.yaml index 530bc3937847..5447482179c1 100644 --- a/Documentation/devicetree/bindings/sound/ti,tas27xx.yaml +++ b/Documentation/devicetree/bindings/sound/ti,tas27xx.yaml @@ -62,21 +62,23 @@ unevaluatedProperties: false =20 examples: - | - #include - i2c { - #address-cells =3D <1>; - #size-cells =3D <0>; - codec: codec@38 { - compatible =3D "ti,tas2764"; - reg =3D <0x38>; - #sound-dai-cells =3D <0>; - interrupt-parent =3D <&gpio1>; - interrupts =3D <14>; - reset-gpios =3D <&gpio1 15 0>; - shutdown-gpios =3D <&gpio1 15 0>; - ti,imon-slot-no =3D <0>; - ti,vmon-slot-no =3D <2>; - }; - }; + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + codec@38 { + compatible =3D "ti,tas2764"; + reg =3D <0x38>; + #sound-dai-cells =3D <0>; + interrupt-parent =3D <&gpio1>; + interrupts =3D <14>; + reset-gpios =3D <&gpio1 15 GPIO_ACTIVE_HIGH>; + shutdown-gpios =3D <&gpio1 15 GPIO_ACTIVE_HIGH>; + ti,imon-slot-no =3D <0>; + ti,vmon-slot-no =3D <2>; + }; + }; =20 ... diff --git a/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml b/Docu= mentation/devicetree/bindings/sound/ti,tas57xx.yaml index 2f917238db95..74f7d02b424b 100644 --- a/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml +++ b/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml @@ -112,22 +112,24 @@ unevaluatedProperties: false =20 examples: - | - i2c { - #address-cells =3D <1>; - #size-cells =3D <0>; + #include =20 - codec@2a { - compatible =3D "ti,tas5717"; - reg =3D <0x2a>; - #sound-dai-cells =3D <0>; - reset-gpios =3D <&gpio1 15 0>; - pdn-gpios =3D <&gpio1 15 0>; - AVDD-supply =3D <&avdd_supply>; - DVDD-supply =3D <&dvdd_supply>; - HPVDD-supply =3D <&hpvdd_supply>; - PVDD_AB-supply =3D <&pvdd_ab_supply>; - PVDD_CD-supply =3D <&pvdd_cd_supply>; - }; - }; + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + codec@2a { + compatible =3D "ti,tas5717"; + reg =3D <0x2a>; + #sound-dai-cells =3D <0>; + reset-gpios =3D <&gpio1 15 GPIO_ACTIVE_HIGH>; + pdn-gpios =3D <&gpio1 15 GPIO_ACTIVE_HIGH>; + AVDD-supply =3D <&avdd_supply>; + DVDD-supply =3D <&dvdd_supply>; + HPVDD-supply =3D <&hpvdd_supply>; + PVDD_AB-supply =3D <&pvdd_ab_supply>; + PVDD_CD-supply =3D <&pvdd_cd_supply>; + }; + }; =20 ... --=20 2.43.0