From patchwork Sat Jul 27 11:48:27 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: 13743715 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 49367C3DA61 for ; Sat, 27 Jul 2024 11:49:10 +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: Content-Type: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=9fUm8LNjWnpXgKPOWByxyCK8Ra7TdsmOZpgB41hWfh8=; b=EmoraLSfnKf+wIbZgW1K+M1jnr gL0Uk7oBkI+8i6KnPTNmGGZyaxCBbtFMHEgsNXf8/i9GVQmEw55YJH40aYwviLb3ykw3xJqEgjefT LneiPP7BWSFv2c407Jwmb6DpBM4JXgLyHK7WhMlOPLfYyDVgVsyWxs8dqnm1U3GhU+aP/PeO94fNT fk0apDb4hfwcQIGBlfdu9s25AakzS0xX9Khqs3ffneoOTuq9AJdUcjntDmLFwAtcFrNRMlSv/WVfq 6UaV/G90nA7ed6GVFQ+kUPpC2T4df+M/pmGtsouLBaNizVGghgRrAa+Np9tSQfy7FFoVGI+jxvRUd ZI6EpGMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXfvB-00000006dR2-2ttN; Sat, 27 Jul 2024 11:49:09 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXful-00000006dNv-3QcV; Sat, 27 Jul 2024 11:48:45 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a7a8caef11fso266360766b.0; Sat, 27 Jul 2024 04:48:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722080921; x=1722685721; 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=9fUm8LNjWnpXgKPOWByxyCK8Ra7TdsmOZpgB41hWfh8=; b=LC/mKvGxS63OciWydKWmdd+yhouESqOW9qO/H3E5oRDA8IFo3M2UnK9l1n2Ow147yd a1pPlkFoQLEv1/oJjvDcQReDM/6dTm686H/EmiYArf4UcgvD8Ir6xRI/XLuk9kguTVqf s5KYiarHsHgFsnSCBKpW2C4sT/7uHS8IqhjniEQ6rETMK91QZ9wyRZ+wpin1EjJRNtOZ mf3jDK4vXZ6y1JAcdZMAoAyYuSyCntq1uhBCTeyEINAYFu10Z+mG4VEYqQWbRfGesXpp VQb7HWBVtvI1TrN+eQnWUIIIJqnigMqO3Nz38Chstxwj8SwrLx2xR8yNPQOGQ36HfU53 p/Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722080921; x=1722685721; 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=9fUm8LNjWnpXgKPOWByxyCK8Ra7TdsmOZpgB41hWfh8=; b=qVEcGiR+Myenvep7aIAo1X4f+1cmk9EY1qw6QCwZPk6ZZ+G7d4vfd5Z9IHHAPqx3JS zH7Ju/csHsicoEl9LMq7bxjcUhSvlNVRpN6H6vP3I3F06TeUA0qtFJLEdgNe1p97lYxe OpvQX2ZsA0Pfbr1lb4oAcOYrRXyapjBuok/fTXUG9yORj20Hz6ol1OqdIkSJZJCobuoS n1mFHqC97C6BtQav/ADhX2vrvvrDkSU6vVnxnIxMmuRD2MzP1Tqf5TmlIg04L6NN1GYh lpuy9/dfSszrqBobSjo3pu35lhN+A2BkBnuhNsDAGsK0+UOqRKRvsTgQ9aW8R6yrYyUW 3W+g== X-Forwarded-Encrypted: i=1; AJvYcCW3++7AMhzbZpJhekS58Ll2U5BzVEctP9+ywgSuv+y0Bqth8g/7fDhjteMnMLSAdT7V2aUdkAunuZYYHJ2O4WguVQ8ysqr8aVT5lbYOQh+v6QvOGWx/RdB2lFSzs6AJkZ/dtyjQk4beKLjAnl9QWetUWklVBxVYym0= X-Gm-Message-State: AOJu0Yye+hi6VKB40ILU4Qs+myYcd6NnAAnDqiYXJbagX7RI8h6HyrkX IKjTbwkK0/jwXHhnVDJhjclyYcSEXPP+BQsb0lDzsvFYYMyorBCz X-Google-Smtp-Source: AGHT+IE6w/99V21WjiNJgVmoVHMsNySZTuoAqu+JuOyTK0gkElTw6sWm4sv5b3PuRrjeKR45opBNlA== X-Received: by 2002:a17:907:944c:b0:a7a:1cfe:a262 with SMTP id a640c23a62f3a-a7d40166f94mr112916866b.55.1722080921212; Sat, 27 Jul 2024 04:48:41 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acad9316csm272646166b.186.2024.07.27.04.48.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jul 2024 04:48:40 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Leilk Liu , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, John Crispin , Daniel Golle , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 1/2] dt-bindings: spi: mediatek,spi-mt65xx: add compatible for MT7981 Date: Sat, 27 Jul 2024 13:48:27 +0200 Message-Id: <20240727114828.29558-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-20240727_044843_900991_B7A8295E X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki MT7981 has SPI controllers based on IPM design Signed-off-by: Rafał Miłecki Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml b/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml index b6249880c3f9..e1f5bfa4433c 100644 --- a/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml +++ b/Documentation/devicetree/bindings/spi/mediatek,spi-mt65xx.yaml @@ -33,6 +33,7 @@ properties: - const: mediatek,mt6765-spi - items: - enum: + - mediatek,mt7981-spi-ipm - mediatek,mt7986-spi-ipm - mediatek,mt8188-spi-ipm - const: mediatek,spi-ipm From patchwork Sat Jul 27 11:48:28 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: 13743716 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 7BA0FC3DA61 for ; Sat, 27 Jul 2024 11:49:32 +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: Content-Type: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=sKCRLjbQA6RvyM/1xlZDuHSO8eeRysapt2U7o6q2WV8=; b=uLvEDzBqzLc4jozZ/tlsNfG0Qm Dg5IrrVG/XHhPFM+5ZsTZWl2Uk7n2+sAtU0a6IaWE+NZ1aHdbEgSCeiZKUC12Zo7dmhWhpjIqqFh/ TMUVJI/kjKQPNQo04fyotL6VGB/kHAXSgUJ0kMgAbE9+kX/csxifb+NW6YlU7PMbaT6vosvEWHi6G /YzqI1ViQiSRsMayupEIHJ3fHaR5DVakWeeNKtGfOx4+eboJR7XtXsUCsnsYFodeeQZeTeFxM7jFb nm7G8F5pOXm3rJF4D+W8KXWpYmphnftpGmsSNYnx2KXkWueIqBV0LwKbQwyoIuRyJWc60+tXrcsi7 Pq1Ge5NA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXfvY-00000006dUc-0h2m; Sat, 27 Jul 2024 11:49:32 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sXfun-00000006dO0-08AS; Sat, 27 Jul 2024 11:48:46 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-52efd8807aaso3214437e87.3; Sat, 27 Jul 2024 04:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722080923; x=1722685723; 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=sKCRLjbQA6RvyM/1xlZDuHSO8eeRysapt2U7o6q2WV8=; b=ODI15UO1LJOyrYad4ylNTzUdSpwkz0GHUwvfdJx+hxfdvaQhEpwijrR3LgeUyUOuW1 i9zZWXdljO41bolI1qe1hkDIVlaY4KUMVhTgFVveWofvmEIYvo8za0XX2XUb0jHAdiW4 38fYvKTQTNBNG35rKE6p5kgHUAgbkeLEV/xA3wrSq/OM+3BEbNfsHk2uOb1iE9TozSdD Bjcu6TVBa8v7BhE4A9NfH///mERciWXLERuiqkvjZTFTb2xmjgn0CoCAATyLl7BHqpDp flz5s2STmE9HWiQ0bsB1/rgLwI8TfEeT93aORcmhDqejCFfO3/Koi83cqAwAOTnHFbb0 wfmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722080923; x=1722685723; 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=sKCRLjbQA6RvyM/1xlZDuHSO8eeRysapt2U7o6q2WV8=; b=gMyp34ZUt70LOTekRnp77+SdzdOi81wPx3O/BXLxZ5L4AtIcaeWFabs9jW0eTIhQAZ MnPO0bbIvGuy8aDfWMlHfhP+XgRRqLMFfs7HNmBjgiuGhV7Ejaqd+N/bHJ4zJUdPOU6R kHBMDw+lsXjDyb3qkJ830IiU8n7wy+Nfajqzs9aCBmF27/IJPogzG+o+SAH6tMJVbdvI QDYR2EBZwnOZO8dSeeim5iWY5crWi0HuieByuwneYbNj7AkyWThXmLjrtrW96GRzmrcO r4kvpVO4N/pTyQZgCjGijlXdaP4IS8WKE8xiEBkujCcMOoTP9C58dquErD6CcYkFtSzq ikmA== X-Forwarded-Encrypted: i=1; AJvYcCXbs4QULWzWBwi/UWVVGQ+GmAIrmTlEJvD4QfRMgOc6rtedODdas40H0ZtI1e+9O8ZvBXzw+zrEWCoVZpOW8wvLnVXTjK6XPcqg/6sGCDxm8xbWbtPTI6G2zzz/LytG7T/B2yZTTh0wN0OrXwPfWlFse7Uh0Toqn+s= X-Gm-Message-State: AOJu0YzB3ldIRZ8Eao+TBmWNfQGJ+tVP0hN95uiTHZ5zQhMzIA9MVD1v HJyYdu1hoW+LFQ9zQkn4w+LpNtpf/VeoSSD+OxaudQlxSKpGsk9J X-Google-Smtp-Source: AGHT+IHztZvH8zOyLXhWrkFxbk6bDQdmH6x989Bk067SMCu0neN94/uYnvBqs0sXqUfogLOjVpDGZw== X-Received: by 2002:ac2:54a1:0:b0:52f:eb:aaca with SMTP id 2adb3069b0e04-5309b299206mr1338536e87.32.1722080922910; Sat, 27 Jul 2024 04:48:42 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acad9316csm272646166b.186.2024.07.27.04.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jul 2024 04:48:42 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: Leilk Liu , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, John Crispin , Daniel Golle , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 2/2] arm64: dts: mediatek: mt7981: add SPI controllers Date: Sat, 27 Jul 2024 13:48:28 +0200 Message-Id: <20240727114828.29558-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240727114828.29558-1-zajec5@gmail.com> References: <20240727114828.29558-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240727_044845_104091_D7FDB1A1 X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki MT7981 (Filogic 820) has three on-SoC SPI controllers. Signed-off-by: Rafał Miłecki Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 42 +++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi index 64aeeb24efac..b096009ef99c 100644 --- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi @@ -109,6 +109,48 @@ i2c@11007000 { status = "disabled"; }; + spi@11009000 { + compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm"; + reg = <0 0x11009000 0 0x1000>; + interrupts = ; + clocks = <&topckgen CLK_TOP_CB_M_D2>, + <&topckgen CLK_TOP_SPI_SEL>, + <&infracfg CLK_INFRA_SPI2_CK>, + <&infracfg CLK_INFRA_SPI2_HCK_CK>; + clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi@1100a000 { + compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm"; + reg = <0 0x1100a000 0 0x1000>; + interrupts = ; + clocks = <&topckgen CLK_TOP_CB_M_D2>, + <&topckgen CLK_TOP_SPI_SEL>, + <&infracfg CLK_INFRA_SPI0_CK>, + <&infracfg CLK_INFRA_SPI0_HCK_CK>; + clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi@1100b000 { + compatible = "mediatek,mt7981-spi-ipm", "mediatek,spi-ipm"; + reg = <0 0x1100b000 0 0x1000>; + interrupts = ; + clocks = <&topckgen CLK_TOP_CB_M_D2>, + <&topckgen CLK_TOP_SPI_SEL>, + <&infracfg CLK_INFRA_SPI1_CK>, + <&infracfg CLK_INFRA_SPI1_HCK_CK>; + clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + pio: pinctrl@11d00000 { compatible = "mediatek,mt7981-pinctrl"; reg = <0 0x11d00000 0 0x1000>,