From patchwork Fri Dec 30 13:50:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13084393 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 587C2C10F1B for ; Fri, 30 Dec 2022 13:51:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235111AbiL3Nuz (ORCPT ); Fri, 30 Dec 2022 08:50:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbiL3Nuv (ORCPT ); Fri, 30 Dec 2022 08:50:51 -0500 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63F75EE0E for ; Fri, 30 Dec 2022 05:50:49 -0800 (PST) Received: by mail-lf1-x12c.google.com with SMTP id f34so31772063lfv.10 for ; Fri, 30 Dec 2022 05:50:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ub/VznuYkK88f9PSV7dmnTyJuP0obsTGr+Fx4fP9G1c=; b=kuL8IW9OudDKPBDB5lZMhTLIIx57sKuoJA1Q/zbah+th2HmKXylN6unVeJg7/zMKFj ETyBYsEYFax16hSdZ/7zSQlWIzQ+A23w9woNkBYHvxjIzLofNH4NpvYVAAyTypWC0iUz p+vvDc/CAPlY0bv94tgMNMMIt/JJvMde4dyrStojOVgTVAtKtBt6p19aPU4Of9JFU9vI 6BiqRXkrciqQkIbOCEh3luXVArNQF/h80CIo+Zp8Z2BNNaH8WMe1+BPGqG8In+Ipk1aW LxwzmfSSdfDIwIsPHwHIs0+ddwGNgLFy93XeYa+9jYQ31SSgilUr6rau2ijIXlm/5Pcq GNEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=ub/VznuYkK88f9PSV7dmnTyJuP0obsTGr+Fx4fP9G1c=; b=ZM3EIEeNCnS61vBOdU+OoJ7doGueH9in44YH5cv2hWMwy0ECRRJmSZH1yRsJKHx8bo NFLemygwnX4hgJbU/KUxlFHwoZ/cIVAUgmQTPHFOoY6womZ4LOPd+W0zkiZ3OpxTPZYC 7LlVMfxWh/QPijp+fBwZhsTznXIW1oZlLu4BcPPC7HePlxSxefvPdqQnWnmI6dz8QX/B 7JEbc7a2Wji0Br+6DDrlJ1K8vf+E2uiJQMFktvKRllMV1CdFDK5IYtqwc0nsdxP21UGo SLc2gKw0IwvIEmYVSPi+09eU4Pn2bzipV9oUZfCDIrToTuv1KB1MOIUI39xd7SVufBXX FSxg== X-Gm-Message-State: AFqh2kqM3q5DBT9iyjxXjWgZhyw+KnfOv2pc/jJKGx/Wj9A3e7V331sC ZRibYoOd8kT01VklnV98rGayuro47M750SQg X-Google-Smtp-Source: AMrXdXsuilJ2rkf4fBr2NwXOV0bN74v9ThRoP27qdpcAkuIucfHZZt5ExQZvpzwKc+2s0UoF2PNilQ== X-Received: by 2002:a05:6512:3d9e:b0:4c0:2b07:e6e7 with SMTP id k30-20020a0565123d9e00b004c02b07e6e7mr11762738lfv.58.1672408247566; Fri, 30 Dec 2022 05:50:47 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id e16-20020ac24e10000000b004b4ea0f4e25sm3447970lfr.301.2022.12.30.05.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 05:50:47 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] arm64: dts: qcom: sm8250: Pad addresses to 8 hex digits Date: Fri, 30 Dec 2022 14:50:42 +0100 Message-Id: <20221230135044.287874-1-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Some addresses were 7-hex-digits long. Fix that. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index a3aa85a32bf8..3b3ea380c6e6 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2284,7 +2284,7 @@ rxmacro: rxmacro@3200000 { pinctrl-names = "default"; pinctrl-0 = <&rx_swr_active>; compatible = "qcom,sm8250-lpass-rx-macro"; - reg = <0 0x3200000 0 0x1000>; + reg = <0 0x03200000 0 0x1000>; status = "disabled"; clocks = <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, @@ -2302,7 +2302,7 @@ rxmacro: rxmacro@3200000 { }; swr1: soundwire-controller@3210000 { - reg = <0 0x3210000 0 0x2000>; + reg = <0 0x03210000 0 0x2000>; compatible = "qcom,soundwire-v1.5.1"; status = "disabled"; interrupts = ; @@ -2331,7 +2331,7 @@ txmacro: txmacro@3220000 { pinctrl-names = "default"; pinctrl-0 = <&tx_swr_active>; compatible = "qcom,sm8250-lpass-tx-macro"; - reg = <0 0x3220000 0 0x1000>; + reg = <0 0x03220000 0 0x1000>; status = "disabled"; clocks = <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, @@ -2352,7 +2352,7 @@ txmacro: txmacro@3220000 { /* tx macro */ swr2: soundwire-controller@3230000 { - reg = <0 0x3230000 0 0x2000>; + reg = <0 0x03230000 0 0x2000>; compatible = "qcom,soundwire-v1.5.1"; interrupts-extended = <&intc GIC_SPI 297 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "core"; From patchwork Fri Dec 30 13:50:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13084394 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44A93C4708E for ; Fri, 30 Dec 2022 13:51:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230192AbiL3Nu7 (ORCPT ); Fri, 30 Dec 2022 08:50:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234991AbiL3Nux (ORCPT ); Fri, 30 Dec 2022 08:50:53 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AB6810040 for ; Fri, 30 Dec 2022 05:50:51 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id g13so31790977lfv.7 for ; Fri, 30 Dec 2022 05:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=O2/2jOnIdgfpiRmuRufEzJYHjtQ3vKnVr2N275LNLNE=; b=aFVspPxaSscubi+efbD4srElPxlFOvXfo9Q31ohxiKqaGpnkmQ/SCPE6uf6BXFdKvf 9LZ7X+34lZcssBcRQYy05HJI+r3xoTKWy3mht13TZDQk3EYKZtixOeEuQGIi9lYBsfWz BnIWxqD9mIJCYubRyUPSi4/+GlcG+qSQqkRow3n/2+nQmYqIQ9rifN5mjf33yIXQnyYc bvbta1L7A5jc8DREFhGhXf3yIbHWMHgpVzAxEIMIVi8ej34FmE3jak3PvQQGTDjh/lbP GLw8JA+6lm0vlu0kAIoGRwaxJ0eNmHGB4jyWx48Nf7TGBfwmO3U4s+CY8JVLD8LGv3+B a8yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O2/2jOnIdgfpiRmuRufEzJYHjtQ3vKnVr2N275LNLNE=; b=JEeJ/uSIvLkwwb9Ak3JOUtxb0bVTgHzYt6KDpfbGKYGJr8Ap9d+IaSEG59Oy1Z/RSW I1mA5uGwbT/NYQ4aCBQ6hdANuInmdkilCcqKuKEensFb5Fxuwu1TXRJmz5VhnsXcJuzT qRfIjtKrfIg1txvZslXi/o18ZBHJCXQu6i4rw6+6STqB4Ir7idG4UQehfisrRvjIOfLK oL4m603w5dQYug1PmQ8WNiQACuRrF+yFbXn96kjJZUpJxthWF88LOEaWvD96zUvmDcZa jpYAo1JWu7Pm/GjxA+uFAhFIo8nngYXhtV3bj2SFFOiulT7L0oHDH4T5hLBsu6GTn72U bhUQ== X-Gm-Message-State: AFqh2krgBMk6lhySvDNvnQI1Be+UbZ+3fLtwJgs9+1W6UU8GCy1JEBPk TSF+qUE0bCQ2ZS+bFrrUBKCV8LdszpUgBo8S X-Google-Smtp-Source: AMrXdXsM0ntelvMMPfJ6olR92/r6D2fnYvZnCfy/NuqCQhaSJ03fPDkbD8kayIZkEB50CgDbRLNN+g== X-Received: by 2002:a05:6512:2619:b0:4cb:c48:9d44 with SMTP id bt25-20020a056512261900b004cb0c489d44mr4753673lfb.28.1672408249057; Fri, 30 Dec 2022 05:50:49 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id e16-20020ac24e10000000b004b4ea0f4e25sm3447970lfr.301.2022.12.30.05.50.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 05:50:48 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: qcom: sm8250: Touch up audio hw nodes Date: Fri, 30 Dec 2022 14:50:43 +0100 Message-Id: <20221230135044.287874-2-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221230135044.287874-1-konrad.dybcio@linaro.org> References: <20221230135044.287874-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org - Expand long clock-names into vertical lists - Shuffle properties around: - Make sure compatible goes first and status goes last - Make property order consistent between similar nodes - Fix up indentation - Remove stray newlines - Remove a redundant comment about swr2 being associated with TX macro (it's obvious by looking at the label property 10 lines below) - Change unnecessary interrupts-extended to interrupts - Disable SWR0 and WSA macro by default and enable them on SM8250 MTP and RB5, which were the only users - Remove stray #address/size-cells from txmacro, as it's not even supposed to have children Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 6 ++ arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 6 ++ arch/arm64/boot/dts/qcom/sm8250.dtsi | 82 +++++++++++++----------- 3 files changed, 58 insertions(+), 36 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index 8c64cb060e21..6802d36fb20c 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1007,6 +1007,8 @@ can@0 { }; &swr0 { + status = "okay"; + left_spkr: speaker@0,3 { compatible = "sdw10217211000"; reg = <0 3>; @@ -1322,6 +1324,10 @@ &venus { status = "okay"; }; +&wsamacro { + status = "okay"; +}; + /* PINCTRL - additions to nodes defined in sm8250.dtsi */ &qup_spi0_cs_gpio { drive-strength = <6>; diff --git a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts index 3ed8c84e25b8..436e280ed3fc 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts @@ -757,6 +757,8 @@ codec { }; &swr0 { + status = "okay"; + left_spkr: speaker@0,3 { compatible = "sdw10217211000"; reg = <0 3>; @@ -890,3 +892,7 @@ &usb_2_qmpphy { &venus { status = "okay"; }; + +&wsamacro { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 3b3ea380c6e6..dffce681d417 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2223,21 +2223,26 @@ wsamacro: codec@3240000 { <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, <&aoncc LPASS_CDC_VA_MCLK>, <&vamacro>; + clock-names = "mclk", + "npl", + "macro", + "dcodec", + "va", + "fsgen"; - clock-names = "mclk", "npl", "macro", "dcodec", "va", "fsgen"; + pinctrl-names = "default"; + pinctrl-0 = <&wsa_swr_active>; #clock-cells = <0>; clock-frequency = <9600000>; clock-output-names = "mclk"; #sound-dai-cells = <1>; - - pinctrl-names = "default"; - pinctrl-0 = <&wsa_swr_active>; + status = "disabled"; }; swr0: soundwire-controller@3250000 { - reg = <0 0x03250000 0 0x2000>; compatible = "qcom,soundwire-v1.5.1"; + reg = <0 0x03250000 0 0x2000>; interrupts = ; clocks = <&wsamacro>; clock-names = "iface"; @@ -2253,6 +2258,7 @@ swr0: soundwire-controller@3250000 { #sound-dai-cells = <1>; #address-cells = <2>; #size-cells = <0>; + status = "disabled"; }; audiocc: clock-controller@3300000 { @@ -2260,8 +2266,8 @@ audiocc: clock-controller@3300000 { reg = <0 0x03300000 0 0x30000>; #clock-cells = <1>; clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; clock-names = "core", "audio", "bus"; }; @@ -2269,9 +2275,8 @@ vamacro: codec@3370000 { compatible = "qcom,sm8250-lpass-va-macro"; reg = <0 0x03370000 0 0x1000>; clocks = <&aoncc LPASS_CDC_VA_MCLK>, - <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; - + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; clock-names = "mclk", "macro", "dcodec"; #clock-cells = <0>; @@ -2281,34 +2286,37 @@ vamacro: codec@3370000 { }; rxmacro: rxmacro@3200000 { - pinctrl-names = "default"; - pinctrl-0 = <&rx_swr_active>; compatible = "qcom,sm8250-lpass-rx-macro"; reg = <0 0x03200000 0 0x1000>; - status = "disabled"; - clocks = <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&vamacro>; + <&q6afecc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&vamacro>; + clock-names = "mclk", + "npl", + "macro", + "dcodec", + "fsgen"; - clock-names = "mclk", "npl", "macro", "dcodec", "fsgen"; + pinctrl-names = "default"; + pinctrl-0 = <&rx_swr_active>; #clock-cells = <0>; clock-frequency = <9600000>; clock-output-names = "mclk"; #sound-dai-cells = <1>; + status = "disabled"; }; swr1: soundwire-controller@3210000 { - reg = <0 0x03210000 0 0x2000>; compatible = "qcom,soundwire-v1.5.1"; - status = "disabled"; + reg = <0 0x03210000 0 0x2000>; interrupts = ; clocks = <&rxmacro>; clock-names = "iface"; label = "RX"; + qcom,din-ports = <0>; qcom,dout-ports = <5>; @@ -2325,45 +2333,45 @@ swr1: soundwire-controller@3210000 { #sound-dai-cells = <1>; #address-cells = <2>; #size-cells = <0>; + status = "disabled"; }; txmacro: txmacro@3220000 { - pinctrl-names = "default"; - pinctrl-0 = <&tx_swr_active>; compatible = "qcom,sm8250-lpass-tx-macro"; reg = <0 0x03220000 0 0x1000>; - status = "disabled"; - clocks = <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, <&q6afecc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, <&vamacro>; + clock-names = "mclk", + "npl", + "macro", + "dcodec", + "fsgen"; - clock-names = "mclk", "npl", "macro", "dcodec", "fsgen"; + pinctrl-names = "default"; + pinctrl-0 = <&tx_swr_active>; #clock-cells = <0>; clock-frequency = <9600000>; clock-output-names = "mclk"; - #address-cells = <2>; - #size-cells = <2>; #sound-dai-cells = <1>; + status = "disabled"; }; - /* tx macro */ swr2: soundwire-controller@3230000 { - reg = <0 0x03230000 0 0x2000>; compatible = "qcom,soundwire-v1.5.1"; - interrupts-extended = <&intc GIC_SPI 297 IRQ_TYPE_LEVEL_HIGH>; + reg = <0 0x03230000 0 0x2000>; + interrupts = ; interrupt-names = "core"; - status = "disabled"; - clocks = <&txmacro>; clock-names = "iface"; label = "TX"; qcom,din-ports = <5>; qcom,dout-ports = <0>; + qcom,ports-sinterval-low = /bits/ 8 <0xff 0x01 0x01 0x03 0x03>; qcom,ports-offset1 = /bits/ 8 <0xff 0x01 0x00 0x02 0x00>; qcom,ports-offset2 = /bits/ 8 <0xff 0x00 0x00 0x00 0x00>; @@ -2373,9 +2381,11 @@ swr2: soundwire-controller@3230000 { qcom,ports-word-length = /bits/ 8 <0xff 0xff 0xff 0xff 0xff>; qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff 0xff 0xff>; qcom,ports-lane-control = /bits/ 8 <0xff 0x00 0x01 0x00 0x01>; + #sound-dai-cells = <1>; #address-cells = <2>; #size-cells = <0>; + status = "disabled"; }; aoncc: clock-controller@3380000 { @@ -2383,8 +2393,8 @@ aoncc: clock-controller@3380000 { reg = <0 0x03380000 0 0x40000>; #clock-cells = <1>; clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_CLK_ID_TX_CORE_NPL_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; clock-names = "core", "audio", "bus"; }; @@ -2397,7 +2407,7 @@ lpass_tlmm: pinctrl@33c0000{ gpio-ranges = <&lpass_tlmm 0 0 14>; clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; clock-names = "core", "audio"; wsa_swr_active: wsa-swr-active-state { From patchwork Fri Dec 30 13:50:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13084397 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F310C3DA7D for ; Fri, 30 Dec 2022 13:51:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235155AbiL3NvQ (ORCPT ); Fri, 30 Dec 2022 08:51:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235101AbiL3Nuy (ORCPT ); Fri, 30 Dec 2022 08:50:54 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C84E1147D for ; Fri, 30 Dec 2022 05:50:52 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id z26so31805625lfu.8 for ; Fri, 30 Dec 2022 05:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nI8e/WlhysOYJ8g3aZB6ye/hx/UC/4lV7s/lAfytAMA=; b=DoJBDYzaxIgvqgtCMXGZjRrqxt1XPGWyQEyqPp2hvqpp+jwCENNL0UOHZyRiFxTmjs mH7VRDUeMe4Ld3V9XCl1JZOXnQeDU3jYBQhhfcO3mnWGlfrIfhLOcSXUburaWj4RE4Lj YpW4a+CWW+8DNXkoHWaaSGT71pDdzUhq0iZwT79R2rBGfJrRZnf+YrlEhtyuM9TO1Eqn Oc35Qpz5H/9ILAcDTAnVXUYlgZQxmJky9T9sdXgSMbtXt1r/KU46UVpx5X4szHJg3Z/c BH8goMedx9OunzykLfr21mhw/0K203SnEShrdcXQqETk5TtKDc8HcfgY0lnbveQGuotS z/wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nI8e/WlhysOYJ8g3aZB6ye/hx/UC/4lV7s/lAfytAMA=; b=fwLV/I9+r4j+/5GDjOQQRvMErBN+kElV+x94GXUIHxHtcaU2GQGJmsv2Nv7pyhrQGC urwxQjt/7TqO43MobjlYxa5CsGV+F1hA4MTwWAAtJSBGUvxZYTseqM0UxBk4EBy0Y74h voqhlLt6oFLGP65dLNUqeb8YLDcVTYXGD+DdOKkNAacnQAe9Kh9x/sZUioq1qm9WBBMV 6R8kJy1FwasgfalfjOfHzbVlEK7X2ppGbCw9nIAaODDQWDRyLOu9WB/JzMRnGfRD+pod 7xmkt6IXLxbPvFnoH6JpRRj1abXRNy3vncGdIrh8fo8iejtnJ6TRPeQIjuS+B0d90iLY anEA== X-Gm-Message-State: AFqh2krvw6Feoo7ECvj6tAd3bq6MSeu05fXSmdMLpYVq9VHmOS/+g1Vu RzRbyxDzVHTzMkMtPzZushGipqHRIbdHKVB3 X-Google-Smtp-Source: AMrXdXu3mXETrCUP3x0pgC0Ic/4KHE60wiE62LKDmBWJULVEhYTmhFAoQCDcu0Lzr+j93aV9LAJT+Q== X-Received: by 2002:a05:6512:25ac:b0:4b5:8053:5bcc with SMTP id bf44-20020a05651225ac00b004b580535bccmr9463538lfb.47.1672408250400; Fri, 30 Dec 2022 05:50:50 -0800 (PST) Received: from localhost.localdomain (abyl184.neoplus.adsl.tpnet.pl. [83.9.31.184]) by smtp.gmail.com with ESMTPSA id e16-20020ac24e10000000b004b4ea0f4e25sm3447970lfr.301.2022.12.30.05.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Dec 2022 05:50:50 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org, krzysztof.kozlowski@linaro.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: qcom: sm8250: Sort audio hw nodes Date: Fri, 30 Dec 2022 14:50:44 +0100 Message-Id: <20221230135044.287874-3-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221230135044.287874-1-konrad.dybcio@linaro.org> References: <20221230135044.287874-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Half of the audio hardware nodes were not sorted properly. Fix that. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 142 +++++++++++++-------------- 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index dffce681d417..0b6a6a809503 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2214,77 +2214,6 @@ tcsr_mutex: hwlock@1f40000 { #hwlock-cells = <1>; }; - wsamacro: codec@3240000 { - compatible = "qcom,sm8250-lpass-wsa-macro"; - reg = <0 0x03240000 0 0x1000>; - clocks = <&audiocc LPASS_CDC_WSA_MCLK>, - <&audiocc LPASS_CDC_WSA_NPL>, - <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&aoncc LPASS_CDC_VA_MCLK>, - <&vamacro>; - clock-names = "mclk", - "npl", - "macro", - "dcodec", - "va", - "fsgen"; - - pinctrl-names = "default"; - pinctrl-0 = <&wsa_swr_active>; - - #clock-cells = <0>; - clock-frequency = <9600000>; - clock-output-names = "mclk"; - #sound-dai-cells = <1>; - status = "disabled"; - }; - - swr0: soundwire-controller@3250000 { - compatible = "qcom,soundwire-v1.5.1"; - reg = <0 0x03250000 0 0x2000>; - interrupts = ; - clocks = <&wsamacro>; - clock-names = "iface"; - - qcom,din-ports = <2>; - qcom,dout-ports = <6>; - - qcom,ports-sinterval-low = /bits/ 8 <0x07 0x1f 0x3f 0x07 0x1f 0x3f 0x0f 0x0f>; - qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0c 0x06 0x12 0x0d 0x07 0x0a>; - qcom,ports-offset2 = /bits/ 8 <0xff 0x00 0x1f 0xff 0x00 0x1f 0x00 0x00>; - qcom,ports-block-pack-mode = /bits/ 8 <0x0 0x0 0x1 0x0 0x0 0x1 0x0 0x0>; - - #sound-dai-cells = <1>; - #address-cells = <2>; - #size-cells = <0>; - status = "disabled"; - }; - - audiocc: clock-controller@3300000 { - compatible = "qcom,sm8250-lpass-audiocc"; - reg = <0 0x03300000 0 0x30000>; - #clock-cells = <1>; - clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; - clock-names = "core", "audio", "bus"; - }; - - vamacro: codec@3370000 { - compatible = "qcom,sm8250-lpass-va-macro"; - reg = <0 0x03370000 0 0x1000>; - clocks = <&aoncc LPASS_CDC_VA_MCLK>, - <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, - <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; - clock-names = "mclk", "macro", "dcodec"; - - #clock-cells = <0>; - clock-frequency = <9600000>; - clock-output-names = "fsgen"; - #sound-dai-cells = <1>; - }; - rxmacro: rxmacro@3200000 { compatible = "qcom,sm8250-lpass-rx-macro"; reg = <0 0x03200000 0 0x1000>; @@ -2388,6 +2317,77 @@ swr2: soundwire-controller@3230000 { status = "disabled"; }; + wsamacro: codec@3240000 { + compatible = "qcom,sm8250-lpass-wsa-macro"; + reg = <0 0x03240000 0 0x1000>; + clocks = <&audiocc LPASS_CDC_WSA_MCLK>, + <&audiocc LPASS_CDC_WSA_NPL>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&aoncc LPASS_CDC_VA_MCLK>, + <&vamacro>; + clock-names = "mclk", + "npl", + "macro", + "dcodec", + "va", + "fsgen"; + + pinctrl-names = "default"; + pinctrl-0 = <&wsa_swr_active>; + + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + status = "disabled"; + }; + + swr0: soundwire-controller@3250000 { + compatible = "qcom,soundwire-v1.5.1"; + reg = <0 0x03250000 0 0x2000>; + interrupts = ; + clocks = <&wsamacro>; + clock-names = "iface"; + + qcom,din-ports = <2>; + qcom,dout-ports = <6>; + + qcom,ports-sinterval-low = /bits/ 8 <0x07 0x1f 0x3f 0x07 0x1f 0x3f 0x0f 0x0f>; + qcom,ports-offset1 = /bits/ 8 <0x01 0x02 0x0c 0x06 0x12 0x0d 0x07 0x0a>; + qcom,ports-offset2 = /bits/ 8 <0xff 0x00 0x1f 0xff 0x00 0x1f 0x00 0x00>; + qcom,ports-block-pack-mode = /bits/ 8 <0x0 0x0 0x1 0x0 0x0 0x1 0x0 0x0>; + + #sound-dai-cells = <1>; + #address-cells = <2>; + #size-cells = <0>; + status = "disabled"; + }; + + audiocc: clock-controller@3300000 { + compatible = "qcom,sm8250-lpass-audiocc"; + reg = <0 0x03300000 0 0x30000>; + #clock-cells = <1>; + clocks = <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "core", "audio", "bus"; + }; + + vamacro: codec@3370000 { + compatible = "qcom,sm8250-lpass-va-macro"; + reg = <0 0x03370000 0 0x1000>; + clocks = <&aoncc LPASS_CDC_VA_MCLK>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>; + clock-names = "mclk", "macro", "dcodec"; + + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "fsgen"; + #sound-dai-cells = <1>; + }; + aoncc: clock-controller@3380000 { compatible = "qcom,sm8250-lpass-aoncc"; reg = <0 0x03380000 0 0x40000>;