Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2014132imm; Thu, 11 Oct 2018 03:48:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV63El4G5AWmPmeAMscT0IyyUGed1qr6HUlZ5VnTa5tns1zTZGGexW19rm70y58LWjvbwypvc X-Received: by 2002:a63:88c1:: with SMTP id l184-v6mr903280pgd.431.1539254886783; Thu, 11 Oct 2018 03:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539254886; cv=none; d=google.com; s=arc-20160816; b=ZW9vkf+g7mtENhyDPrZsbR/YBkZ24y/gatLwihfKhh0mcnck/A39vd8pAhu0a6nRi0 LmyjMnXSh73N39ipweiDErFGm6Y0Y7UMfcuU7y0kYvVHrRLHFwt2MMxLtCaO4ZpaTEsJ hM+lETRf4+XGM6vdWPI6YBfRStCAPSITKtDwBXkivaFlcjE8QGPtq2/PIDzoyFuC/3VT EGygjOoShcpizATsRCiakdlEb/tlUNFRyXjfgChCC9zaWkDLQScor0I/SswsEM694Wtx Jd4hJyee+Cg0bBXeEmluj+ze3lLO3xNbbRmL669Gc4+2nQ/r0IiSWzHTRmQKcvQ8U+QK 9X6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=DUhCMY675xCMAwZfj+bOVyg8CWz+gvsHr1wGYqYhxUk=; b=Fl2JCmOrR5gUY/PXL7yNLerAEFhuH5mNfATDZxrTUPYm3oImSn82y7oGaPvs2IrPrL BtR3wDWGovh7sK7kjZ3Fkco4HyCoZPBEYzi+zyCFenFG9Dpuf/nLcDVfuGCDrF9felPM kdWLM/VNZ8OxUaXq55+98KczjSwim2EcbwoRYrKfys0cFLxIienh8YCbhr1wLl+vFicx snoUe5C0X2lMhx25Lq23LVNT1rMWCB/8NKz9DI8T+BYSka+TRi6GH6vc9JdczbE/n/DA JEHBYkwayDQOhcj6BE9FoFiv7ihTybv0KR/I4mbYCHBrXwTlh+84Y+mv83Gb9l6kXT5C eurQ== 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 j61-v6si28346329plb.73.2018.10.11.03.47.51; Thu, 11 Oct 2018 03:48:06 -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 S1728500AbeJKSJO (ORCPT + 99 others); Thu, 11 Oct 2018 14:09:14 -0400 Received: from shell.v3.sk ([90.176.6.54]:58318 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728342AbeJKSJN (ORCPT ); Thu, 11 Oct 2018 14:09:13 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 716A5BD02D; Thu, 11 Oct 2018 12:42:28 +0200 (CEST) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id u1KJRCuCgGYN; Thu, 11 Oct 2018 12:42:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 3C45DBD0A8; Thu, 11 Oct 2018 12:42:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 5MV--l3oDxu4; Thu, 11 Oct 2018 12:42:24 +0200 (CEST) Received: from belphegor.lan (ip-89-102-31-34.net.upcbroadband.cz [89.102.31.34]) by zimbra.v3.sk (Postfix) with ESMTPSA id DBF51BD02D; Thu, 11 Oct 2018 12:42:23 +0200 (CEST) Message-ID: <40e6a8575d4bdc43cc069e561e12f404983c5567.camel@v3.sk> Subject: Re: [PATCH 0/15] Add support for OLPC XO 1.75 Embedded Controller From: Lubomir Rintel To: Rob Herring Cc: Mark Brown , Geert Uytterhoeven , Darren Hart , Andy Shevchenko , Greg Kroah-Hartman , James Cameron , Sebastian Reichel , Mark Rutland , Eric Miao , Haojian Zhuang , Daniel Mack , Robert Jarzmik , linux-spi , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , platform-driver-x86@vger.kernel.org, devel@driverdev.osuosl.org, "open list:THERMAL" Date: Thu, 11 Oct 2018 12:42:24 +0200 In-Reply-To: References: <20181010172300.317643-1-lkundrak@v3.sk> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1 (3.30.1-1.fc29) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-10-10 at 14:26 -0500, Rob Herring wrote: > On Wed, Oct 10, 2018 at 12:23 PM Lubomir Rintel wrote: > > Hi. > > > > This patchset adds support for the Embedded Controller on an OLPC XO > > 1.75 machine. OLPC XO 1.75 is a MMP2 based ARM laptop. It plugs into > > the existing OLPC platform infrastructure, currently used by the x86 > > based models. > > > > The EC operates in SPI master mode, meaning the SOC is the SPI slave. It > > uses extra handshake signal to signal readiness of SOC to accept data > > from EC and to initiate a transaction if SOC wishes to submit data. > > > > The SPI slave support for MMP2 was submitted separately: > > https://lore.kernel.org/lkml/20181010170936.316862-1-lkundrak@v3.sk/T/#t > > > > THe "power: supply: olpc_battery: correct the temperature" patch was > > already sent out separately, but I'm including it because the last > > commit of the set depends on it. > > > > Tested to work on an OLPC XO 1.75 and also tested not to break x86 > > support with an OLPC XO 1 machine. I don't have a XO 1.5, but it's > > unlikely this breaks it when XO 1 works. > > I asked this on the OLPC devel list recently, but I don't think my > message ever got past the moderator. Could you generate a DT dump from > /proc/device-tree of an XO 1 and send to me? I have some DT changes > planned and need to see if they'd be okay for x86 OLPC. The /proc/device-tree tarball: http://v3.sk/~lkundrak/olpc/xo1.tar (Mirror: https://people.freedesktop.org/~lkundrak/olpc/xo1.tar) My distro's dtc crashes with this (could be related to your recent dtc fixes), the git tip needs -f to work around some funny property names. I figure a raw data as opposed to a dts/dtb dump would be a better idea. Also, there's no phandles, so it's of rather limited use. If you need those, then I can share a dump directly from ofw instead or patch the kernel to fabricate and expose the phandle properties. This is with the latest firmware. I guess the exact version is somewhere within the device tree. > > Rob Cheers Lubo