From patchwork Fri Oct 11 12:03:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 13832487 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 85A9ACFD36B for ; Fri, 11 Oct 2024 12:15:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PPy/JaEQ+74CM7BsiYWdUowzUF5iiUzU6luFBpGHCd4=; b=EpLKZvzZVlVIr04pwAe29ZTwm+ oBu8iK3yPMZcPzcPU6AwL6HpztShOa9wzQ9Y8t/JWstYCgfJW9gsBrUzf+7SDRO1QiDMlChZu/t6p cVEyhZzO+MRgoTRKI0pJl74fLW6cNKC12QFe1YuYhsROiAPH5tAyz25ovpyI6vgEabjzOfGn/Livl kpUJ3Y1AoRS9slODXUjq0NyeOvxGK6dYYN6FhLHyyeUODKp8oWWsvZQhF+pfgZeFq7cC4aZva+2eB GWmYIGE3HA3yF+538rGJ4XT88TmSiZGrn71S+hRRjoFcRl9/gcXgwEQjS7RFpTq2IV/5IQ4OYj9ui SsKPXe2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szEYP-0000000GGAl-49HG; Fri, 11 Oct 2024 12:15:34 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szEPU-0000000GDxv-3Yke; Fri, 11 Oct 2024 12:06:24 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5c89e66012aso2759971a12.2; Fri, 11 Oct 2024 05:06:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728648379; x=1729253179; darn=lists.infradead.org; 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=PPy/JaEQ+74CM7BsiYWdUowzUF5iiUzU6luFBpGHCd4=; b=YAVB1ChK9g0pqjaCVomFRkmGzH0z/mkz06f+1rErIV0cQU+ZC3OTrpntQ0FgYX7hQa WEw49HiJlJx0CBSSUHghBpRycZNvhxgfdGNg84pErff9sezTCQjV/pBlWmFu6a09LElL dOvPUSS2VKCd8M4X2sayVI5J1oj6kHD8c0hcnTr8jZX2KU5GVF5RNwpmykD4XDMTaL0s RJqTshlzBJ5++5c0HjMz8oyPy4Un6N/LtLKsaZzr3Yw5otRqaXF4Uhs10oUkfenE08fC +YSHHLJrDFqZK4lSkBQIlS6ofB/epnIWk3Juwsr7be8wpJ2aO1YgdPSQGvX3RKX0pV8p aUnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728648379; x=1729253179; 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=PPy/JaEQ+74CM7BsiYWdUowzUF5iiUzU6luFBpGHCd4=; b=Xp5PXNw7meSLK+sjxC+PVhg11lxn0UUlMjRHa8V5k/Cf++rP5WzDcf9dxIAGlmnk2M 7z5ugcKQvj+xiQKVHT+BjfPbdk/uTw6VLifZwwlU+krJ9Q4Pq8JGlp9DDqSc9zYCRfjR 7Ptbt2qnZL6UiU/SZPKL9KFvqPlJeRCuCG9rMQcwO9ytG9R2B6o9EIHcxfN58VqU4aeT iLNU4pDq52IszW9m4KIdV9UyIFZGEkTAe5nd9l1XL6OVDvgGRJqBnt2o6+5xfWKPIp0F WqEf3Qc/q607eSxMJTi1kGtGb64NnwsVUgtrzWLTIU2uxc3lm0UI05HfuXKs8ZexLN9B /YSQ== X-Forwarded-Encrypted: i=1; AJvYcCUtVeD8mdNezNpitV31md+QL/dlMk/knWQhvxQRW+0kw22PBiaHjifhxKhCZnqN8UdEFAJ3eI+rMSINLwYt5Kg=@lists.infradead.org, AJvYcCW/kHnrSAfYrY6z0EqLYGJ3YcgC1nqtSNySH6+FF9McLLIMfqW4Ra5vkBVqR/SYRbkKfaIQxBzFL+J/5BgW/w7M@lists.infradead.org X-Gm-Message-State: AOJu0YyHFXuZG/obJuMhs4vgr27UWg/8A+gVB3peBES46psbUCf4og9J VGQS0i5OjWlJRo9Ly/Z+5c0+fByb/qUrzIXHdpUd9m2sC5TQcOUh X-Google-Smtp-Source: AGHT+IHL7ir630nJdNiKICbi8J/5EQ5uJqoVEV3o00M0P7xZFlkxzQf9s6O78G/qMtzdw43r7wVWrw== X-Received: by 2002:a17:907:d847:b0:a99:4b63:f810 with SMTP id a640c23a62f3a-a99b9604801mr214567666b.46.1728648379448; Fri, 11 Oct 2024 05:06:19 -0700 (PDT) Received: from zenbook.agu.edu.tr ([95.183.227.31]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a99b804ea59sm88962366b.151.2024.10.11.05.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 05:06:18 -0700 (PDT) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Sean Wang , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Yassine Oudjana , Yassine Oudjana , Andy Teng , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v6 7/8] dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Document MT6735 pin controller Date: Fri, 11 Oct 2024 15:03:52 +0300 Message-ID: <20241011120520.140318-8-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241011120520.140318-1-y.oudjana@protonmail.com> References: <20241011120520.140318-1-y.oudjana@protonmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241011_050620_984076_B3E63F8B X-CRM114-Status: UNSURE ( 9.61 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Yassine Oudjana Add bindings for the pin controllers found on MediaTek MT6735 and MT6735M SoCs. The pin controllers on those SoCs are generally identical, with the only difference being the lack of MSDC2 pins (198-203) on MT6735M. Signed-off-by: Yassine Oudjana Reviewed-by: Rob Herring Reviewed-by: AngeloGioacchino Del Regno --- .../pinctrl/mediatek,mt6779-pinctrl.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml index 4bfbaebb790c3..814a534038665 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt6779-pinctrl.yaml @@ -10,6 +10,7 @@ maintainers: - Andy Teng - AngeloGioacchino Del Regno - Sean Wang + - Yassine Oudjana description: The MediaTek pin controller on MT6779 is used to control pin functions, pull @@ -18,6 +19,8 @@ description: properties: compatible: enum: + - mediatek,mt6735-pinctrl + - mediatek,mt6735m-pinctrl - mediatek,mt6765-pinctrl - mediatek,mt6779-pinctrl - mediatek,mt6795-pinctrl @@ -62,6 +65,42 @@ required: allOf: - $ref: pinctrl.yaml# + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt6735-pinctrl + - mediatek,mt6735m-pinctrl + then: + properties: + reg: + minItems: 8 + maxItems: 8 + + reg-names: + items: + - const: gpio + - const: iocfg0 + - const: iocfg1 + - const: iocfg2 + - const: iocfg3 + - const: iocfg4 + - const: iocfg5 + - const: eint + + interrupts: + items: + - description: EINT interrupt + + patternProperties: + '-pins$': + patternProperties: + '^pins': + properties: + drive-strength: + enum: [2, 4, 6, 8, 10, 12, 14, 16] + - if: properties: compatible: