Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp819480rwi; Wed, 19 Oct 2022 03:26:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6KZXajg41OZXTN6etj8nY2xPGW1eVcbxIDmYiv4vBI4TsFYE+gicepIfwcsg+CtjuDHQ5i X-Received: by 2002:a17:906:8a68:b0:78d:9680:b03 with SMTP id hy8-20020a1709068a6800b0078d96800b03mr6023520ejc.49.1666175214994; Wed, 19 Oct 2022 03:26:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666175214; cv=none; d=google.com; s=arc-20160816; b=0LdbcywieSBkPlBqHY0teXNuKXevP0+zaQGDKCCQJBJsuZlsXi6m2GSDtVhPAbUe4z DOep1bU4JF+GFCPCN9YswruIIrsJQ0kG0ciMxR3X2eY+KIZGl/EHy5/d5vtfVYHnHBaK C7CGn7/mT8w7F5Hus0HFGsbRlYID1CHhzO43uqmEWvYrHgB6PpyI/3yNGIWqWv4UlkD5 QOquwnEvlk6R3zgZo23XOCvWoDXfIH86zXbLuDP5p2m7HBsmaKl9M2LOsHZGBTXL7jrJ FI+DlSa2+/0iTC70Xw5aHm18ayb2oOIjQe77T0DF88tb623bSHmboKDsV3kKUK76lP3p 41iw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Jv1T7ZnjqNAB8Le6Ls2kHiwvbq/gUHLRk0R1dH++2mM=; b=QiDuPRopZw7GJcjvdDCt5jsesSrB736hp4XtqZZp1/Qjt7VlefOSm2TzzF05zE1dLk EVPN7H3fckLX0ytsqGOe+DRWuRMEN/dz4MjFQRXm4RMNkJchDTqSq+ik+H/uoU35jelS DfG7xmg/wqJGDt5gZYVy0UR+Wqr0YD4wMecZMbMz/7Mm50FAPTWOE4YI9MCq6dgbE87F hEVN+cmlPLb4jMwtFBJS6rfDEqWN5W8fE3SRLn/1DrfyTXeTa94ZG03KkG+sLNUMz9oo ArU6oiZThLdaAHSNhWp3JVsYWN2G31EvrRba7qSd4lnxshxDElcZWuX7reetic7gT4DH PCVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=OYzl9gJM; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j20-20020a1709066dd400b0078d9b2facaesi12648521ejt.339.2022.10.19.03.26.29; Wed, 19 Oct 2022 03:26:54 -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=@linuxfoundation.org header.s=korg header.b=OYzl9gJM; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232841AbiJSJLc (ORCPT + 99 others); Wed, 19 Oct 2022 05:11:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232596AbiJSJIy (ORCPT ); Wed, 19 Oct 2022 05:08:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B581F6A49F; Wed, 19 Oct 2022 02:00:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 03E7961807; Wed, 19 Oct 2022 08:59:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17AA8C433C1; Wed, 19 Oct 2022 08:59:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666169985; bh=0aJmXsHy28if5uuppSC/9legPQw0PyWIgSfVD8RR20k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OYzl9gJM0RA+FKx6neBLU66/I97t/VEG/leygw+gXWSIcliV+SAO3ziKvRq54fCVu 555/fP8WquK28e8/WYBuREcQljhJ+Ib942MOFygCx/CyJmGvDtPhkd5Mrv6L0sAv7n VwTW+iMfKdyU35B1INzjKhwkF+9Im9haBGS9vMPI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dmitry Torokhov , Krzysztof Kozlowski , Sasha Levin Subject: [PATCH 6.0 451/862] arm64: dts: exynos: fix polarity of "enable" line of NFC chip in TM2 Date: Wed, 19 Oct 2022 10:28:58 +0200 Message-Id: <20221019083309.901695365@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Dmitry Torokhov [ Upstream commit bd1a665a01b4d65fd8dc6fece4b376fa5c8c55bb ] According to s3fwrn5 driver code the "enable" GPIO line is driven "high" when chip is not in use (mode is S3FWRN5_MODE_COLD), and is driven "low" when chip is in use. s3fwrn5_phy_power_ctrl(): ... gpio_set_value(phy->gpio_en, 1); ... if (mode != S3FWRN5_MODE_COLD) { msleep(S3FWRN5_EN_WAIT_TIME); gpio_set_value(phy->gpio_en, 0); msleep(S3FWRN5_EN_WAIT_TIME); } Therefore the line described by "en-gpios" property should be annotated as "active low". The wakeup gpio appears to have correct polarity (active high). Signed-off-by: Dmitry Torokhov Link: https://lore.kernel.org/r/20220929011557.4165216-1-dmitry.torokhov@gmail.com Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433-tm2-common.dtsi @@ -795,7 +795,7 @@ reg = <0x27>; interrupt-parent = <&gpa1>; interrupts = <3 IRQ_TYPE_EDGE_RISING>; - en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>; + en-gpios = <&gpf1 4 GPIO_ACTIVE_LOW>; wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>; }; };