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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2170AC05027 for ; Thu, 26 Jan 2023 20:04:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbjAZUET (ORCPT ); Thu, 26 Jan 2023 15:04:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232663AbjAZUEM (ORCPT ); Thu, 26 Jan 2023 15:04:12 -0500 Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A9BD9769 for ; Thu, 26 Jan 2023 12:04:11 -0800 (PST) Received: by mail-qt1-x832.google.com with SMTP id s4so2271459qtx.6 for ; Thu, 26 Jan 2023 12:04:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:from:to:cc:subject:date:message-id:reply-to; bh=Tc8H5kWSYRfbenMDIQgi7Yu7h5bENh1rnVONE9yHa2s=; b=DPfbgrxHbQhqwGJmwqKyOzYTwQM2rjSSNFlpceS6XpvPgNCZJuNfCXfPteOnXa4y59 +3fKPSB6Cpda2UBCLBvCsnR4MRvmddahP9oiRiGf4bUAwoUxEwAFFj5c8GAtHoJLFrHO URee9ffHRDSzYfKvw7MO8TPvQ0uqWUV2O3w9Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Tc8H5kWSYRfbenMDIQgi7Yu7h5bENh1rnVONE9yHa2s=; b=C8AMMlzxlWc4Vu8webF8RJihz/VYxZvi9MOXepGrdKKTr+r1w4QQ9ZrQR7XlR7wYbF RHfIYPbf6lkWcnzHmFcqRx5p5VKk7Taz6NIDQqRKOM+Emr/ZftyZb0BG0FGRRCFwefB/ gJ3pZ1jhhturq+gScNAdquGav2Ee4vBylOPV9CgzkTcoBYOmq/4YpZPjsuACayyt2Ogv 2nh+96dcAvt69dvKt61/hgkY/fjglaJvn1q/sazk6QLyoaUqdvf8OX9i9jKLoWxaMpto L4gLucknS3fXlNgRz/E9XvMDF9kbvPNrCP3b+3sPbycKEmirARlFdGQw2BKceGL0X3jU ZwQg== X-Gm-Message-State: AFqh2kpgeOT16pVQHNcCHXkwSJCDpvI3CYF4AhLrEnbph5X2nSbQG/KV ciwPaA8w+oW/Qh4Se9wNvKLVBzFt6OoQHvMZeMqwD8zzmc6XIgPa+7ALZs1cKZhEt2JY9q4++O6 6TbJJNWiZf8DpIjo7iKuzjIe6jVw2xCfNjGzrN8Ob4FIjSSe5qHmU05GhPzjbH5j/+w5ZUzIde4 dJjdS4TAsaI7Q= X-Google-Smtp-Source: AMrXdXs9TrtAUQH+Y68dUB0PdATb7y3pkRpnEl9NJ3W5MCt2sqcU2IJmq7e4g3SE1PZ7y60h0fi55w== X-Received: by 2002:ac8:6f09:0:b0:3b6:309e:dfde with SMTP id bs9-20020ac86f09000000b003b6309edfdemr63509297qtb.27.1674763449895; Thu, 26 Jan 2023 12:04:09 -0800 (PST) Received: from bcacpedev-irv-3.lvn.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id c16-20020ac80090000000b003b323387c1asm1311953qtg.18.2023.01.26.12.04.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Jan 2023 12:04:08 -0800 (PST) Subject: Re: [PATCH v2 02/14] dt-bindings: spi: Add bcmbca-hsspi controller support To: Rob Herring Cc: Krzysztof Kozlowski , Linux SPI List , Broadcom Kernel List , tomer.yacoby@broadcom.com, kursad.oney@broadcom.com, dregan@mail.com, f.fainelli@gmail.com, anand.gore@broadcom.com, jonas.gorski@gmail.com, dan.beygelman@broadcom.com, joel.peshkin@broadcom.com, Krzysztof Kozlowski , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230124221218.341511-1-william.zhang@broadcom.com> <20230124221218.341511-3-william.zhang@broadcom.com> <20230125205123.GA2864330-robh@kernel.org> <1489564a-59d3-6d38-fad7-02119bfedbeb@broadcom.com> From: William Zhang Message-ID: <90d9a7a9-4127-7fb7-ed31-d73096759424@broadcom.com> Date: Thu, 26 Jan 2023 12:04:06 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000008929d505f3304016" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000008929d505f3304016 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 01/26/2023 05:56 AM, Rob Herring wrote: > On Wed, Jan 25, 2023 at 3:41 PM William Zhang > wrote: >> On 01/25/2023 12:51 PM, Rob Herring wrote: >>> On Wed, Jan 25, 2023 at 11:23:52AM -0800, William Zhang wrote: >>>> On 01/24/2023 11:35 PM, Krzysztof Kozlowski wrote: >>>>> On 24/01/2023 23:12, William Zhang wrote: >>>>>> The new Broadcom Broadband BCMBCA SoCs includes a updated HSSPI >>>>>> controller. Add new compatible strings to differentiate the old and new >>>>>> controller while keeping MIPS based chip with the old compatible. Update >>>>>> property requirements for these two revisions of the controller. Also >>>>>> add myself and Kursad as the maintainers. > > [...] > >>>>>> properties: >>>>>> compatible: >>>>>> - const: brcm,bcm6328-hsspi >>>>>> + oneOf: >>>>>> + - const: brcm,bcm6328-hsspi >>>>>> + - items: >>>>>> + - enum: >>>>>> + - brcm,bcm47622-hsspi >>>>>> + - brcm,bcm4908-hsspi >>>>>> + - brcm,bcm63138-hsspi >>>>>> + - brcm,bcm63146-hsspi >>>>>> + - brcm,bcm63148-hsspi >>>>>> + - brcm,bcm63158-hsspi >>>>>> + - brcm,bcm63178-hsspi >>>>>> + - brcm,bcm6846-hsspi >>>>>> + - brcm,bcm6856-hsspi >>>>>> + - brcm,bcm6858-hsspi >>>>>> + - brcm,bcm6878-hsspi >>>>>> + - const: brcm,bcmbca-hsspi-v1.0 >>>>>> + - const: brcm,bcmbca-hsspi >>>>> >>>>> Why do you need "brcm,bcmbca-hsspi"? Nothing binds to it, so it's >>>>> useless and very generic. >>>>> >>>> This was from Florian's suggestion and Broadcom's convention. See [1] and >>>> you are okay with that [2]. I added the rev compatible and you were not >>>> objecting it finally if I understand you correctly. >>> >>> Can you have a driver that only understands what 'brcm,bcmbca-hsspi' is >>> work on all h/w that includes the compatible string? It doesn't seem >>> like it since v1.1 is a completely new driver. Therefore >>> 'brcm,bcmbca-hsspi' is pretty much useless. >>> >> 'brcm,bcmbca-hsspi' should be added to the binding table of >> spi-bcm63xx-hsspi.c driver. This is the initial driver that works for >> v1.0 controller. For v1.1 controller, yes it can fallback and work with >> 1.0 driver spi-bcm63xx-hsspi.c simply not using the new feature in >> v1.1(chip select signal control through software) and keeping using the >> prepend mode or dummy cs workaround supported in 1.0 driver. > > If v1.1 is compatible with v1.0, then say that: > > soc-compat, "brcm,bcmbca-hsspi-v1.1", "brcm,bcmbca-hsspi-v1.0" > > IOW, 'brcm,bcmbca-hsspi' is redundant with 'brcm,bcmbca-hsspi-v1.0'. > They have the same meaning. So pick which one you want to use. Not > both. > Agree brcm,bcmbca-hsspi fallback is redundant to brcm,bcmbca-hsspi-v1.0. I added it to conform Broadcom convention. But I understand your and Krzystof's concern so I'll drop the brcm,bcmbca-hsspi in v3 to get things going. > Also, if that is the case, you shouldn't be introducing a whole new > driver for v1.1. > Technically I can combine the new feature to the existing driver v1.0 but I prefer to start the a new driver so it will be much cleaner and simpler to follow without all the workarounds and complex logic. > Rob > --0000000000008929d505f3304016 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQcAYJKoZIhvcNAQcCoIIQYTCCEF0CAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3HMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXfYnK7zeop26ry1RpKtogB7/O115zultAz64ydQYLe+a1e/czkALg3sgTcOOcFZTXk38e aqsXsipoX1vsNurqPtnC27TWsA7pk4uKXscFjkeUE8JZu9BDKaswZygxBOPBQBwrA5+20Wxlk6k1 e6EKaaNaNZUy30q3ArEf30ZDpXyfCtiXnupjSK8WU2cK4qsEtj09JS4+mhi0CTCrCnXAzum3tgcH cHRg0prcSzzEUDQWoFxyuqwiwhHu3sPQNmFOMwIDAQABo4IB2jCCAdYwDgYDVR0PAQH/BAQDAgGG MGAGA1UdJQRZMFcGCCsGAQUFBwMCBggrBgEFBQcDBAYKKwYBBAGCNxQCAgYKKwYBBAGCNwoDBAYJ KwYBBAGCNxUGB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