From patchwork Thu Oct 27 07:46:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13021730 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 A57BCC38A2D for ; Thu, 27 Oct 2022 07:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234587AbiJ0HrA (ORCPT ); Thu, 27 Oct 2022 03:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233099AbiJ0Hq7 (ORCPT ); Thu, 27 Oct 2022 03:46:59 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78ECC168E71; Thu, 27 Oct 2022 00:46:56 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id f9so552802pgj.2; Thu, 27 Oct 2022 00:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7eZPMxhWXLAdP7JOTovMyPi4TE0q0a0Jvomoy/MT8tw=; b=Vsy6ZN8gN8QvBnQr03269m+9k5zizOLHe3hBf79CANsb7LyA1/zH+HWj36gdXoFvKc SwuDRXtPoL9x9kVL66wnByKZD7iHRkU8jwhYQCNQTVuvqx9M4+JGove6EnxQNXu0oLwO fmK4M9lsIlIUnid+HyTKRSs9twfGen+mJp2tlnAgELiuLZjL4aCP1pIkg3EoAg+94TPB 8SHEHdF9cLSjCKo0oah8Jlua5t6SuZS9Wscgnd41JoO98l/WYemMKVf1kYw+tY8Gn7cG r5EZ93OaCsFVhSEZ7yd/HN8d/k71cLbR7K1kEtehFPiwh8Rks2syPRj4UYTs9PJ6lgJC 5o1w== 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=7eZPMxhWXLAdP7JOTovMyPi4TE0q0a0Jvomoy/MT8tw=; b=bjgqyJAkC8m9K4HMr3w748JBrD38gWVqRM8+xsUXKtU1haDro+C0fTHAd90X+1DPwA h4Vtnzqpe7ydklwWkrOw3Ov3hLoyjY6dCxUSx+Dp5BMX+1PpIg5kMTIZUjOskiCwHtuA Scj/s2hHtW7fl8o4wUsWzrnWoeYOLd/kXNOUy2+ZabI3SFkzhmtIXSgzmUA/BOKwRIh2 OEQ9y5Id4U44PLs2XGCCFiz2aEAmmhkcWQLu/IiLBOpfoWQuLvmpBGNVezF/nH4cnvEH 9znhYp2gyfArsKDjQsGqyCLoUWnLb4VfDY8qz6KAg6UrdZw/Jjpv8bz5MtGb01baMsCx qIog== X-Gm-Message-State: ACrzQf09VuBZ11fH9rOKfD2bL4x6ok2I9ft/2iiZXPxV+DgXpEj/kuRT Sf7QlWZcIV0TdykBrDXauVE= X-Google-Smtp-Source: AMsMyM5PGiH/y2F3FFolvyUUUvcKWHQq2NBuOq+yFYxmeaH75p/1LDgLZHZQ/ZvK7ktzxwNEi++vVw== X-Received: by 2002:a63:194b:0:b0:457:7295:8de0 with SMTP id 11-20020a63194b000000b0045772958de0mr41849875pgz.612.1666856815733; Thu, 27 Oct 2022 00:46:55 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:9d:2:99d6:ae15:f9aa:1819]) by smtp.gmail.com with ESMTPSA id i4-20020a056a00004400b0056ba02feda1sm611386pfk.94.2022.10.27.00.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 00:46:55 -0700 (PDT) From: Dmitry Torokhov To: Andy Gross , Bjorn Andersson , Mark Brown Cc: Srinivas Kandagatla , Banajit Goswami , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] arm64: dts: qcom: msm8996: fix sound card reset line polarity Date: Thu, 27 Oct 2022 00:46:47 -0700 Message-Id: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org When resetting the block, the reset line is being driven low and then high, which means that the line in DTS should be annotated as "active low". It will become important when wcd9335 driver will be converted to gpiod API that respects declared line polarities. Fixes: f3eb39a55a1f ("arm64: dts: db820c: Add sound card support") Signed-off-by: Dmitry Torokhov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 5ff8de3e3de7..d5271718d03c 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -3354,7 +3354,7 @@ wcd9335: codec@1,0 { interrupt-names = "intr1", "intr2"; interrupt-controller; #interrupt-cells = <1>; - reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; slim-ifc-dev = <&tasha_ifd>; From patchwork Thu Oct 27 07:46:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13021729 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 47B20C67871 for ; Thu, 27 Oct 2022 07:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233974AbiJ0HrA (ORCPT ); Thu, 27 Oct 2022 03:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiJ0Hq7 (ORCPT ); Thu, 27 Oct 2022 03:46:59 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2208C168E68; Thu, 27 Oct 2022 00:46:58 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id 130so708459pfu.8; Thu, 27 Oct 2022 00:46:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=o6Hvc44I/ESMlqa43mGR1Qp3cCc/2vV67IQonLZ5Kj4=; b=XMZJXb2aMniO3wi3vct3lmCMu1sgd0TZS9mPPFUv3uGyO5BbE5Vv2eA13j3ZzfIrXn 6jbK7dsBJ4YJSk7BJUNfc6P1Ca0Ln/HlhrzBd6OEEgtM2rxGwUE+6iaFgK9tLf5K0Icc bDZLqc8OIuhiZE8jkI9pXQfqg4Au9OrWeQIYnvYhKbO23XlImrZmoxRZsyz+1Tp7CwFd 8FUBnvxFarrfsb8wMGegH6xyUoxYQn/fKDIpKXeG6yGgf6jaUFGo1kwtrmdPeQmTMKuy TlorfTpS+AJLKmlIiaqfcWxE7x7Omp+AjPh/rPEnQIGoxjQX1y0oZCTlItdFrknEaNPs NwqA== 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=o6Hvc44I/ESMlqa43mGR1Qp3cCc/2vV67IQonLZ5Kj4=; b=beQcFAlkpYRBqMlo54EzrrrFW9IK0WiXNRLOrDRzv7MXf4sBM/PhQiXh7FD5FFkB1b AATaEG6r0w9y5n4gWhuA3EDlwRXpl4ZTd09fgrJDzk2Oj/kBpEx6A0pi/vXVTOAxivdm MeBfe1Z8eiqiSJW/vvmAek4Xw6yiaq7TNcn19NPigoH4/MKXaB3uOcK3mxaNZjr6T9Yl ThCUUZheb6911go1kkQs9G0YvA+BZbuPok7xwQbGyWdvwtw2nz2uKVM4EpUZLDgJ0ZWH y9hwxA4sceLjLuKRftQwNgOU+4WTZidvEAml1ZQC4Fxg6IpK6Ajzo/e08Cv7rVEMJrMW /PpQ== X-Gm-Message-State: ACrzQf15cy1GI6c+z+1A3NFavMEXqa2yzxRvWLmPt6g2S2JPjXQH7CWn uE/DzXnqvWc1M6W03m3Zk2o= X-Google-Smtp-Source: AMsMyM4SAdo0yIHCUNKVJcMdSQZ6/10dChczVTXApEI92NIcT0SnRLaHek+Q1nUaGqS5ytY5EY39Vw== X-Received: by 2002:a05:6a00:4504:b0:56b:3ed4:1fac with SMTP id cw4-20020a056a00450400b0056b3ed41facmr29774692pfb.73.1666856817535; Thu, 27 Oct 2022 00:46:57 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:9d:2:99d6:ae15:f9aa:1819]) by smtp.gmail.com with ESMTPSA id i4-20020a056a00004400b0056ba02feda1sm611386pfk.94.2022.10.27.00.46.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 00:46:56 -0700 (PDT) From: Dmitry Torokhov To: Andy Gross , Bjorn Andersson , Mark Brown Cc: Srinivas Kandagatla , Banajit Goswami , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] ASoC: dt-bindings: wcd9335: fix reset line polarity in example Date: Thu, 27 Oct 2022 00:46:48 -0700 Message-Id: <20221027074652.1044235-2-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog In-Reply-To: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> References: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org When resetting the block, the reset line is being driven low and then high, which means that the line in DTS should be annotated as "active low". Fixes: 1877c9fda1b7 ("ASoC: dt-bindings: add dt bindings for wcd9335 audio codec") Signed-off-by: Dmitry Torokhov Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/sound/qcom,wcd9335.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt b/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt index 5d6ea66a863f..1f75feec3dec 100644 --- a/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt +++ b/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt @@ -109,7 +109,7 @@ audio-codec@1{ reg = <1 0>; interrupts = <&msmgpio 54 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "intr2" - reset-gpios = <&msmgpio 64 0>; + reset-gpios = <&msmgpio 64 GPIO_ACTIVE_LOW>; slim-ifc-dev = <&wc9335_ifd>; clock-names = "mclk", "native"; clocks = <&rpmcc RPM_SMD_DIV_CLK1>, From patchwork Thu Oct 27 07:46:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13021731 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 7A1D1C38A2D for ; Thu, 27 Oct 2022 07:47:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234723AbiJ0HrD (ORCPT ); Thu, 27 Oct 2022 03:47:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiJ0HrC (ORCPT ); Thu, 27 Oct 2022 03:47:02 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3FA1168E68; Thu, 27 Oct 2022 00:46:59 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id v4-20020a17090a088400b00212cb0ed97eso695584pjc.5; Thu, 27 Oct 2022 00:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=RVj2OYA35z1rSXJ+3f5hZK8nYVXD1srUvtRewkk0Cmw=; b=O9ooqwgFAsZHesA0Czqn7eG2fuaEknuY94kVun3oSV5B0ADMbzw0OZVQdqfPyWfPgH R7/XM0/IcADAr4k7MUcQmn63724j8VS52D0jvcDsxnBe2wve8ot/DZk1AaFYOlSVYz1w aW7nKN5BRMvd2bY0rAZFbEkKYYw7HpSKxn7SJ55DZgn8QOLBsTcshn2CF7HmsV4DPaaf UQlQU3S6sUsYEEd+RaSGr5Ds06HchKKFzxz8PQ4b1pQDyiJPrsh8ZopQfF6SNTqO6sRc AjkF3dzizFR0p+q/qLrj1T/Lpg8Wuo6OAzntRHeOTdwWPf9hV6QUM5SQgNltd3Ys/A+j rz5g== 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=RVj2OYA35z1rSXJ+3f5hZK8nYVXD1srUvtRewkk0Cmw=; b=brMLOOuuHu2uJMI912EeaqSWHCojrmLOVWBfw+p5whamertl6ax2FxME8G5WmUVlQg vI2a/NuuqRkNKc/LVud3dumrO5FA+LS1hZGTCk4dtOWCN5b7Mqb6Jv5LxB8EoDWXhxtM WuDiW7gsvguRen8luO1W9qQg+ixevOGd1qwua4kdfvczdGcDyYhr1JGqxRqPbO7TyntS 099VjarhqGl3XsAh9CCKrobdQzkRSclda1kbmn/NooJMbP35I7bfmNWYmXLSvSwt+3CY bpEJSTfApFGn06gxu9XcCeGExAWjl2uEGoV+DqksZyr4xvdLddupTQQfRboCOW4VBCjk /wPw== X-Gm-Message-State: ACrzQf2ovGx0MtCOuw9YPNy5aoiQ72tuwhHR8sfLFsQ0jzFfbwmSSaXj wb3mrdvsEmlQf48plX4rSeY= X-Google-Smtp-Source: AMsMyM7L1Nx0LeMvp30aX4Ygwo/qJy5jODl4ET/X+HffNWtZaL6taN+7ORXZGHHKhRULYGL+YtO2TA== X-Received: by 2002:a17:90b:1c0d:b0:213:1a9c:5b1 with SMTP id oc13-20020a17090b1c0d00b002131a9c05b1mr8494089pjb.188.1666856819163; Thu, 27 Oct 2022 00:46:59 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:9d:2:99d6:ae15:f9aa:1819]) by smtp.gmail.com with ESMTPSA id i4-20020a056a00004400b0056ba02feda1sm611386pfk.94.2022.10.27.00.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 00:46:58 -0700 (PDT) From: Dmitry Torokhov To: Andy Gross , Bjorn Andersson , Mark Brown Cc: Srinivas Kandagatla , Banajit Goswami , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/6] arm64: dts: qcom: sm8250-mtp: fix reset line polarity Date: Thu, 27 Oct 2022 00:46:49 -0700 Message-Id: <20221027074652.1044235-3-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog In-Reply-To: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> References: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the DTS accordingly. Fixes: 36c9d012f193 ("arm64: dts: qcom: use GPIO flags for tlmm") Fixes: 5a263cf629a8 ("arm64: dts: qcom: sm8250-mtp: Add wcd9380 audio codec node") Signed-off-by: Dmitry Torokhov --- arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts index 9db6136321b4..391806c62ccc 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8250-mtp.dts @@ -635,7 +635,7 @@ &soc { wcd938x: codec { compatible = "qcom,wcd9380-codec"; #sound-dai-cells = <1>; - reset-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>; + 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>; From patchwork Thu Oct 27 07:46:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13021732 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 C42EAFA373D for ; Thu, 27 Oct 2022 07:47:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234814AbiJ0HrE (ORCPT ); Thu, 27 Oct 2022 03:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234712AbiJ0HrC (ORCPT ); Thu, 27 Oct 2022 03:47:02 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4B86169109; Thu, 27 Oct 2022 00:47:01 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id i3so695625pfc.11; Thu, 27 Oct 2022 00:47:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=ZNeVhpUWigJ0TSEw9v1gskADVF9vSoyCLj/DbDWPyvw=; b=aLf1WN+OTqiapPTDJDt06711S12QC7GnpNR/POKcQV+vCSpXvP/xt2qSjKz/b1L4i6 2ZbElVSDtU2DrJRj1VbvayP3Y2Tsw39vNsoXudiJx44ul4iis90tV3AAHaX889+x7xkm 9XSVtmJxsqtLOrbZMolwm7kQYmtQAdJmQhmUNFMUkO13a35VhiMc2XyCkYuHNxVn/4EP sWNfx2vHJZqt4a7uPobPQVrlIDIJp6lpAEb9RHTHnj1JClbKkc1gzTjCcfxvzPYbTlfa HlY/R8LP4evMxZk0pMUmhhS3L0JKNwMRXlMWgltMNYxLCauCJJYyq49+qWgzZvraywKZ 86Mw== 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=ZNeVhpUWigJ0TSEw9v1gskADVF9vSoyCLj/DbDWPyvw=; b=x9oJccrHC1r/TZgWX8fX6bcdyUuNIuQ1ty4VvAoiTXVqimJ3/rEvZ/NUcFuLRUfB0/ 0WcvuERY8RJrIXRdXGBG9D33ovOdouf1gGK2gI0KrM7j46FysMRLFbhTqTtNb4r+qVtq JomppbyfMZjXg+uldztjrxIeIaUD3WXzT1VY5nN6umwIth9JhMdRhiDq9Qtkq1yGc95R nkD2IawzQK1zzeGjBiQTD+8hXVzbYhn8aD4bT++5bwmFOLEL2D39r5cquL8Wx+uIskmR ixw8B4ZzLfT9Adfc9rqqbqqwTMM2nOWWsRX1FhPRQMC1atbso0dIuhEnxB3ZIOtfx2GJ yICA== X-Gm-Message-State: ACrzQf2To9KdICkkBFvHP94ZiPubJE5dJvUkPdrTAuAVeOa8dS8jfUEp 3BLDfWdHVUk5cFUBZesZmsQ= X-Google-Smtp-Source: AMsMyM5COSKcA1pb6K1bZX1nY6ZH+4sijV88DOEzK6lbU+36HEmAcwE4T7AC0viUrAh68Ejc9bh+lw== X-Received: by 2002:a63:5a26:0:b0:463:7ca2:653b with SMTP id o38-20020a635a26000000b004637ca2653bmr41647808pgb.352.1666856820864; Thu, 27 Oct 2022 00:47:00 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:9d:2:99d6:ae15:f9aa:1819]) by smtp.gmail.com with ESMTPSA id i4-20020a056a00004400b0056ba02feda1sm611386pfk.94.2022.10.27.00.46.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 00:47:00 -0700 (PDT) From: Dmitry Torokhov To: Andy Gross , Bjorn Andersson , Mark Brown Cc: Srinivas Kandagatla , Banajit Goswami , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 3.0/3.1 Date: Thu, 27 Oct 2022 00:46:50 -0700 Message-Id: <20221027074652.1044235-4-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog In-Reply-To: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> References: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the DTS accordingly. Fixes: 0a3a56a93fd9 ("arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 3.0/3.1") Signed-off-by: Dmitry Torokhov --- arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi index a42b5878a75f..df49564ae6dc 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi @@ -37,7 +37,7 @@ wcd9385: audio-codec-1 { pinctrl-0 = <&wcd_reset_n>, <&us_euro_hs_sel>; pinctrl-1 = <&wcd_reset_n_sleep>, <&us_euro_hs_sel>; - reset-gpios = <&tlmm 83 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>; us-euro-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>; qcom,rx-device = <&wcd_rx>; From patchwork Thu Oct 27 07:46:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13021733 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 7CFCFC38A2D for ; Thu, 27 Oct 2022 07:47:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234839AbiJ0HrK (ORCPT ); Thu, 27 Oct 2022 03:47:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234811AbiJ0HrE (ORCPT ); Thu, 27 Oct 2022 03:47:04 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56B61169123; Thu, 27 Oct 2022 00:47:03 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id l2so589449pld.13; Thu, 27 Oct 2022 00:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=msL4Fm7iWpHIBylFj9WDZgCoBlELM6gjoyFeS0oql9o=; b=Hmn99xvSBH8PpkAxglpPN9eQHnxGxvWuQerqHQg82N4aBYWSf5e1PPDImExNWt0ZMT 1fDol/hX3LmyFXIZaLj//RAncjZm8caw6zK1ZHY6hps2rwI6KKpdor6h3HIIhob4LJT1 /kxlY5lsS66l0ESbL060PkEXdh7wHM1uxSMzNcnWc/Coo66SZbu2wiEI7H85LpIIzE+O jBx7G39tztheYGWuFOGVYpoZvG0OKDkvGEk53prfPq4XMenPhYTypfeC6U/x3GSAh2/5 PR4K9IqO6PUeHNtwNbCMdwWBEGaKmOe64SBAw7dBb4GVbY2LMVIWA2GfVI9E8YNA6bkz j/zg== 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=msL4Fm7iWpHIBylFj9WDZgCoBlELM6gjoyFeS0oql9o=; b=ID/fZl87wgbVi9oFzydAKgxXzpPBHuZEo4rV4W5vaY2ix5dh+D3bZAzLKKTl8NHDAf rWm531df/22tnUzvUtI9Em88QajbHevwPOXeAHlokD0PcdVOdQCkSu0nzFwazuhVzRNx HJOustvXNM7LRp02TQPyXEJzHm7At95EaNTAu1FyVOJIuw31MwqxtZ+zXfBXOPO31mIv 11t4KuW5EolNtNb7WP3c5gLmWqzmDKjoFYKfJL5sAx8ynqDEBs8H56Ne+0kv7mDfRRzo MXTqOFbYeim1Vy2DOJ+mMjAx59b8HO3BSWdS/9l0uVr3IgNazOpkEwIXOL8tfGPZoAEm AXUQ== X-Gm-Message-State: ACrzQf1sNE2lw3sNma9DqIo0eaV7UlMDFgI0V+kbBFxwRf8Ctz0UBnCD 54vxTPu2hoIi+uYWnc3OE5k= X-Google-Smtp-Source: AMsMyM4VOx+ddVCfKjCCzX/ZBUF4azoIJuntmCQUSr8paHoWdpQYPMwjcRg+aGAGomHCzM3JALquiw== X-Received: by 2002:a17:902:a70e:b0:186:7fdd:888b with SMTP id w14-20020a170902a70e00b001867fdd888bmr30392545plq.47.1666856822687; Thu, 27 Oct 2022 00:47:02 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:9d:2:99d6:ae15:f9aa:1819]) by smtp.gmail.com with ESMTPSA id i4-20020a056a00004400b0056ba02feda1sm611386pfk.94.2022.10.27.00.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 00:47:02 -0700 (PDT) From: Dmitry Torokhov To: Andy Gross , Bjorn Andersson , Mark Brown Cc: Srinivas Kandagatla , Banajit Goswami , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 1.0/2.0 Date: Thu, 27 Oct 2022 00:46:51 -0700 Message-Id: <20221027074652.1044235-5-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog In-Reply-To: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> References: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the DTS accordingly. Fixes: f8b4eb64f200 ("arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 1.0/2.0 and IDP boards") Signed-off-by: Dmitry Torokhov --- arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi index 4884647a8a95..1ac7c091e03f 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -34,7 +34,7 @@ wcd9385: audio-codec-1 { pinctrl-0 = <&wcd_reset_n>; pinctrl-1 = <&wcd_reset_n_sleep>; - reset-gpios = <&tlmm 83 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>; qcom,rx-device = <&wcd_rx>; qcom,tx-device = <&wcd_tx>; From patchwork Thu Oct 27 07:46:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 13021734 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 CC860C67871 for ; Thu, 27 Oct 2022 07:47:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234871AbiJ0HrS (ORCPT ); Thu, 27 Oct 2022 03:47:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229743AbiJ0HrK (ORCPT ); Thu, 27 Oct 2022 03:47:10 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 188E3169100; Thu, 27 Oct 2022 00:47:05 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id h14so765514pjv.4; Thu, 27 Oct 2022 00:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=ALxYcoQL7dP6mgXsQO6Lg/e/4QIgrgKqxl3ALb+fP3Y=; b=amc8h/bvI9K6TJRi42Q+oYQJ7o5DKKQGbyLckOiVr7tAp1qdgtdGVMIdFK3tfTpNhj 3ZZOMu0PDZS9trnyjHt1jVJYiOSQ2TjpVLPzTfFZI62zliv8g0Hq3tVLIrCQ3eXa2TR9 8MEXl8nkakzXY/nGHcqrK4+B8yC5EnuIa+p5p+DfBRQbzOm8ReZ0pkbFyxI/bsiQrEaD WPgJN4D7PNfNScnq3WuCZQhx3zYyHFlxvJhHvZTHg1nLNlA+SsCtlYBe9lhhnzL7bEPC v9DMdIITeBU4/zS7G5MPiPupVDoujxgObRsL1mSfL6GvEa6ekdl9fUdnyo0ZTVHzdXzt lphQ== 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=ALxYcoQL7dP6mgXsQO6Lg/e/4QIgrgKqxl3ALb+fP3Y=; b=KRXU3N9OWDX7/Ta4uAKiqiocQU4oYp9bZ/z05BvAaA84mT9gbWblJBwjhCTNrYNUdC xgF63Cy5kSWegAi0kgzsQxrhdkh4GpSpYFD7na1JalQTmFyZIdaY7lkEerqeJRm0CDtQ jxnYTsdSyq7kRiGVTtGqIAXfyhULl2TB1XNEGbNqB4NRplS3rK8nuCmvy6jyq59JEqWv D3FmIn6b8fdAZUJM4UGA3asci7zSRUhIoPFrRDA9TJ2r+j8eBxUYrcl8Jafphx/cGCOg QK/MJLQgnPB53U4DsfoNnGMQCNrFKToRa5d3ZrjcaFS8QfurP6Mq83QT/kj2LoKKMAkt JCgA== X-Gm-Message-State: ACrzQf0anELw9VQDOEdR9vcaoR9TZBQcyMWZDg8fGJpqwg45FL4q2ISO Dw3r09ytDVjitX04su5JyMw= X-Google-Smtp-Source: AMsMyM7BkAF7n4+4kev5NLXg01Teai+kgMxQXZurnmug6rMBOL7QVqO0VnXiOXZcLcwZIUGOwiqepw== X-Received: by 2002:a17:903:1250:b0:185:40c6:3c2c with SMTP id u16-20020a170903125000b0018540c63c2cmr48228966plh.64.1666856824425; Thu, 27 Oct 2022 00:47:04 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([2620:15c:9d:2:99d6:ae15:f9aa:1819]) by smtp.gmail.com with ESMTPSA id i4-20020a056a00004400b0056ba02feda1sm611386pfk.94.2022.10.27.00.47.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 00:47:03 -0700 (PDT) From: Dmitry Torokhov To: Andy Gross , Bjorn Andersson , Mark Brown Cc: Srinivas Kandagatla , Banajit Goswami , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/6] ASoC: dt-bindings: wcd938x: fix codec reset line polarity in example Date: Thu, 27 Oct 2022 00:46:52 -0700 Message-Id: <20221027074652.1044235-6-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog In-Reply-To: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> References: <20221027074652.1044235-1-dmitry.torokhov@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the example DTS accordingly. Signed-off-by: Dmitry Torokhov Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml index 51547190f709..2f5e0df93872 100644 --- a/Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml @@ -112,7 +112,7 @@ examples: - | codec { compatible = "qcom,wcd9380-codec"; - reset-gpios = <&tlmm 32 0>; + reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>; #sound-dai-cells = <1>; qcom,tx-device = <&wcd938x_tx>; qcom,rx-device = <&wcd938x_rx>;