Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3023290rwb; Mon, 16 Jan 2023 02:40:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXumwX///icoLUrBaQPHma1FSHt5SWmqiOaY5Rue0d30y/uR7wQYv+Xk4sYOAi0BolP/WFDn X-Received: by 2002:a05:6402:c0b:b0:49c:fde2:a6f4 with SMTP id co11-20020a0564020c0b00b0049cfde2a6f4mr11215286edb.15.1673865634639; Mon, 16 Jan 2023 02:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673865634; cv=none; d=google.com; s=arc-20160816; b=SY2GL979vOtHEJ/XLKZl3MKBnj+/ZFiSUNtv7JFxTJ3LWbAKjvse4nbcgyTay2cI4M e4RVr0/3L6pKBZUa96rEw2+feXxMcMPO4mZpfzKBIqWKtB9S6TLJFWXUP0E1kJiOnEOf QobiRzSC0SYy1rKbqbqGzzHSO0x8LMnUr/AlLyijzdsdUB0BbE/uEVyuu0z8tBSZILx3 2fUMnJvnE9gsuP9llm4HkDsrOV6TJfe6Sa283mRsxd09fnG7sS+R4r79W9IvBx2swezZ +xNdE9k8ADoVeMBLhKEULqSPqJAh9oNePgHEa98IRwuG0QjcOwVW4ucESDHbw3PTKnbM Ic2A== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lgldI+82xaPUxW9jFm83l+ZVCizNwJg+yeI6zrnzsq4=; b=j3FC3fTMlSfP8weIjS+algRUJfegC0rbAVlcL7BrZi3ZTnp1wtBKuxuNz/h7xigNTj BHa9eH9chTrT+MlDQB6l4dP477cZ4rGEyXD+8PUCadGc+kSwuOh7BF6RFrs03Z6Swo/y QWufSaEWetHx2tCGpHzhLA6oxJwlveWHREOn77jejtZ2zQ07Wd2Sq3XtgbNrCmWO0w5T w5HiMlGNX5NNGra+XdJLN2dEupzf/PjElfeRktI4a8ZRPVLPsuqhc/WzI/wFVSHpSKdR +GWPk52eLZPSBd7WpdoM9sNhl3PtyJHEOShd+knfmLdT+O/9vuGPrAeal0KzE5AhpEpk clFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BCpiKjVB; 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 c6-20020aa7d606000000b00485d0c79044si27704756edr.308.2023.01.16.02.40.22; Mon, 16 Jan 2023 02:40:34 -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=@linaro.org header.s=google header.b=BCpiKjVB; 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 S229669AbjAPKBt (ORCPT + 51 others); Mon, 16 Jan 2023 05:01:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjAPKBq (ORCPT ); Mon, 16 Jan 2023 05:01:46 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFE3EC170 for ; Mon, 16 Jan 2023 02:01:44 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id w14so22680551edi.5 for ; Mon, 16 Jan 2023 02:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=lgldI+82xaPUxW9jFm83l+ZVCizNwJg+yeI6zrnzsq4=; b=BCpiKjVBNdeZIXfLzwWGp6kixGj7UhUJC6Jg3ImNGeisAS1niXVyRhbI37ToWhVVov Gau4+9ctE1TDM13aqvWzu+yVTrjdC7tpaxBvH6lbm1K8ZLSAoYqj1tnfDNhaIggJy8Ix U/m66LrjGiz/kInp/qy2Q4BcTg2Hx+cyJ/wha7WUftpsKznaWllLTHXTxs4JOuEAtz2K Rk1Gp73r2z4eTAFbP20g0pkZLqvAsF50G1T9htpwAMzxU64m8827iOUAbuqItmOd2E4A HnjayK4LMsTaDCKG/ax7O7cRtjDYaN817bWhHtQmCMNH239aO/y0pjmUOszBeipZH+p1 C2mA== 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:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lgldI+82xaPUxW9jFm83l+ZVCizNwJg+yeI6zrnzsq4=; b=BizmR35S+3rmyuCwT9UpWbfOLjgsA3O73x1DjRrwEZ3caYdogxiPTOkE/EKKhgqQNZ m67sXJwjbnglH7Kxk5Nfvzi9HH+YweW2W4N88zjgZ21SchkJkYhQxISGYz50ORHrHlzR H2E+nB8TwfXlUXPzJMFV+NdOqi07GoU8pygaE1PNzcJCXKqgQYKm1gsu8euACPHl5Niv j5gknO+wd+frWoFn6JNv9vyHCCs4PLpCcNcgV2W+IVnoQM2TxCdf9XaQll7UFWnQHTnm jEEaWZXWZFyEzkaGAyPqhE2PRva5nq0UzXS4tPAZapW5it8PWO5MXZ5HVHLQYmGTdVmP fNWQ== X-Gm-Message-State: AFqh2kp9Pq/0QeoIG+5OddW+erQSVEoZQ4UZvBYNLbzSPOQMIxLva+nz B6P3kIxw5V0MgwOnSLHag0j8+g== X-Received: by 2002:a05:6402:520b:b0:48b:58be:472c with SMTP id s11-20020a056402520b00b0048b58be472cmr78238671edd.18.1673863303450; Mon, 16 Jan 2023 02:01:43 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id q24-20020a056402249800b0046ac460da13sm11336099eda.53.2023.01.16.02.01.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jan 2023 02:01:43 -0800 (PST) Message-ID: Date: Mon, 16 Jan 2023 11:01:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RESEND v3 01/13] dt-binding: mediatek: add bindings for MediaTek mt8195 MDP3 components To: =?UTF-8?B?TW91ZHkgSG8gKOS9leWul+WOnyk=?= , "matthias.bgg@gmail.com" , "mchehab@kernel.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-media@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "devicetree@vger.kernel.org" , Project_Global_Chrome_Upstream_Group References: <20230116032147.23607-1-moudy.ho@mediatek.com> <20230116032147.23607-2-moudy.ho@mediatek.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 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 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 16/01/2023 10:39, Moudy Ho (何宗原) wrote: > Hi Krzysztof, > > Thank you for taking the time to help review, I would like to ask a > modification as follows. > > On Mon, 2023-01-16 at 09:10 +0100, Krzysztof Kozlowski wrote: >>> > > (snip) > >> On 16/01/2023 04:21, Moudy Ho wrote: >>> diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3- >>> aal.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3- >>> aal.yaml >>> new file mode 100644 >>> index 000000000000..d2e1b5245778 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3- >>> aal.yaml >> >> Filename should match compatible, unless you already expect this >> binding >> will cover other devices. If so, why not adding them now? >> > > May I rename this file to "mediatek,mt8195-mdp3.yaml" > >>> > > (snip) > >>> diff --git a/Documentation/devicetree/bindings/media/mediatek,mdp3- >>> color.yaml b/Documentation/devicetree/bindings/media/mediatek,mdp3- >>> color.yaml >>> new file mode 100644 >>> index 000000000000..1d8aa5dc76b9 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/media/mediatek,mdp3- >>> color.yaml >>> @@ -0,0 +1,63 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: >>> https://urldefense.com/v3/__http://devicetree.org/schemas/media/mediatek,mdp3-color.yaml*__;Iw!!CTRNKA9wMg0ARbw!lcferrFFP-mshDHNL-rwJLgNKDrXF9fXoljpqL30k5YKTNvCwuC3webzR32VnQQoPeFvSvAewNkeupcT4mjdEwNEKP4V$  >>> >>> +$schema: >>> https://urldefense.com/v3/__http://devicetree.org/meta-schemas/core.yaml*__;Iw!!CTRNKA9wMg0ARbw!lcferrFFP-mshDHNL-rwJLgNKDrXF9fXoljpqL30k5YKTNvCwuC3webzR32VnQQoPeFvSvAewNkeupcT4mjdEz618JHq$  >>> >>> + >>> +title: MediaTek Media Data Path 3 COLOR >>> + >>> +maintainers: >>> + - Matthias Brugger >>> + - Moudy Ho >>> + >>> +description: >>> + One of Media Data Path 3 (MDP3) components used to adjust hue, >>> luma and >>> + saturation to get better picture quality. >>> + >>> +properties: >>> + compatible: >>> + enum: >>> + - mediatek,mt8195-mdp3-color >> >> This is exactly the same as previous file. Why do you split the >> binding? >> It really looks unnecessary. >> >> Probably all other files should be also squashed. >> > > and convert all other bindings into individual compatible enums to > squash all files? > > compatible: > enum: > - mediatek,mt8195-mdp3-color > - mediatek,mt8195-mdp3-aal Yes, all devices which have exactly the same properties in one binding file. Their compatibles listed in enum. You can keep the separate bindings which differ from each other. Best regards, Krzysztof