From patchwork Sat Nov 25 14:17:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13468534 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 22E79C0755A for ; Sat, 25 Nov 2023 14:18:58 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Lrjwm1ainG6BdDjDCmYOb4eN9jX32qPMwS0+nbqplpc=; b=RPjpelX54NmVpn 0CDUoIDRX9EtDw5+2JVv4msihSIh/fdjBZO/689H7RgoOeyQsrE/Sx3nBm3+658K+CrqWUyl8p3Kp igqIxGOtkRb8nue2Zg2ZlY5PHTkK8EHqpvzPIt+TcDuG9l3wkR1R4/GJIXCUMowyyVUASFi0HCBZ1 zvknPbhhfeYHhQM5LHnFOAQNnxhhF6FLB+S67qbl6BgQZXr6MqzxUR/btw4cpvvWXnVN/J+XGRJKL QptXV/TfS0GNFt2zvm0HI9q/CUXkaS35F56Mu+tBy54jeP84ehRyrpQoajSTlM6URN2AIDTPGCvwp S0SWrKf1HpPLM9IXmlyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6tUT-009KZV-0B; Sat, 25 Nov 2023 14:18:37 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6tU7-009KGB-1O for linux-arm-kernel@lists.infradead.org; Sat, 25 Nov 2023 14:18:16 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a011e9bf336so390905166b.3 for ; Sat, 25 Nov 2023 06:18:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700921893; x=1701526693; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=YptWvF1sLLHvvXfICRwlDYacILHWf1Qs1ovKRND9MmY=; b=DifD9r1h20N4o8k/w0og3zzwRv5QamLVIjFMuZX6ySqY0pc+zt/0TdCftvz4lBv2QJ RHtD3RyZguFHgUTuc4IMriQriyA/35vHf4vlcmZsmMeN7Xuo7auaeURsxOC9oGJhyspC QOAYdOwbaUS1llksZFwI0skj61Zrlm6alKg24bSE3JGzNqS0WnY60ffnfBQ4afuB9PuM pW1BRQC0SnlzxtEugVd8/mlGlAk3eoWcjgt8YZNOpayyYlqHfGhimlU7VaJEcKnME9AR Rr8q4eOCaHnUXlX1lx/Mf8pq5rkYTXvYbYtSpiv19xVpK4zlwXUUmTepthy2zzNkB6c4 UNUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700921893; x=1701526693; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YptWvF1sLLHvvXfICRwlDYacILHWf1Qs1ovKRND9MmY=; b=Nyyt66R5fdxOP1/RMPmMEd4sxK7iO+QeUPO4DHQ2wIqRb7aBcb8qf0Qw4pGGi6WquV PMSc20uHdFevUOm39K8vy7iXWoWd4iJWBa8eZwTAiqWHtLZ5M3bXOoEPo4XfFNNciWFP sq3ETspYp7S+EvTWbvEzxHr9THQKThwGmB8iQpDmOupSWvoJsVWjNpyGeWoM3Gb1dpzp HXZojRMLjINBBi3UD+sGBwul/Hot4iBhFc6xT6Bkqb0zAINjJhdTrmE0JKsUghfCYBjM x1TU02YbZRzrJUwDgv0YNRR/5OMw6FhsgaqhgA2UC4vZAht1Sfip4Q+h/7zAyDUs8uXX j48g== X-Gm-Message-State: AOJu0Yy6K7P0npgr5pNL+K9DoCrcWhaKvFGy3ih3YY4WHuJ1nhhVekTH UgtTT925nkCU7AxjNBacjVeEwA== X-Google-Smtp-Source: AGHT+IEveIKy8lS1XIRID2ri9B1I/5i3oOMUuCvPc3WfqFNEUFa6T6wVRX6iLxNL8g8XxcnkIOK5Vw== X-Received: by 2002:a17:906:5195:b0:a03:9a89:5aaf with SMTP id y21-20020a170906519500b00a039a895aafmr4262215ejk.6.1700921893233; Sat, 25 Nov 2023 06:18:13 -0800 (PST) Received: from [10.167.154.1] (178235187180.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.180]) by smtp.gmail.com with ESMTPSA id 19-20020a170906319300b00992b8d56f3asm3500345ejy.105.2023.11.25.06.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:18:12 -0800 (PST) From: Konrad Dybcio Date: Sat, 25 Nov 2023 15:17:39 +0100 Subject: [PATCH 11/12] arm64: dts: qcom: qrb2210-rb1: Enable CAN bus controller MIME-Version: 1.0 Message-Id: <20231125-topic-rb1_feat-v1-11-11d71b12b058@linaro.org> References: <20231125-topic-rb1_feat-v1-0-11d71b12b058@linaro.org> In-Reply-To: <20231125-topic-rb1_feat-v1-0-11d71b12b058@linaro.org> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Loic Poulain , Bryan O'Donoghue , Andy Gross , Bjorn Andersson , Krzysztof Kozlowski , Georgi Djakov , Will Deacon , Robin Murphy , Joerg Roedel , Krishna Manikandan , Robert Marko , Das Srinagesh Cc: Marijn Suijten , Rob Herring , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700921858; l=1186; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JMbrDi2bxn7DXN0vpomcpuwaGp6goPBlt7d60Jxny0w=; b=Ow4Ll9242Yv5Y/KsoduODHlhgumTpa99uBnKCbAyWQYNOkJS+/6FFM3xsPWfMjhds1Cgj/BkR MwrWiH7RB7lDoCaSaSob+BAKLUxzTFGSFHjKebDh3bFYbzY/x1JMPJx X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231125_061815_504717_6EE36E95 X-CRM114-Status: GOOD ( 10.18 ) 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 Enable the Microchip mcp2518fd hosted on the SPI5 bus. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index ac6584164058..ac597eb3fe9d 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -23,6 +23,14 @@ chosen { stdout-path = "serial0:115200n8"; }; + clocks { + clk40M: can-clk { + compatible = "fixed-clock"; + clock-frequency = <40000000>; + #clock-cells = <0>; + }; + }; + gpio-keys { compatible = "gpio-keys"; label = "gpio-keys"; @@ -449,6 +457,20 @@ &sdhc_2 { status = "okay"; }; +&spi5 { + status = "okay"; + + can@0 { + compatible = "microchip,mcp2518fd"; + reg = <0>; + interrupts-extended = <&tlmm 39 IRQ_TYPE_LEVEL_LOW>; + clocks = <&clk40M>; + spi-max-frequency = <10000000>; + vdd-supply = <&vdc_5v>; + xceiver-supply = <&vdc_5v>; + }; +}; + &tlmm { lt9611_rst_pin: lt9611-rst-state { pins = "gpio41";