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: 11631 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp89714wru; Thu, 27 Oct 2022 00:49:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4W3gqyk/b1joYzszyHsnmP2ZEmj1VS1/qx/FBixB6Hea4JbEocWlpTReIuagYgLct6I3O5 X-Received: by 2002:a63:350:0:b0:44c:2476:12ff with SMTP id 77-20020a630350000000b0044c247612ffmr6460438pgd.50.1666856995912; Thu, 27 Oct 2022 00:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666856995; cv=none; d=google.com; s=arc-20160816; b=gJGRCNCRujSF5lrB6FdCrtJ9fnTPb0J0lBAdIgs6/3UodX7gP7PjXO9k91m49WtbcP Jdi1pqKkMrCpL0pjEKXh8BK8eYMF5U1yeuFz/vnPC6kCkZvkjJZn6Z0vIzpHYHSTYeB9 8VXyxZJDzcYBxB67lOwJ1TD96aIrJk6ZdvGtoCkgCbq9whZ2+1vlfiN35SQEGP/ZgW/a QTe5p16k9ONu/9WQuswLlxqur/X5hsBEmAEN4FtQTyAotWgNfldpz0HDv+HBl/v8g+1g ZXKdSmPLppSo+Sh2zFH1RkgZ22Sfqzh8spWT4MAWe6dKOqjWcKTQH6uwOrcv0sdA1M4k nisQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=7eZPMxhWXLAdP7JOTovMyPi4TE0q0a0Jvomoy/MT8tw=; b=LvbPvsnqVmabjLDwNagKIlsYcZVh3xJ3esf/GusVPHqE8eHqaefQJq2bKvphlhBmqL 9L0IzvIQi4O4pPmcE3mX25U0Z9YDhPdigb6Wwl2XGBjwNU2X+UXtrJ6rAPlNxtYw0gMm U8ptRcVoYNKXzJWSsIJQ3hWnoECpuysZvIj/P8B4Ijjll76GiIsT0VbCCwIOuQRo3RMn iA6xB40uAT7aRHNxVbvcXFPuYShChREmh5O6WZhLEGFPwhTizjnr3sg+rJLm5msZNR4s /8gU7FrH038uTtUmGZd5dxJ2mHJ/VZOLpyqLIaHCwGmCafOV/VQySxA9WSHQziJ69jET VvBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Vsy6ZN8g; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iz14-20020a170902ef8e00b0018685c559a1si709368plb.383.2022.10.27.00.49.43; Thu, 27 Oct 2022 00:49:55 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=Vsy6ZN8g; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234810AbiJ0HrD (ORCPT + 99 others); Thu, 27 Oct 2022 03:47:03 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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?1747826241316802665?= X-GMAIL-MSGID: =?utf-8?q?1747826241316802665?= 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: 11633 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp89923wru; Thu, 27 Oct 2022 00:50:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7PtYWJyR48TL+gU07bJWOERMYOzfbl8/SgXmzj1s1OTz54u6cN/Npwc5gLwSlpNDgZ1B6y X-Received: by 2002:a17:90b:264e:b0:212:d06f:35ad with SMTP id pa14-20020a17090b264e00b00212d06f35admr8975722pjb.2.1666857037844; Thu, 27 Oct 2022 00:50:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666857037; cv=none; d=google.com; s=arc-20160816; b=bAmmxZAnw+REYb+1q0yKci2m01gIk3PKySojZwQzap2IM3Smt2iYsnXbgk9uh4mhYt FzFh4TIPQUcGkchmTYAfP9haP6Z9ztDZNPycipx+pDrJmc4dyUKO8JruNSCeOWwQbF5r MFwVjujVtXi2fEcu7xAQWO5OZCcAtbSURT710yWA449naikrofcqjveGJGavC8vPzbwi q0QXhBW3cVgKJ6yr5Uti2GI6tp89j2OBr8mmFyYv2qRYL2TSvhJug3Y5gCkygl16yfBi KFaHaNkOYVTBRQcOONrXCjGWnxSFUUVTaC70Bjjo22zcA3/ZKbtfzx/DG8FK7Z16TN7h K8Gg== 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=o6Hvc44I/ESMlqa43mGR1Qp3cCc/2vV67IQonLZ5Kj4=; b=H6L/s4yJg/JoI1bv0YtlfsKa8CY8Ie1WwQmEd1sElzn0DJR5l4bZU6dHCtRd55N70n 4ovnOahjtsSO8dWVupaT03RUP6c/tf4ioLUFDLqtSKQP4p2ruq7TK7B6GuYSClxorBuM tkpCOxU6ZubRraASPnVsC/c+mNj/gGsteGi0uTm3XB+7I1X3ie4sl5rv6JjvUjFasyts Cr+JNETtilhBhH05Zuqkat16D839pTR1kORwVAbMKrtgoS/BqjKm5fbnB71WoFNDH7jW nLnViI9S2+qI6ni1tkoAz7qMUhe48NmRVKWXiez+63cEHGN5NIFT+tMaxIlU5qwYeQ6S YWSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XMZJXb2a; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a056a0014c400b00557c8a20395si1074591pfu.120.2022.10.27.00.50.24; Thu, 27 Oct 2022 00:50:37 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=XMZJXb2a; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233565AbiJ0HrB (ORCPT + 99 others); Thu, 27 Oct 2022 03:47:01 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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?1747826285635236607?= X-GMAIL-MSGID: =?utf-8?q?1747826285635236607?= 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: 11635 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp90004wru; Thu, 27 Oct 2022 00:50:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM74ZsVcetRI+F6SeZDARiyTptUly3IXhnTw0o/Q3VLZvWvtAL1TeIcKd3RL2MYPD5lPIdt/ X-Received: by 2002:a17:902:ab1c:b0:186:b001:8e9e with SMTP id ik28-20020a170902ab1c00b00186b0018e9emr18041534plb.166.1666857055244; Thu, 27 Oct 2022 00:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666857055; cv=none; d=google.com; s=arc-20160816; b=pLI67VEzJZ/3TD5WuwSqjyS9sg94fEfrtcG9SoTYiYRVzPezyFlJy0gO/3htz3gPDE 5uaiGX4TgaKa+KuCd24JmPgE3R1OMDKyXA8Av3pftW+FMDBv7k/ksJximqganhkwGlPW mJOKu9OdItr7uLgQLxdo4qtWsbneuic08V/aFo/NTBxGs2yfVv7ckMYcsebShISZQUpr d8OQifoJF3tBxhRIPjv1NKL9gnhqtxrAEhWvcpIUmdgLuhpQJTU2ckf/8DCrqp2QEJl1 KhgCM3GOlOUJEMuRyRL3JPFToHGEXXNliZewPq+0ek0zmQBiElddOT5Y8JzLmTxDqUae V9Cg== 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=RVj2OYA35z1rSXJ+3f5hZK8nYVXD1srUvtRewkk0Cmw=; b=VCac6ORUBS2DBaDsSAPlO9/WPGyEVjo8zByrakR/ayb6GTu5jEN3+cbdJ1LEZLOrmy KFzt/HJvdg/wUmMcdDAiJVn3Oq8L/uHu+HbTB1HXtQQ1eMaWh/gV2yKPYMAVXIGkKhZA 64I8KuTOStBSD70dB+fF2G7P3idkyQiPMrhf/chMPnFcBJuPW/NLLHoemOeG2YmZ04ky vypZOOlpC8+/DFIapHZ/DLS7TTGdnZpooikGMTMGPQTkB9rpBrhrV+DKZibLmTrww/i+ E3KoY55BqUYfXD/rElpBwl5cEIyQREXIMtgDr6hx1SPCG7h8+/IOMW7PF6G5Pja3raLM n21Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O9ooqwgF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a625803000000b005669b9f5e1bsi980286pfb.45.2022.10.27.00.50.42; Thu, 27 Oct 2022 00:50:55 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=O9ooqwgF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234820AbiJ0HrI (ORCPT + 99 others); Thu, 27 Oct 2022 03:47:08 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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?1747826303941304078?= X-GMAIL-MSGID: =?utf-8?q?1747826303941304078?= 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: 11632 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp89856wru; Thu, 27 Oct 2022 00:50:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dAFgRNokLD0qVj6Epig2IRZcXy7UQSRONvdF0dbHVxU9+Fz8ei+qEy4n6rbmb2hwO82Pg X-Received: by 2002:a17:903:2346:b0:186:ba56:f520 with SMTP id c6-20020a170903234600b00186ba56f520mr15099352plh.138.1666857024946; Thu, 27 Oct 2022 00:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666857024; cv=none; d=google.com; s=arc-20160816; b=sJeGIL5Jx8fUzuSpgpcZObab1+Jo8e/qYQmGfUM/nRkUGTgE4la3jC0X2cEYJiEN5M cM43Byy9ydtbBxi6xLPk/BzVxogFQNDydRCSPDYhYuacmTZ3jkJ3A19fvkC3Gmp3vHqm UEcwAIlB8OrKkk2I91fx/pGZ/TbslJZVVlYBnolefrXdiIyzxyVljR1JW/dRmjegLebZ YTsG9gSqD1hqdpO6AjSBL84jAAzWRykI2AvdViBNr2QszWcT821t3c+PmvzuHGNBCzOW UgatvhgH1ZG2aI/jMEPcAtMA/t71ZTkPIpjnfvtIh4RC7d7K1Et8GAHYFa4fSaH1L/av lbhw== 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=ZNeVhpUWigJ0TSEw9v1gskADVF9vSoyCLj/DbDWPyvw=; b=ULJD1LQk1Tut4slWbyKlbIfxWriM9aG+ttKwEMXdcmTL1/mRVnyvMG07R780IGjOjd o632zj/KN1AOW+NjpvZ157AvepHrXr3SlgM/Ki0fhi7XEc08UJbot4AiZGxeUVUaa1nb jlKGNdjS53Tdr3TiqASFlOSTbVmfO+TMDDjVMZ4GSQuQJwKPOgn74B1umaOv95p6R84Z xh425ZLNRvVQrXNoYHzEMRkB37/FZXw6CiQyz6ueP/gmtunVJ4iUrA+oVl79tdMsH44D tcuTUmQiCEJBYAjtUIYQmOceW84u05Wio2iDvAPvifVmj5E7a3JYbse8NiMuRBkD42sh Ip0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aLf1WN+O; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v19-20020a056a00149300b005669cd93898si1142994pfu.233.2022.10.27.00.50.12; Thu, 27 Oct 2022 00:50:24 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=aLf1WN+O; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234581AbiJ0HrL (ORCPT + 99 others); Thu, 27 Oct 2022 03:47:11 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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?1747826271497925895?= X-GMAIL-MSGID: =?utf-8?q?1747826271497925895?= 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: 11636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp90057wru; Thu, 27 Oct 2022 00:51:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wzku1Hbjh8Upp8BLEhv5gi8yRqdft/0JsrpANWf+nC8Q1+aa2Fs7MzIMCLfTvS6wjrNFq X-Received: by 2002:a65:6bd3:0:b0:42b:9117:b9d1 with SMTP id e19-20020a656bd3000000b0042b9117b9d1mr40731203pgw.238.1666857068281; Thu, 27 Oct 2022 00:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666857068; cv=none; d=google.com; s=arc-20160816; b=UG+35xkPX6QhScQsa2ydmy0WWup8oQuiePsvS747tfDZWOluSiOgXjzFUaFXr0liAM Jdut2fMgoAHx+bpicMuWjji+pNi4cK5vJNGUxVfMOx3APHGSxdTb8M4m22Si1V9GOPyJ dP9c8l7KaPOaoQR/pHfOU1Pik7bwlnT8rZ31TLSuM/P157kC0n4KQoFlybtlaylVQTLl ndfde2tGRSAts/S8Q+pQKX6SvuSGYnLF0dUQ3T4zIPDp0GkM+RsL+1u3iPyXYA6puSNy S58qXsDkGd+OaK7Ho4DvRlJfhxSMqdmnw9pWKPLytm+IbjNLCK2JELkiuIlbfb7kGDDw 5jzw== 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=msL4Fm7iWpHIBylFj9WDZgCoBlELM6gjoyFeS0oql9o=; b=jpDLeRPXqzwBg55gs4EvyL64haLyX0kc9PG/XGmfsIxOO2JVcg3I5/A8zcGJtezxYw cJtVywxLyGxMx7PcD23aZuyc1lIyiDdSOaPTacCfNt3nXwqRFEccjLUlsh6SQUE+yK37 ZhSC/j9on2wTIQUx4vgmAJqEdP42aWWz3XioPyj4VRQzzVzt7gFvuym0DhYPaIDcI4+I owfvaF7jKm0axUvvqgfKDNG0gORvKDPRoGYx2X5vei+bzMiV83bcO8BRBkC7h3iFFVs1 gDAoCNyoXo2rv5cjb/kl9c5kj9aByDkJtLJ+7PWYRaW7gkPlElYBNN81+zISG2to9DKU rEkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Hmn99xvS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o14-20020a17090a420e00b0020579d99c4dsi887509pjg.138.2022.10.27.00.50.55; Thu, 27 Oct 2022 00:51:08 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=Hmn99xvS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234864AbiJ0HrP (ORCPT + 99 others); Thu, 27 Oct 2022 03:47:15 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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?1747826317047474805?= X-GMAIL-MSGID: =?utf-8?q?1747826317047474805?= 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: 11634 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp89966wru; Thu, 27 Oct 2022 00:50:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FSPHA7HM/uQxIVtNLnI1nVSSThUzpJHewAXfCPDlPDX2jPxKqKdPLlu7n6grDtxnfAGXR X-Received: by 2002:a17:902:f546:b0:186:c6d7:6556 with SMTP id h6-20020a170902f54600b00186c6d76556mr11258149plf.109.1666857048882; Thu, 27 Oct 2022 00:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666857048; cv=none; d=google.com; s=arc-20160816; b=JdadAAlafQJYDfI7PTgsuLBACZwPgOJQAY/p8QdjhhNzHys89xnVjmEomoUZlOwyzp I+aLP70Cy7f9FLVdXI5GojmM5b3nKspz8ZY62dKtjF20IYOS98aivfgpO1bAe2ZPEWcl Y5Yls3CTPYnSoLq3F1pfkjVG9AnOhjj1L1zhnF62L8PLsujQFs7P2qemqXh6MihxJivi 29MH/2oZ46PdPOanK30/eISXR4hFIHOAMOQ2C8vNB0AlAjoLWmORb1d0cpo/V/I0ytGg GuU5a29FgQLiFs+y7kUjDimPqk9vCHrg/AfjwJMuKK6cV7+8upDoBrt7BM7LOTBQnQ51 ee8w== 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=ALxYcoQL7dP6mgXsQO6Lg/e/4QIgrgKqxl3ALb+fP3Y=; b=Bt960wjLMAy353VvQVhLcLy4IZjF/Hp4zWTAcO861MfX04V02zOxTlf1CcXT8Jtah9 nazeKaAyMANrlWfTQW/Xtf4ychJHWFFliCiOAoUY2/XwGB2aWTKjorb2KPEy3092VgJi OPbw8V0+i9THLVEgU3SqtjIn5JOYilFii1P/dYFeRZp3w12+5eKOPP8Eb2Rq634ijHv5 nwIvlgMW7vr7Y3VrOu6m5HZ4RrCckhMDlRGHmOiQx2xb+QaAt8U9bVLRd30GeBzDbMVy VOnsyUIUqH5plnZkhcXPsuATMM2dBjkgJUgUTcAhCfwNKADoxs3jBSm33WamX+sHYc94 T1nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="amc8h/bv"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a170903204200b00183f6ff534dsi615718pla.535.2022.10.27.00.50.36; Thu, 27 Oct 2022 00:50:48 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b="amc8h/bv"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234885AbiJ0HrU (ORCPT + 99 others); Thu, 27 Oct 2022 03:47:20 -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-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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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?1747826297086919586?= X-GMAIL-MSGID: =?utf-8?q?1747826297086919586?= 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>;