Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3215707pxb; Mon, 18 Apr 2022 19:28:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDWBUv2UHN4uOgTEiaHJePm0uOBPHTSM1eDs/JFcfDrgYM7LinKe9LsS60ukCm02GOzy7o X-Received: by 2002:aa7:92c8:0:b0:4fd:c1aa:3e11 with SMTP id k8-20020aa792c8000000b004fdc1aa3e11mr15594649pfa.29.1650335298291; Mon, 18 Apr 2022 19:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650335298; cv=none; d=google.com; s=arc-20160816; b=ImQqpz2xGqZ0usO2ZPWMCnzEOZP0HPH/XnmS3Qf5m4kILiEZikw8QR0fHVK3ZS+DAD vx4iLZkJVQOwI8Uif6uF+1P6+gsyJDfIVu2mgwp6EDNmrsPv5SRlUgu1u8ElpJySmSpi JAixb50ywY/ajFLNONiQlMrEbr6J9TMZ4id62QoAP5Y1dy2cVN7cXoZLm98gc/kQ0BuU R9BpPPA40ACh7TnV/Ev3HVGvyXr539he1oNCdUORO4V2ZlxtHtWaJP0oV2+qlHkq9Afa UyEELwH393NYGFj4PceyXlWpyiuACxcpp8Sin6pz1tUq/bx7s1pUK83VGPyAYmzskcrb 105g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=H4EqCwuY4oIdH+/IELFDl3HNX6604Td3TDjPuFjb+SM=; b=eNyUj1kOAkscFnl7+J80DW9Vq6sCfeA8vwRjnuoGRhQegI3tbXheBGdzued7y2IHYG dP26YGDrrFtgS1u1X1N3jY+vnInyaX4Al1sxDlrnAFpYMArnxkCIqMJS6KWKhK5Lwzga IWYQHBbNlD1ZtSoxVPdN84fsV0blgR1eCl/RmxkoxUU0l4NJpdUw5xHwwT2n9CZo/SRB MxkW7lkFCMHf1O0XgVVNgxJpgD3CB0pzN6jhd8m71EmgNr+KB2H8ByEKzIkohHw9RqSu TzjsVzwNlMRe0HwiA71eWK1hv/jcHva9xtdk7//RsmkZWVEo21cEy04FpMLMKZRYk0p/ 5OTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EG4G8cSP; 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 z185-20020a6365c2000000b0039d946f302fsi10087220pgb.568.2022.04.18.19.28.03; Mon, 18 Apr 2022 19:28:18 -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=EG4G8cSP; 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 S242754AbiDROyS (ORCPT + 99 others); Mon, 18 Apr 2022 10:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232684AbiDROx4 (ORCPT ); Mon, 18 Apr 2022 10:53:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DC8225FF; Mon, 18 Apr 2022 06:42:49 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 272866123E; Mon, 18 Apr 2022 13:42:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1C7CC385A1; Mon, 18 Apr 2022 13:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650289368; bh=bqGZ1kGzyUYlvq41yPIPnL6lghliWJl9al76Y6Ostu0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EG4G8cSPEIjpvBEh3QKd83QugJPpMcYsstxGLCukXXwMri6KydxLAwqGdhAAborIZ /JWcOA0MLN9QVbRgDxbmOY30mwEP83Zhix5Fl0X5gblHoCuPk5Hbg+7t19GzzzMDQm 6ZjywOk5cjEkAeE/w3Je6HlWK/H1MjEV8v37e3zEvku9VYjKACEL4kGHDxlEr7UP6r 6XjUXuiLR2kbNMCOmdny1RbAEGvWmmvxVM+8uCQngUlXBO8ZiiFdZoW09pgBpWP4/l 47KD63l8ON6Oyf765MNc3/HWuWhs8Wf5necNkSV6jLBlY1SJhuuctmaHG0PKqcuu1M vYF21C1QUparg== Date: Mon, 18 Apr 2022 19:12:41 +0530 From: Manivannan Sadhasivam To: Vinod Koul Cc: Bjorn Andersson , linux-arm-msm@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: qcom: db845c: Add support for MCP2517FD Message-ID: <20220418134241.GA161722@thinkpad> References: <20220418125841.1409738-1-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220418125841.1409738-1-vkoul@kernel.org> 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 On Mon, Apr 18, 2022 at 06:28:41PM +0530, Vinod Koul wrote: > 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 */ Only SPI2 is exposed on the LS header. This one is dedicated to CAN controller. > + status = "okay"; No chip select? Since CAN controller may operate at higher frequencies, it makes sense to increase the drive strength of the pins. Thanks, Mani > + > + 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 >