From patchwork Tue Jan 11 20:13:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12710601 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 ADA3CC433EF for ; Tue, 11 Jan 2022 20:17:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=hnnMCxCLxEBJm71+9vV6VJlTmaNGhI1o5FVdzb1pf0k=; b=QP1JpC2Hf2DRdG XICz9UpKwN7lzrJo/IH2ISMaQrNiNMHrwxmQMa85WHoScwtXazQ9GcmSSvmIRSKfUZyb5pU6HMi3E pC9jXjipV5g0ksT1lAEPd3dESASKcDUCw0d8t9nKtIOLdgA4xDwE5vFx14BwqCUeoEVCY2tt0wOIK JAC7ttdvuoHkFONysezPysDHmk2s5C8+xkVJ3lOP2SS0Tnq3AS78Sc5S+OFiDyJjs2GIaH7SxWVk3 iE+xLaiHsyTNf5eSJ1sZDMH+ULvfwZ76189QGEEUj2ec8rDYIqXu6YQNw3nRedG1jrDvCCOSDuj4c a5QnUm2+J0Lb+bm7pfLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7NYo-00HW8i-PU; Tue, 11 Jan 2022 20:16:02 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7NYD-00HVrJ-P8 for linux-arm-kernel@lists.infradead.org; Tue, 11 Jan 2022 20:15:28 +0000 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id E2374402FC for ; Tue, 11 Jan 2022 20:15:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1641932116; bh=lPhJuPIv3O/CdoWKkJQZ8TgTKphU5KVeriAN8qLF+3w=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=KUBP2Ir70IWvqjEXw0EGDTz9JhaWbWSu8CdRwBru0AzZ3qdi9gNvcA1ikSXEnrbuK VMHAnnXpO5hdLreCfsgPrIJMeK3vOKQv3ds3Xru0bhlHxsZjmBV0g6uo7EtiKTIQY3 FD7uz4+P4EHjTOVOOxbqLjD7RIsSSxvz+Uo+VqfkzOdpREBCiGLYeITiIvkfGfTF2s SBAEPqhpV8bwsniKmJ+t2clIPY2vu6YVpgbIBrDzMupYIuWjH8T8hBe3+q0L6JeFOo OAz4WkcbtnLMBr5QVCIzIiWbzaDHinf9vTLJgTDH+s39FbA9mwrrlO7/3j4UrcLyJu N/Gtn8TwKYeFQ== Received: by mail-ed1-f71.google.com with SMTP id t1-20020a056402524100b003f8500f6e35so192683edd.8 for ; Tue, 11 Jan 2022 12:15:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lPhJuPIv3O/CdoWKkJQZ8TgTKphU5KVeriAN8qLF+3w=; b=BIoxEDYTCLPVHzBRJ04qLtlD+Vb1x+2rzs0BEYZIFflP/nbxzKXMX1gnnLUZ0DpMcQ AI4guR4xcR5CrD/M2LIRii+xvK0D5hC+zbzkUBMIDYdxv1CIqvT1GMe5+jM1lBSxDZlB gJkubDyK+gZf3e068wJMJlkJsRUtQf54ZW2CFg/IuZzli47PDZsNlnixTyzDLac2n8BJ VsRbIkoXfPxqe6E2HMix2L9yBOir8dJAh5aVR311txE0sVnZjDSyV1pSE0FCRJdnXkWk +X/AVACevkUtq58tYMosPRGTWkUmhCPjr+W/a6MC03p0wMkwSrra5sQ/KDYsYCJVfzb0 c06w== X-Gm-Message-State: AOAM531iNJG7l1bXKNLUIBhAWSaxAhseBn6UuZOuHekKH2WyP0371Svw 2D7CW7UrbZw910gFFhjWrm31xMfbhsyvRSVCi/WhY39BhqUJJYwD7zfOR+uU0ZkysrU9FKF+2eN Ge8FCbY0PRUEz6Wka9VI84OFSWskHHHUtoo3sUFDQ7l+eYxTVwYPH X-Received: by 2002:a17:906:1405:: with SMTP id p5mr4956191ejc.113.1641932116241; Tue, 11 Jan 2022 12:15:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaxUmxBzgzWGTbTGdz1mYjm0oVEAku2/BN2r0BtcEZ2s0exOxr22WH6LCKYnzoXk7FithEBQ== X-Received: by 2002:a17:906:1405:: with SMTP id p5mr4956173ejc.113.1641932116052; Tue, 11 Jan 2022 12:15:16 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id f23sm3852212ejj.128.2022.01.11.12.15.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jan 2022 12:15:15 -0800 (PST) From: Krzysztof Kozlowski To: Tomasz Figa , Krzysztof Kozlowski , Sylwester Nawrocki , Linus Walleij , Rob Herring , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Sam Protsenko , Chanho Park , Alim Akhtar Subject: [PATCH v2 00/28] pinctrl: dt-bindings: samsung: convert to dtschema Date: Tue, 11 Jan 2022 21:13:58 +0100 Message-Id: <20220111201426.326777-1-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220111_121526_001843_B82F4E55 X-CRM114-Status: GOOD ( 17.07 ) 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 Hi, Changes since v1 ================ 1. Patch #1: add missing pin assignment (Alim). 2. Patch #2: correct double sizeof() (Alim). 3. Patch #7, #8: put label-override in proper patch (Alim). 4. Patch #24: Extend doc, change the 'if' clause for wake-up interrupts. 5. New patches: #25 - #28. Exynos850 and ExynosAutov9 seems to be different in pin ctrl interrupt handling, so they need their own compatibles. Please kindly review and provide feedback on these as I do not have details. 6. Add review tags. Dependencies ============ 1. Patch #2 ("pinctrl: samsung: accept GPIO bank nodes with a suffix") is necessary for DTS patches. 2. Last patches #27 and #28 depend on patch #26 adding the compatibles. Best regards, Krzysztof Krzysztof Kozlowski (28): pinctrl: samsung: drop pin banks references on error paths pinctrl: samsung: accept GPIO bank nodes with a suffix ARM: dts: exynos: drop unused pinctrl defines in Exynos3250 ARM: dts: exynos: simplify PMIC DVS pin configuration in Odroid XU ARM: dts: exynos: override pins by label in Peach Pit ARM: dts: exynos: simplify PMIC DVS pin configuration in Peach Pit ARM: dts: exynos: override pins by label in Peach Pi ARM: dts: exynos: simplify PMIC DVS pin configuration in Peach Pi ARM: dts: s3c64xx: drop unneeded pinctrl wake-up interrupt mapping ARM: dts: exynos: align pinctrl with dtschema in Exynos3250 ARM: dts: exynos: align pinctrl with dtschema in Exynos4210 ARM: dts: exynos: align pinctrl with dtschema in Exynos4412 ARM: dts: exynos: align pinctrl with dtschema in Exynos5250 ARM: dts: exynos: align pinctrl with dtschema in Exynos5260 ARM: dts: exynos: align pinctrl with dtschema in Exynos5410 ARM: dts: exynos: align pinctrl with dtschema in Exynos542x/5800 arm64: dts: exynos: align pinctrl with dtschema in Exynos5433 arm64: dts: exynos: align pinctrl with dtschema in Exynos7 arm64: dts: exynos: align pinctrl with dtschema in Exynos850 arm64: dts: exynos: align pinctrl with dtschema in ExynosAutov9 ARM: dts: s3c24xx: align pinctrl with dtschema ARM: dts: s3c64xx: align pinctrl with dtschema ARM: dts: s5pv210: align pinctrl with dtschema dt-bindings: pinctrl: samsung: convert to dtschema dt-bindings: pinctrl: samsung: describe Exynos850 and ExynosAutov9 wake-ups pinctrl: samsung: add support for Exynos850 and ExynosAutov9 wake-ups arm64: dts: exynos: use dedicated wake-up pinctrl compatible in Exynos850 arm64: dts: exynos: use dedicated wake-up pinctrl compatible in ExynosAutov9 .../pinctrl/samsung,pinctrl-gpio-bank.yaml | 52 +++ .../pinctrl/samsung,pinctrl-pins-cfg.yaml | 81 ++++ .../samsung,pinctrl-wakeup-interrupt.yaml | 106 +++++ .../bindings/pinctrl/samsung,pinctrl.yaml | 392 ++++++++++++++++++ .../bindings/pinctrl/samsung-pinctrl.txt | 383 ----------------- MAINTAINERS | 2 +- arch/arm/boot/dts/exynos3250-artik5.dtsi | 10 +- arch/arm/boot/dts/exynos3250-pinctrl.dtsi | 165 ++++---- arch/arm/boot/dts/exynos4210-i9100.dts | 30 +- arch/arm/boot/dts/exynos4210-origen.dts | 2 +- arch/arm/boot/dts/exynos4210-pinctrl.dtsi | 226 +++++----- arch/arm/boot/dts/exynos4210-smdkv310.dts | 4 +- arch/arm/boot/dts/exynos4210-trats.dts | 6 +- .../boot/dts/exynos4210-universal_c210.dts | 12 +- arch/arm/boot/dts/exynos4412-galaxy-s3.dtsi | 4 +- arch/arm/boot/dts/exynos4412-itop-elite.dts | 2 +- .../boot/dts/exynos4412-itop-scp-core.dtsi | 2 +- arch/arm/boot/dts/exynos4412-midas.dtsi | 30 +- .../boot/dts/exynos4412-odroid-common.dtsi | 8 +- arch/arm/boot/dts/exynos4412-odroidx.dts | 2 +- arch/arm/boot/dts/exynos4412-origen.dts | 4 +- arch/arm/boot/dts/exynos4412-p4note.dtsi | 44 +- arch/arm/boot/dts/exynos4412-pinctrl.dtsi | 252 +++++------ arch/arm/boot/dts/exynos4412-smdk4412.dts | 4 +- arch/arm/boot/dts/exynos5250-arndale.dts | 2 +- arch/arm/boot/dts/exynos5250-pinctrl.dtsi | 220 +++++----- arch/arm/boot/dts/exynos5250-smdk5250.dts | 2 +- arch/arm/boot/dts/exynos5250-snow-common.dtsi | 22 +- arch/arm/boot/dts/exynos5250-snow-rev5.dts | 2 +- arch/arm/boot/dts/exynos5250-snow.dts | 2 +- arch/arm/boot/dts/exynos5250-spring.dts | 20 +- arch/arm/boot/dts/exynos5260-pinctrl.dtsi | 148 +++---- arch/arm/boot/dts/exynos5260-xyref5260.dts | 2 +- arch/arm/boot/dts/exynos5410-odroidxu.dts | 22 +- arch/arm/boot/dts/exynos5410-pinctrl.dtsi | 170 ++++---- arch/arm/boot/dts/exynos5410-smdk5410.dts | 4 +- arch/arm/boot/dts/exynos5420-arndale-octa.dts | 2 +- arch/arm/boot/dts/exynos5420-peach-pit.dts | 89 ++-- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 194 ++++----- arch/arm/boot/dts/exynos5420-smdk5420.dts | 6 +- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 2 +- .../boot/dts/exynos5422-odroidxu3-common.dtsi | 6 +- arch/arm/boot/dts/exynos5800-peach-pi.dts | 89 ++-- arch/arm/boot/dts/s3c2416-pinctrl.dtsi | 60 +-- arch/arm/boot/dts/s3c6410-mini6410.dts | 4 +- arch/arm/boot/dts/s3c64xx-pinctrl.dtsi | 210 +++++----- arch/arm/boot/dts/s3c64xx.dtsi | 16 +- arch/arm/boot/dts/s5pv210-aquila.dts | 2 +- arch/arm/boot/dts/s5pv210-aries.dtsi | 40 +- arch/arm/boot/dts/s5pv210-fascinate4g.dts | 12 +- arch/arm/boot/dts/s5pv210-galaxys.dts | 16 +- arch/arm/boot/dts/s5pv210-pinctrl.dtsi | 226 +++++----- .../boot/dts/exynos/exynos5433-pinctrl.dtsi | 211 +++++----- .../dts/exynos/exynos5433-tm2-common.dtsi | 259 ++++++------ .../boot/dts/exynos/exynos7-espresso.dts | 6 +- .../boot/dts/exynos/exynos7-pinctrl.dtsi | 176 ++++---- .../boot/dts/exynos/exynos850-pinctrl.dtsi | 52 +-- arch/arm64/boot/dts/exynos/exynos850.dtsi | 4 +- .../boot/dts/exynos/exynosautov9-pinctrl.dtsi | 50 +-- arch/arm64/boot/dts/exynos/exynosautov9.dtsi | 2 +- drivers/pinctrl/samsung/pinctrl-exynos.c | 4 + drivers/pinctrl/samsung/pinctrl-samsung.c | 87 +++- 62 files changed, 2261 insertions(+), 2003 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-gpio-bank.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-pins-cfg.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml delete mode 100644 Documentation/devicetree/bindings/pinctrl/samsung-pinctrl.txt