From patchwork Fri Mar 25 21:16:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12792077 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 9A091C4332F for ; Fri, 25 Mar 2022 21:17:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233412AbiCYVSt (ORCPT ); Fri, 25 Mar 2022 17:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233575AbiCYVSU (ORCPT ); Fri, 25 Mar 2022 17:18:20 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17E6F43482 for ; Fri, 25 Mar 2022 14:16:43 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id e5so9477582pls.4 for ; Fri, 25 Mar 2022 14:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qd2A4gk9xK3tLH00ck1BN3xfWfC5TA/QpCG6NwPucEQ=; b=O1s8d3XHPhekNzgBEmXvGepqjFetseGB144M4AgcKgcYAUGRE7zBo9ixCKqDgedRwg 3rkrFv2MDg/7DN9lljYdn5rCElSaNoI+7Ig4AZnC12vkQdVqBEPgBiGlOwiw/pnPntnS 0+Sb+PLTOltwq483DCIFmP3MN3N7byMEyE7f8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qd2A4gk9xK3tLH00ck1BN3xfWfC5TA/QpCG6NwPucEQ=; b=aHncmqpLvW4Du94C3Ygrm87v55+cKoHG5oJ3YyWH+aWMSLjDLd47D4Rj3NNJFLkMje c+91XCVym0f8WVDZBMKEn//bbcyixGe8n7lBVfPhco22hfghnlH4YYkx/4PmCfBcgyRi T3PTYhjAeBFgo2YnU+kKHG/IsjJngBwwS5QVhEBQqQLLbP/j4w1OVfozNqAH1EuC7Hxu n6w6L6MJKt87XOunEahJcINiYATUbOVBwQb0Q+QTsYzEObeYJwbwscHkGaInCY771MwK AX8cc1xDlaVIZcULwtAZ3ysfmg9p4slW6QvutUWORbPX2XZoAF/YNiuOsXUngmeafY9t IQsQ== X-Gm-Message-State: AOAM530a1NfwscRBa5n9lUC1hSBq3Z7LClOMMjxSH5U+Cakga031sycV 0uC+GvSbE1LabbKS1/5oTQ7n0A== X-Google-Smtp-Source: ABdhPJxp+Q2lEHiTSqcfeG0Ag2zKcaferXjcM8frFkQ1yQYCEQMyY1+Bhg5/6mkZV22bXypAf/2eqQ== X-Received: by 2002:a17:902:a585:b0:14d:58ef:65 with SMTP id az5-20020a170902a58500b0014d58ef0065mr13660731plb.139.1648243002382; Fri, 25 Mar 2022 14:16:42 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:5662:afcf:5e0a:c3a5]) by smtp.gmail.com with ESMTPSA id l27-20020a63701b000000b0038233e59422sm6043022pgc.84.2022.03.25.14.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 14:16:41 -0700 (PDT) From: Stephen Boyd To: Andy Gross , Bjorn Andersson Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Douglas Anderson Subject: [PATCH] arm64: dts: qcom: sc7180-trogdor: Simply SAR sensor enabling Date: Fri, 25 Mar 2022 14:16:40 -0700 Message-Id: <20220325211640.54228-1-swboyd@chromium.org> X-Mailer: git-send-email 2.35.1.1021.g381101b075-goog MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The SAR node, ap_sar_sensor, needs to be enabled in addition to the i2c bus it resides on. Let's simplify this by leaving the sensor node enabled by default while leaving the i2c bus disabled by default. On boards that use the sensor, we already enable the i2c bus so we can simply remove the extra bit that enables the sar sensor node. This saves some lines but is otherwise a non-functional change. Cc: Douglas Anderson Signed-off-by: Stephen Boyd Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts | 4 ---- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 1 - 4 files changed, 13 deletions(-) base-commit: 52deda9551a01879b3562e7b41748e85c591f14c diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts index e16ba7b01f25..eb20157f6af9 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r1-lte.dts @@ -13,10 +13,6 @@ / { compatible = "google,lazor-rev1-sku0", "google,lazor-rev2-sku0", "qcom,sc7180"; }; -&ap_sar_sensor { - status = "okay"; -}; - &ap_sar_sensor_i2c { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts index c5c9feff41b8..8913592b2d82 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r3-lte.dts @@ -20,10 +20,6 @@ / { "qcom,sc7180"; }; -&ap_sar_sensor { - status = "okay"; -}; - &ap_sar_sensor_i2c { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts index 344b57c035d0..8107f3d932eb 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor-r9-lte.dts @@ -17,10 +17,6 @@ / { compatible = "google,lazor-sku0", "qcom,sc7180"; }; -&ap_sar_sensor { - status = "okay"; -}; - &ap_sar_sensor_i2c { status = "okay"; }; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index 732e1181af48..b0efb354458c 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -722,7 +722,6 @@ ap_sar_sensor: proximity@28 { vdd-supply = <&pp3300_a>; svdd-supply = <&pp1800_prox>; - status = "disabled"; label = "proximity-wifi"; }; };