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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA2D0C43219 for ; Wed, 17 Nov 2021 21:35:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 952DE61AD0 for ; Wed, 17 Nov 2021 21:35:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240279AbhKQVi3 (ORCPT ); Wed, 17 Nov 2021 16:38:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239950AbhKQVi1 (ORCPT ); Wed, 17 Nov 2021 16:38:27 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49B0AC061764 for ; Wed, 17 Nov 2021 13:35:28 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id e3so17296105edu.4 for ; Wed, 17 Nov 2021 13:35:28 -0800 (PST) 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=oE/PpLF33Bzsi0HnoSd2D3IwGwaXk2bQ1kvpSMCx344=; b=QXKVrGtTrCFY3/MBy6Ae0VTxlonw/DRAwSMtioyfsFpu2GcapCZk8ECLNgHzTseKvw z4a+aYv43SjZNW9uCZfhmS17j+f8gCgthROz70Lx0hFYnFUcRSvmoInMeC07P6JZ0h3V Xr+RAhPlvzJYcKexb/aQuT9t9+/L4FZKUWiptUjyDUslFUoqctzOgri6mtkQcbbZTtvA npV5JkOzQTIeSfkzvp74QKTJGPdVK/AX9ysyEayMfOemtar8e6uJ3fKQWAITwhXv9fZr jEHJWh4QDMrx2m8a5nMPQ7jXzh/j7+IFYmXyz3+PXKz7B21vPoOBG9YEk3lVpfjvf/z4 HMow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oE/PpLF33Bzsi0HnoSd2D3IwGwaXk2bQ1kvpSMCx344=; b=754t/vT1Z+T28nw5v7b7CgZ8il6SpAu+iv9SrSyx+QJaOPy+p+fNqyCoL9d4rqwnGh 1UEKad5briTruTt87jHVCUoKOqPoQ46aiP+t3Y+VH3++ycra44TbrprMUcPiZsecckrY WrYE/v+ro/E0Nef0fzNIBl+T80sPuf9JpmPRf2WEXTUEienIk+23UV7dHhhlWZZJ7IB6 IQn7qD2ZcdNoaGOkt5DO2y9S2BsqSdNbrZf9YSk2S18DOX2FudxVH4sqZyCwytRYIEyl x6sxOyfiWKv7ZoMAcmRd2J5W3pQcv/+qpwr3/odZVs4iBuIgtJcCszQwQSNfrnq5xZ9p cWIw== X-Gm-Message-State: AOAM530MBJkZDFWbA7JR/B3zKRwAO5muSPfCFrGlKTFxEUKpLbIO+S2U NV/kgVARIYM764DE5eQbpMTuK+/SXUDBp4ZWE2H+DA== X-Google-Smtp-Source: ABdhPJzr0FWsxLkdp+GqPycs6CHrFza83kIvQ058rw/43FF71YpE2yK7ii3nVMCgEOTvhGBAP0KBWaoOOVwD5hfSdFQ= X-Received: by 2002:a17:907:9487:: with SMTP id dm7mr26958236ejc.95.1637184926827; Wed, 17 Nov 2021 13:35:26 -0800 (PST) MIME-Version: 1.0 References: <20211025015156.33133-1-brad@pensando.io> <20211025015156.33133-6-brad@pensando.io> <20211028074945.rv2j5kgzk7yc2srr@mobilestation> <20211116112907.lbwdcz5pmgxqzv55@mobilestation> <20211117081922.nnqsr5zzzydurq5t@mobilestation> In-Reply-To: <20211117081922.nnqsr5zzzydurq5t@mobilestation> From: Brad Larson Date: Wed, 17 Nov 2021 13:35:15 -0800 Message-ID: Subject: Re: [PATCH v3 05/11] spi: dw: Add Pensando Elba SoC SPI Controller bindings To: Serge Semin Cc: Rob Herring , 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 Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergey, On Wed, Nov 17, 2021 at 12:19 AM Serge Semin wrote: > > I was wrong using that construction here (fixup patch would be very > welcome) seeing the "snps,dw-apb-ssi" doesn't permit having a generic > "snps,dw*" compatible string. So just const-compatible property should > be enough: > > + compatible: > + const: pensando,elba-spics > > > > + then: > > + properties: > > + pensando,spics: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: > > + Phandle to the system control device node which provides access to > > + the spics control register > > + required: > > > + - pensando,spics > > Please note, I've asked to be more specific in this property naming. > Something like this should be fine > "pensando,elba-syscon-spics"/"pensando,syscon-spics". I would have avoided a typo in the last reply if the spics property was more specific. Based on needed construction like this? DT: spi0: spi@2800 { compatible = "pensando,elba-spi"; reg = <0x0 0x2800 0x0 0x100>; pensando,elba-syscon-spics = <&mssoc 0x2468>; clocks = <&ahb_clk>; interrupts = ; #address-cells = <1>; #size-cells = <0>; num-cs = <2>; status = "disabled"; }; Binding: --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml @@ -37,6 +37,15 @@ allOf: else: required: - interrupts + - if: + properties: + compatible: + contains: + enum: + - pensando,elba-spi + then: + required: + - pensando,elba-syscon-spics properties: compatible: @@ -73,6 +82,8 @@ properties: - renesas,r9a06g032-spi # RZ/N1D - renesas,r9a06g033-spi # RZ/N1S - const: renesas,rzn1-spi # RZ/N1 + - description: Pensando Elba SoC SPI Controller + const: pensando,elba-spi reg: minItems: 1 Thanks, Brad