Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp2186353rdd; Fri, 12 Jan 2024 01:52:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkcNF38N839e48UTlzsamYme9IZgkczQxj3RmEQZLcwmUHUSQBz9UiBzg/8F4UnU2GBMbj X-Received: by 2002:a05:6358:4c43:b0:175:c293:6e39 with SMTP id lc3-20020a0563584c4300b00175c2936e39mr2135401rwc.38.1705053172300; Fri, 12 Jan 2024 01:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705053172; cv=none; d=google.com; s=arc-20160816; b=zMDmesV8o0pl+oI9icsRHRzdj/Cx3Ve8yncE1ZctR44mIGmXwzkWyHREXqnXKbPfRq hxAeIC9sqCeRsXpDuRRCHkVwm9mDmIkwFfIltaVQo/HqCxFVoKT8WfnUyecLASqtcnaM MsMu9EKs/24sJx4aM28FQhDkgbmynp7TShUHUNUM2RDN8afIlqQomxmAToogNqj5LANx 0MzfUojX2Lhf+bm5xbS+P8QElFA8+Ffw2s3QDG+2i+ZdF/C9FmLKnRcdXHCf/fU/QegG Qf2A3MwdZeeb//O3I0x0fkoA3pcxGKB3cZYiEuMVv0Hs5/UPgzHIK4RxaV3o2iTobATG 4vIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QK557IRd+wZON+YYTQtRDI9+cOJe6LiwCLXhqNwKlzY=; fh=jVP86127nqY6lQ2iFwv7XBo+ATUxJSI3LRZ9chA5Pqo=; b=1KRdLYI7KT4MquaGH1lSde6XyOhjCg1Z2/7NzpWhIOUjOK414FVa8upBveVTuKNcaP wzfFxhaIxjo3FZ1HKrv0/IAIdlVWPAo3GjkbXmnIFLol3qm/YRzOzCTYMeTV7/tjTVpz HKStXdMUIP4oRbR9XjdoWMHZe02MPb3N4It/vNHkJDJURFJq+JmGSyenBrk5aAsb9Uk3 UqFYCnvKT1onIQkVwvEszTTe8G016OZTcoqFhgPnynwonLdSElBdBuYoznu04N3TaPUz Qrh0/3PLaA4rTUxxPRCVcVFj0XwWOevJfOwCXGx5KetJ5IqB/Xl079vdaoHi7tPAeCJR 5vMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=h32px89D; spf=pass (google.com: domain of linux-kernel+bounces-24513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ld18-20020a056a004f9200b006d9bf3574fbsi2949285pfb.35.2024.01.12.01.52.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:52:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=h32px89D; spf=pass (google.com: domain of linux-kernel+bounces-24513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1EE60B248A5 for ; Fri, 12 Jan 2024 09:50:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE40761678; Fri, 12 Jan 2024 09:46:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="h32px89D" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 948D760EC7; Fri, 12 Jan 2024 09:46:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705052811; bh=45PTVpu/MLu2XZLF4j9xTan9RiiNLjDK7dk9hPp3Oa4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h32px89Di+MFxlU4WfgB9Ae9JEHxh0IupX7Upv6vnZxdkdRucyxJFba76WXCH3o8H 3hc1V6jW5JIsW/bN3t2kPvFEciK08WNpZauxW0Q59JIOHk2UsVvh8c0Eql32QnDiEz JUPgbLF2TX0Oh43I6EgGRC9kLjA7em93mvnwWckmkdCVz4ayd+YFvK0N0h3RXQayox VhakFOtsGUaDyOLfSGz7g6nHMVlSvQ7WUgdKn5EXEo0PemN+ca3oUhhNzheCIhvgyD GOQYzfeu5V3i7R33ZlWcnDTdyOauesNI+UhxC7amsZTN4aza+7meH3c4FszDbYpNVr MyoSxa/EeNy0g== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 0F41A3782051; Fri, 12 Jan 2024 09:46:51 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, hsinyi@chromium.org, nfraprado@collabora.com, macpaul.lin@mediatek.com, sean.wang@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 13/15] arm64: dts: mediatek: radxa-nio-12l: Enable SPI1/2 for 40pin header Date: Fri, 12 Jan 2024 10:46:30 +0100 Message-ID: <20240112094632.66310-14-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240112094632.66310-1-angelogioacchino.delregno@collabora.com> References: <20240112094632.66310-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Enable the SPI1 and SPI2 controllers as pins for those are exposed on the 40pins header. Signed-off-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt8395-radxa-nio-12l.dts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index be2094b8fe3c..191c059f5c97 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -582,6 +582,26 @@ pins-bus { }; }; + spi1_pins: spi1-default-pins { + pins-bus { + pinmux = , + , + , + ; + bias-disable; + }; + }; + + spi2_pins: spi2-default-pins { + pins-bus { + pinmux = , + , + , + ; + bias-disable; + }; + }; + uart0_pins: uart0-pins { pins-bus { pinmux = , @@ -622,6 +642,26 @@ &scp { status = "okay"; }; +&spi1 { + /* Exposed at 40 pin connector */ + pinctrl-0 = <&spi1_pins>; + pinctrl-names = "default"; + mediatek,pad-select = <0>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; +}; + +&spi2 { + /* Exposed at 40 pin connector */ + pinctrl-0 = <&spi2_pins>; + pinctrl-names = "default"; + mediatek,pad-select = <0>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; +}; + &spmi { #address-cells = <2>; #size-cells = <0>; -- 2.43.0