Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: dt-bindings: Correct indentation and style in DTS example

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 <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20250107125901.227995-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
fffe003f a83678be

+195 -178
+11 -9
Documentation/devicetree/bindings/sound/adi,ssm2518.yaml
··· 36 36 37 37 examples: 38 38 - | 39 - i2c { 40 - #address-cells = <1>; 41 - #size-cells = <0>; 42 - codec@34 { 43 - compatible = "adi,ssm2518"; 44 - reg = <0x34>; 45 - gpios = <&gpio 5 0>; 46 - }; 47 - }; 39 + #include <dt-bindings/gpio/gpio.h> 40 + 41 + i2c { 42 + #address-cells = <1>; 43 + #size-cells = <0>; 44 + codec@34 { 45 + compatible = "adi,ssm2518"; 46 + reg = <0x34>; 47 + gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; 48 + }; 49 + };
+5 -5
Documentation/devicetree/bindings/sound/everest,es71x4.yaml
··· 53 53 54 54 examples: 55 55 - | 56 - codec { 57 - compatible = "everest,es7134"; 58 - #sound-dai-cells = <0>; 59 - VDD-supply = <&vdd_supply>; 60 - }; 56 + codec { 57 + compatible = "everest,es7134"; 58 + #sound-dai-cells = <0>; 59 + VDD-supply = <&vdd_supply>; 60 + }; 61 61 62 62 ...
+10 -9
Documentation/devicetree/bindings/sound/everest,es7241.yaml
··· 54 54 55 55 examples: 56 56 - | 57 - #include <dt-bindings/gpio/gpio.h> 58 - codec { 59 - compatible = "everest,es7241"; 60 - #sound-dai-cells = <0>; 61 - reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 62 - VDDP-supply = <&vddp_supply>; 63 - VDDA-supply = <&vdda_supply>; 64 - VDDD-supply = <&vddd_supply>; 65 - }; 57 + #include <dt-bindings/gpio/gpio.h> 58 + 59 + codec { 60 + compatible = "everest,es7241"; 61 + #sound-dai-cells = <0>; 62 + reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 63 + VDDP-supply = <&vddp_supply>; 64 + VDDA-supply = <&vdda_supply>; 65 + VDDD-supply = <&vddd_supply>; 66 + }; 66 67 67 68 ...
+16 -16
Documentation/devicetree/bindings/sound/fsl,easrc.yaml
··· 87 87 #include <dt-bindings/clock/imx8mn-clock.h> 88 88 89 89 easrc: easrc@300c0000 { 90 - compatible = "fsl,imx8mn-easrc"; 91 - reg = <0x300c0000 0x10000>; 92 - interrupts = <0x0 122 0x4>; 93 - clocks = <&clk IMX8MN_CLK_ASRC_ROOT>; 94 - clock-names = "mem"; 95 - dmas = <&sdma2 16 23 0> , <&sdma2 17 23 0>, 96 - <&sdma2 18 23 0> , <&sdma2 19 23 0>, 97 - <&sdma2 20 23 0> , <&sdma2 21 23 0>, 98 - <&sdma2 22 23 0> , <&sdma2 23 23 0>; 99 - dma-names = "ctx0_rx", "ctx0_tx", 100 - "ctx1_rx", "ctx1_tx", 101 - "ctx2_rx", "ctx2_tx", 102 - "ctx3_rx", "ctx3_tx"; 103 - firmware-name = "imx/easrc/easrc-imx8mn.bin"; 104 - fsl,asrc-rate = <8000>; 105 - fsl,asrc-format = <2>; 90 + compatible = "fsl,imx8mn-easrc"; 91 + reg = <0x300c0000 0x10000>; 92 + interrupts = <0x0 122 0x4>; 93 + clocks = <&clk IMX8MN_CLK_ASRC_ROOT>; 94 + clock-names = "mem"; 95 + dmas = <&sdma2 16 23 0> , <&sdma2 17 23 0>, 96 + <&sdma2 18 23 0> , <&sdma2 19 23 0>, 97 + <&sdma2 20 23 0> , <&sdma2 21 23 0>, 98 + <&sdma2 22 23 0> , <&sdma2 23 23 0>; 99 + dma-names = "ctx0_rx", "ctx0_tx", 100 + "ctx1_rx", "ctx1_tx", 101 + "ctx2_rx", "ctx2_tx", 102 + "ctx3_rx", "ctx3_tx"; 103 + firmware-name = "imx/easrc/easrc-imx8mn.bin"; 104 + fsl,asrc-rate = <8000>; 105 + fsl,asrc-format = <2>; 106 106 };
+17 -17
Documentation/devicetree/bindings/sound/fsl,xcvr.yaml
··· 140 140 #include <dt-bindings/reset/imx8mp-reset.h> 141 141 142 142 xcvr: xcvr@30cc0000 { 143 - compatible = "fsl,imx8mp-xcvr"; 144 - reg = <0x30cc0000 0x800>, 145 - <0x30cc0800 0x400>, 146 - <0x30cc0c00 0x080>, 147 - <0x30cc0e00 0x080>; 148 - reg-names = "ram", "regs", "rxfifo", "txfifo"; 149 - interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, 150 - <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>, 151 - <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>; 152 - clocks = <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_IPG>, 153 - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_PHY>, 154 - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SPBA2_ROOT>, 155 - <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT>; 156 - clock-names = "ipg", "phy", "spba", "pll_ipg"; 157 - dmas = <&sdma2 30 2 0>, <&sdma2 31 2 0>; 158 - dma-names = "rx", "tx"; 159 - resets = <&audiomix_reset 0>; 143 + compatible = "fsl,imx8mp-xcvr"; 144 + reg = <0x30cc0000 0x800>, 145 + <0x30cc0800 0x400>, 146 + <0x30cc0c00 0x080>, 147 + <0x30cc0e00 0x080>; 148 + reg-names = "ram", "regs", "rxfifo", "txfifo"; 149 + interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, 150 + <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>, 151 + <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>; 152 + clocks = <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_IPG>, 153 + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_EARC_PHY>, 154 + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_SPBA2_ROOT>, 155 + <&audiomix_clk IMX8MP_CLK_AUDIOMIX_AUDPLL_ROOT>; 156 + clock-names = "ipg", "phy", "spba", "pll_ipg"; 157 + dmas = <&sdma2 30 2 0>, <&sdma2 31 2 0>; 158 + dma-names = "rx", "tx"; 159 + resets = <&audiomix_reset 0>; 160 160 };
+16 -16
Documentation/devicetree/bindings/sound/intel,keembay-i2s.yaml
··· 72 72 73 73 examples: 74 74 - | 75 - #include <dt-bindings/interrupt-controller/arm-gic.h> 76 - #include <dt-bindings/interrupt-controller/irq.h> 77 - #define KEEM_BAY_PSS_AUX_I2S3 78 - #define KEEM_BAY_PSS_I2S3 79 - i2s3: i2s@20140000 { 80 - compatible = "intel,keembay-i2s"; 81 - #sound-dai-cells = <0>; 82 - reg = <0x20140000 0x200>, /* I2S registers */ 83 - <0x202a00a4 0x4>; /* I2S gen configuration */ 84 - reg-names = "i2s-regs", "i2s_gen_cfg"; 85 - interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; 86 - clock-names = "osc", "apb_clk"; 87 - clocks = <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_PSS_I2S3>; 88 - dmas = <&axi_dma0 29>, <&axi_dma0 33>; 89 - dma-names = "tx", "rx"; 90 - }; 75 + #include <dt-bindings/interrupt-controller/arm-gic.h> 76 + #include <dt-bindings/interrupt-controller/irq.h> 77 + #define KEEM_BAY_PSS_AUX_I2S3 78 + #define KEEM_BAY_PSS_I2S3 79 + i2s@20140000 { 80 + compatible = "intel,keembay-i2s"; 81 + #sound-dai-cells = <0>; 82 + reg = <0x20140000 0x200>, /* I2S registers */ 83 + <0x202a00a4 0x4>; /* I2S gen configuration */ 84 + reg-names = "i2s-regs", "i2s_gen_cfg"; 85 + interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>; 86 + clock-names = "osc", "apb_clk"; 87 + clocks = <&scmi_clk KEEM_BAY_PSS_AUX_I2S3>, <&scmi_clk KEEM_BAY_PSS_I2S3>; 88 + dmas = <&axi_dma0 29>, <&axi_dma0 33>; 89 + dma-names = "tx", "rx"; 90 + };
+14 -12
Documentation/devicetree/bindings/sound/neofidelity,ntp8918.yaml
··· 55 55 56 56 examples: 57 57 - | 58 - #include <dt-bindings/gpio/gpio.h> 59 - i2c { 60 - #address-cells = <1>; 61 - #size-cells = <0>; 62 - audio-codec@2a { 63 - compatible = "neofidelity,ntp8918"; 64 - #sound-dai-cells = <0>; 65 - reg = <0x2a>; 66 - clocks = <&clkc 150>, <&clkc 151>, <&clkc 152>; 67 - clock-names = "wck", "scl", "bck"; 68 - reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>; 58 + #include <dt-bindings/gpio/gpio.h> 59 + 60 + i2c { 61 + #address-cells = <1>; 62 + #size-cells = <0>; 63 + 64 + audio-codec@2a { 65 + compatible = "neofidelity,ntp8918"; 66 + #sound-dai-cells = <0>; 67 + reg = <0x2a>; 68 + clocks = <&clkc 150>, <&clkc 151>, <&clkc 152>; 69 + clock-names = "wck", "scl", "bck"; 70 + reset-gpios = <&gpio 5 GPIO_ACTIVE_LOW>; 71 + }; 69 72 }; 70 - };
+17 -15
Documentation/devicetree/bindings/sound/ti,pcm6240.yaml
··· 159 159 160 160 examples: 161 161 - | 162 - #include <dt-bindings/gpio/gpio.h> 163 - i2c { 164 - /* example for two devices with interrupt support */ 165 - #address-cells = <1>; 166 - #size-cells = <0>; 167 - pcm6240: audio-codec@48 { 168 - compatible = "ti,pcm6240"; 169 - reg = <0x48>, /* primary-device */ 170 - <0x4b>; /* secondary-device */ 171 - #sound-dai-cells = <0>; 172 - reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 173 - interrupt-parent = <&gpio1>; 174 - interrupts = <15>; 175 - }; 176 - }; 162 + #include <dt-bindings/gpio/gpio.h> 163 + 164 + i2c { 165 + /* example for two devices with interrupt support */ 166 + #address-cells = <1>; 167 + #size-cells = <0>; 168 + 169 + audio-codec@48 { 170 + compatible = "ti,pcm6240"; 171 + reg = <0x48>, /* primary-device */ 172 + <0x4b>; /* secondary-device */ 173 + #sound-dai-cells = <0>; 174 + reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 175 + interrupt-parent = <&gpio1>; 176 + interrupts = <15>; 177 + }; 178 + }; 177 179 ...
+16 -14
Documentation/devicetree/bindings/sound/ti,tas2562.yaml
··· 65 65 66 66 examples: 67 67 - | 68 - #include <dt-bindings/gpio/gpio.h> 69 - i2c { 70 - #address-cells = <1>; 71 - #size-cells = <0>; 72 - codec: codec@4c { 73 - compatible = "ti,tas2562"; 74 - reg = <0x4c>; 75 - #sound-dai-cells = <0>; 76 - interrupt-parent = <&gpio1>; 77 - interrupts = <14>; 78 - shutdown-gpios = <&gpio1 15 0>; 79 - ti,imon-slot-no = <0>; 80 - }; 81 - }; 68 + #include <dt-bindings/gpio/gpio.h> 69 + 70 + i2c { 71 + #address-cells = <1>; 72 + #size-cells = <0>; 73 + 74 + codec@4c { 75 + compatible = "ti,tas2562"; 76 + reg = <0x4c>; 77 + #sound-dai-cells = <0>; 78 + interrupt-parent = <&gpio1>; 79 + interrupts = <14>; 80 + shutdown-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 81 + ti,imon-slot-no = <0>; 82 + }; 83 + };
+18 -16
Documentation/devicetree/bindings/sound/ti,tas2770.yaml
··· 69 69 70 70 examples: 71 71 - | 72 - #include <dt-bindings/gpio/gpio.h> 73 - i2c { 74 - #address-cells = <1>; 75 - #size-cells = <0>; 76 - codec: codec@41 { 77 - compatible = "ti,tas2770"; 78 - reg = <0x41>; 79 - #sound-dai-cells = <0>; 80 - interrupt-parent = <&gpio1>; 81 - interrupts = <14>; 82 - reset-gpio = <&gpio1 15 0>; 83 - shutdown-gpios = <&gpio1 14 0>; 84 - ti,imon-slot-no = <0>; 85 - ti,vmon-slot-no = <2>; 86 - }; 87 - }; 72 + #include <dt-bindings/gpio/gpio.h> 73 + 74 + i2c { 75 + #address-cells = <1>; 76 + #size-cells = <0>; 77 + 78 + codec@41 { 79 + compatible = "ti,tas2770"; 80 + reg = <0x41>; 81 + #sound-dai-cells = <0>; 82 + interrupt-parent = <&gpio1>; 83 + interrupts = <14>; 84 + reset-gpio = <&gpio1 15 GPIO_ACTIVE_HIGH>; 85 + shutdown-gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; 86 + ti,imon-slot-no = <0>; 87 + ti,vmon-slot-no = <2>; 88 + }; 89 + };
+19 -17
Documentation/devicetree/bindings/sound/ti,tas2781.yaml
··· 101 101 102 102 examples: 103 103 - | 104 - #include <dt-bindings/gpio/gpio.h> 105 - i2c { 106 - /* example with quad tas2781s, such as tablet or pad device */ 107 - #address-cells = <1>; 108 - #size-cells = <0>; 109 - quad_tas2781: tas2781@38 { 110 - compatible = "ti,tas2781"; 111 - reg = <0x38>, /* Audio slot 0 */ 112 - <0x3a>, /* Audio slot 1 */ 113 - <0x39>, /* Audio slot 2 */ 114 - <0x3b>; /* Audio slot 3 */ 104 + #include <dt-bindings/gpio/gpio.h> 115 105 116 - #sound-dai-cells = <0>; 117 - reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 118 - interrupt-parent = <&gpio1>; 119 - interrupts = <15>; 120 - }; 121 - }; 106 + i2c { 107 + /* example with quad tas2781s, such as tablet or pad device */ 108 + #address-cells = <1>; 109 + #size-cells = <0>; 110 + 111 + audio-codec@38 { 112 + compatible = "ti,tas2781"; 113 + reg = <0x38>, /* Audio slot 0 */ 114 + <0x3a>, /* Audio slot 1 */ 115 + <0x39>, /* Audio slot 2 */ 116 + <0x3b>; /* Audio slot 3 */ 117 + 118 + #sound-dai-cells = <0>; 119 + reset-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>; 120 + interrupt-parent = <&gpio1>; 121 + interrupts = <15>; 122 + }; 123 + }; 122 124 ...
+18 -16
Documentation/devicetree/bindings/sound/ti,tas27xx.yaml
··· 62 62 63 63 examples: 64 64 - | 65 - #include <dt-bindings/gpio/gpio.h> 66 - i2c { 67 - #address-cells = <1>; 68 - #size-cells = <0>; 69 - codec: codec@38 { 70 - compatible = "ti,tas2764"; 71 - reg = <0x38>; 72 - #sound-dai-cells = <0>; 73 - interrupt-parent = <&gpio1>; 74 - interrupts = <14>; 75 - reset-gpios = <&gpio1 15 0>; 76 - shutdown-gpios = <&gpio1 15 0>; 77 - ti,imon-slot-no = <0>; 78 - ti,vmon-slot-no = <2>; 79 - }; 80 - }; 65 + #include <dt-bindings/gpio/gpio.h> 66 + 67 + i2c { 68 + #address-cells = <1>; 69 + #size-cells = <0>; 70 + 71 + codec@38 { 72 + compatible = "ti,tas2764"; 73 + reg = <0x38>; 74 + #sound-dai-cells = <0>; 75 + interrupt-parent = <&gpio1>; 76 + interrupts = <14>; 77 + reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 78 + shutdown-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 79 + ti,imon-slot-no = <0>; 80 + ti,vmon-slot-no = <2>; 81 + }; 82 + }; 81 83 82 84 ...
+18 -16
Documentation/devicetree/bindings/sound/ti,tas57xx.yaml
··· 112 112 113 113 examples: 114 114 - | 115 - i2c { 116 - #address-cells = <1>; 117 - #size-cells = <0>; 115 + #include <dt-bindings/gpio/gpio.h> 118 116 119 - codec@2a { 120 - compatible = "ti,tas5717"; 121 - reg = <0x2a>; 122 - #sound-dai-cells = <0>; 123 - reset-gpios = <&gpio1 15 0>; 124 - pdn-gpios = <&gpio1 15 0>; 125 - AVDD-supply = <&avdd_supply>; 126 - DVDD-supply = <&dvdd_supply>; 127 - HPVDD-supply = <&hpvdd_supply>; 128 - PVDD_AB-supply = <&pvdd_ab_supply>; 129 - PVDD_CD-supply = <&pvdd_cd_supply>; 130 - }; 131 - }; 117 + i2c { 118 + #address-cells = <1>; 119 + #size-cells = <0>; 120 + 121 + codec@2a { 122 + compatible = "ti,tas5717"; 123 + reg = <0x2a>; 124 + #sound-dai-cells = <0>; 125 + reset-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 126 + pdn-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; 127 + AVDD-supply = <&avdd_supply>; 128 + DVDD-supply = <&dvdd_supply>; 129 + HPVDD-supply = <&hpvdd_supply>; 130 + PVDD_AB-supply = <&pvdd_ab_supply>; 131 + PVDD_CD-supply = <&pvdd_cd_supply>; 132 + }; 133 + }; 132 134 133 135 ...