From patchwork Fri Oct 28 15:34:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 12399 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp902297wru; Fri, 28 Oct 2022 08:44:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Whw3pgEpWIHtt33YT68NONnzlT8mskbZCSXeo0F4ifCBkQQOJSMz77ujUxfr21OOAa/ON X-Received: by 2002:aa7:c6cd:0:b0:461:87ab:3255 with SMTP id b13-20020aa7c6cd000000b0046187ab3255mr29319eds.193.1666971847935; Fri, 28 Oct 2022 08:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666971847; cv=none; d=google.com; s=arc-20160816; b=vWriuif0B8zVenwQncClPwy3l+M0BJ6luWN3JuqptWc98Q9PA+C+QzSkgbanjXbJgx 3M01k58am1OVKws/ZCOaZfRdXZzzqapoB+9pO70qp/Up2jos+7dIqcO3SU44s+5kjoRf /g/ACoC2SvPPpppYhLr4LiDim/E3uqNHDmGXMGVIfHe11258UgbQojssSagDzNZSXzo2 cvhyIRstIKqWmog/YlfP+3bG8NWcp7P/fKXXt1j0lqNQGGkAWows0B3yzXW2l+oW3F/N n4q//W5YVmXEV87J7UPB88ejKsAusqCVZGG30d5q/I3L1+1fj6+RgSdgTrNB73LGhZKP RsDQ== 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=eBnZz2bwg+asXyhpEwhxnZxZItsSvwXg6AVLhzxjJ/I=; b=WhJjO28DyOabVuHKCoDx6V36/bK5USSiz9gwASts2rTmSxrlUf6oPd0FRRACtoZurY e91AGn1fO7xxwlWAd/YRXeKLw5lIxEbHxXdW5JTnV14UWLwjhJ6mZe5mypTN9uCx8CDt p58cR/JLILsEw80sEufjU7PH5ba/T/gxl/XrVtDwA4/M9s1HSyvB2Sr6VTHZXBgEvK/k 2FyLX92CWmS+PUerU6rDmSr5SLnCcXjtm1Jy7P5P8X5k9Q7fHh+DNuyKMwwZ8HyHrY8m tr7jDaY/Y4IlceoTDuo/yyTMlPfQxYN34PwlmiepSuf2fB+gfY2+tuiR81wqvQ7mzMVO aXRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=I9s0jCE8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a170906c00700b0078d20d71475si4997968ejz.413.2022.10.28.08.43.44; Fri, 28 Oct 2022 08:44:07 -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=@gmail.com header.s=20210112 header.b=I9s0jCE8; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230452AbiJ1PgO (ORCPT + 99 others); Fri, 28 Oct 2022 11:36:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbiJ1Pfm (ORCPT ); Fri, 28 Oct 2022 11:35:42 -0400 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9898C467; Fri, 28 Oct 2022 08:35:36 -0700 (PDT) Received: by mail-ej1-x629.google.com with SMTP id 13so13836582ejn.3; Fri, 28 Oct 2022 08:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eBnZz2bwg+asXyhpEwhxnZxZItsSvwXg6AVLhzxjJ/I=; b=I9s0jCE8baVJL5Fi1BA2sAhKWfMPYYqdgnPV9FQQwAHy2lkzCej7xDuUJv2GueKpWN SuHWVNfQBIyiJtfGGAjSr/+Uv8/B0Qcdz2AV8OyZDuFjnoXu5kUM5sqqu/DbL2G60Ygc Z2yU5U1Y7cJHWOspeCaGH4RQ+7soh3QMj2owp2tY55xvRsr+69fQ/cBsFL3JuCVJbCET O0cjjqbW1rd0k3MVDqPUw0/fLbUS1kCJeCC8YRoJ+gcyY/2DqTM1Hj95fuZxtcx5K8PW 1lCetdu933POsP4oTtC3+441W+2dNKtB5EcBNm1GnqyvzeTWlNldxcFXZ9O1x7an/NkL ZzTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eBnZz2bwg+asXyhpEwhxnZxZItsSvwXg6AVLhzxjJ/I=; b=qPZHop/bOhZeLluO6NP6ZDhDRg+x/PQk/yL6Ii9qKz/0QRDLHv4qSiFKQhwNxKy4qo DPiYTUzvmdW8gq2pb50NQwsUKswnyccgF3feKbLdBXQThXdHgVBc8ChV2un/mvUgJCNV fGTufmHcGC0RuWuGYb+euKtjjcoUFZT5orEXBEBtcqVLtsPnS2G2YJM11BTMH4nUJbFM /qo2+9TSlJENlDkLE6IUv01jl7XT2weeS79jv2m2/4cOPv4p7iGj9B9eD3LTHZxbzXbm EdHPYfr2odbhdsGwFagp3P6Cw8x42FnRDmOAKOC8kQhXqqOCjCRbQEQeo9ot+Kdz6ODd LU3w== X-Gm-Message-State: ACrzQf1fhrty0p8QazI28KhUx+mi8Ub1fJ96VCxmbEhq5MmWnwoWheer 2mDd/vW4iTm774+krCtyG6w= X-Received: by 2002:a17:907:7f25:b0:7aa:acf9:c07e with SMTP id qf37-20020a1709077f2500b007aaacf9c07emr21151819ejc.280.1666971335002; Fri, 28 Oct 2022 08:35:35 -0700 (PDT) Received: from localhost.localdomain ([95.183.227.98]) by smtp.gmail.com with ESMTPSA id ds12-20020a0564021ccc00b00461aebb2fe2sm2830635edb.54.2022.10.28.08.35.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 08:35:34 -0700 (PDT) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Sean Wang , Andy Teng , AngeloGioacchino Del Regno Cc: Yassine Oudjana , Yassine Oudjana , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 07/13] dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Pull pinctrl node changes from MT6795 document Date: Fri, 28 Oct 2022 18:34:59 +0300 Message-Id: <20221028153505.23741-8-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221028153505.23741-1-y.oudjana@protonmail.com> References: <20221028153505.23741-1-y.oudjana@protonmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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?1747946672375630776?= X-GMAIL-MSGID: =?utf-8?q?1747946672375630776?= From: Yassine Oudjana mediatek,pinctrl-mt6795.yaml has different node name patterns which match bindings of other MediaTek pin controllers, ref for pinmux-node.yaml which has a description of the pinmux property, as well as some additional descriptions for some pin configuration properties. Pull those changes into mediatek,mt6779-pinctrl.yaml in preparation to combine the MT6795 document into it. Signed-off-by: Yassine Oudjana --- .../pinctrl/mediatek,mt6779-pinctrl.yaml | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml index a2141eb0854e..23b1f7867afb 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml @@ -111,19 +111,21 @@ allOf: - "#interrupt-cells" patternProperties: - '-[0-9]*$': + '-pins$': type: object additionalProperties: false patternProperties: - '-pins*$': + '^pins': type: object description: | A pinctrl node should contain at least one subnodes representing the pinctrl groups available on the machine. Each subnode will list the pins it needs, and how they should be configured, with regard to muxer configuration, pullups, drive strength, input enable/disable and input schmitt. - $ref: "/schemas/pinctrl/pincfg-node.yaml" + allOf: + - $ref: pinmux-node.yaml + - $ref: pincfg-node.yaml properties: pinmux: @@ -134,9 +136,25 @@ patternProperties: bias-disable: true - bias-pull-up: true - - bias-pull-down: true + bias-pull-up: + oneOf: + - type: boolean + - enum: [100, 101, 102, 103] + description: Pull up PUPD/R0/R1 type define value. + description: | + For normal pull up type, it is not necessary to specify R1R0 + values; When pull up type is PUPD/R0/R1, adding R1R0 defines + will set different resistance values. + + bias-pull-down: + oneOf: + - type: boolean + - enum: [100, 101, 102, 103] + description: Pull down PUPD/R0/R1 type define value. + description: | + For normal pull down type, it is not necessary to specify R1R0 + values; When pull down type is PUPD/R0/R1, adding R1R0 defines + will set different resistance values. input-enable: true