From patchwork Wed Mar 22 19:30:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 666278 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 E18F5C6FD1F for ; Wed, 22 Mar 2023 19:31:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231289AbjCVTbH (ORCPT ); Wed, 22 Mar 2023 15:31:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbjCVTbC (ORCPT ); Wed, 22 Mar 2023 15:31:02 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CB2D64239 for ; Wed, 22 Mar 2023 12:30:57 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id ew6so14406124edb.7 for ; Wed, 22 Mar 2023 12:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679513455; 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=ZjZRp40FPRrskzF7ZI87t7kgEWRDXNcFtKlljyaufmU=; b=I4w03IzrYWAmk/+JiLr6F2z1+ONFW1HIkI+m4d2O6t0A36P+dwfw8RufoI4D5OVGwK 6fRoCKk8PUWALnlUpSqbs50KgoqpC4GiuBSBkpcMUtm/wvglgDNY9Rj7LC2e8v2ShlAk Q0DY2ifmKDyoT4YweW6QmgfD2afvyGwYs09U548bPdk0bjWuJEQdTf5QyKaDMnvVq9lS tlNaThCoE+yABN14iFu1tQEM526hPEEOWxp1XfJllyGzb/Z69Kv5yYSfhBtSpR+ksVqi 69tx6UjKDZggmPuRz4HGJY6lJ3fg7KR4HeZ6WBfRC9oNTl48fd38yjwI7/CGbd195Qs6 6x1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679513455; 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=ZjZRp40FPRrskzF7ZI87t7kgEWRDXNcFtKlljyaufmU=; b=IO8wEfOOO2xkDBnR9vFInqzmg+CsUdV3UdpQEDrH/eriM70CS775mz54iKwWaoGbg0 pGHA3/Cak9UvDhBEdWjw5lLSBe6EBffQAmrDtJfb/1th1Gbbw5nuB+eGYACUU+ADZJ7f CutjSZuxDEC53ENP5wTpBErvE2kfGXMyLi16GN9RrmjugwNNUEEzOiXRL9JJLtNyNfZ8 j3kWQeSmZZqo2j/BBYqIUhWjtgHUel2nn6hTo/07dJpPNBaXRmSU7jfteUV5Eq0S+iH6 TIqPkdmohc/ZrgrM72f10PLkgV+LUpAfH8l6dW4RNJqDcoCxG49aBOAY66dTZJuItP8F Pz/A== X-Gm-Message-State: AO0yUKXm6GxXstiZAh9HA/08yf1L1aHV5j8m/fXMy8dQrlhc2OPiRNYN zRGZ3WiV6p/seXYbU9diiaUZWQ== X-Google-Smtp-Source: AK7set958KtOpibEr6Y5biy/UzSGGFcFMZ0TaPqL2USPc4H1DRMEZtbkWoCoYp7+Tv4MYXKC21b96g== X-Received: by 2002:a17:906:b847:b0:933:4a3e:c625 with SMTP id ga7-20020a170906b84700b009334a3ec625mr7592562ejb.40.1679513455655; Wed, 22 Mar 2023 12:30:55 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:5050:151b:e755:1c6]) by smtp.gmail.com with ESMTPSA id n25-20020a1709061d1900b008e9c79ff14csm7660309ejh.96.2023.03.22.12.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:30:55 -0700 (PDT) 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: [RESEND PATCH 2/4] arm64: dts: qcom: sdm850-samsung-w737: Use proper WSA881x shutdown GPIO polarity Date: Wed, 22 Mar 2023 20:30:49 +0100 Message-Id: <20230322193051.826167-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230322193051.826167-1-krzysztof.kozlowski@linaro.org> References: <20230322193051.826167-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The WSA881x shutdown GPIO is active low (SD_N), but Linux driver assumed DTS always comes with active high. Since Linux drivers were updated to handle proper flag, correct the DTS. The change is not backwards compatible with older Linux kernel. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts b/arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts index 9850140514ba..41f59e32af64 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts @@ -662,7 +662,7 @@ swm: swm@c85 { left_spkr: speaker@0,3 { compatible = "sdw10217211000"; reg = <0 3>; - powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&wcdgpio 1 GPIO_ACTIVE_LOW>; #thermal-sensor-cells = <0>; sound-name-prefix = "SpkrLeft"; #sound-dai-cells = <0>; @@ -670,7 +670,7 @@ left_spkr: speaker@0,3 { right_spkr: speaker@0,4 { compatible = "sdw10217211000"; - powerdown-gpios = <&wcdgpio 2 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&wcdgpio 2 GPIO_ACTIVE_LOW>; reg = <0 4>; #thermal-sensor-cells = <0>; sound-name-prefix = "SpkrRight"; From patchwork Wed Mar 22 19:30:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 666277 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 9E3ABC6FD1C for ; Wed, 22 Mar 2023 19:31:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231276AbjCVTbQ (ORCPT ); Wed, 22 Mar 2023 15:31:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231270AbjCVTbG (ORCPT ); Wed, 22 Mar 2023 15:31:06 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A66A86771C for ; Wed, 22 Mar 2023 12:30:59 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id i5so30484650eda.0 for ; Wed, 22 Mar 2023 12:30:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679513458; 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=Tyc2FHZOXLbHwT0yWbSibCrRBIuGGkS3+1l5iNkUxjw=; b=L6ilkvyQY65KncyHVyHMQXfuN38I/vJjrJ0hCvkqXZaTi1NACcdxXR90taPKUtO8xl AW6thm90ixaDvpXUE2yrYkgC2wtYVXUxbmTvYFpEMlpm9JjvJrEiLxB1BViRUc0Pn65U uu2ee/YcQmCzsAQF/FxvPIsdqjnZ8kfqIt6oZyBP7al+Qfiqi9N4wbq1p874T4lfHoa+ ksF2zmy9BYwVk2MBoX5WZSOsdJni3Q5p6RGD8WZ+yuqd0ngjKzX0yEjPAylsTO5R/cqk 7BrsaxR9vuLf9kD4x8MJeFZtfvTZ6qCbN8RV8+Ch35omqRGa29CokOurkUXYRTmY2NEg i8Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679513458; 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=Tyc2FHZOXLbHwT0yWbSibCrRBIuGGkS3+1l5iNkUxjw=; b=PJQpvZ2628t5A0WOVL2vG4y3q8dLU724+WoBSMe29ZvJ7Myo68kvBoyp5CNm8fBWuP O5ztBYDx5GbSRLSsdnfROq/WBgsLWkJx/Rgk4OAV8WFOgEnUtiLOxd7uxmGaEs9JM0OL guvEuLo3HeAcOsZyopp3aO6aqrkHeaZjfnGkPDt3mkIy2pbgbly8ocuuViTR0SkTeEVD 5TCizCUAzKCND9hPmerPdwAZAKW5/73sDNAh0Ut2s05xoCIlmMfAFOsQ/677f3d25ZRH S9JdNEow7NGQfb+jMw5bUGyBIj/hoRShdKpMxdJ+RtvAciDBlQLMYHP82WskPlJA3q+t Q3cg== X-Gm-Message-State: AO0yUKWLcG5ylfhKuVo8ZFUyMdQju9iGmnRBgEy7aE8Ywxc3Y46uApBC wredLeyr5ctdBqxQevqikV9wmw== X-Google-Smtp-Source: AK7set/eW0rdvBeVi9Hi0Hka7G6IeJLmtaGQZyKOoOYaYghy0poJvQUsZqmqX171mx/lB14u7aYFrg== X-Received: by 2002:a17:907:a090:b0:93b:68a8:a0e0 with SMTP id hu16-20020a170907a09000b0093b68a8a0e0mr3943794ejc.16.1679513457840; Wed, 22 Mar 2023 12:30:57 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:5050:151b:e755:1c6]) by smtp.gmail.com with ESMTPSA id n25-20020a1709061d1900b008e9c79ff14csm7660309ejh.96.2023.03.22.12.30.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 12:30:57 -0700 (PDT) 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: [RESEND PATCH 4/4] arm64: dts: qcom: qrb5165-rb5: Use proper WSA881x shutdown GPIO polarity Date: Wed, 22 Mar 2023 20:30:51 +0100 Message-Id: <20230322193051.826167-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230322193051.826167-1-krzysztof.kozlowski@linaro.org> References: <20230322193051.826167-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The WSA881x shutdown GPIO is active low (SD_N), but Linux driver assumed DTS always comes with active high. Since Linux drivers were updated to handle proper flag, correct the DTS. The change is not backwards compatible with older Linux kernel. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index aa0a7bd7307c..dd924331b0ee 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -1012,7 +1012,7 @@ &swr0 { left_spkr: speaker@0,3 { compatible = "sdw10217211000"; reg = <0 3>; - powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_LOW>; #thermal-sensor-cells = <0>; sound-name-prefix = "SpkrLeft"; #sound-dai-cells = <0>; @@ -1021,7 +1021,7 @@ left_spkr: speaker@0,3 { right_spkr: speaker@0,4 { compatible = "sdw10217211000"; reg = <0 4>; - powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_HIGH>; + powerdown-gpios = <&tlmm 130 GPIO_ACTIVE_LOW>; #thermal-sensor-cells = <0>; sound-name-prefix = "SpkrRight"; #sound-dai-cells = <0>;