Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp749521ybl; Tue, 13 Aug 2019 01:55:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEiKszw4AEX3nquMxWqR++hOxItmY8q09U379MRdkdF358Lvb9dzqS/L6zZDYjeeIeDHut X-Received: by 2002:aa7:9882:: with SMTP id r2mr7654031pfl.146.1565686555776; Tue, 13 Aug 2019 01:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565686555; cv=none; d=google.com; s=arc-20160816; b=SvOvMyBLYVzGBG6gNdC4ZJZEc3K0g8W09iA8vWfCznfAEL+EV5dK8zC6bTiYmJUDf0 L7FmSG8nQMV2HvL48Gyw2m7A8fpH28vycio2ak3R4XFa3bQsmH6QCOMgcYOai6ZLTnOY tDjzvgLVxcvQ1Wgc75elyvNMdQuk+z/q1kNhCBlA+XriX99QgOCKh4zi5FEJ1GKOkgQQ EwD6oZtcF2Pa+7lDsNqcfxh8jtaZHHomTvLoBaDz8ZlInf5yf10wz7xMj/UvilYzuHtA xfo1+YAJrZ5NfWjA5ivZUM03Pa+tNSU0U5pXPi4x4zeqpHH9gnlqFDH3X+EWyPkhxLeI 0/xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=iUynvhBkYBvqGtYTSNWoNOgFhWGTDDUCXDKU5naLdwQ=; b=jkFFVrs9q2JSBR5JsnseYLlYrfpx40mlZSwoOMYzAC4jdWoRRXkcQInv+ZUzRKg04i duDb+w/juyHP3AQOuT0fS7MN8pPtfsHqMLEgNGpsMYZLMdw32h8C3bubqF37ERJSP1cw bDvM2zcjvgO0pFDfLlLFnSm4XZ5CxQjgitjOxg/l96CQ7suW39Cqzh/Hbmq0ofjeCcG2 DyzS4sQDjm9ajwf2ih96ty62Czuv4ggHWNLBo2JQM9NgELuS6bjKT073pUWdN9OrbyB9 LRsDhP+MmAdK8OThqENCfTlXnOhaYI2ejeGu8CVBtZOTDVrH3bGKYqZnh3R/RhJpIRBK NQeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si563609pjl.77.2019.08.13.01.55.40; Tue, 13 Aug 2019 01:55:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727875AbfHMIx3 (ORCPT + 99 others); Tue, 13 Aug 2019 04:53:29 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:15185 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727715AbfHMIx3 (ORCPT ); Tue, 13 Aug 2019 04:53:29 -0400 X-UUID: 48d1413672114bf0bd830e48652dbd16-20190813 X-UUID: 48d1413672114bf0bd830e48652dbd16-20190813 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 1334987500; Tue, 13 Aug 2019 16:53:22 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkexhb02.mediatek.inc (172.21.101.103) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 13 Aug 2019 16:53:20 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 13 Aug 2019 16:53:19 +0800 From: Light Hsieh To: CC: , , , Subject: [PATCH v1 0/5] Improve MediaTek pinctrl v2 and make backward compatible to smartphone mass production usage Date: Tue, 13 Aug 2019 16:53:15 +0800 Message-ID: <1565686400-5711-1-git-send-email-light.hsieh@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch improves MediaTek pinctrl v2 and makes backward compatible to current smartphone mass production usage by: 1.Check gpio pin number and use binary search in control address lookup 2.Supporting driving setting without mapping current to register value 3.Correct usage of PIN_CONFIG get/set implementation 4.Backward compatible to previous Mediatek's bias-pull usage 5.Add support for pin configuration dump via sysfs