Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2224299rwb; Wed, 5 Oct 2022 10:48:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5GAe3YUEep4yXWwTQ2HbqUWdcsJpll+dkCpw6/oDqTe1GfT97XcoRUEvQMrIac7ZHbsB/4 X-Received: by 2002:a65:58c8:0:b0:438:aecf:5cc8 with SMTP id e8-20020a6558c8000000b00438aecf5cc8mr841409pgu.18.1664992107891; Wed, 05 Oct 2022 10:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664992107; cv=none; d=google.com; s=arc-20160816; b=wU/VZ1Xq3G0v9IouPDNrR1bTSA7A2Mp91tANHXkBaZAtx9Pj2hF8B41rPvpT9nQ+3L xg0Dlu2ZaOmp0qeSW0jT0YvBmdndubRdAVSfzx2GaxBbyZcR6TeWeOrnyDV7PH9xg8m/ FRvlBijs/ogyYClbGFU3Q4E82b+ScoHLxS8ObIIbCMYr+fLz43i/o5YY7yLJxYtEIKNC I2gqbJjkzC/J1uOxr08fHKBT8OX+HsCZQEMzDWKwhXj0N32K/byyb7D3dGsJfK5sPYOT p/etUb+voN5/QH1hWWfGcNsqJNulkWlkHYLdlh7jFh4tm4duev2sManq4uP5UnNv/Muo IWaQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=GOiHBfmaA8z/8lz5HmFRwUhuxBOZwEnbSHtvAmKlLks=; b=NFd6QQWQukwG51GRAVkixfmosVswgdDnP4eRD9lrAMUHKdf5v5fnKOHp37L0X857Ko JyOrQ42SPejfYsV9r0oSCs26KQpJf3kQpLo8d6soKYujUTaXQ1J40qUsjagysx1LbLKf GDjIpMANvEj55QsE9mUDqQHtf+y2VklUbk44DCAnP2LrUc0GbPiEh5IsFiI/STXjAUhQ NGzonEJFq8aQ4HMLJYQQ5jiIs4GmFj9f76Oufb49TIkv3ot+gW+CMYjj1W28DPewBEqz blogU9LjYXGRKs//cSTVgMAO1LCJvJEt5LEW8oOwlToSGBsEBBbb0XCXhxN1HiyZgJuC WT5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f41LOjao; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020aa78f33000000b0053e989053f9si7396920pfr.114.2022.10.05.10.48.15; Wed, 05 Oct 2022 10:48:27 -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=f41LOjao; 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 S230381AbiJERoS (ORCPT + 99 others); Wed, 5 Oct 2022 13:44:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230221AbiJERoQ (ORCPT ); Wed, 5 Oct 2022 13:44:16 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 889E575CC5; Wed, 5 Oct 2022 10:44:15 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id bk15so27002586wrb.13; Wed, 05 Oct 2022 10:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=GOiHBfmaA8z/8lz5HmFRwUhuxBOZwEnbSHtvAmKlLks=; b=f41LOjaowwAFIOKK1Wtv2Lc0LAIPKpAIhKiF6Vssrb6pni0YVqAU0fw+N0lvbGDTcs MT8Kh6FYoKq77cx5YjBl4tcSiNjSDLoDwD22O73C4mmwzzVYxPzLApO4TnUm5sJg2clk 4SwYXCdbBiUgxLg8W3Z8lA1/S5iMk6/iXjm1WJuv42mjnFQGNnyqLqMrPIOK+KJm2b3a WIlnX4YcpyW/bk0Tiv396NcEgjNMJy5enbP8zrjab43rxe9KvhHyBexwBN8QGV3AL6t3 WhjjUtPOV0WU+bcnKg593+K7qi/eST9i4G+vZvuq01z8CHiu63EWS+lSNPCQYBUXsXZQ laYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=GOiHBfmaA8z/8lz5HmFRwUhuxBOZwEnbSHtvAmKlLks=; b=lHGRc59A1kyL5ugiTemD+1o+VIO0NjLDKPM64ARJk+O2DnMvwDYNZet6WBlcrd77Jx REdoojNZO7K9tYjQYnTaryHpv+YQI/DWXQd5DB+E8TOuz0B0qKkKLNLCGpPVi2X1m2P6 fkE6GEY0FQOKzDuHmK9SJj1H3PvQFVp2CWTDrwQDRQKuD6VRMurda9a3soio5CkgNE5I lC2Ub0S8pH85o53e/uKnYi0JTf48n8nlOAoqJ24duz66BOsm5PFrqkXE6e8jtn6ISwz4 dMNTOafDSyOFIQTHQGJ6nj17T/KXUZAoN4PE0VuqfN5rscDE82BBFp63VmBtGkDtMWcF 2JOw== X-Gm-Message-State: ACrzQf2ttPS240YVxoEcDOsGoHxoAHwqD9VAV/pRlX47Jrxd54tewtxt nRgRa/QIDDPJ4YEq0R2NJ4yryoxgRqI7UA== X-Received: by 2002:adf:d1e3:0:b0:22a:b9e2:8841 with SMTP id g3-20020adfd1e3000000b0022ab9e28841mr549084wrd.184.1664991853975; Wed, 05 Oct 2022 10:44:13 -0700 (PDT) Received: from localhost.localdomain ([95.183.227.98]) by smtp.gmail.com with ESMTPSA id c6-20020a5d4146000000b0022a403954c3sm16075491wrq.42.2022.10.05.10.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 10:44:13 -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 v2 00/10] MediaTek pinctrl DT binding cleanup and MT6735 pinctrl support Date: Wed, 5 Oct 2022 20:43:33 +0300 Message-Id: <20221005174343.24240-1-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Yassine Oudjana This series adds a driver for the pin controller found on the MediaTek MT6735 and MT6735M SoCs. The two differ in the last 6 physical pins, which are used for MSDC2 on MT6735 but don't exist on MT6735M (since MSDC2 doesn't exist on it to begin with). In preparation to document DT bindings for this pin controller, the existing documents for MT67xx SoCs are combined into one in order to eliminate duplicate property definitions and standardize pin configuration node names. Necessary cleanup is done along the way. Changes since v1: - Combine other documents into existing mediatek,mt6779-pinctrl.yaml instead of creating a new document with wild card in its name. - Split first patch into smaller patches focused on specific changes. - Remove syscon compatible from MT6779 DT to avoid a check error. - Fix interrupt count for MT6795. Yassine Oudjana (10): arm64: dts: mediatek: mt6779: Remove syscon compatible from pin controller dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Improve description dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Make gpio-ranges optional dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Add MT6797 dt-bindings: pinctrl: mediatek,pinctrl-mt6795: Fix interrupt count dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Add MT6795 arm64: dts: mediatek: mt6797: Make pin configuration nodes follow DT bindings dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Document MT6765 pin controller dt-bindings: pinctrl: mediatek,mt6779-pinctrl: Document MT6735 pin controller bindings pinctrl: mediatek: Add MT6735 pinctrl driver .../pinctrl/mediatek,mt6779-pinctrl.yaml | 247 +- .../pinctrl/mediatek,mt6797-pinctrl.yaml | 176 - .../pinctrl/mediatek,pinctrl-mt6795.yaml | 224 - MAINTAINERS | 10 +- arch/arm64/boot/dts/mediatek/mt6779.dtsi | 2 +- arch/arm64/boot/dts/mediatek/mt6797.dtsi | 20 +- drivers/pinctrl/mediatek/Kconfig | 6 + drivers/pinctrl/mediatek/Makefile | 1 + drivers/pinctrl/mediatek/pinctrl-mt6735.c | 584 +++ drivers/pinctrl/mediatek/pinctrl-mtk-mt6735.h | 3993 +++++++++++++++++ 10 files changed, 4809 insertions(+), 454 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,mt6797-pinctrl.yaml delete mode 100644 Documentation/devicetree/bindings/pinctrl/mediatek,pinctrl-mt6795.yaml create mode 100644 drivers/pinctrl/mediatek/pinctrl-mt6735.c create mode 100644 drivers/pinctrl/mediatek/pinctrl-mtk-mt6735.h -- 2.38.0