Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp602399ybm; Mon, 20 May 2019 23:48:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwH3ZjHLL2lnhXHsMITgjgtoeO28UE0e0ZMYSd0pxks45FohNTE4iFTjZF0lk+165d57cfZ X-Received: by 2002:a62:6844:: with SMTP id d65mr7300727pfc.175.1558421314113; Mon, 20 May 2019 23:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558421314; cv=none; d=google.com; s=arc-20160816; b=KMy7Kka0/pQXdtwUo5YBGgDseQbD/5bfk1kClK8D52YXxuE6TxUK/mEwCeqxDIkBWi pP+DLzsAa0SFPJoTAtqjTqdq/1MIzDOVGmHSw3WQNVRYAwz1pEUGgyKcHizNmThPN7DR kZXQJKAoGhXrp6ERYgPAbX0MWyltz7E+k9ER2MZu6vxyoWvmmvxdR9s6b3MEr/MVzTLZ Jpz9sKcGK8dVtfHaaF8SX8fr2BCFCC7sAKPk9ZB9dyb07d6uaWm8hCK4DjG5YpHNUVBk pBOe/BxiXBl7CfZWF+YUChsjWaJZxLgPc3HPbduISp16YdFnV+Syfwd20zsyusR0Gidm UjAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Dtcdsu0fUtok0q96jnMGpWM0fc0NoVZ6NVYcC/TU3EI=; b=lcsz3fp168qEtLIN9s3t5Og5Id9itwetAOqzMy5nwEksZLy3N33YihCgKfym/Bgxp5 DDAo1nKfzUoPFKrA+azITLQ9IqI5G+VVPHeXWvAf5kpPxnCAHmy9dmry/dopKHakaOTl fO7WeNY8ButJ4CIu9RmW5PK7qgPCLlGraRSoFuvaa8BXzbfwKblrr3tspD5cMW3XgHNL bZCIVhTQxfBXO4QNIweptPNEcaxkLhHfbUlWfXAy019tYVvE5EZWO8xIUw0mSdSfc40s /AZrDOjeh9EGwGkj0moPo5mApPaPk8A9LVHKlAYror23OjHzLwRsnyrmAB5Uk7T/t624 qdmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KeH2Aa8U; 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 c14si1259396pgd.314.2019.05.20.23.48.19; Mon, 20 May 2019 23:48:34 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KeH2Aa8U; 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 S1726953AbfEUGrQ (ORCPT + 99 others); Tue, 21 May 2019 02:47:16 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33718 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726252AbfEUGrQ (ORCPT ); Tue, 21 May 2019 02:47:16 -0400 Received: by mail-wm1-f68.google.com with SMTP id c66so1550144wme.0 for ; Mon, 20 May 2019 23:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Dtcdsu0fUtok0q96jnMGpWM0fc0NoVZ6NVYcC/TU3EI=; b=KeH2Aa8UGeY3ald/vMtEvRNEPoOZgF6ZxP+nhAsZupukHiOm8t0PXqEZS/WBoeHG/0 7vTSdr7BTbtHz2o2Jqvx7wMH1SmkqwzYd5Gdg/w0hH3eL/OlPpzUlozsZ4rN6E/h7sMd bMdDLCwW+K7eQEPgfsVVK5lh7g25N8mZ7wUgg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Dtcdsu0fUtok0q96jnMGpWM0fc0NoVZ6NVYcC/TU3EI=; b=Mq6oWR2OM2LmGjyBfIa7bimtUgCJlhu56Pn6CBCuNkVFamH5ROn1DGJLnVYNZZXIcD i2s3KwxhuX4FoTtjG9Q2NbOvgevD7HOXJ+5N5iIREVdklqKfzC195nufBrzpvXbB4Alq 0WMSfzfWW08T7AlGl++K8BCSlzLoZh8HynMuzN3Jo9d5/lrzBuyA8i8yn6JzglBnCXmF UyMPz4Zd2M7niHTt04xdPl1BFRLi0YBWyLcbD7lo85Ll0B0JvJ6jwRVUJhC4piKmS1XS Tv6RysbHTPErzWuNK6emN3vg1ZSl1tnsKCQ8eSnwo4Xax/b7B7RYkFKpPfaRaXSvDdwm O5zg== X-Gm-Message-State: APjAAAWdGYR5izijrpBp47D+OldmlgMxxu8EzQBZAGStXGhMTZ/suHKG VqrctyjE0KuGRdF6cCtXXt8CjaUAGAc8sg1nrVWCrQ== X-Received: by 2002:a1c:7310:: with SMTP id d16mr1907943wmb.65.1558421233660; Mon, 20 May 2019 23:47:13 -0700 (PDT) MIME-Version: 1.0 References: <20190418141658.10868-1-jagan@amarulasolutions.com> <20190418145641.q23tupopz2czjzc5@flea> In-Reply-To: <20190418145641.q23tupopz2czjzc5@flea> From: Michael Nazzareno Trimarchi Date: Tue, 21 May 2019 08:47:02 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: allwinner: a64-oceanic-5205-5inmfd: Enable CAN To: Maxime Ripard Cc: Jagan Teki , Chen-Yu Tsai , Rob Herring , Mark Rutland , devicetree , linux-arm-kernel , LKML , linux-amarula , linux-sunxi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime On Thu, Apr 18, 2019 at 4:56 PM Maxime Ripard wrote: > > 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. > Correct, need to be dropped > > + }; > > + > > }; > > > > &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? Mux of their function is correct. They are connected in the schematics but not used right now. I can garantee that kernel wlll always configurred in the right way and if I want I can export in userspace for debug purpose Michael > > Maxime > > -- > Maxime Ripard, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com -- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL | | [`as] http://www.amarulasolutions.com |