Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3030004pxb; Mon, 18 Apr 2022 13:57:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzObFOusnmYTupEzH2kBjiDgKaYUY3CAC7t8dTGuBfsPudz+azslWs8tN8hwL1gTYqQ+W/K X-Received: by 2002:a17:902:cad3:b0:158:bc16:d5c6 with SMTP id y19-20020a170902cad300b00158bc16d5c6mr12659470pld.26.1650315435278; Mon, 18 Apr 2022 13:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650315435; cv=none; d=google.com; s=arc-20160816; b=pZy7wU7QCiYHYzC48WyCYgL9ffyNwQrHpIbOiOElMVu0LrXRxhYkHGXdSu1HCdCm8T yRbuSAFpnRdSG/jPVBc8DpM8heivyZWJXc2WlHJdFMbSmSFPEMD5cjemBf4+knFgvt7+ au7ModWug9qQLLDtpk/tOdy0hLda0e3XxfQvHYYKARFmmXKiYDJx16yjv0axKg7Y2PZn +PeuB2XUtqd1XIRWRGE6jk5c5eBSU92vj4uwy6CMLL3Wxe4Lqz9kIBJNvshuKR35VO5r dhYxJ9PJE4P0TEJgcJPg4j5zL6soaitZdCgaTYTIy1flczmVWkP1R4N9OXtDSgbseJM3 vvwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7ba46jIxIFa+fMPP1zTs2SBx2j36CdM5NHASDsaZ5Hk=; b=l1KMPSFwRhVHbzZxCMNh6Nke3XUMAmDsjc8FBzK89Y+EyOYrlmKUHt9hWR9OEvyGS3 cuHN7NOPKJbqqFLCR+amqqrtPx8fsdEkCe5MW85bnvilsoIalyZw5vMIZfD5bfnkD+TH 89rsx9le1nrkkJ6brTNqfK5NgBX0VOLAPibfqcei8qKGOyzINNcODDsB74ip+NB1jkTP 48RyKySZj8nUidnJzc5Rujlm7sSmx4JLF/MvZR8+wltEfPTAdjvawjOxqdFqGwUYh1s4 hbRRK8H6Nab5QLm6XTX51Uf4t2yvGwPJgfW7ZVgity+S1kk3JnnMIt+v5Rxg8kJAJYww gJgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G6wJ9AoU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a11-20020a170902900b00b00153b2d1655dsi9306443plp.357.2022.04.18.13.56.59; Mon, 18 Apr 2022 13:57:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G6wJ9AoU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244356AbiDRN75 (ORCPT + 99 others); Mon, 18 Apr 2022 09:59:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244265AbiDRNjK (ORCPT ); Mon, 18 Apr 2022 09:39:10 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC98C28E0A; Mon, 18 Apr 2022 05:58:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 14397B80E59; Mon, 18 Apr 2022 12:58:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EF03C385A9; Mon, 18 Apr 2022 12:58:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650286730; bh=/y6aPwFRVj92zxx7fmjocLx4rsewxwFGQqqv1VcWFBg=; h=From:To:Cc:Subject:Date:From; b=G6wJ9AoUXGFupilLRiI8AiOPumLH4HP1T2wyvciBTwH4/94EOUpLYrwUvIzDXnmpI kd5ebXBK5qDBPD1X3LokSUYanSma7cCO/vk0dSFMYg3dhU/Q+p5E9nRSB2tQ56ztaC foHtDysLn9ijB2Bv9n0YRdgI0SYjcu/P3vz3W1HFN6LifO3sjy4J1OBir8Ug69I7GU 1E3w/0rYzekmHPdJ2jGTs+OQeSXrAscGGdtOjIB/lmSE5+WR2SC2bbMZMK9g+cu1bh fmboFJ4q/HXmAAS/uoFISd5ilTTg8pdvuDGaySPAF+bxQVvxMVC9q3oHISrvcngi4h e8Iip/Tu4cFOA== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Vinod Koul , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH] arm64: dts: qcom: db845c: Add support for MCP2517FD Date: Mon, 18 Apr 2022 18:28:41 +0530 Message-Id: <20220418125841.1409738-1-vkoul@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for onboard MCP2517FD SPI CAN transceiver attached to SPI0 of RB3. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts index 28fe45c5d516..5179f8ddb060 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts @@ -28,6 +28,13 @@ chosen { stdout-path = "serial0:115200n8"; }; + /* Fixed crystal oscillator dedicated to MCP2517FD */ + clk40M: can_clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <40000000>; + }; + dc12v: dc12v-regulator { compatible = "regulator-fixed"; regulator-name = "DC12V"; @@ -746,6 +753,22 @@ codec { }; }; +&spi0 { + /* On Low speed expansion */ + status = "okay"; + + can@0 { + compatible = "microchip,mcp2517fd"; + reg = <0>; + clocks = <&clk40M>; + interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>; + spi-max-frequency = <10000000>; + vdd-supply = <&vdc_5v>; + xceiver-supply = <&vdc_5v>; + status = "okay"; + }; +}; + &spi2 { /* On Low speed expansion */ label = "LS-SPI0"; -- 2.34.1