From patchwork Wed Mar 8 18:33:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 660544 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 DB046C74A4B for ; Wed, 8 Mar 2023 18:33:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbjCHSd3 (ORCPT ); Wed, 8 Mar 2023 13:33:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbjCHSd2 (ORCPT ); Wed, 8 Mar 2023 13:33:28 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA2074DE3B for ; Wed, 8 Mar 2023 10:33:21 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id a25so69702480edb.0 for ; Wed, 08 Mar 2023 10:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678300400; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vgI7M9f7uxE1fqJoZol9DRzCA9OZOelkziPNUY4577g=; b=o43QCu0Dt/IJevXs8aYajqqhK6Hsl6V3oWB7BA3V8q8dYLmKAOKFSBXOzPHQepkKEy HdhEdBdx3GsLNNqU18hRNz+KnFwX9i5eVVyK1w6P5R/tQFR1SLtckCqcwKRAfhja/5HK TEvL8StOG/vYaY1wmaVKYkpPCr51eGiwCSVeyf2sZRfiQOJJ+Ia/BKbsNDU38zawal4N oyEM3hluHsdExFfYzZqFLq7y/h6TQmuqhVa8GFBBY+1Ruivm25F3shz7bSBHW/P57S8I E3rwb6c78E1DzOoVCzW8rKOioiGaGtIWo7a53ZrXB/dY2qLzc6TPjV9bw6hLk1U+UkSB I3OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678300400; 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=vgI7M9f7uxE1fqJoZol9DRzCA9OZOelkziPNUY4577g=; b=XLlxF14kGJxRp5wL4PUIJ0flda0Y7bgJMzsdPp/IjTqhivPZIpcRaLowVxqlwQ9vpm U39dbmh0aM6ePAp9Ba80J6qqrkk8J9s1RKkAt7up3v6t/x0Ta3KXC55v1R6AGfZ8zGk+ 00Mw81w2hXQqvmQTw5cy6RoSkz2ogVG8WjPJrYNjWFuAVjkEz7SyESVfzdAxvOnf5b7m bsdxl3EzfV5DkZ0vYjywh3pDzdWZJ3b8Inc0XHSRtThcr0g9PMQZzgt90d1BgmV3lZtj +6QjuIleD3Nc5L9EB/yMsvinFSoIZYxiEhGe9SloZ8dmYAd4UtHG6+6Lu06HO3nrKpG2 Fx0w== X-Gm-Message-State: AO0yUKUAUl8cSykMBdprv4IfHWWfMcN7kTTb0e18QSxf0l6baUFeQjFj w3X5+0miY4wZEkIGYiU4JbGt8A== X-Google-Smtp-Source: AK7set/rB5yXgW8HmTS5K6mLEqa9Ql+zlBQcQWZZcMvV/S0Jl4XLcv9SWE3esrRAQweTgg+1MqHHRw== X-Received: by 2002:a17:906:b51:b0:8b1:3ba8:3f4d with SMTP id v17-20020a1709060b5100b008b13ba83f4dmr16772181ejg.70.1678300400295; Wed, 08 Mar 2023 10:33:20 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:ff33:9b14:bdd2:a3da]) by smtp.gmail.com with ESMTPSA id r25-20020a1709067fd900b008e125ee7be4sm7852709ejs.176.2023.03.08.10.33.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 10:33:19 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/2] arm64: dts: qcom: sm8450-hdk: use precise WCD9385 compatible Date: Wed, 8 Mar 2023 19:33:16 +0100 Message-Id: <20230308183317.559253-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The HDK8450 uses WCD9385 audio codec, so use precise compatible, even though WCD9380 and WCD9385 are both compatible. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index e04de4bb7fae..9cd1d1bd86cb 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -25,7 +25,7 @@ aliases { }; wcd938x: audio-codec { - compatible = "qcom,wcd9380-codec"; + compatible = "qcom,wcd9385-codec"; pinctrl-names = "default"; pinctrl-0 = <&wcd_default>; From patchwork Wed Mar 8 18:33:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 661847 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 37131C6FD1C for ; Wed, 8 Mar 2023 18:33:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbjCHSd1 (ORCPT ); Wed, 8 Mar 2023 13:33:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjCHSd0 (ORCPT ); Wed, 8 Mar 2023 13:33:26 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B966A4ECCC for ; Wed, 8 Mar 2023 10:33:22 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id a25so69702628edb.0 for ; Wed, 08 Mar 2023 10:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678300401; 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=3yBJw33XTi1NX0b/Xl1aRwxWtOkpJwd6CVMp3NR69ng=; b=ZoPOH6gY3hXX5Au1ZhMX6YjmuYIMSfU8pvJO31iIa7AHjEz1NKfieUSbM7my/rNpAe C+Y9E0YhD3sBz7GBZ2kpVKDIi32Honhoag33i2zJInkwGBuwYBHes7NmaSe6O1YArt0q GXYCO6TnLX83nhtte/Ktr7NbA24RxVWfci2gRhUrU5iPh6L/oRPlRarod8zPeAGlucMa unTg/oTFZ4Wtq2antq1qekrL34Uw/JrRYUB4wW1M2WP4/z5SLxd8PL4zuJ3nLB0ZUKkE jHOLM1c7LVXcXdtK6NlTy7RDE7sYBJGMT/uFCOAlPL7io1nY29z6REwVWiYR0t7+n3aQ 3ZQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678300401; 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=3yBJw33XTi1NX0b/Xl1aRwxWtOkpJwd6CVMp3NR69ng=; b=d9BZ5v9Kuqhl2IirRBwVG3OY9AT+D+z2/n0co+WuPYyc39Rw5TYW9nrCt1zidUqhtG 13XTT4Y/s4KRg97oP9edvoyKuOkixSjRiJRMmHrYlGpWB/+zWo/OD/Cc/6ThwfFKjXba p1CjSHTDk2PnMdBsp6YZs+2Sh1EIwAhuQzNlEZg83PyXwSKUN+7QNcSMt5SQYrc2pNrr fhviY/im/UhwqCWPOw95qk9tAkZJBVQvmAfDixuI21qYl919NzG08Xn8GPFkiU8mRrKZ gYPxkEbe3NbAOLAwkLlZrkUQv2cGBHdeTqC+oZGN1sj9OtIq+9tpbl7LyT5iu58XM0Ei H7kw== X-Gm-Message-State: AO0yUKWCStU6nJdq4D5ixX2NExnI0fVWQ9b+hFQvNiw0vjO52UWalqid iC89IC1806Q+aYyNgblBRdgZ6w== X-Google-Smtp-Source: AK7set/OmTKUifRWezVugTSts48SafOihe6bfq/R1iYKjb3vebzctk9hLKAjJ6384zPGbSMQuRG1ng== X-Received: by 2002:aa7:c589:0:b0:4af:6e08:319 with SMTP id g9-20020aa7c589000000b004af6e080319mr23411028edq.15.1678300401256; Wed, 08 Mar 2023 10:33:21 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:ff33:9b14:bdd2:a3da]) by smtp.gmail.com with ESMTPSA id r25-20020a1709067fd900b008e125ee7be4sm7852709ejs.176.2023.03.08.10.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 10:33:20 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/2] arm64: dts: qcom: sm8450-hdk: align WCD9385 reset pin with downstream config Date: Wed, 8 Mar 2023 19:33:17 +0100 Message-Id: <20230308183317.559253-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230308183317.559253-1-krzysztof.kozlowski@linaro.org> References: <20230308183317.559253-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Downstream DTS uses 16 mA drive strength for the WCD9385 audio codec RESET_N reset pin. It also pulls the pin down in shutdown mode, thus it is more like a shutdown pin, not a reset. Use the same settings here for HDK8450 and keep the WCD9385 by default in powered off (so pin as low). Align the name of pin configuration node with other pins in the DTS. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index 9cd1d1bd86cb..4020e54e16f5 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -767,9 +767,11 @@ spkr_2_sd_n_active: spkr-2-sd-n-active-state { output-low; }; - wcd_default: wcd-default-state { + wcd_default: wcd-reset-n-active-state { pins = "gpio43"; function = "gpio"; + drive-strength = <16>; bias-disable; + output-low; }; };