From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A1330C43334 for ; Mon, 20 Jun 2022 20:05:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pik5zGJ+R+c+PrMrXftdog3UsDoOZw4lqYH1cQEzks8=; b=SfR2YFNhDSTitw pqD8Z70BgX+JJ4/gOU4Xw7kZLh4e+i0pO7JtlwswyrEXT27+rzr14r4oUjFvKkrZxtNsPf4Jqt9aW UgUDhHGNU4AuGg/ef0dWPFsALIzTnj6IG3+st43DT3wqsfJige3e7ch/0E3Cw0Hei59Uzv+F9rJAj qd0LljElwgz2t+NMDBjxZ7CC6+WHUmhVxJf5uPB2t0qE3fWr95iHlvjddbGqcQ++/om+qtS/6a2PV WZyZPQSvjt+0A3wWLP0frQ/bTqreZfpvECU3egJq+MiItbe20+6WbcGdm6khW2DkfIf9Us/+WCTM1 3vfXDFLrAWIh6r6cNIyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3Ndn-0028UM-Eq; Mon, 20 Jun 2022 20:04:55 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3Ndk-0028Qo-OM for linux-arm-kernel@lists.infradead.org; Mon, 20 Jun 2022 20:04:54 +0000 Received: by mail-lf1-x132.google.com with SMTP id j21so5824896lfe.1 for ; Mon, 20 Jun 2022 13:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TpJe2xpme7GXSbx8BteS+b1+C5CW+OzG00NqoqCd678=; b=GSgF+cLqRXJKYf3yNnfmWqr54AVdQjLh6edCJujqgsd97Yjvqs+yQjD7Jss7v+++RO WKaj++N7QCuShBxlUPYrSALOOKBULdeMgxc0SJHf4THv6hvfIC2dW0a44SVE9NMkeMVI EWL7JiYMtx6ugjahBmlNNaxgkXDPMC1MPUkM4v7198x49O6R5rstD7SPtwITAQb83WEo YGPBmLgBESR5eVQIKB4t5Kt1h8H+C3vpRWBo4mgxfPYVbqgsFscseHB4frUSn7H1Asol XXZuy4kBz/Kf394dNHiZ8cBD9IlwrKu88hPNY+gpaZHSgW0bg0HnWhM7AVjpE5wWRcSy 6VSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TpJe2xpme7GXSbx8BteS+b1+C5CW+OzG00NqoqCd678=; b=bSGQvwSxKshUrJmvQne9mputeTBFDN274VWVSM7J50jeINF62F/y8ZVo1sRYbLyCmq HyD83V7GJGUYxpiI1Dt15m58be11VJU35mTOUZBBJC/aGLOIXveW6/rNY6PoEAo1Ay5m /ve/ugkyr4odzQUXj8U8BbUI1NypmbeHQLGWHOykmfwJ9HJB8unJXNUlYbSUu22YTE5a X6lxaEKVsAZBj9MZhFEHVfnPW/jRZ3KOwU70lsyA3pSBJ1mqZFyrtAi0ssdRew76JZP2 MEObcp/MlFLLRm+u9sLsK04xNcqTpfIv+x+bEXsPN3wWKjgX1lEsMAvfvLqGjHHEp+cG R4CQ== X-Gm-Message-State: AJIora+M1JUe40Vxg1zC0R5JchvWRiGaz0/YQ3zgZWG4KX72HHDRE1ln pxtPWan/5Q/qTDB5urY+Sng= X-Google-Smtp-Source: AGRyM1s9hC3AkuXJ3ZweWOOQOtexRt7GAioDH6EyzKPh6oV4TFpEWuIx0FeO/g4ACaXSg0VuNLv3WQ== X-Received: by 2002:a05:6512:1050:b0:47d:c714:10ba with SMTP id c16-20020a056512105000b0047dc71410bamr14078604lfb.165.1655755488996; Mon, 20 Jun 2022 13:04:48 -0700 (PDT) Received: from mobilestation ([95.79.189.214]) by smtp.gmail.com with ESMTPSA id a10-20020a19660a000000b0047e789b9700sm1867834lfc.118.2022.06.20.13.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 13:04:48 -0700 (PDT) Date: Mon, 20 Jun 2022 23:04:45 +0300 From: Serge Semin To: Krzysztof Kozlowski Cc: Brad Larson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, adrian.hunter@intel.com, alcooperx@gmail.com, andy.shevchenko@gmail.com, arnd@arndb.de, blarson@amd.com, brijeshkumar.singh@amd.com, catalin.marinas@arm.com, gsomlo@gmail.com, gerg@linux-m68k.org, krzysztof.kozlowski+dt@linaro.org, lee.jones@linaro.org, broonie@kernel.org, yamada.masahiro@socionext.com, p.zabel@pengutronix.de, piotrs@cadence.com, p.yadav@ti.com, rdunlap@infradead.org, robh+dt@kernel.org, samuel@sholland.org, suravee.suthikulpanit@amd.com, thomas.lendacky@amd.com, ulf.hansson@linaro.org, will@kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v5 04/15] dt-bindings: spi: dw: Add AMD Pensando Elba SoC SPI Controller bindings Message-ID: <20220620200445.yew3vo3pnjhos7rs@mobilestation> References: <20220613195658.5607-1-brad@pensando.io> <20220613195658.5607-5-brad@pensando.io> <20220620193044.ihxfn6kddif7j5la@mobilestation> <0a68aa72-df85-cf78-dcca-2d75038234c6@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <0a68aa72-df85-cf78-dcca-2d75038234c6@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220620_130452_832448_F4630E9C X-CRM114-Status: GOOD ( 24.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jun 20, 2022 at 09:46:25PM +0200, Krzysztof Kozlowski wrote: > On 20/06/2022 21:30, Serge Semin wrote: > > On Mon, Jun 13, 2022 at 12:56:47PM -0700, Brad Larson wrote: > >> From: Brad Larson > >> > >> The AMD Pensando Elba SoC has integrated the DW APB SPI Controller > >> > >> Signed-off-by: Brad Larson > >> --- > >> Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > >> index e25d44c218f2..2a55b947cffc 100644 > >> --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > >> +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > >> @@ -73,6 +73,8 @@ properties: > >> - renesas,r9a06g032-spi # RZ/N1D > >> - renesas,r9a06g033-spi # RZ/N1S > >> - const: renesas,rzn1-spi # RZ/N1 > > > >> + - description: AMD Pensando Elba SoC SPI Controller > >> + const: amd,pensando-elba-spi > > > > Not enough. The driver requires to have a phandle reference to the > > Pensando System Controller. So the property like > > "amd,pensando-elba-syscon" is also needed to be added to the DT schema > > otherwise should the dt-schema tool correctly handle the > > "unevaluatedProperties: false" setting (Rob says it isn't fully > > supported at the moment), the dtbs_check procedure will fail on your > > dts evaluation. > > The property was here before, now removed, so I assume it was also > removed from the driver and DTS. Isn't that the case? Ah, the property has been indeed removed. The driver now searches for the system controller by the next compatible string: "amd,pensando-elba-syscon" using the syscon_regmap_lookup_by_compatible() method. My mistake. Sorry for the noise. * Though personally I'd prefer to have a property with the phandle reference in order to signify the connection between the system controller and the SPI-controller. Otherwise the implicit DT bindings like having the "amd,pensando-elba-syscon"-compatible syscon gets to be hidden behind the DT scene. But seeing we have already got the Microsemi platform with such semantic, I can't insist on fixing this. -Sergey > > Otherwise this is incomplete binding... > > Best regards, > Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel