Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3004297pxm; Mon, 28 Feb 2022 10:06:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJweqNO/YsNybLB7rxyFenxtoMX+XqozKAlbc2c8bgh47HNLS7BcJ/l7XlINjnM0IZh9Q/wn X-Received: by 2002:a05:6402:35c9:b0:413:1602:2c46 with SMTP id z9-20020a05640235c900b0041316022c46mr21197184edc.222.1646071617543; Mon, 28 Feb 2022 10:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646071617; cv=none; d=google.com; s=arc-20160816; b=D/JGSy1QjqCFIfT8mnXRUcZ8HyKSDNrzh1QI09mQdo9E9DoaVsZMmYQG6ovfR0hVC3 CE9EvP/UFsDej6EsktAP7W5e0Rswv6idna5VHquMbbSfxP1Tp8FH8/yz3ASgdbhgN749 0yiu7zkN/qUo9lae4r7ydxumAncp85c793OkcsiBI/YJ7bC4D+wRwWbqPxScPiTV3pRw HLRmrUImAvhROIOhAWFAGHtO6OwmSGnhRSZXDarJoQQwIR4Xt6I414A+AzV+yqwL0Kzx nUbOKfpFRy9m9+49Rqw7l4OO172g8TPcGm4TYDtQbpgNHPrg3HY8EMZ/neJlYdBZoSg3 pEsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=h4FOiTIqGWppiNVb4WN93SVinniWb4652lod3S4x79M=; b=avXGSk/tEl4ijpEiFQz/UGRo2bHvcWnuljQr8/kKZWOZ0yjn75eSXQOUhpZuR0oVxY iKC9GQTFJjLMGCCszMsvTyC8sDtGItL94ETOV3huiUdRiInJHD45SYj19AktDqeT82G9 zOPgHXYh0S3ksolNDCK0oOxZVgRznKlVmmC05j71RgzhyjDE+fMfFaY4tL/wstDMPIaE 3SfU+c5NKDA2AEEPLzzUTjxoeFmetWbvIZlLR3Du/VleOJHx36+yPii83a6wPeUcVECF Ha8OCPIWDb5rfBFzpwtTIveM6+vtTq6t/2gDEDLUd+775ESlYwsfDeAjSUJFfON2obNm pPEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hl9DgZYy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a1709066b0400b006d20d00ef3bsi6323484ejr.394.2022.02.28.10.06.35; Mon, 28 Feb 2022 10:06:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=hl9DgZYy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238108AbiB1RHC (ORCPT + 99 others); Mon, 28 Feb 2022 12:07:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238089AbiB1RGy (ORCPT ); Mon, 28 Feb 2022 12:06:54 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 331F286E1D for ; Mon, 28 Feb 2022 09:06:15 -0800 (PST) Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 05AB03FCA7 for ; Mon, 28 Feb 2022 17:06:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646067974; bh=h4FOiTIqGWppiNVb4WN93SVinniWb4652lod3S4x79M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hl9DgZYy5NEhk+rLI6nZHK8qfjjvhkxZ+QWrv1IO8bb+VR7E2QVftpk5GNBXNESiB y0NDhN+N/tT2nKRzoraH0hF92Y+7hKgOpuuXapsL9gsjdHbevU7P/QZ9kjZyHxX/4/ jx5E7VO+TGa10MflyBFrslUjgKpJS3hUEi4+AAGqMJTcKfv+B+ZGdIfM0N+5Wi0zQs v4ckfF67g3iGokr9ERTcPH5TDjjfKGORWB/84dyKNAA5pmz3kqgsltCoLkljPT3rjv O6pNp2cLrXJZ8osR822biM3jy6idHC1lA52cpEFdJi5dETgamjsKRAJrMBj0B0hDjG MalyrHi/pP6/A== Received: by mail-ed1-f71.google.com with SMTP id r9-20020a05640251c900b00412d54ea618so6207492edd.3 for ; Mon, 28 Feb 2022 09:06:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=h4FOiTIqGWppiNVb4WN93SVinniWb4652lod3S4x79M=; b=NB9MldmcS10Xm5UcONc05JysVb5ksRKy04W9ThOPxywz6VgK+rKHooq1UssvgHFeaQ deTLr2nxFmqLi04O1R+NHgauV/6OuP3MJ2Qk7IhqtdXYuDOnLCrkXYBB7FkyH8WjWNip 3G5zooTpwqyMJ9XQ2oX9BPESYASDutrIvMfbhFKRZnwnw9LQRiFzgpaq9L+hfI6BTJP3 A856qi00YSIbXtwwykoU3ra7H3+AZKnqHLpEFzdmVy8/KKAqJIbwjMDBWALOHAVK2C6U K644STmOv8gxJDmasjhafXySSwoxz06k9uNn7ZOt1wHcvWydzxKJPPsRKpNnBUT5DKBe Szrg== X-Gm-Message-State: AOAM531M1uP2qn9Bw2IqEtPlPfD0oi+62tHD3P+JVqweEzWHhI6SOGxS ZRwTwPUN45o0z/rl9GMS331gdTgAR9TUKEreYmn6bl1db+b3WfM5XSIWeCdvdJgsAIp+BMoBX1d /J+IBrcAl6TzzWfM4m4vTcIZi5qJ9OwiCs3D+MDeYzw== X-Received: by 2002:a17:906:199a:b0:6d1:aa59:2927 with SMTP id g26-20020a170906199a00b006d1aa592927mr15322015ejd.215.1646067973496; Mon, 28 Feb 2022 09:06:13 -0800 (PST) X-Received: by 2002:a17:906:199a:b0:6d1:aa59:2927 with SMTP id g26-20020a170906199a00b006d1aa592927mr15321996ejd.215.1646067973232; Mon, 28 Feb 2022 09:06:13 -0800 (PST) Received: from [192.168.0.135] (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id pj4-20020a170906d78400b006ce88d5ce8dsm4521931ejb.108.2022.02.28.09.06.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Feb 2022 09:06:12 -0800 (PST) Message-ID: <22b1de71-a72a-ecb8-44a2-cf055d2a4fc5@canonical.com> Date: Mon, 28 Feb 2022 18:06:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Aw: Re: Re: Re: [PATCH v3 1/3] dt-bindings: Convert ahci-platform DT bindings to yaml Content-Language: en-US To: Frank Wunderlich Cc: Frank Wunderlich , Rob Herring , Hans de Goede , Jens Axboe , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Heiko Stuebner , Peter Geis , Michael Riesch , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, "devicetree@vger.kernel.org" References: <20220227182800.275572-1-linux@fw-web.de> <20220227182800.275572-2-linux@fw-web.de> <4c3303f5-7af5-9974-7bea-b7f0d6c7ef53@canonical.com> <8fbbce9e-4fd9-d420-43ef-953e846d29f1@canonical.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 28/02/2022 18:01, Frank Wunderlich wrote: > Hi > >> Gesendet: Montag, 28. Februar 2022 um 15:35 Uhr >> Von: "Krzysztof Kozlowski" >>>> Gesendet: Montag, 28. Februar 2022 um 13:38 Uhr >>>> Von: "Krzysztof Kozlowski" > >>>> No, this has to be oneOf. See for example >>>> Documentation/devicetree/bindings/gpio/gpio-vf610.yaml or many other files. > >>> compatible: >>> oneOf: >>> - enum: >>> - brcm,iproc-ahci >>> - cavium,octeon-7130-ahci >>> - hisilicon,hisi-ahci >>> - ibm,476gtr-ahci >>> - marvell,armada-3700-ahci >>> - marvell,armada-380-ahci >>> - snps,dwc-ahci >>> - snps,spear-ahci >>> - items: >>> - const: generic-ahci >>> - enum: >>> - brcm,iproc-ahci >>> - cavium,octeon-7130-ahci >>> - hisilicon,hisi-ahci >>> - ibm,476gtr-ahci >>> - marvell,armada-3700-ahci >>> - marvell,armada-380-ahci >>> - snps,dwc-ahci >>> - snps,spear-ahci >> >> That could be one way, but instead I propose to have only second part >> (so enum + generic-ahci) for all compatibles mentioned in >> ahci_platform.c, which do not customize the driver behavior for these >> compatibles.. > > tried many ways of defining it, but none passes with the examples. either to short (first example) or too long (second) > > as far as i understand the logic it should be similar to this: > > properties: > compatible: > oneOf: > - items: > - enum: > - marvell,berlin2q-achi You need to extend this enum with all the entries I mentioned before. > - const: generic-ahci > - items: No items here, directly enum. > - enum: > - brcm,iproc-ahci > - cavium,octeon-7130-ahci > - hisilicon,hisi-ahci > - ibm,476gtr-ahci > - marvell,armada-3700-ahci > - marvell,armada-380-ahci > - snps,dwc-ahci > - snps,spear-ahci > > this passes the dt-binding_check (examples) for me, but i guess there are many more compatibles defined with the generic. > > dtbs_check found some more like > > 'brcm,iproc-ahci' > 'marvell,armada-8k-ahci' > and many more > > it looks like these are also checked in the enum, so the yaml itself look correct, but needs some kind of wildcard instead of the "marvell,berlin2q-achi" as second for the generic-ahci compatible > > regards Frank Best regards, Krzysztof