Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp902688pxb; Fri, 22 Apr 2022 13:53:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7rfeFkJr6Ys2zsP1eOkCxcgS7Zbh7CQ2hEJn5P4tb4el/b6LYdZZuPUgQAvsK2/81E+Y0 X-Received: by 2002:a62:685:0:b0:50a:5870:10b1 with SMTP id 127-20020a620685000000b0050a587010b1mr6627288pfg.61.1650660833450; Fri, 22 Apr 2022 13:53:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650660833; cv=none; d=google.com; s=arc-20160816; b=nLoPN+9rLINpv21w9+0gG2x4Qs7b7Jene9WT+EgbAtGZfLSDPU/r1QJAtlVXHyw+1L 3WTjLYv4ew/Ot/coWbo1lBrz551IryrAVtxnR3s/bCrPzuhc8PutkyCWj8USM4UJ8cCF C7gwxtbrGFiG7uHQxU5UnHSu7gAxtOaN6eQpgJJ9yau8xkmvnIrmvD6KV5kDcDhUVkfN qS4hbYa0E5o5gkqpFLj1hl3n7SZFUst8iI8zvJpJ79Vf/vD3ZD+zQe1R+zbFyCDgYKY+ JhMSX5GFzDm8j75XhqYwXxBciSoGI02E9Jf6Ks0QXh8WMc+cEsg3syrN9r7qiLmv+j34 BzqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=odKtWziO2WG/lqEMmbPEUMEcrAn1teMSt8jVk5MPZY8=; b=wwybLtfZlUB1PynRDuTNDgxGi8mUGP30bEE7HLOFZWxyhipnpsJvaPK+EnItpUm4Xy ZHTN/WE09OavfWjuuoMO6UbcxilQJFWQhgw6bNO0hpo9oKI+7y5prSqJTxwgB9TwDQ73 HiC1ASZfPE0pi7OzWfRyS59AAMfnGJtFAwervQgTCOX3J6ewhvFKvdnAGwX0bshK0XN1 iU6gVWOIO7Ngvwcd6hVXlRiSXMMlbdriC00WFPRDotzX6Fn+gMUDplPmF1vbk9AJ7MU/ RVXmzmqhWaTdg0g9dmBfyY1EaZzqf6Vi8IwmEurE92BGJCq3P6rk9xO2Eg/ALI3XYXh8 9f3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="EJS8v/SJ"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c12-20020a170902724c00b00158f3ba81ffsi8557331pll.127.2022.04.22.13.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:53:53 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="EJS8v/SJ"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5CCA131315D; Fri, 22 Apr 2022 12:48:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1389975AbiDUPTe (ORCPT + 99 others); Thu, 21 Apr 2022 11:19:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384968AbiDUPTd (ORCPT ); Thu, 21 Apr 2022 11:19:33 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A94CB36E1D; Thu, 21 Apr 2022 08:16:42 -0700 (PDT) Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id AEC7E221D4; Thu, 21 Apr 2022 17:16:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1650554200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=odKtWziO2WG/lqEMmbPEUMEcrAn1teMSt8jVk5MPZY8=; b=EJS8v/SJvQW/cid+n5Ivz1rgMJEjaoOyH1ZMDe0L+cfpbecS+YBXTqL64X660RmcRNXU0f +Ycsy0L/nyTddJT1877XYmyZsJVQpamG4p9go5FuyKtAqYcN/zzOvX7Y1jNXtiU1S1ukux 2XDZj2k5b2Ml5wrYzYi3COTdPJyLMh0= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 21 Apr 2022 17:16:40 +0200 From: Michael Walle To: Rob Herring Cc: krzysztof.kozlowski@linaro.org, broonie@kernel.org, devicetree@vger.kernel.org, jerry.huang@nxp.com, krzysztof.kozlowski+dt@linaro.org, leoyang.li@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, shawnguo@kernel.org, Vladimir Oltean Subject: Re: [EXT] Re: [PATCH 1/2 v4] dt-bindings: dspi: added for semtech sx1301 In-Reply-To: References: <20220421094421.288672-1-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <30f2f62406bab8225cc88013b414016d@walle.cc> X-Sender: michael@walle.cc X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-04-21 16:23, schrieb Rob Herring: > What's needed here is a connector node (and driver) for the mikrobus > socket. The connector node's purpose is to decouple the host DT from > add-on board overlay DT. Something like this: Funny I had a similar idea to have a connector with all the properties, but I failed to see how that would be of any help. Do you mind an example of such an overlay? Judging by the spi and i2c subnode, I guess it will amend the connector node and fill in it's devices? And all the child device properties will reference the connector, correct? > connector { > // And a more specific compatible if pins can have alt funcs? > // Spec version needed? > compatible = "mikrobus-socket"; > > // Will need regulators defined if child devices expect > // regulators > vcc-33-supply = <®33>; > vcc-5-supply = <®5v>; > > i2c-parent = <&i2c1>; // Already a defined property > spi-parent = <&spi0>; // New uart/serial needed too? > > // RST pin > reset-gpios = <&gpio 4 0>; > > // remap 'INT' (index 0) to host interrupt > #interrupt-cells = <2>; > #address-cells = <0>; > interrupt-map = <0 0 &gpio 3 0>; > > spi { For example: my-device@0 { reg = <0>; // really needed? there is only one SPI CS line compatible = "my-device"; reset-gpios = // may be left unset if it's optional, but what // what if it is a required property and in hardware // its connected to the RST pin of the module? other-gpios = <&connector 2>; vdd-supply = // what comes here? <&connector VCC_33>? interrupts-extended = <&connector 0 ..>; } -michael > //devices > }; > > i2c { > > }; > }; > > The DT spec defines 'foo-map' properties extending interrupt-map. > Currently only GPIO is defined. We might want to do the same thing for > PWM. Or we make the connector node both a PWM consumer and provider. > > Rob