From patchwork Tue Jan 3 10:31:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 38368 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4542665wrt; Tue, 3 Jan 2023 02:35:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXs3Ythb9Ez9vZjgPCBUz8hg/7Y90kXqUj2mnAwVVPKx8J9QknT0gB2BodKbPbVntlAmTC9J X-Received: by 2002:a05:6402:22f2:b0:48b:85e0:fbef with SMTP id dn18-20020a05640222f200b0048b85e0fbefmr11217352edb.18.1672742127028; Tue, 03 Jan 2023 02:35:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672742127; cv=none; d=google.com; s=arc-20160816; b=EKJpl//V62a93ku65ARugbo1B3fgsz+3zD9J6L4BatY4jHzCBg4VSGJNlVqma8m2Zs 8hsqJBc5bzYx/CbKvhw6kDNcEYJMSVLVCuSD1tuzV+ANtcxoQy8t8s2leO0+rto7/Nel aj+9oDQHlJa1OjCBq35F0EJVmbqf2iKd/UUFZ3+QyiQ+7T9M1qqWI62maMQXOc6BdUOU i0rtI+VXhjcUdFXu/Qes6q5DHUdRYWxT36f0Ua0JP2vVjDA0dA+xibG8cHn8cnXWQiYi TG1gfLaGyqFYjh9+ia0clZrlBh67FSZp9XegNB+ZOyCiU+WmRm6l1V2M/R2iN1rbEKwI oDeQ== 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=QlVNVNtUt/wRTus8GP7ODEqkrDjea6KSvqwUcPmAnXE=; b=fNiG9Y5+I8IPkvvjiuqSYHumuRrin+JLeUMcFNKIhqk1P7W0NPV7k+QeRLHoDb+R6z a+nPBpcyP7r857cwz4TNcVapX8EnYtBNvKNEyfhFnm+qhPmdDOt8gjxBXU7yqrlm47lq JnrMuI7ncoeYRoT0zWco6Z5hsILz6o/5jbMToivhlGCzejNO9c2ORIaLWxNG7hbj/Kxn WisTcYrT5zfg39NYyQx4ktHhCagC+kiVBu/yQUk/9Ny4iGwhE7YbvzcmYn4RiyTH2HQH dGnIwI6I4+emd9k4y4d/FZ7v3Fw4TIShtstQ3DnXUDXFz3VqotKTYfHFuC+mY57g39ci i6Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=S00EVI8C; 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 t6-20020aa7d706000000b00461bde34a12si24178860edq.627.2023.01.03.02.35.03; Tue, 03 Jan 2023 02:35:27 -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=S00EVI8C; 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 S237283AbjACKcJ (ORCPT + 99 others); Tue, 3 Jan 2023 05:32:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237128AbjACKbk (ORCPT ); Tue, 3 Jan 2023 05:31:40 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA5C3AE53; Tue, 3 Jan 2023 02:31:38 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6D8DFB80DE8; Tue, 3 Jan 2023 10:31:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15CA1C433F1; 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=hphMJ193zT6k9KcHC6HtQ6xYHAXgbuX0OJNoCvAJOmg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S00EVI8Cd2nscmHSpGY8cp58i+PfnI88Mdc9Caj0qBFv9W5Jxj2ar19yh7OfHGqR7 zCa+NSymzAsRb72IyplC5CMLlDtuKdLO5RVbMgmSBNHInKOB/9iNnNGVa7Suwogwz8 xtzfcLO5z9FPbBubhzQIKEi+4oEKhfAhsYgK3Oe0ur5vXQDztNLWW2IQQ8QLAtpUOF c+bixkpxGZlZV7rEDF1xNVHYzUIAhwLoCbp7m2e7vJD9Rh24VbNYXN4hSu2K2ZRWmt euC8IxLSqkjaCvtyjxkrCE99g5P8wp5DquxEbvGW434q6eOT4p9bJdjUj12MlES32C caqPJX1KGCqaQ== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1pCeaJ-00047U-U3; Tue, 03 Jan 2023 11:31:55 +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 4/6] arm64: dts: qcom: sc8280xp-x13s: move wcd938x codec node Date: Tue, 3 Jan 2023 11:31:39 +0100 Message-Id: <20230103103141.15807-5-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?1753997248630825220?= X-GMAIL-MSGID: =?utf-8?q?1753997248630825220?= The wcd938x codec is not a memory-mapped device and does not belong under the soc node. Move the node to the root node to avoid DT validation failures. While at it, clean up the node somewhat by adding newline separators, reordering properties and renaming it 'audio-codec'. Reviewed-by: Konrad Dybcio Signed-off-by: Johan Hovold --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 50 ++++++++++--------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index cc67a80758af..23c1ca44ec11 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -21,6 +21,32 @@ / { model = "Lenovo ThinkPad X13s"; compatible = "lenovo,thinkpad-x13s", "qcom,sc8280xp"; + wcd938x: audio-codec { + compatible = "qcom,wcd9380-codec"; + + pinctrl-names = "default"; + pinctrl-0 = <&wcd_default>; + + reset-gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; + + vdd-buck-supply = <&vreg_s10b>; + vdd-rxtx-supply = <&vreg_s10b>; + vdd-io-supply = <&vreg_s10b>; + vdd-mic-bias-supply = <&vreg_bob>; + + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <1800000>; + qcom,micbias3-microvolt = <1800000>; + qcom,micbias4-microvolt = <1800000>; + qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; + qcom,mbhc-headset-vthreshold-microvolt = <1700000>; + qcom,mbhc-headphone-vthreshold-microvolt = <50000>; + qcom,rx-device = <&wcd_rx>; + qcom,tx-device = <&wcd_tx>; + + #sound-dai-cells = <1>; + }; + backlight { compatible = "pwm-backlight"; pwms = <&pmc8280c_lpg 3 1000000>; @@ -632,30 +658,6 @@ &rxmacro { status = "okay"; }; -&soc { - wcd938x: codec { - compatible = "qcom,wcd9380-codec"; - pinctrl-names = "default"; - pinctrl-0 = <&wcd_default>; - reset-gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; - #sound-dai-cells = <1>; - - vdd-buck-supply = <&vreg_s10b>; - vdd-rxtx-supply = <&vreg_s10b>; - vdd-io-supply = <&vreg_s10b>; - vdd-mic-bias-supply = <&vreg_bob>; - qcom,micbias1-microvolt = <1800000>; - qcom,micbias2-microvolt = <1800000>; - qcom,micbias3-microvolt = <1800000>; - qcom,micbias4-microvolt = <1800000>; - qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; - qcom,mbhc-headset-vthreshold-microvolt = <1700000>; - qcom,mbhc-headphone-vthreshold-microvolt = <50000>; - qcom,rx-device = <&wcd_rx>; - qcom,tx-device = <&wcd_tx>; - }; -}; - &sound { compatible = "qcom,sc8280xp-sndcard"; model = "SC8280XP-LENOVO-X13S";