From patchwork Sun Nov 6 08:01:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 16080 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1381214wru; Sun, 6 Nov 2022 01:02:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6g3iMDVFfsaYsx3A/rx+PJAvUPc70xAYaGelFT1mWhLEALVFORrgFCY+rJlKKnlRRGIwtN X-Received: by 2002:a17:902:834c:b0:187:49e0:fd4d with SMTP id z12-20020a170902834c00b0018749e0fd4dmr22278567pln.81.1667721771559; Sun, 06 Nov 2022 01:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667721771; cv=none; d=google.com; s=arc-20160816; b=xNF94gs//93qerqx2SwUgqb7GOrpVgq1Q4reBIjqEGHDB3xshCLARll8DkdjTAAy13 5CiavHLGgjsPCch1wiMiCtH4+RUba2PwzfZrw3/2J95ljK8XOY5btMUzaDo0iyjQD74a xiaiGduylJpsklyiBTX5kjkW5wINricvdGVKtLX62diNY/hQPSS/UyBap+W2AwOecJjJ YT9wuyy72Airwvg5itW2Anxmt5cT48eEtCDPsD3GPVtDAidYV9fOvEb+LVEXCL0i5db3 /eQxV+CyALV3YAN0y//L58i5EPkYmVaTy9hByo9EGeVjeDC3nAKgY/kCbTJFgEKvoM3g LtJQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MHVO61sMpRHTxKeTwC3bQjHXnh5eWGHHpN5gb6vKtgc=; b=ynmAkV4UjZRTj4CG+N+vk5/RXArX47kCYGsMCFciU6wcfAoXJcWnPe0dJqihCGjR0o 9PqtoCeg4SsHn5m0cQuSLyxIOI9Tt7v070Ot1h/IdITGC68T07PkeeTWA8PA6lhDi3AW Mg7JJzbB4L9BXEMW6bgRE3WYEhKHFsWCx6u4iWiUfItgn5XTCPjGjfKfLzQPvVUU/9Eg Bypxw8c5Xvxf7ernAQp+beJ9e2Ng/dDK+YjmX5I7rBUJgc1uQw5F38VwEAH4uVVSP+el wsf3ig4HstQRFVUlCkgAiS6iiVld3jbipmJCKa+1u/1qYQ7uaELVOyBwtkLQPNrF95w7 fmsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=YcXi9Kio; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oe8-20020a17090b394800b00212fa424170si5824163pjb.130.2022.11.06.01.02.38; Sun, 06 Nov 2022 01:02:51 -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=@mailerdienst.de header.s=20200217 header.b=YcXi9Kio; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbiKFIBp (ORCPT + 99 others); Sun, 6 Nov 2022 03:01:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbiKFIBc (ORCPT ); Sun, 6 Nov 2022 03:01:32 -0500 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAE356353; Sun, 6 Nov 2022 01:01:31 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id 3D64E604C3; Sun, 6 Nov 2022 08:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1667721690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MHVO61sMpRHTxKeTwC3bQjHXnh5eWGHHpN5gb6vKtgc=; b=YcXi9KioWqywKeslw1CSVwgIpPPBqSnWmU/T/7zpHpkPG70MAcld+jx1xJTNjGw7LIDJ2q 4tL3cumd7hbidPickQ+sGRYf2v78KQPyNo4H09iYhEHfUr4Wd2r9jXBO30JMicskfNgdcr 7uRFy33CnM/M29UyC/kY9pTpLu+802c= Received: from frank-G5.. (fttx-pool-80.245.79.199.bambit.de [80.245.79.199]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 9223A3602A8; Sun, 6 Nov 2022 08:01:29 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang , Sam Shih , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/6] dt-bindings: pinctrl: mt7986: add generic bias-pull* support Date: Sun, 6 Nov 2022 09:01:10 +0100 Message-Id: <20221106080114.7426-4-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221106080114.7426-1-linux@fw-web.de> References: <20221106080114.7426-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 5333ed4a-a8b8-42f9-93fa-0fd8ca8d62b3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748733024580151750?= X-GMAIL-MSGID: =?utf-8?q?1748733024580151750?= From: Sam Shih Since the bias-pull-{up,down} attribute already defines in pinctrl driver of mediatek MT7986 SoC, this patch updates bindings to support mediatek common bias-pull* function. Signed-off-by: Sam Shih Signed-off-by: Frank Wunderlich Acked-by: Krzysztof Kozlowski --- .../pinctrl/mediatek,mt7986-pinctrl.yaml | 50 +++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml index b2b9c01efd70..216b356cd519 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt7986-pinctrl.yaml @@ -292,9 +292,23 @@ patternProperties: bias-disable: true - bias-pull-up: true - - bias-pull-down: true + bias-pull-up: + oneOf: + - type: boolean + description: normal pull up. + - enum: [100, 101, 102, 103] + description: | + PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in + dt-bindings/pinctrl/mt65xx.h. + + bias-pull-down: + oneOf: + - type: boolean + description: normal pull down. + - enum: [100, 101, 102, 103] + description: | + PUPD/R1/R0 pull down type. See MTK_PUPD_SET_R1R0 defines in + dt-bindings/pinctrl/mt65xx.h. input-enable: true @@ -346,6 +360,7 @@ examples: - | #include #include + #include soc { #address-cells = <2>; @@ -412,5 +427,34 @@ examples: }; }; + mmc0_pins_default: mmc0-pins { + mux { + function = "emmc"; + groups = "emmc_51"; + }; + conf-cmd-dat { + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2", + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5", + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD"; + input-enable; + drive-strength = <4>; + bias-pull-up = ; /* pull-up 10K */ + }; + conf-clk { + pins = "EMMC_CK"; + drive-strength = <6>; + bias-pull-down = ; /* pull-down 50K */ + }; + conf-ds { + pins = "EMMC_DSL"; + bias-pull-down = ; /* pull-down 50K */ + }; + conf-rst { + pins = "EMMC_RSTB"; + drive-strength = <4>; + bias-pull-up = ; /* pull-up 10K */ + }; + }; + }; };