From patchwork Mon Apr 8 09:05:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13620830 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 D3AA3CD1292 for ; Mon, 8 Apr 2024 09:05:35 +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=3z2uG1czK2Aa8X3o+8Lv1Uq9bU2QBDGYWbLqCHYZ53I=; b=zYfKPH0WDx+4ap VXycOiF0birm4K1QcrlqtWWkfrB9gCwdkv/ftyAtntKbdq+2JBJusFO4N+csQ14uHP7sZI215gqPg f5jK/pGjMeZ5ALTYtkXc+DEaKRYnwlvMpy6rtNEV86Jf1BZU2Np2mbgy3ew7ia4xbuEp2DYJJPFKv NlROTe4/SYiQwnDBGI7vJNm32ArxgqDj3b2HHEIWPGxjJnTCmIJQQdtP4dk54ScdBbWez6GAwJgHe v26ZTfzTIEr14EalDG7idfblZ/97GC8p9nMBbg09/QeICrBDoi+I+eL2jnO7bnt6AhWPyvobZTxV4 ho//gbOE3cseaugW0O4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtkwK-0000000F0pW-33gY; Mon, 08 Apr 2024 09:05:20 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtkwH-0000000F0oR-1qeh; Mon, 08 Apr 2024 09:05:18 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a4715991c32so595147766b.1; Mon, 08 Apr 2024 02:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712567114; x=1713171914; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0VdWl81xUkhQ/9Yp0vD3aydPnMUvCiiOMIXPQn+0VSc=; b=e18vLiRxrVAT4NDjjXnV2iUsCIdWFEyGTf29TnyBul9y5bwN4fBRGp3iuIna5aWjh2 3OfZloU3nOH9V/Jc2DYmPqEeDjnsEOrLLFUalZafwKPJ6/k/exVYZNvDUjOnLnmVs02A Ghjc4kdwnlKMAf4fMyj78l4UfQq8fqp3BktyscPewV9fZJzF1uJvHXzGsZrjuxoRD9+8 OS1Tr9Lm/4sCzXHbsf+6mHj6HgWpwkzJ4MNkrGYU31Ab0bueN2GtdDSwWd5q0UkCuiop fyn333nlUtWB0d/0ra8HJJOw5PSRLO4PYJnSPUJrsAt7o9BiX4Bgjy897D3y19lDD4M2 kAhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712567114; x=1713171914; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0VdWl81xUkhQ/9Yp0vD3aydPnMUvCiiOMIXPQn+0VSc=; b=mmIcdCUdqM+VswErRKABrWb9Tv/LRTbReEAlxHRns/pDMx+qE+l4XcGhgd/flvCKth uQxPbq2AebpZMXJyiTcDreKOSVfv6R5v2IoWC313kk+xt3QjNZiyF6EKFsnCAJ9lZBHe WRX3XZLbGeR4des8TumtApmcm+2BSc7fc9gzd0NmNXZVBzvibG1Xao+NaJBd3Fl7yptD 1IBGd6ce2MHashu2miAOLYRDM+Kn8q9zfY2PlIasmfssZeEgvPMV+CJT2leonaPe0nbS nfv0YEUxoOf3NfdEBc+lQv+q2VSxR+8VYxvHZXvBc1lEcwuXtRr+qCMpixueM8T0eNaD 6o1g== X-Forwarded-Encrypted: i=1; AJvYcCVGTr3CTVqEqwMX8DFie5TITXse7+E9LKyCU6NFxrUSf1Lgg8k/Bh62OulQnxfhK632Te3GHfSoSbU1F6g/VZI7L6bhBck8fVPC3x1USomfmlqpaMH5nCBPeN9q5zTrf6Pu+ocPtdC11noxuX3g7kzYA+VVjkkZIE0= X-Gm-Message-State: AOJu0YyCdUNH9TKMdzlRYYluweYxdYWS/JluQavZ0DKleXHrnG3KxmPI soD9La2Pi2f5NTG0/ZPb3T588uC5+Kcgc04QthGt7pPjW1s6Wc2K X-Google-Smtp-Source: AGHT+IHoDPHjMBvKWWxI6l+a/pOx5BO9ETXLbsUsMeGrQvdnDpuv/Gs2Dn58wW/rDjO9l2t+4A7cUg== X-Received: by 2002:a17:907:84b:b0:a51:df52:5a65 with SMTP id ww11-20020a170907084b00b00a51df525a65mr608198ejb.2.1712567113914; Mon, 08 Apr 2024 02:05:13 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id h1-20020a170906718100b00a51bd3bfec3sm2773969ejk.121.2024.04.08.02.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:05:13 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Sean Wang , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Matthias Brugger , AngeloGioacchino Del Regno , Hsin-Yi Wang , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 1/3] dt-bindings: pinctrl: mediatek: mt7622: fix array properties Date: Mon, 8 Apr 2024 11:05:04 +0200 Message-Id: <20240408090506.21596-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_020517_519407_D31C4359 X-CRM114-Status: GOOD ( 10.27 ) 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: Rafał Miłecki Some properties (function groups & pins) are meant to be arrays and should allow multiple entries out of enum sets. Use "items" for those. Mistake was noticed during validation of in-kernel DTS files. Fixes: b9ffc18c6388 ("dt-bindings: mediatek: convert pinctrl to yaml") Signed-off-by: Rafał Miłecki Acked-by: Rob Herring --- .../pinctrl/mediatek,mt7622-pinctrl.yaml | 92 ++++++++++--------- 1 file changed, 49 insertions(+), 43 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml index bd72a326e6e0..60f30a59f385 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml @@ -97,7 +97,8 @@ patternProperties: then: properties: groups: - enum: [emmc, emmc_rst] + items: + enum: [emmc, emmc_rst] - if: properties: function: @@ -105,8 +106,9 @@ patternProperties: then: properties: groups: - enum: [esw, esw_p0_p1, esw_p2_p3_p4, rgmii_via_esw, - rgmii_via_gmac1, rgmii_via_gmac2, mdc_mdio] + items: + enum: [esw, esw_p0_p1, esw_p2_p3_p4, rgmii_via_esw, + rgmii_via_gmac1, rgmii_via_gmac2, mdc_mdio] - if: properties: function: @@ -123,10 +125,11 @@ patternProperties: then: properties: groups: - enum: [i2s_in_mclk_bclk_ws, i2s1_in_data, i2s2_in_data, - i2s3_in_data, i2s4_in_data, i2s_out_mclk_bclk_ws, - i2s1_out_data, i2s2_out_data, i2s3_out_data, - i2s4_out_data] + items: + enum: [i2s_in_mclk_bclk_ws, i2s1_in_data, i2s2_in_data, + i2s3_in_data, i2s4_in_data, i2s_out_mclk_bclk_ws, + i2s1_out_data, i2s2_out_data, i2s3_out_data, + i2s4_out_data] - if: properties: function: @@ -159,10 +162,11 @@ patternProperties: then: properties: groups: - enum: [pcie0_0_waken, pcie0_1_waken, pcie1_0_waken, - pcie0_0_clkreq, pcie0_1_clkreq, pcie1_0_clkreq, - pcie0_pad_perst, pcie1_pad_perst, pcie_pereset, - pcie_wake, pcie_clkreq] + items: + enum: [pcie0_0_waken, pcie0_1_waken, pcie1_0_waken, + pcie0_0_clkreq, pcie0_1_clkreq, pcie1_0_clkreq, + pcie0_pad_perst, pcie1_pad_perst, pcie_pereset, + pcie_wake, pcie_clkreq] - if: properties: function: @@ -178,11 +182,12 @@ patternProperties: then: properties: groups: - enum: [pwm_ch1_0, pwm_ch1_1, pwm_ch1_2, pwm_ch2_0, pwm_ch2_1, - pwm_ch2_2, pwm_ch3_0, pwm_ch3_1, pwm_ch3_2, pwm_ch4_0, - pwm_ch4_1, pwm_ch4_2, pwm_ch4_3, pwm_ch5_0, pwm_ch5_1, - pwm_ch5_2, pwm_ch6_0, pwm_ch6_1, pwm_ch6_2, pwm_ch6_3, - pwm_ch7_0, pwm_0, pwm_1] + items: + enum: [pwm_ch1_0, pwm_ch1_1, pwm_ch1_2, pwm_ch2_0, pwm_ch2_1, + pwm_ch2_2, pwm_ch3_0, pwm_ch3_1, pwm_ch3_2, pwm_ch4_0, + pwm_ch4_1, pwm_ch4_2, pwm_ch4_3, pwm_ch5_0, pwm_ch5_1, + pwm_ch5_2, pwm_ch6_0, pwm_ch6_1, pwm_ch6_2, pwm_ch6_3, + pwm_ch7_0, pwm_0, pwm_1] - if: properties: function: @@ -260,33 +265,34 @@ patternProperties: pins: description: An array of strings. Each string contains the name of a pin. - enum: [GPIO_A, I2S1_IN, I2S1_OUT, I2S_BCLK, I2S_WS, I2S_MCLK, TXD0, - RXD0, SPI_WP, SPI_HOLD, SPI_CLK, SPI_MOSI, SPI_MISO, SPI_CS, - I2C_SDA, I2C_SCL, I2S2_IN, I2S3_IN, I2S4_IN, I2S2_OUT, - I2S3_OUT, I2S4_OUT, GPIO_B, MDC, MDIO, G2_TXD0, G2_TXD1, - G2_TXD2, G2_TXD3, G2_TXEN, G2_TXC, G2_RXD0, G2_RXD1, G2_RXD2, - G2_RXD3, G2_RXDV, G2_RXC, NCEB, NWEB, NREB, NDL4, NDL5, NDL6, - NDL7, NRB, NCLE, NALE, NDL0, NDL1, NDL2, NDL3, MDI_TP_P0, - MDI_TN_P0, MDI_RP_P0, MDI_RN_P0, MDI_TP_P1, MDI_TN_P1, - MDI_RP_P1, MDI_RN_P1, MDI_RP_P2, MDI_RN_P2, MDI_TP_P2, - MDI_TN_P2, MDI_TP_P3, MDI_TN_P3, MDI_RP_P3, MDI_RN_P3, - MDI_RP_P4, MDI_RN_P4, MDI_TP_P4, MDI_TN_P4, PMIC_SCL, - PMIC_SDA, SPIC1_CLK, SPIC1_MOSI, SPIC1_MISO, SPIC1_CS, - GPIO_D, WATCHDOG, RTS3_N, CTS3_N, TXD3, RXD3, PERST0_N, - PERST1_N, WLED_N, EPHY_LED0_N, AUXIN0, AUXIN1, AUXIN2, - AUXIN3, TXD4, RXD4, RTS4_N, CST4_N, PWM1, PWM2, PWM3, PWM4, - PWM5, PWM6, PWM7, GPIO_E, TOP_5G_CLK, TOP_5G_DATA, - WF0_5G_HB0, WF0_5G_HB1, WF0_5G_HB2, WF0_5G_HB3, WF0_5G_HB4, - WF0_5G_HB5, WF0_5G_HB6, XO_REQ, TOP_RST_N, SYS_WATCHDOG, - EPHY_LED0_N_JTDO, EPHY_LED1_N_JTDI, EPHY_LED2_N_JTMS, - EPHY_LED3_N_JTCLK, EPHY_LED4_N_JTRST_N, WF2G_LED_N, - WF5G_LED_N, GPIO_9, GPIO_10, GPIO_11, GPIO_12, UART1_TXD, - UART1_RXD, UART1_CTS, UART1_RTS, UART2_TXD, UART2_RXD, - UART2_CTS, UART2_RTS, SMI_MDC, SMI_MDIO, PCIE_PERESET_N, - PWM_0, GPIO_0, GPIO_1, GPIO_2, GPIO_3, GPIO_4, GPIO_5, - GPIO_6, GPIO_7, GPIO_8, UART0_TXD, UART0_RXD, TOP_2G_CLK, - TOP_2G_DATA, WF0_2G_HB0, WF0_2G_HB1, WF0_2G_HB2, WF0_2G_HB3, - WF0_2G_HB4, WF0_2G_HB5, WF0_2G_HB6] + items: + enum: [GPIO_A, I2S1_IN, I2S1_OUT, I2S_BCLK, I2S_WS, I2S_MCLK, TXD0, + RXD0, SPI_WP, SPI_HOLD, SPI_CLK, SPI_MOSI, SPI_MISO, SPI_CS, + I2C_SDA, I2C_SCL, I2S2_IN, I2S3_IN, I2S4_IN, I2S2_OUT, + I2S3_OUT, I2S4_OUT, GPIO_B, MDC, MDIO, G2_TXD0, G2_TXD1, + G2_TXD2, G2_TXD3, G2_TXEN, G2_TXC, G2_RXD0, G2_RXD1, G2_RXD2, + G2_RXD3, G2_RXDV, G2_RXC, NCEB, NWEB, NREB, NDL4, NDL5, NDL6, + NDL7, NRB, NCLE, NALE, NDL0, NDL1, NDL2, NDL3, MDI_TP_P0, + MDI_TN_P0, MDI_RP_P0, MDI_RN_P0, MDI_TP_P1, MDI_TN_P1, + MDI_RP_P1, MDI_RN_P1, MDI_RP_P2, MDI_RN_P2, MDI_TP_P2, + MDI_TN_P2, MDI_TP_P3, MDI_TN_P3, MDI_RP_P3, MDI_RN_P3, + MDI_RP_P4, MDI_RN_P4, MDI_TP_P4, MDI_TN_P4, PMIC_SCL, + PMIC_SDA, SPIC1_CLK, SPIC1_MOSI, SPIC1_MISO, SPIC1_CS, + GPIO_D, WATCHDOG, RTS3_N, CTS3_N, TXD3, RXD3, PERST0_N, + PERST1_N, WLED_N, EPHY_LED0_N, AUXIN0, AUXIN1, AUXIN2, + AUXIN3, TXD4, RXD4, RTS4_N, CST4_N, PWM1, PWM2, PWM3, PWM4, + PWM5, PWM6, PWM7, GPIO_E, TOP_5G_CLK, TOP_5G_DATA, + WF0_5G_HB0, WF0_5G_HB1, WF0_5G_HB2, WF0_5G_HB3, WF0_5G_HB4, + WF0_5G_HB5, WF0_5G_HB6, XO_REQ, TOP_RST_N, SYS_WATCHDOG, + EPHY_LED0_N_JTDO, EPHY_LED1_N_JTDI, EPHY_LED2_N_JTMS, + EPHY_LED3_N_JTCLK, EPHY_LED4_N_JTRST_N, WF2G_LED_N, + WF5G_LED_N, GPIO_9, GPIO_10, GPIO_11, GPIO_12, UART1_TXD, + UART1_RXD, UART1_CTS, UART1_RTS, UART2_TXD, UART2_RXD, + UART2_CTS, UART2_RTS, SMI_MDC, SMI_MDIO, PCIE_PERESET_N, + PWM_0, GPIO_0, GPIO_1, GPIO_2, GPIO_3, GPIO_4, GPIO_5, + GPIO_6, GPIO_7, GPIO_8, UART0_TXD, UART0_RXD, TOP_2G_CLK, + TOP_2G_DATA, WF0_2G_HB0, WF0_2G_HB1, WF0_2G_HB2, WF0_2G_HB3, + WF0_2G_HB4, WF0_2G_HB5, WF0_2G_HB6] bias-disable: true From patchwork Mon Apr 8 09:05:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13620831 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 CF74EC67861 for ; Mon, 8 Apr 2024 09:05:38 +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:References:In-Reply-To: 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: List-Owner; bh=jPMZ1FS+3PMNwtl2ssBQqSdBDn48J7oBCivrDaif58k=; b=b5ZOt3StRYaIia l3Gqt79IftTdttFJByp/YiHAbMigSdimMNybqcE8HJOGWMdgUh+bvCYfgOoNzbC/KoWJRS270NIQS EKb9Ya8fnrplpq3YgxVTF7GRwtJ6KBhl9ZlEku/7TRhUO7wm6FfzlolvhCzGq2o/0KBbH4680NymG 9n4hsFgzmzL8paq+fWxs6PvjoCwHNDe0bFXLklZjqCvU+LLEQIylbkfVZQvBhLwtm04GsKpk8xVLX h6BWghw4sReFzB1BVhKs3Kw7qFc7LPOqlQott0kWjOEXVXRU7shtFKE7ZKkWH6oNL45ztLjsQf2yT ZnlSR1EiAqpKBU4K1xNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtkwN-0000000F0rB-2tft; Mon, 08 Apr 2024 09:05:23 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtkwK-0000000F0ox-0Yfu; Mon, 08 Apr 2024 09:05:21 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a51addddbd4so262336866b.0; Mon, 08 Apr 2024 02:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712567117; x=1713171917; 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=urPnK9SKsV5nVEA1yeOAoEutTVGuSxP802X+pnIxpxI=; b=dWO2Y30d91v48a866w5wM1GIXmFH17tAMn6STCKYmXY5UjcX0LdKj0v/lWd4zTt7jv a0OlM+Hwt/Wyxer907n0IqyaSyGmeuoQHwGV7R180eVpYr6yePAXpbNJ+kaDT+FILhBY OxOKU0nEcyozVfZpfhmR1Y0huo3CtF2BUZ29PYD+S54qijO7EoWoI1HcU7dyp8QqJn1/ ZyaF8u+Cp1j82OiriC1NioWeIjrCeKo+l1G4KEgMV/4ZGVL4Va5nOs4EYfpRtXHP7PRv B52K3qna3ryG7BY9Aw8MBNNwevNCHekSL3gaeabTArYU0vCA/3hIxa4jbRdDYp0q4Shw eigw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712567117; x=1713171917; 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=urPnK9SKsV5nVEA1yeOAoEutTVGuSxP802X+pnIxpxI=; b=wgzhg9HtR/eK7ZUeHcavgeUgjOqhmnShRE5CySBq7sgIZyNunt17RQBJ9HFW3V/+Sy 3EA1Gy7KBCIRLx8pk2owO/r/1/QuxgV71BEiSJOzBYx4tDoOoZ9Bft9dVGgKqU0BqE2N e28iPsU76QwkvZM4aee8UqB8FVdtkVgLCRNlVJE7HVTl0DVtnzGcOaA8PiPsrnuhDJUR 1ZVHTVhaBY37Zmn5fgLkEKx/HKavJFtymrgy2d0/VVS8OlXB/WB1p4nMtyA8ASTkSVLH RiaHFiiED8V7xKhOJj3igmrJ8FKyolKlqyY2g0C1ex2ay7icraTWPPtrA8n67VZ7keJ4 EtSQ== X-Forwarded-Encrypted: i=1; AJvYcCX6e54c+uL1m+x4RVtYwsYX+PWgWkKKW7WnZ4aWxS4TnSYgPlF6LomZ/HYFxxwPSh+UBlpW8odGqj0aEtDNEzjzvkRhYJ8LhbxIndgh0b2aSrB+6IolnjWKaRLh9YCRa6miW5t39KF/+k9+rXrw9pvb/1fDhYJblLA= X-Gm-Message-State: AOJu0YzKVadaxQ43w+dYKgThyfxocqYPb0QG6hCyqTQKiFFDBE+jVR+g WAbA/dmuCVN8HtmhL/DUuLZyrRBgNZsSWUX/EWvcKIYHknEzY9EvUL1gcg6y X-Google-Smtp-Source: AGHT+IFrzZOCYf3cevStt0TK0MTR+9GFEq2JSptieBkxHNbtINxf0w9YFW6N4oKbZw0HPh2N8wyEWQ== X-Received: by 2002:a17:906:3bc5:b0:a4e:3715:7f4a with SMTP id v5-20020a1709063bc500b00a4e37157f4amr4263965ejf.71.1712567117295; Mon, 08 Apr 2024 02:05:17 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id h1-20020a170906718100b00a51bd3bfec3sm2773969ejk.121.2024.04.08.02.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:05:16 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Sean Wang , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Matthias Brugger , AngeloGioacchino Del Regno , Hsin-Yi Wang , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Chuanhong Guo Subject: [PATCH 2/3] dt-bindings: pinctrl: mediatek: mt7622: add "antsel" function Date: Mon, 8 Apr 2024 11:05:05 +0200 Message-Id: <20240408090506.21596-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240408090506.21596-1-zajec5@gmail.com> References: <20240408090506.21596-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_020520_208871_81A568A2 X-CRM114-Status: GOOD ( 12.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 From: Rafał Miłecki MT7622 pinctrl has ANTSEL* pins. Linux support for those was added in the commit 19f599e83ac5 ("pinctrl: mediatek: mt7622: add antsel pins/groups"). Include them in binding. Cc: Chuanhong Guo Signed-off-by: Rafał Miłecki Acked-by: Rob Herring --- .../pinctrl/mediatek,mt7622-pinctrl.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml index 60f30a59f385..a9ab623b2697 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml @@ -75,8 +75,8 @@ patternProperties: function: description: A string containing the name of the function to mux to the group. - enum: [emmc, eth, i2c, i2s, ir, led, flash, pcie, pmic, pwm, sd, - spi, tdm, uart, watchdog, wifi] + enum: [antsel, emmc, eth, i2c, i2s, ir, led, flash, pcie, pmic, pwm, + sd, spi, tdm, uart, watchdog, wifi] groups: description: @@ -90,6 +90,20 @@ patternProperties: - function allOf: + - if: + properties: + function: + const: antsel + then: + properties: + groups: + items: + enum: [antsel0, antsel1, antsel2, antsel3, antsel4, antsel5, + antsel6, antsel7, antsel8, antsel9, antsel10, + antsel11, antsel12, antsel13, antsel14, antsel15, + antsel16, antsel17, antsel18, antsel19, antsel20, + antsel21, antsel22, antsel23, antsel24, antsel25, + antsel26, antsel27, antsel28, antsel29] - if: properties: function: From patchwork Mon Apr 8 09:05:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13620832 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 0CC94CD128A for ; Mon, 8 Apr 2024 09:05:43 +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:References:In-Reply-To: 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: List-Owner; bh=G+6Ttsmps6aMhmCn24uXkjUTDZ4n9HAYBLtw0XiuGwE=; b=F9nracwXmuPu1w k/xJWQizYmPwoFOCJ7VKC1tlRu3ITg7CCzdZR7rg4MATENL2kkoiA76ISaWF5QMeY0N7/k5Uqg1Wq KiP+m9PYA5jtsPKcJVMp/mHOPXbiZlckwY/mdlVp3kcNUJx1yRVBkxiRHeIGVgMTyeKY68xJHyitU xAi1O6uivsHDDFt3qmdzRJz+/HDlO5PmLwY5lKDHVJmgIyJWwmrjPWbNEgtQLMa2Jhv0y6xyCwPGW g9igrpzBDiQkg88Dp9CN17SpUoLOQK3luMzm8Q7DqG0TWLtrVX4MJQXNuUVe261dDWj3VxRg3ox6/ PI3Mokp7DEenEFlFscZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtkwR-0000000F0ta-3WOw; Mon, 08 Apr 2024 09:05:29 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtkwM-0000000F0pR-2NaR; Mon, 08 Apr 2024 09:05:24 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-56e1f3462caso4161706a12.3; Mon, 08 Apr 2024 02:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712567120; x=1713171920; 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=WziNI0dy9ontwBLhhuwGeSxizPXdz8ruFPYdBGBNZvg=; b=NCZkLq9JCB6pAc1q8K1jJwBTViaQ7a1SVCM5ttDzLA17GGp1rSw7BUu+1OQj0CrXXq PuCYPY5AaaDwwJq90ehoI4UBgWPMdqZngbu2r1oBqT3i4TUIgQw5VKBILH1KLnfVKANd wPcvaPNUK2syDB5eCXRhlWhTPU54Q4roCNk8KgP81Z3Ln0AMmSIDu2shCcH2UpCv7vos yLyq+U0wzZQQQ/jQk7e1fJ15Zfmqy455nlmak1YpZcvRUXmz3OQaP7HHj9DzVZTcEGLt PhHYGa4GWxRouyzgebX86UcGKKx2yk/OxwjKkpGcgyBjLIjy+jgIbbMgfm7bLwzLJSb8 4TmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712567120; x=1713171920; 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=WziNI0dy9ontwBLhhuwGeSxizPXdz8ruFPYdBGBNZvg=; b=oLf5pCrx8+uhnoVh6qS6crFH975ld0S92Pb88sEANkOhcXlGqnZpDk/Q5apcBvyvAM YufBtetokekN7KA5kJzSm+bpYc3Hh4MELSBRf8z+cI0IbVNdrnU130qG5LL7TXF6HxK7 NZsq7T93Tf6AhPyK3usf2N3+tXnrzq/IN2LXTNYnO0NzUoHtEslyToIs7O735oDbWG6a jIkimOaFVhTxQ3IyBrWzds/aWkcvh0c4gZM1ILnlNqXJFDTrMhFGT0z91TjoI3ShXpNm PbuwlV+sm4RRykLGUGjes6CqQUvWJ7UTkXR+1Axi/+7dYQ/8MFG6a6/ETDG2QDDlBLLi cL4g== X-Forwarded-Encrypted: i=1; AJvYcCVAOmnpTIrqiaZHWov30ijidQURpaQ/i3Ivrkkx4qU7Qd6r9qUWr+VNI8+lHXydceOxzFZYJRwsXcHfRNwzLca74W+n9wpeYsNWCo3zr0CdMV8BO0x9MHLry2hfwe8Rfp+z4SqdqlIwyfrnXAuNBTD84tPIK+T5qqw= X-Gm-Message-State: AOJu0Yzufh9wtFJnxfCw82g/pcLAc7qd/Teh9SqGNfJ5cjhd5WYrzygB y29RXDizhlF2+hlTE+8jr01SIpA8tTE4pdu88AZRpmhlbvxV8QT2 X-Google-Smtp-Source: AGHT+IFJuDSPZV6Dt59lpjhwCnHica/ftb5KxSrdAGBGyr3hReB6zu7+J40yCPnZLpMbPyfGBIDvvA== X-Received: by 2002:a17:906:ecee:b0:a51:99e1:1f1a with SMTP id qt14-20020a170906ecee00b00a5199e11f1amr5386527ejb.64.1712567119701; Mon, 08 Apr 2024 02:05:19 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id h1-20020a170906718100b00a51bd3bfec3sm2773969ejk.121.2024.04.08.02.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 02:05:19 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Sean Wang , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Matthias Brugger , AngeloGioacchino Del Regno , Hsin-Yi Wang , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 3/3] dt-bindings: pinctrl: mediatek: mt7622: add "base" reg Date: Mon, 8 Apr 2024 11:05:06 +0200 Message-Id: <20240408090506.21596-3-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240408090506.21596-1-zajec5@gmail.com> References: <20240408090506.21596-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_020522_731586_A1E05957 X-CRM114-Status: GOOD ( 11.50 ) 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: Rafał Miłecki Both: MT7622 and MT7629 use two reg spaces: "base" and "eint". It wasn't covered by the binding and also example didn't match incomplete binding. Fix it. Signed-off-by: Rafał Miłecki --- .../bindings/pinctrl/mediatek,mt7622-pinctrl.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml index a9ab623b2697..eaa65512161a 100644 --- a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml @@ -19,10 +19,12 @@ properties: - mediatek,mt7629-pinctrl reg: - maxItems: 1 + minItems: 2 + maxItems: 2 reg-names: items: + - const: base - const: eint gpio-controller: true @@ -364,7 +366,9 @@ examples: pio: pinctrl@10211000 { compatible = "mediatek,mt7622-pinctrl"; - reg = <0 0x10211000 0 0x1000>; + reg = <0 0x10211000 0 0x1000>, + <0 0x10005000 0 0x1000>; + reg-names = "base", "eint"; gpio-controller; #gpio-cells = <2>;