From patchwork Tue Jan 3 10:31:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 38362 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4541894wrt; Tue, 3 Jan 2023 02:33:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXvVhp9SiKFjWQT3Zcah90zn5qXtzoNpzsbjf4HHAvrSdNzL2oXBiva+kHI4cnLez3mpRnku X-Received: by 2002:aa7:da09:0:b0:480:95f5:1e36 with SMTP id r9-20020aa7da09000000b0048095f51e36mr34560991eds.23.1672741991702; Tue, 03 Jan 2023 02:33:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672741991; cv=none; d=google.com; s=arc-20160816; b=wb2IsACmOidxGBAEXigdxeXPF1uLoAD65VURM+2HVZP4B5D3uF4/i0n3hC387Y5AbU ZmisFUtg6qmzC4TV/8uYnp+ArbiJQH6EbfkNR/mKzrB/Hf9NwHll0oZc9K9J/AjhMkJX F5UVpXwZ6I0K0/TaUyTkmyXM/WqrfYj9CNowLjfi85KhYhF2rJCTd3MuFvGalIqWZPrY gLraKGcHE4SwuTkLV6dl6Lb4Kus7qu1ZH2L3LJh3WHbgZFxgUuWo6VGU4yoOJScbMbmY aq98kB0A9p0jORn4FHtRvgLoNSSmR7msPKh1lHiP3BPcmxwSgwHJ3g2VLkZmuVhOmomy b7rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=muNzEm6yuA2pUTZhiraqD8peSsaL8Yl+LOzBfIjJMhI=; b=pQ3C3ukc/B4vyTpIilTI9DrKiKXq4lkq0eYdLWocg8nh6pEIS9ScoooyiZNejuihU9 pPiR27sCbB2W96DI7aFqMt1+36hkU1aUaefJpSEl/Qjw5PCMmpb4jTYmHuMJtPdloCj7 R4VcbKYO5dY1FwsLJiOb2NIqQqejjTN1zLZDFi11B++yiyhSgsWGFkqkkuBRp0I1LDRc 4k60k9sE67oVlzdp6nYF3hb+DXDMjamcllBMMBG2k3Gx/V6arj9tx4DPUADLp+q0X9n5 90x59/Kie00TGvfmKXABjFgW4ussWbCUPSzkCseoBCljwQOjZsyTXeBHg5UBRqNjE0XR 5QQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZDeWAoC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd14-20020a056402388e00b00485dd65ad2fsi18659084edb.356.2023.01.03.02.32.48; Tue, 03 Jan 2023 02:33:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZDeWAoC0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237182AbjACKbp (ORCPT + 99 others); Tue, 3 Jan 2023 05:31:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236963AbjACKbi (ORCPT ); Tue, 3 Jan 2023 05:31:38 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D7C1FACB; Tue, 3 Jan 2023 02:31:37 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 396BF61225; Tue, 3 Jan 2023 10:31:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74636C4331F; Tue, 3 Jan 2023 10:31:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672741896; bh=+laXW6G2LvHTXlCq2XMEY0hkFcDigz1L1GYdv5f4Et4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZDeWAoC0yftgz7ezcUoJPA10wWZTk5TDDSpmCmanngG56uyeqAJKohoZUAGNLCPHC 9EkYN97U6zXPSnn6rL2HHydZgGRitz3OA3+0ZA6pSGYv0a/ngpfXwq/rnzcOK9tNWj AKatkxOPtmiciF46si9LnGAQjgz5dvzMY9fDjL0gq9mXfbcmPgheV1u6Q4z54dOejz SoTQuMkIkoLa4V4lcKMAmaqfC9ktVqojtLPI6FbEPrbGuDTmQlv5CckXRvM4ROMLRo RgtjMX2b0uXZfgHdnzaFN4aeSf+ceN0O8LS7xpBtUsVbKkGCJW6rVZcHw0rA5QfYgF QJZqGNGqadJqQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pCeaK-00047a-3t; Tue, 03 Jan 2023 11:31:56 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v2 6/6] arm64: dts: qcom: sm8250: clean up wcd938x codec node Date: Tue, 3 Jan 2023 11:31:41 +0100 Message-Id: <20230103103141.15807-7-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230103103141.15807-1-johan+linaro@kernel.org> References: <20230103103141.15807-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753997106557755071?= X-GMAIL-MSGID: =?utf-8?q?1753997106557755071?= Clean up the wcd938x codec node somewhat by adding newline separators, reordering properties and renaming it 'audio-codec'. Signed-off-by: Johan Hovold Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts index b741b7da1afc..0991b34a8e49 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts @@ -23,18 +23,16 @@ aliases { serial0 = &uart12; }; - chosen { - stdout-path = "serial0:115200n8"; - }; - - wcd938x: codec { + wcd938x: audio-codec { compatible = "qcom,wcd9380-codec"; - #sound-dai-cells = <1>; + reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; + vdd-buck-supply = <&vreg_s4a_1p8>; vdd-rxtx-supply = <&vreg_s4a_1p8>; vdd-io-supply = <&vreg_s4a_1p8>; vdd-mic-bias-supply = <&vreg_bob>; + qcom,micbias1-microvolt = <1800000>; qcom,micbias2-microvolt = <1800000>; qcom,micbias3-microvolt = <1800000>; @@ -44,6 +42,12 @@ wcd938x: codec { qcom,mbhc-headphone-vthreshold-microvolt = <50000>; qcom,rx-device = <&wcd_rx>; qcom,tx-device = <&wcd_tx>; + + #sound-dai-cells = <1>; + }; + + chosen { + stdout-path = "serial0:115200n8"; }; thermal-zones {