Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp844518pxb; Fri, 22 Apr 2022 12:24:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrDRyoC9rJVZv+ILnG3xNCrFQCykpZbe7emm9GrTAL+GPDGRHp/PJ6Yc2Q4io+8RN6WwUf X-Received: by 2002:a63:d915:0:b0:39d:3f7d:1850 with SMTP id r21-20020a63d915000000b0039d3f7d1850mr5150745pgg.10.1650655490742; Fri, 22 Apr 2022 12:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650655490; cv=none; d=google.com; s=arc-20160816; b=WYo5BVjVHKhFsRLY1VCG16GN68WyIQbEtI6fZDhsP172Q8uo/vVyMbtG8nBRmUE1q+ 9H9qgvrs2BWQrki/qi2PJ4xeU+vyEI0PJCZMWfP3Dniao+/GnSb4Xr8MMAsmZ8CD7XRN v3CTpPBWm+/G6fD7x8hw35E3fRFH6kHDb0dp7ju5HxQ8sJI/gs9sDsR2lgevKXU8zeMR dnPPGaRf8vVTeYjjnVArnuDArMswXmt8QJPqHSqqx6Lxdl9NV6iI/ouc0ffcgcU0Cpdi PGRjdx1LBoB9GXH4FqSceDSF2QAa4GJyZFaXg1fUErPVQrRto+nO7yTH/aAp0ZWnBntg SWaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ik2ns8BjGvma+kcnUHSgUe92puZeAqjO0QIBOmC2o1I=; b=bAZKl9pmF+ifA5636Zzf38j3datpHw9z5oPMhMHg7oJ7HBUMqXPhUHIGdb3cRC/MTp TAc/14/Qdy1pKigJ/7Ca/SjJYUDmVHHOJnts6k95fDb+1YNGzt2eIz5OUO9NAkaJp+N/ E7I28+01DG3j5og3YBFhP3wn+oCkNYNazlx17uji+FtfjmRaBkAYX2+YNnR+e1Yt/sl4 TUNEIADYw/rDjPjKXYKMP8CAMPdgCNx5R5Opvrb4HgTpCQ11VoLQBTB8rXc7BSiw5BA3 vdSYWuP/+zbBsDsaroGfszD9w9aL40S6fsdCcqHxGwsNiJPWVq93O6FxvSPh9ZmOtYaR qQ2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=JCjHUsJY; 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 pq16-20020a17090b3d9000b001bf040acc3dsi4492537pjb.170.2022.04.22.12.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:24:50 -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=JCjHUsJY; 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 2B49DE1252; Fri, 22 Apr 2022 11:37:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357405AbiDTLaA (ORCPT + 99 others); Wed, 20 Apr 2022 07:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378093AbiDTL35 (ORCPT ); Wed, 20 Apr 2022 07:29:57 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A53C241608; Wed, 20 Apr 2022 04:27:08 -0700 (PDT) Received: from apollo.. (unknown [IPv6:2a02:810b:4340:43bf:4685:ff:fe12:5967]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 6516D22249; Wed, 20 Apr 2022 13:27:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1650454027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ik2ns8BjGvma+kcnUHSgUe92puZeAqjO0QIBOmC2o1I=; b=JCjHUsJYvhVJULzvaBiJZJyXoGDj6pmDMhaITAgSaK7cz6YysOANvIYZClBHrvhRV0MO+x n9hCW0twa3x8Jj/T5aNyNYx1l/x/mvl6iApipodidO54WnaCmC/b841gYnVIbSVPh++7W/ cJ17fjRnzA1ZlH+sBp44gkIPPP4wav8= From: Michael Walle To: jerry.huang@nxp.com Cc: broonie@kernel.org, devicetree@vger.kernel.org, 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, robh+dt@kernel.org, shawnguo@kernel.org, Michael Walle Subject: Re: [PATCH 1/2 v3] dt-bindings: dspi: added for semtech sx1301 Date: Wed, 20 Apr 2022 13:26:57 +0200 Message-Id: <20220420112657.270293-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220420035045.33940-1-jerry.huang@nxp.com> References: <20220420035045.33940-1-jerry.huang@nxp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 > Add DT Binding doc for semtech sx1301 Please be a bit more elaborate. The sx1301 seems to be an SPI device, some kind of WAN device. > > Signed-off-by: Changming Huang > --- > changes in v3: > - add the dt-bindings > > .../bindings/spi/semtech,sx1301.yaml | 45 +++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 Documentation/devicetree/bindings/spi/semtech,sx1301.yaml > > diff --git a/Documentation/devicetree/bindings/spi/semtech,sx1301.yaml b/Documentation/devicetree/bindings/spi/semtech,sx1301.yaml > new file mode 100644 > index 000000000000..f65fb5809218 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/semtech,sx1301.yaml > @@ -0,0 +1,45 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/spi/semtech,sx1301.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Semtech sx1301 devicetree bindings > + > +allOf: > + - $ref: "spi-controller.yaml" .. then why does it inherit the spi controllers properties? Also *some* kind of information what the sx1301 is would be nice. Anyway, I was about to comment on your patch 2. But maybe I'll just leave it here. On the RDB there is a mikrobus connector, with this, you are going to say "hey there is always a sx1301" module there. What happens if it not there? What if you put another module in that socket? Maybe Krzystof knows better. But it really looks like you want to have device tree overlays here instead of hardcoding exactly one use case. -michael > + > +maintainers: > + - Changming Huang > + > +properties: > + compatible: > + const: semtech,sx1301 > + > + reg: > + maxItems: 1 > + > + spi-max-frequency: true > + > + fsl,spi-cs-sck-delay: true > + > + fsl,spi-sck-cs-delay: true > + > +required: > + - compatible > + - reg > + - spi-max-frequency > + > +additionalProperties: false > + > +examples: > + - | > + mikrobus@0 { > + compatible = "semtech,sx1301"; > + reg = <0>; > + spi-max-frequency = <2000000>; > + fsl,spi-cs-sck-delay = <1000000>; > + fsl,spi-sck-cs-delay = <50>; > + }; > + > +... > -- > 2.25.1 > >