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: 13743719 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B01547F4D; Sat, 27 Jul 2024 11:48:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722080924; cv=none; b=txq8FkcSWPImmsnBfUJhy3WUWqrzCu59qn/mKHQ9azQlYe9nlXLUM5nMexwIUfepagEOw1LQE9XL+j3xNMN26qbAyBaTTGA4cKXb7P1lgScnBqrR4N4hHFJ3lp9sHRLO0GZwYO9WfvFZpmsaRVbshqeH1Ys2QshSyULpNeJFSuQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722080924; c=relaxed/simple; bh=xePYhf5JZpZRCXEGSedhKYK/NETm1UKXJowXK0smBxo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=F82jI+Wlndjmae90BT3BZOzCM+JwHRQM2qUl67H9RaoJ/jlMd3WLvCSVBoCotqL6O3CelMfl08RfQw1EUHDIx2reu1XW/4YK2sli4fnSB8BQdQxhbvA0x2c6S6Grs48AbytMJSfgmGEKBoHyKlLlrx8AFDpL1crBSMozkdXYTzk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=GuWXcWh8; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="GuWXcWh8" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a7d26c2297eso244479366b.2; 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=vger.kernel.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=GuWXcWh85fRgA8zKN4DGA1xuvsczOxucEO0MElPa1MiDpAoCS7/lEDzHT5mdYunrOc d7f+DvkW4qD4m0LuVa+5fvdwn2ZK+kHzgL0F600t1FwfGXw7gR2JSUzN9JywuKuswROF MBSAhWHst5/qdmymJ+UN8Xr+ndTnBQfsIWUTVbzHlXYSaQFL6U7zUWdA11RbQE8HIyaT 6a1yJsmQg2q+7PUIYAv7pBCqEvKPCcrYu9a8S8t69suxYK0B7j7w8C8oem4/kdkM5upp AfY+22fuqlSj4l6LmGzr6RLKAAg/ZPtJNB6trnOg8jRYG9224Lb+zZLJDIMBnAd4JMaL kA+A== 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=vyJmk4JS4n1nh8nbS1Xg1TuI6Wg9JCC4DF+hRITmvxnOCHEWeAZxmGwLNFvhfnIXiX b/pMjlfZ7fhDnKiNmqJ7vqaobZyMlPk6a/aVmISfo/ZW5qLdtnCshe9xn2ltyKwz13tQ gW56QjDpI3HUMBPV0mB4cnh2ag9ZV5B6dmmA6Z2GW4ON2WMMRfDoSiPXeAO6SKQtxvnr +f3JNashSN603kaxjILq5BDWEf76fskvDyuN0OymgvEZM/Roh+6n9NaHX5YthMufc55A CBFZzcJigFy4Da+bm8gghMDG6sk7dMlTy2oVSfelnMv9Atb8nkqHmsv5OO3N36CHvfIQ wmrg== X-Forwarded-Encrypted: i=1; AJvYcCUXcnQOPSwwtpIj+4n8+x05lilSsFnx2vC19PPVKDUmbegUUo8ZAsgSC7jQb9XARUby2EtEoHbK5dBwKerSSKyC+QA5W8W6mvyI+0pZepDCs8obMHXsGHsXLm9O+coaQ0nFFl1/hg== X-Gm-Message-State: AOJu0Yw5PM57EBKD47VcEqABl/2v/zS0/KIa9n8LNTL+qK4FOMQsYc9+ Doy34X4ZEwVv77u8CSOHA1JxCPPiuBu/ltCcs8au2gPYUTr2vjPF 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 Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13743720 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 171D353373; Sat, 27 Jul 2024 11:48:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722080926; cv=none; b=UGLX4EWNGtljmxNP3XxXTYXMKoesCl6xfIsZ4lMgFZ9g5D1n1EhbTQ7hm9EYgFUbDq78gKYxOCRGRKfVhntyC7y8GV6OQM5hz3qyH7vrnZ3HfJnLBz/O322ivEo9oF5koMrFT2sirTQD0Ve8R4Wg2SjGq6SW0KU0lsjGBHoEZGE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722080926; c=relaxed/simple; bh=PFd5L4vY6MFEbobL3PfpcKVz6T4XEkV+SklT8sIl0S0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=jQAzsOUQFgotvRjyK93pTM1/dPK7g6lp1kDlybfJQuVkjpLg+VT0gYloh/RxlrE5jHuhK5Xppp19plfCqs7XZV47u9OUncxczVYq631tv4I3xv57+D3+f3fa0Am9e8pkdIs2gSF92R85e3UqsNb2XAvAms4wjI1YaeZM7RbcaA0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IPGD0RJ3; arc=none smtp.client-ip=209.85.167.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IPGD0RJ3" Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52efabf5d7bso2518478e87.1; 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=vger.kernel.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=IPGD0RJ3BevWz1KJRJYX5d83LUHStn24nGPRAeZsMUDssALNGQyNa9Ifw0pVv/BbB0 x0xc9MbhVWqJjomrY1Y6EKZEE6+mz6IDqzihCyR+4EyWn+R2rh2uLRRYGlnHaNhRcOFK djVRvoA+igKZBTjr1M79Qjr6Me0yXoBGu7gsJMcFlahNT2ljmS+vJK9FmroR8kl8LgJE AZoxehXuHC5k22wcHAfYVYKSpyQF9W3PZUpXRXOGAvbKnZJTGJrCFJv1iCCcEeulcpCF BvzBwUuOotYpO2d5Dw0w/6Q8HvU3Kb//K15C3zhpe7pbli5vXEPEteem2rO0NXtF30Vj YVeQ== 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=GT1lxOXqlJAfNiJWWEVq6CuK4icmU1/TlQxvaM/9YWdUfl6BDNwMWiNrW1Bzt0+rhV XfNHq98uynpyIpYzEOfrX6i45j2dQb1pe+76vGr1Fa8A+rKqLQerXmfw1RY1CoukbNmt rjvtZpcJz4Y+fb32VrG5qab6mROvGN/PZ3ZEuSUOFhmwvUZLvswn+0Bn/qJXY678IUmO pDfrGvOomVLgBchWcHHqQbn2pP2dJzZYKMYmU6TFT11TKBWX2AzfJK3d8K+jau0BggRi fgjedSIizcj/1neAyXCcnrkSEOsiVPgs+Tmkypsdjhzu3eTRc2E1XmgekclALz4M2oEc y/yw== X-Forwarded-Encrypted: i=1; AJvYcCUAW3v6IbIEGDY7rJiH8LW3HykC+xHUygBJ8HdfsVJbnrM82LfiFQJ4NDj8w6hS4ZsXTC8joYychm7Pf1q17nKgCAe0DwJa6ek4JHM0pVFNwhwvDpeLA2IIS0iv0qX6pMHR+FqvhQ== X-Gm-Message-State: AOJu0YyuFAC2/YKXp0QA4gX/WnmNa9pE1jJ1dMJ8WrYmNMvlrsYJL96U 23vhQPn+4EuHHbLqi+lEceypj+m0ng9dwDiQ7ia00HgVAtfrrElo 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> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>,