Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1544397pxb; Thu, 16 Sep 2021 09:36:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydLYlDryvlbkj5hhxfk/GQbMaLyW2ZDWDXfikkhjnlvhXzqO3jtRSeEedDGNM0Q+VcEMlq X-Received: by 2002:a05:6e02:1c2c:: with SMTP id m12mr1495279ilh.114.1631810208138; Thu, 16 Sep 2021 09:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631810208; cv=none; d=google.com; s=arc-20160816; b=MATWvek77swLYJcVlgcfawJH/KgzUpnHmjvE0Pj8qrwi19e5LN1TNNEVaV9c+g/WHn VfglB8QXygs8RWe9Nw/+m/LoC0I64de28urB9nPLIdNFGbxsq/TCWMrKW0HuGwiBujM7 uaXF7EvO9Z3SBeqd9+3+rnQ1Tq2uNVnjly3HOT8jKhzYNSBMPfhbtn10MpCpgeA47PRw JqY8oPL1Diq5v8sBPcfaC4bybQqUHYUWdJJhCi3pSmiyOL3tKv13/BdF8mg7WF/0Catx 1IFB8eDPGOJ+MJUR6TeJOLPPewtlB6qus2YBWfp2fVAptnoMZWQk7snBKTowgTYBHu6S NfNw== 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=xjH/0x096NeNu6ZWCQbypTT4kjuRQRtPt/26hyVC0/I=; b=poXsAoGCtwEF6DeDGTsXzaelRxjA/YDwInxgnsGGulaPjsjukDxlay1pAVi2GsGjC4 VzBtxbD2oAftky7zRAxqDqx9sqfm/IO0pVwO0WyjiuhAMPDHQgoIbyZZQqC1d6WDSGwu qXiDQORbL/Nx/Q6MeksM2OtJo1DJaBSPzRDdOX7z6XYv8tKIqjme+femOkVWebgYjXKo ruBPNTP0DnKsjaiyFBZbKPT2qVhk7puTYroXvO9o/DNaahZC59ug+f3l0e8saiF2yvOS sqAEe7+jEOH/Hg4kGXz6I9kWxlM15oUy+tCJn+nCGyfmNQgRS5dlufpyZ+GTtez1QEq2 nYjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W59koAjM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y28si3102526iot.48.2021.09.16.09.36.31; Thu, 16 Sep 2021 09:36:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=W59koAjM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S242873AbhIPQgK (ORCPT + 99 others); Thu, 16 Sep 2021 12:36:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:38924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242450AbhIPQ2Z (ORCPT ); Thu, 16 Sep 2021 12:28:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D07E161288; Thu, 16 Sep 2021 16:18:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809083; bh=z9UWIe0h1arWcJQZ3XEB/LMGrmp16FhSrvp1PuCqdhc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W59koAjMpAIuLtbk13ezFJ3+yknRHfzUpzFIyUvjU6VUs7TXMUcIpllsCWUXOnlRQ T3eCBYTf9uWVgNVD+gz6+gHLq1WEAPf+0tsNWVCJODKRgMsQcA/xzL2gNoSEadgGc7 kTmW2bq56PzjSz/6+rh7i0QLF3jyHLDJdW+Uv3M4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Cercueil , =?UTF-8?q?=E5=91=A8=E7=90=B0=E6=9D=B0=20 ?= , Linus Walleij Subject: [PATCH 5.13 024/380] pinctrl: ingenic: Fix incorrect pull up/down info Date: Thu, 16 Sep 2021 17:56:21 +0200 Message-Id: <20210916155804.793575424@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Paul Cercueil commit d5e931403942b3af39212960c2592b5ba741b2bf upstream. Fix the pull up/down info for both the JZ4760 and JZ4770 SoCs, as the previous values sometimes contradicted what's written in the programming manual. Fixes: b5c23aa46537 ("pinctrl: add a pinctrl driver for the Ingenic jz47xx SoCs") Cc: # v4.12 Signed-off-by: Paul Cercueil Tested-by: 周琰杰 (Zhou Yanjie) Link: https://lore.kernel.org/r/20210717174836.14776-1-paul@crapouillou.net Signed-off-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- drivers/pinctrl/pinctrl-ingenic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/pinctrl/pinctrl-ingenic.c +++ b/drivers/pinctrl/pinctrl-ingenic.c @@ -710,7 +710,7 @@ static const struct ingenic_chip_info jz }; static const u32 jz4760_pull_ups[6] = { - 0xffffffff, 0xfffcf3ff, 0xffffffff, 0xffffcfff, 0xfffffb7c, 0xfffff00f, + 0xffffffff, 0xfffcf3ff, 0xffffffff, 0xffffcfff, 0xfffffb7c, 0x0000000f, }; static const u32 jz4760_pull_downs[6] = { @@ -936,11 +936,11 @@ static const struct ingenic_chip_info jz }; static const u32 jz4770_pull_ups[6] = { - 0x3fffffff, 0xfff0030c, 0xffffffff, 0xffff4fff, 0xfffffb7c, 0xffa7f00f, + 0x3fffffff, 0xfff0f3fc, 0xffffffff, 0xffff4fff, 0xfffffb7c, 0x0024f00f, }; static const u32 jz4770_pull_downs[6] = { - 0x00000000, 0x000f0c03, 0x00000000, 0x0000b000, 0x00000483, 0x00580ff0, + 0x00000000, 0x000f0c03, 0x00000000, 0x0000b000, 0x00000483, 0x005b0ff0, }; static int jz4770_uart0_data_pins[] = { 0xa0, 0xa3, };