From patchwork Wed Nov 29 14:44:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 13472961 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 CC814C4167B for ; Wed, 29 Nov 2023 14:45:52 +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=ZUAgCKIYVi0+/9 CpdcSyCZGrJkXbbvNUakhx1x9mOP3Ng2rUgX40xFWolI8eHPBEhHit6tDKWIRlDNKWkuP2jSyCsTx NThbZEbwp8ZaGnYjI6eOB6hvx0ve4cSXdkk+nL3gz4eqh4Aza9kZld9Pg1THRgcPXfXh09QT6PGgM ymnOgtUs88B1jF+poYU1Ifhoqtv6Ip3XK1CyjQHTPzdBklxptE8DDbDylDNILC+2JtVVWtJsgfLLz jPS2BgGW3WbmIj8PIl54mW1w7Kue3YkF6VqMohbPzj6O24FuWQRz4jeekPs8kWr+aPbLu+5izfEHv FTaZSrzg6MTQ9lb1QXXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8Lob-008fbk-2p; Wed, 29 Nov 2023 14:45:25 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8Lnz-008f9f-1k for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2023 14:44:49 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-54a94e68fb1so1892511a12.0 for ; Wed, 29 Nov 2023 06:44:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701269085; x=1701873885; 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=UALLKpV9GppdMlscN2nQEqLlvUCn7jrDNhPqfHBzo8PQ4Tc3y9UTspiHWZTkeQCiyP 94PoyxTOVa3F8wTTj23It45byiY+Spf9UXG4bE0CAkCBGSQ3ctnZpJtDZj/DPWtGAqpC BNiBvm0znSFyvrHUODpIHzzk+HIimS6pfNm7MJ/yATv2eyeCBqMN+0JnIcn0M/3garsa oi15Dy7D6wIWvB1cHkLIHvW+Pd3F1Qk7rnExGMnTUnh7eJGDziKKvvvUkYiPdiLvyYsW zt7QTuhxc7jYwPX1qo1ToqNmkrMePDF8R2RXt9zUqzHVZPv2wl2SmhCiTE7b30ME2kg2 ehfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701269085; x=1701873885; 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=duGBcwAb+V62ZzvDMlH/faJ/EancrXqW178vOTVcmGbrYCcdjoJSyIKBz1FtRmRBAr FhZ2tw+gk0EtP4+XyP84PmeHwD6cCAYwBqbQGDpSqRSFrsNux/XPb9DNQw63OvfVWm6w WlkZTBY6UUgCEwQkJHeYSiGQptuUaRW0i0mFHPYIU+syiB73AiYC86+syN1/4L2bYDeu dz+t0+B2I7uaTJuJ0jr21LFXkAgfBKYkc/KwEPi+hoi6Aip9KIM9NRAsIrIFhycDeQTb qt0vExlIfeYXvCooLVmoSUt+qDW6rwutszllC30KH/A9ZzgZschNkh4hhzYx1Eq0rbhR r/7w== X-Gm-Message-State: AOJu0Yzk7TqjQ650bkEd2EXIRbuRLBzTuqwfFxJj945/K/4gqkpuprIi 6AO78HWgpkiklR8d5TwbdE1Jnw== X-Google-Smtp-Source: AGHT+IHQRlhcQ4Xhxel2Db1u9eLdX03sF0JKF2E6dy/nhsMH+wCLpi6lTlVLrpKh4WFPfJSzdrFp7Q== X-Received: by 2002:a17:906:8d2:b0:9b2:be5e:3674 with SMTP id o18-20020a17090608d200b009b2be5e3674mr15978536eje.36.1701269085321; Wed, 29 Nov 2023 06:44:45 -0800 (PST) Received: from [10.167.154.1] (178235187166.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.166]) by smtp.gmail.com with ESMTPSA id e27-20020a1709062c1b00b009fda627abd9sm7913738ejh.79.2023.11.29.06.44.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:44:44 -0800 (PST) From: Konrad Dybcio Date: Wed, 29 Nov 2023 15:44:08 +0100 Subject: [PATCH v3 11/12] arm64: dts: qcom: qrb2210-rb1: Enable CAN bus controller MIME-Version: 1.0 Message-Id: <20231125-topic-rb1_feat-v3-11-4cbb567743bb@linaro.org> References: <20231125-topic-rb1_feat-v3-0-4cbb567743bb@linaro.org> In-Reply-To: <20231125-topic-rb1_feat-v3-0-4cbb567743bb@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 , cros-qcom-dts-watchers@chromium.org 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=1701269042; l=1186; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JMbrDi2bxn7DXN0vpomcpuwaGp6goPBlt7d60Jxny0w=; b=BwcOBwxvzLQvrUT6iIEDih2wIhizpUwF+XLbqSeggY3684UhOG00isvkcv7zRCld6lwYa+yjL 8/XdtyJutinAGhQFhwpzXPF2oeqAXXSMLBA43kgRU0151AxtzVbkS8V 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-20231129_064447_628166_A41C5524 X-CRM114-Status: GOOD ( 10.45 ) 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";