Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3244879pxf; Sun, 28 Mar 2021 18:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlS79UlecchH9Nitv0oqQBSztqlTBpturwF6aygwAb/JAspgNQ+8REwhIE3cfhjiZ7pKPf X-Received: by 2002:a17:906:7d7:: with SMTP id m23mr26635093ejc.205.1616980344504; Sun, 28 Mar 2021 18:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616980344; cv=none; d=google.com; s=arc-20160816; b=jSfJIXgfNBisJ/Jii1uDUA9bP46G338KVBiR44EpaqkO8xQ6AdYfBPQ8fTmmoOvjN3 bSWoggGLhurhvuyecsBzms6QjIXZ9T76hEiQVFoZ1wBSPCjri6mz9IEgACNUnr6fd8es yw/hL6jAwYcO2RLFm5QKrEjlKWmYcwR3DPKwqZvoRRwBz/jeyQHtyVlLNfXJf9VdLFpZ 6NGs1H+8cISMyuGRaEek2Tj8BjptkH4EqghMrcTewOeMjwYLuMvMlihvrwpgrbG4mHqT 7SeH0CZ6ZpREslUDIoY74p17b7qZuae6mbl/p5c9yF6wdfJVudy3g3ARDchFr+oTUjJR ZljQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=349fMBgcvLa2+pNSfzfycVChb5yT8zGK3bjeXkh2b54=; b=g0D5fV6tnVvx+K9jr+CdbYGSiXSb4WkY7JsiknM0nSuQOM/lRjaIqfNsQHf6DlmFKw RkZbSQnBDINNAtlPpy67Xmpl7hcAv3wvveTHu/g7Zy8Wob4Ba9PyMzzpZCnnWDrCqkyj kSY2RF6SK4QAvnpUai49NAikv1WzhsUsdigylR+Cxlov7F75RPK9I0/yqZCtR8M8mGbb 1vWggsroFRr8V/zz9HQvmnaJEuKS+jWCHyF611MNVMzXqvv00/hDs3jULvcaUaI7+lvW O/EScgGNnL/hy7M+03yIo8jYPrfANmm+dONZYlrN7UMwyjNxaXUQuHp7FhVBC01PycvM DI+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b=tYAV3AJw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si12662294edo.583.2021.03.28.18.12.01; Sun, 28 Mar 2021 18:12:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b=tYAV3AJw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231640AbhC2BIU (ORCPT + 99 others); Sun, 28 Mar 2021 21:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231675AbhC2BIC (ORCPT ); Sun, 28 Mar 2021 21:08:02 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5204AC061764 for ; Sun, 28 Mar 2021 18:08:02 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id l4so16833072ejc.10 for ; Sun, 28 Mar 2021 18:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=349fMBgcvLa2+pNSfzfycVChb5yT8zGK3bjeXkh2b54=; b=tYAV3AJw8goKt1/I7O4N9gCWAgwEW8sSZRa14XT9mZfyxwEeObMDl3W42OIKtzffuv hU4x0UFkFi8+rMG3TDwCTx3teYcimezXli/2hwxG0Q2DxNIRn5b697BGR1AIzhlrC3xd X2UxFk3DpKTYoYgAbJUWRKnszi8byKrP6EDHBMYS2BLEUN80cmWm+KjJZyYtfjLgZePW Vuuvf2SDnJJ14TroALOxjjQEqhnZe5Q9qqrfXSQjR6BM4oC0QryXWiTXQA9AbisGjsc/ NFRXKpaM31T02m1hkP+9CX+F+RsEb4rigy77KDGuIdsJ8HQzes+kWnK4njaFgdwZwWu1 y1GQ== 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=349fMBgcvLa2+pNSfzfycVChb5yT8zGK3bjeXkh2b54=; b=fVFXrTguVp3uy6fcB8369DKjSfOD6mJBtO2gCe+hU/PXarVd+M/GA/3rA56JoQxpXU gNW8qMXlZmJb1l7s4/F0n3/D3nRC/n3zrBBHBqR/d5Mqb8B+DjCU/I/MSOLQihbKTGPv dayQJdNQib0a6yyslQcxzouy72MnCVjzqGCyN+W+VsdqqQNy2cuNwPWNZDxbgFXMIvW6 1mDY4wezcEq6wXHcO6nzu2qGQ5VDJYKGoKD01tfBwzik9s1BPdKcsrCA2M9Nm3LOGIMy MKnLF6kolvOExTU8pJ3vDUG7PjEqTZTmmEGM2HrkbjaEBE931ku/EXeGeesA60H1XR1K HbWA== X-Gm-Message-State: AOAM531w/56gfbHbCPzMWYRtYCQkckkk9rMNhRVVVwzguyzDnZE4bz8Z SfgkxJRiaIdADoMHZhHfI+PK5gdZBKQ3HKw6l5ZEIw== X-Received: by 2002:a17:906:52d0:: with SMTP id w16mr25994658ejn.172.1616980080843; Sun, 28 Mar 2021 18:08:00 -0700 (PDT) MIME-Version: 1.0 References: <20210304034141.7062-1-brad@pensando.io> <20210304034141.7062-8-brad@pensando.io> <20210304080355.cc37g7jagswro3dg@mobilestation> In-Reply-To: <20210304080355.cc37g7jagswro3dg@mobilestation> From: Brad Larson Date: Sun, 28 Mar 2021 18:07:50 -0700 Message-ID: Subject: Re: [PATCH 7/8] arm64: dts: Add Pensando Elba SoC support To: Serge Semin Cc: Linux ARM , Arnd Bergmann , Linus Walleij , Bartosz Golaszewski , Mark Brown , Adrian Hunter , Ulf Hansson , Olof Johansson , "open list:GPIO SUBSYSTEM" , linux-spi , linux-mmc , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 4, 2021 at 12:03 AM Serge Semin wrote: > > On Wed, Mar 03, 2021 at 07:41:40PM -0800, Brad Larson wrote: > > Add Pensando common and Elba SoC specific device nodes > > and corresponding binding documentation. > > This also needs to be split up into sub-patches seeing these are > unrelated changes like device bindings update, new platform DT file. In patchset v2 this is split into sub-patches. > What about converting this file to DT-schema and adding new HW > bindings in there? Converted existing file devicetree/bindings/spi/cadence-quadspi.txt to YAML schema. > > +&spi0 { > > + num-cs = <4>; > > > + cs-gpios = <&spics 0 0>, <&spics 1 0>, <&porta 1 0>, <&porta 7 0>; > > Oh, you've got four peripheral SPI devices connected with only two native CS > available. Hmm, then I don't really know a better way, but just to forget about > the native DW APB CS functionality and activate the direct driving of > all the CS-pins at the moment of the DW APB SPI controller probe > procedure. Then indeed you'll need a custom CS function defined in the DW APB > SPI driver to handle that. Yes, with an Elba SoC specific gpio driver. > So that GPIO-controller is just a single register which provides a way > to toggle the DW APB SPI CS-mode together with their output value. > If so and seeing there are a few more tiny spaces of config > registers added to eMMC, PCI, etc DT node, I suppose all of them > belong to some bigger config space of the SoC. Thus I'd suggest to at > least implement them as part of a System Controller DT node. Then use > that device service to switch on/off corresponding functionality. > See [2] and the rest of added to the kernel DTS files with > syscon-nodes for example. > > [2] Documentation/devicetree/bindings/mfd/syscon.yaml To us it was more understandable to implement a standard gpio driver for the spi chip-selects.