Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7973772ybl; Thu, 16 Jan 2020 08:35:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzSaHlbGfbb5Z4K5qZqconIycZk79YdXliYIEap9YIpzjPHapsRDx0J49n1mfshhxSDyYtV X-Received: by 2002:a05:6808:611:: with SMTP id y17mr4518002oih.146.1579192512620; Thu, 16 Jan 2020 08:35:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579192512; cv=none; d=google.com; s=arc-20160816; b=O8zg7R4KKFiwPuqE3c4X4Iq7wp7pwFyln5bvEZSRAixOkliTV2KrlPNwi0u6ujC4KH s3SEdFWJvdQNKeDBtAssTNjjk1l1++Ixct4n0oMDjRgI+uOGvif6xJhlCC2+U9Ly1daj LZkrXvhZTh6vCkh85mA4oRauLJ8qn8s/phi7epOe4Kmxem/KMjZjEwUkRKM+nYniZEY8 LPkquLYTXbQ9GWoZRS0H1TLQYrQd7DktDBatHNuitjgOm5gzzWGGc/5M7YA4KF0nOGli 3TykpKZiONGQRLaPLQ+ayRRDWwWWlcJFULBIP1yXPcrw4yeXNuikvDyuL9dyx2bhA6ow XfEw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=S85uscN7yhzJO2Ef9A+zq7yiM+wrIzcImfs5dog/914=; b=ZEdp6LCBGEhso1f+6NVjpNSCQTDUlBESgLY6BajXIcZ0n6vFJFzOPyiUnXbOKQorTw qzq/Lfa/Pvd7a7Tz431oRnQ/lEtkKeHxa12vBNuOGj2vaGb7oafCVfMnDeEaO+7PwkqS i65i7Pq8VE8uCvW5+veqQGY+FoyZP9m1aVeN+Uv1goPNYPQPD4+FflDdpazawR9p2At6 x547cGn/yLt76nX16qLpo3V5E9GJ3WEIy1z4HPPUQLWra1ajFvSpBIT1uqxq5J8EphXj 4ZgAjruH0mdB4Q1oq921mZxDDq+PXIwXW+votdfpYnwILLyuIY0VCL++DqZFsvaITa2T y3Fw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d192si11704514oig.21.2020.01.16.08.34.59; Thu, 16 Jan 2020 08:35:12 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726872AbgAPQds convert rfc822-to-8bit (ORCPT + 99 others); Thu, 16 Jan 2020 11:33:48 -0500 Received: from mailoutvs21.siol.net ([185.57.226.212]:54468 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726151AbgAPQds (ORCPT ); Thu, 16 Jan 2020 11:33:48 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 20B0F523B22; Thu, 16 Jan 2020 17:33:46 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta11.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta11.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 5RtdmHMpsPgp; Thu, 16 Jan 2020 17:33:45 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id C6669523B46; Thu, 16 Jan 2020 17:33:45 +0100 (CET) Received: from jernej-laptop.localnet (cpe-194-152-20-232.static.triera.net [194.152.20.232]) (Authenticated sender: jernej.skrabec@siol.net) by mail.siol.net (Postfix) with ESMTPA id 808C9523B22; Thu, 16 Jan 2020 17:33:45 +0100 (CET) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard Cc: Rob Herring , Chen-Yu Tsai , Mark Rutland , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/2] dt-bindings: arm: sunxi: add OrangePi 3 with eMMC Date: Thu, 16 Jan 2020 17:33:45 +0100 Message-ID: <12435330.uLZWGnKmhe@jernej-laptop> In-Reply-To: <20200116122944.sgl2fgxf5mrg6i52@gilmour.lan> References: <20200115194216.173117-1-jernej.skrabec@siol.net> <4200557.LvFx2qVVIh@jernej-laptop> <20200116122944.sgl2fgxf5mrg6i52@gilmour.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT 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 Dne četrtek, 16. januar 2020 ob 13:29:44 CET je Maxime Ripard napisal(a): > On Thu, Jan 16, 2020 at 12:10:58AM +0100, Jernej Škrabec wrote: > > Hi! > > > > Dne sreda, 15. januar 2020 ob 22:57:31 CET je Rob Herring napisal(a): > > > On Wed, Jan 15, 2020 at 1:42 PM Jernej Skrabec > > > > wrote: > > > > OrangePi 3 can optionally have eMMC. Add a compatible for it. > > > > > > Is this just a population option or a different board layout? If the > > > former, I don't think you need a new compatible, just add/enable a > > > node for the eMMC. > > > > I have only board with eMMC but I imagine it's the former. Even so, > > current > > approach with Allwinner boards is to have two different board DT files, > > one for each variant. This can be seen from > > Documentation/devicetree/bindings/arm/ sunxi.yaml which has a lot of > > compatibles ending with "-emmc". I guess reason for that is to avoid > > having MMC controller being powered on for no reason. > The main reason for that is that those populating options can be > conflicting. For example, last week we discussed an issue about the > eMMC being on the same pin set than an SPI flash, both options being > available. > > The solution Andre suggested then was to let the eMMC be disabled, and > have the bootloader probe the emmc, and if found, enable > it. Otherwise, it means that you have a SPI flash (and enable it). > > I guess a similar solution would apply here. From what I can tell from schematic, pins are dedicated for eMMC. So what solution do you suggest? Put eMMC node in original OrangePi 3 DT and set status to disabled? Best regards, Jernej