Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4038631rwe; Tue, 30 Aug 2022 03:37:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR4S5tyVHOMC0B5UZhp0msg2K0nR8bJt6c0wTPQ0ST6xmFKoNkZtVYPpOBQVXg+2/Qo+/Cfb X-Received: by 2002:a05:6a00:1354:b0:53a:80d6:6f61 with SMTP id k20-20020a056a00135400b0053a80d66f61mr1125946pfu.69.1661855833248; Tue, 30 Aug 2022 03:37:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661855833; cv=none; d=google.com; s=arc-20160816; b=kRIXi5wsl+314pXmAef5RXEHdkCbz8pZ7qRWRHwda8hmLNwKruax62sIG7VFkZN+UT qJImruJ62jat4tH5zwetks13Ew2DmVN7PftItmlByDK/um4YZT7fI7luWp3F4IPdjWZV 03t3pYdMhJng5JRAsCELc78/49gkN2ir6w9VtnGSLYpivJTzMMGc0obgz8KeZLLk+T0f 3G2Ik0mhKKeACZ3AsXvOVBswiUQM4uTB5TgZ7LAGHCezj9CzzE8evLYSP7xgzLFQ6UN9 Fx6B2Hg0DyyDnX38QFtZmbk1khTthNnjVM3eyhwitHlmlernNCA0rmWtegXdlnQthRNB 10dw== 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=EgnDZawayll/TZ+ocCBlj4vzfhU1iWcXae1blePHBeI=; b=Z7dQqBL9TYg4BL7Z8cgzHsV4ITSEM2DVf8p+S0BnFjRLhf+VGsNVeBp2fPDczkkxJE mChiMDFhv4FGadmkECrbALVClmiUYKOHKzAhAlgsIdG3Zs3tAzPUtU5WJ585Txu8vBRv rgGd3s+VRd8kvypIf6OWLIF3UMBxVOUid679lhVSTmd/seBxjCxEa4/MkIiM7A93kn5T eez8c3rnEf7WVWWRmYiRXHzmeNJTs/v85DeuSgscr3mFN0H/q4uR0VQ6sZRFIj7l8EB2 MwEk03+HBcm5PNqpUg8g6T8tHYQFch/eAsNiFhP7pPH4b3hdYQXBot8l5Ql1XIgxmaTn Os4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pQPWKaV0; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a631e0a000000b0042a75aeeb93si1686079pge.521.2022.08.30.03.37.02; Tue, 30 Aug 2022 03:37:13 -0700 (PDT) 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=@linaro.org header.s=google header.b=pQPWKaV0; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbiH3KOH (ORCPT + 99 others); Tue, 30 Aug 2022 06:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229716AbiH3KNb (ORCPT ); Tue, 30 Aug 2022 06:13:31 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F3141054F for ; Tue, 30 Aug 2022 03:10:22 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id br21so9056280lfb.0 for ; Tue, 30 Aug 2022 03:10:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=EgnDZawayll/TZ+ocCBlj4vzfhU1iWcXae1blePHBeI=; b=pQPWKaV07CHWz5hl5ve9Mj3xCOzwiOV/diab5zIdgaaw/UjGMdEIQqdvm5wj3cYvIX +Zm2hwL2j9HxaUayBUC3mHfqwsNUmQPJb6mh0oBOvqsT2e162F1rl+B3zZ9R+5m7rkqW M3MLbfrWoo8KUEQ/DL1Uf/9cr5vnrK58GEzm5lL6oi9FYWyDXU2waXoJz4YTVVufvmm5 /oskk+OGSFfysz2tTxUQhUc+X3grEoBoS3P9Kt5HZQOQrai31SHdioBoJY6vRzAG9M7c jmj1uiIrdULzgMHvObn6jDBWz9aTrEU0phbNDPZMpJobT+fB+WeycnNC83rw/Bwsu5v2 x3Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=EgnDZawayll/TZ+ocCBlj4vzfhU1iWcXae1blePHBeI=; b=kpWbuPe4XwJUgovTOY5QLm9mPX5Lm3C1iB2tRdXETsOMAJe3yXlQ+r+bFLm5uThbpe q4xzRDrgVZTZBWnSdVMrAX2v21GMHMX6z6IknvYM8YjpEkRDgErODxf2ewbse6M6+8sJ nHehygSVZar2dTxgOL3avWNhPP4vWdU9ggbvhpSSQo9Ly7kO348GyJKPd6vDvFKUdIlw gZKo+QzpqY5H0Psur50GUtK3kFsmvS/rNCFaiH641Tc7jEROv9b5iBelxV/JSqrVSB4F v3gOMwrcYPLNUIQxU0JwlmYpCcAUT4jNWJ/rYREa4vfIzwijtPpdrQ7//n1zYwM9intz mA9g== X-Gm-Message-State: ACgBeo24GJooSb4Cohbs5RgUNV3YCMl/uvcIYRkQx0SYdwHCZiHNA++c xsA6Reo8DIkrymNgH0pMYNYO1w== X-Received: by 2002:ac2:52ad:0:b0:492:d8ae:364f with SMTP id r13-20020ac252ad000000b00492d8ae364fmr6919677lfm.249.1661854219242; Tue, 30 Aug 2022 03:10:19 -0700 (PDT) Received: from [192.168.28.124] (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id m9-20020ac24249000000b00492f37e428asm1562479lfl.172.2022.08.30.03.10.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 03:10:18 -0700 (PDT) Message-ID: Date: Tue, 30 Aug 2022 13:10:17 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2 1/2] dt-bindings: lan9662-otpc: document Lan9662 OTPC Content-Language: en-US To: Horatiu Vultur Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, UNGLinuxDriver@microchip.com References: <20220825204041.1485731-1-horatiu.vultur@microchip.com> <20220825204041.1485731-2-horatiu.vultur@microchip.com> <96da4897-7b55-84d5-8f1d-892e116153df@linaro.org> <20220826073103.kkotbaxc3latculo@soft-dev3-1.localhost> <20220829063557.3ntgt6uqblgew3r3@soft-dev3-1.localhost> From: Krzysztof Kozlowski In-Reply-To: <20220829063557.3ntgt6uqblgew3r3@soft-dev3-1.localhost> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 29/08/2022 09:35, Horatiu Vultur wrote: > The 08/26/2022 20:37, Krzysztof Kozlowski wrote: >> >> On 26/08/2022 10:31, Horatiu Vultur wrote: >>> The 08/26/2022 09:42, Krzysztof Kozlowski wrote: >>> >>> Hi Krzysztof, >>> >>>>> +properties: >>>>> + compatible: >>>>> + items: >>>>> + - const: microchip,lan9662-otpc >>>>> + - const: microchip,lan9668-otpc >>>> >>>> Does not look like you tested the bindings. Please run `make >>>> dt_binding_check` (see >>>> Documentation/devicetree/bindings/writing-schema.rst for instructions). >>>> >>>> This won't work... >>> >>> You are right. That was a silly mistake on my side. >>> >>> It should be: >>> --- >>> properties: >>> compatible: >>> enum: >>> - microchip,lan9662-otpc >>> - microchip,lan9668-otpc >>> --- >>> Because what I want to achive is to be able to use any of >>> string(microchip,lan9662-otpc or microchip,lan9668-otpc) as compatible >>> string. >>> >>> Or this is not the correct change? >>> At least with this change dt_binding_check is happy. >> >> This would be correct from syntax point of view, however maybe not the >> best choice from functional point of view. How you wrote the driver and >> bindings, these devices are compatible, so why this is not expressed as >> compatible devices? > > OK, so then it should be something like this? > --- > properties: > compatible: > items: > - const: microchip,lan9662-otpc > - const: microchip,lan9668-otpc > --- > I would expect: oneOf: - items: - const: microchip,lan9668-otpc - const: microchip,lan9662-otpc - enum: - microchip,lan9662-otpc (but you need to fix indentation) Best regards, Krzysztof