Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp974059pxb; Fri, 22 Apr 2022 15:43:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5TP6PXSSMJaa3bkNXOExIv9Jd6ikXeFjVDUJMrnRYpV127jlo5ozrGx3xkU5YE0CvtOgO X-Received: by 2002:a4a:94cc:0:b0:332:9bdf:8176 with SMTP id l12-20020a4a94cc000000b003329bdf8176mr2485392ooi.63.1650667426508; Fri, 22 Apr 2022 15:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667426; cv=none; d=google.com; s=arc-20160816; b=NFzJyJOX56hXABa6643MimQE8Sa3bXZbgV73tqRCSsohhveldHXYally5Cbe8aDRfN BgrZodnOtX6FCJtd6SDG6xSOMEAuizsUwi8W5pkp+18DzWlADmJqfPPS20Zvy/eh959M BiXuWT8oY4X59WxIwgyH5c+MDOk/ghNzsUGAIkRyqnGc3QYx3lnowhYdXrozbPWkZ4U4 MVfziPP7TwQtGvBaJ63BSBmftcYFSoB8+5v6OVjBD8vQOm0si73X+wqbq0E1q+H3nwzx XFcGv5ufRc+KlKmMj6fB4B0toF+noe0Uls0XJmhHAq3MgNWMaRmQBBguG+r74Q6mDDB2 pa6A== 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=41lQp5FasXyecWZ8OqAJYEJElrqHXdwRA6dS9aUNGvw=; b=qRt8Zo06P/Wz8HYCqf/F1TfUIOPqYyTaHH983TxA4tX+KXAZUEI6VmMrB82tPKtT5E RGaMo4drsTzx2dkqg0IlR51f1pW5E3zHS5iUcaaZ5axnGcNH/+pyQGxH0fWfbBx7r+L5 ufcelAkhGrH4KvDcbssPzqWrl1Lxky5n+HiCh88yEY1DVeJ6O/3BR84ztbXlkpIX+8TH Pse029UiMb8JxBroYns3xsK0juMm+xfXcjlTb6UEJnBj+FbCAzuPlfDkqTpuNqDMUgue 0AO72pXfLR/+snplEqtvRFsLBKZGW+pQi99Sc+hOdjZ4I/Qy4IOXR7Kfq/LRvT9nUSOM SFKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QzXJaaWU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id w1-20020aca3001000000b00322da8d1922si4425257oiw.186.2022.04.22.15.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:43:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QzXJaaWU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B58B28B63B; Fri, 22 Apr 2022 13:31:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229842AbiDUNEA (ORCPT + 99 others); Thu, 21 Apr 2022 09:04:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229814AbiDUND6 (ORCPT ); Thu, 21 Apr 2022 09:03:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CF3A32994; Thu, 21 Apr 2022 06:01:09 -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 D9FC1B82432; Thu, 21 Apr 2022 13:01:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 869EFC385AB; Thu, 21 Apr 2022 13:01:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650546066; bh=26fiXcvDemM6BJ7uZ1NVAx0sy6/ya5jdkv/ODhIVIJM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QzXJaaWURzsxlRelTQ1EYdAlpTjHmbufxUxEVBW/phmgqw3wF4Mv6nyK0VdBdYv2O XxwnR6Qubn80jnGhFQ++iMw9V3wKMIaZeUwNi765ODsUFuMz/NXDde8+sE+MsH9XT3 4EvH20663mGCDBT06jpb5TPaKl+IN6K+vMWk4x9AZ1Kns3BMq+8G5rl3O6uDBayHgX vLvco/PPlVguW/VXsLgvXMeulXm5oNpIlDJZr1RGUeTVc46MBM5sL3mYIvFv75Euql uUR+YTgLliR2gXApnYL5muRWwW3yCGB1Kk7UMAxPLGV63gEpijnH15uZR7K8Z+t9zT ogfspf4u1cAfQ== Date: Thu, 21 Apr 2022 18:30:57 +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 v3] arm64: dts: qcom: db845c: Add support for MCP2517FD Message-ID: <20220421130057.GB262430@thinkpad> References: <20220421073438.1824061-1-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220421073438.1824061-1-vkoul@kernel.org> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 Thu, Apr 21, 2022 at 01:04:38PM +0530, Vinod Koul wrote: > Add support for onboard MCP2517FD SPI CAN transceiver attached to > SPI0 of RB3. > > Signed-off-by: Vinod Koul One comment below but irrespective of that, Reviewed-by: Manivannan Sadhasivam Thanks, Mani > --- > Change in v3: > - change underscore(_) to dash (-) in can-clock node name > - remove superfluous status = okay in can node > > Changes in v2: > - add cs and pinctrl config > - remove misleading comment > > arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 32 ++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-db845c.dts b/arch/arm64/boot/dts/qcom/sdm845-db845c.dts > index 28fe45c5d516..d2ade684703d 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 { clock@? > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <40000000>; > + }; > + > dc12v: dc12v-regulator { > compatible = "regulator-fixed"; > regulator-name = "DC12V"; > @@ -746,6 +753,23 @@ codec { > }; > }; > > +&spi0 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&qup_spi0_default>; > + cs-gpios = <&tlmm 3 GPIO_ACTIVE_LOW>; > + > + 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>; > + }; > +}; > + > &spi2 { > /* On Low speed expansion */ > label = "LS-SPI0"; > @@ -1219,3 +1243,11 @@ ov7251_ep: endpoint { > }; > }; > }; > + > +/* PINCTRL - additions to nodes defined in sdm845.dtsi */ > +&qup_spi0_default { > + config { > + drive-strength = <6>; > + bias-disable; > + }; > +}; > -- > 2.34.1 >