Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp684439yba; Thu, 18 Apr 2019 07:58:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzG7oCx6/v0qRHupdS+mf5i5cdPN0mRl4uJwzey0uyRqIVt6FRMlQ+h7lkVvruRd7p+vjNW X-Received: by 2002:a63:b0b:: with SMTP id 11mr4883937pgl.445.1555599481850; Thu, 18 Apr 2019 07:58:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555599481; cv=none; d=google.com; s=arc-20160816; b=rnKMOsx+LWmG000f5D3PN9DGxqhuNwdvadwTLIdmapcZp7nqap5HVtshahNU3gXf/D 8TyVZ/HTwBFK0UuvTo0s3G4qsX208mv2TM1RVF97EKuKcr5mv8JdPqMZh7z6k+k6sVho X1Mej8v3BQ8aa+utmFYX33B3ElhjQU7BZxDaJiNN0Vsli/kPlsc7Skbkg2oa8Ht1bdzA eDonejOrNYx4rpGVEayuX3zNtcD9RD3qsOFcVE2KLHBF2sN+44P9549XtLDPhGRCnVJI PzX8dC8uUVNI3FeFPzCd3PRL3o3TEWF1JgTBlLCt4Ky/wDTOHtgpWxelrEmsIOSl5YPZ 8/OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=y250LllefTD5dwrIgzZZqypTC+BJmqfBY+Feky9/Jr4=; b=Tn3qO23CSw9Cg46a039CVOQCZqnvbMN9F19HCI5oa6ANvnPXh+BzR6LO+qupLafKyK ryRLc91zRQ+jMdf/38YlfF+VBYcuaqg87XNF9GrZCsJy1tDkg5Xe0zIcZMEMeDZ6JQOy sXFsttYrQB6nWerAcT2giWOiNk999gcYdiGoy3H9iJ0pUhCylKDcA0KP6pedBo2wEjxu UnI990zar34vhG/0lcLedWFxKmXikvhoi3+f8XhCqRX8vN+CJysQtN2EEH8jOzO8jLtu d9f0xwnp3Yc/yyTY2m4uWzL1ZakQgqetxUUKnbhwbvMthbVO5R0NeVezQCLrlRPvLNws 045A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si2342546plb.256.2019.04.18.07.57.46; Thu, 18 Apr 2019 07:58:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388850AbfDRO4q (ORCPT + 99 others); Thu, 18 Apr 2019 10:56:46 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:44971 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731317AbfDRO4q (ORCPT ); Thu, 18 Apr 2019 10:56:46 -0400 X-Originating-IP: 90.88.160.238 Received: from localhost (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: maxime.ripard@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id BC80C4000C; Thu, 18 Apr 2019 14:56:41 +0000 (UTC) Date: Thu, 18 Apr 2019 16:56:41 +0200 From: Maxime Ripard To: Jagan Teki Cc: Chen-Yu Tsai , Rob Herring , Mark Rutland , Michael Trimarchi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, linux-sunxi@googlegroups.com Subject: Re: [PATCH] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable CAN Message-ID: <20190418145641.q23tupopz2czjzc5@flea> References: <20190418141658.10868-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ubqlaoup2nr4gj7m" Content-Disposition: inline In-Reply-To: <20190418141658.10868-1-jagan@amarulasolutions.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ubqlaoup2nr4gj7m Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 18, 2019 at 07:46:58PM +0530, Jagan Teki wrote: > Oceanic 5205 5inMFD has MCP2515 CAN device connected via SPI1. > > - via SPI1 bus > - vdd supplied by 5V supply along with PL2 enable pin > - xceiver supply same as vdd > - can oscillator connected at 20MHz > - PB2 gpio as interrupt pin > - PD6 gpio as RX_BUF1_CAN0 > - PD7 gpio as RX_BUF0_CAN0 > > Tested-by: Tamas Papp > Signed-off-by: Jagan Teki > --- > .../sun50i-a64-oceanic-5205-5inmfd.dts | 43 +++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts > index f0cd6587f619..22535a297f51 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-oceanic-5205-5inmfd.dts > @@ -21,6 +21,24 @@ > chosen { > stdout-path = "serial0:115200n8"; > }; > + > + can_osc: can-osc { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <20000000>; > + }; > + > + reg_can_v5v: reg-can-v5v { > + compatible = "regulator-fixed"; > + regulator-name = "reg-can-v5v"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + regulator-boot-on; > + enable-active-high; > + gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* CAN_3V3_EN: PL2 */ > + status = "okay"; You don't need the status property here. > + }; > + > }; > > &ehci0 { > @@ -77,6 +95,31 @@ > status = "okay"; > }; > > +&pio { > + can_pins: can-pins { > + pins = "PD6", /* RX_BUF1_CAN0 */ > + "PD7"; /* RX_BUF0_CAN0 */ > + function = "gpio_in"; > + }; > +}; That isn't needed. What are they used for, you're not tying them to anything? Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ubqlaoup2nr4gj7m Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXLiQKQAKCRDj7w1vZxhR xRf+AP9HjPtUm9E6M4+r2qWke+5hMF4d+A4bbuD9FzCcaMEJnAD/arISN0KgRAnn 8+tjI3HkIRFz/RZaKY8qQg1257S15QE= =YwZr -----END PGP SIGNATURE----- --ubqlaoup2nr4gj7m--