Message ID | 20230412112739.160376-2-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp249039vqo; Wed, 12 Apr 2023 04:29:13 -0700 (PDT) X-Google-Smtp-Source: AKy350asE69zMGfc5skCVNt1f5Pf8P3Vu27shsxD3STK9Efkr+pP7+w3aE+WP0C116zIDnTpSWr+ X-Received: by 2002:a05:6402:4302:b0:504:ab52:fab8 with SMTP id m2-20020a056402430200b00504ab52fab8mr2387869edc.10.1681298953542; Wed, 12 Apr 2023 04:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681298953; cv=none; d=google.com; s=arc-20160816; b=zlTR/rTr4bHM14KIHpi4VRcabD4RzEViuNJW8LtkZqXyj5wekrquSI/bR8YWRrZGej CaNgTQpfpkwUV0j0vT2QN4f+3nXo8dXr6DNJ71AdtOhnufz4JN7q6yUur4Ut3XvmcI0a 9e8tNHsHgxowsY+TYyI81dl+QgNveQcasP+OxUg4rz26xjpKxtAGdq84kCP0nrf/K4mk V0B7P6rizYBnQNYYrdyIceyxeYKZVtmh0lwvRwW8b5OG/pdmZn8Lh2UFPCrYSfUyQlPf N1Fo0RzS+7Y779jx6ymew+dDfoI+ufAh6W+iga5JRJ2IN1VsyuGxCxgMpoYL+BJJgQj2 hP8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7zXkqT18Eg4b/vXABxEL1/DyL23gksXOzvi2vBSU+ZY=; b=LS9QJDscjmt+3UiWejPpGwFf04WFA3xv0tq8SvdP0RsHFlQR9YKrTVtZ1tHqbmmCiA 5BJDW/dFKSgxZhTCBkpjr8G4ETSvHc+86zv+aDqH2VPe66ZC6bwIF6KokcsHykZzuoqN A6kAwJYbpczXIkrizN7yCRLLs/CPnYRiMTd850iH4YYOQoi3wIvAGPpLt4R72HHSTaTf Fj6LHLiD5aIMYiZoWl5nFPwdjl0PLdxtQ5N7JzWsfzlnbr30rUiP2Umf/KQxp4gzX0Ag bQrh4ARhw73ziks0Grr+iqYh+rKes093ZHZrPmcEJ0wyN9Nik/2ZEEFqlZZ1Eqqdw2/n 9ZyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ZODHobO8; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a05640214c900b005048c3d97d7si9816097edx.249.2023.04.12.04.28.46; Wed, 12 Apr 2023 04:29: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=@collabora.com header.s=mail header.b=ZODHobO8; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230287AbjDLL2I (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Wed, 12 Apr 2023 07:28:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbjDLL2D (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 12 Apr 2023 07:28:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E07EF1FEA; Wed, 12 Apr 2023 04:27:47 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 608366603201; Wed, 12 Apr 2023 12:27:45 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1681298866; bh=YDQxHn4LMGevVfKU87Wwqa+i9ANnJ1wpzX3mspDDOrs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZODHobO8ZVk/h3S1ggRA+uwI4dbmv2vb89bvbQ+WbellxMWsbILYmGigTUdDwkHbN 7OY8QOUDa4mARCVa2U9MdT9QzW8eOslKE26gYmmCj9NJZ4/hN8k6xHb+ivU3oOFoXp RPiV8ROFdOdUCcWq6BTqsJZV/bP4mOaQOKb7QOl1HOoyRPGDp1fmydKM/4QzoeBiqB iOae4a55AZ3NcZZQA+brruli98t1bc9OhE4aqcRhTyamaHOoDyWWRpN2R9KR8rKYHJ 2H7S/+BPsis44nTeSGB/0n0r4WdBCEbG1fgzBXQOaAjpP/mvvTrgiCGaSEx79acUEN 2AnXTAN3eGfaA== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, jassisinghbrar@gmail.com, chunfeng.yun@mediatek.com, vkoul@kernel.org, kishon@kernel.org, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, chunkuang.hu@kernel.org, angelogioacchino.delregno@collabora.com, ck.hu@mediatek.com, jitao.shi@mediatek.com, xinlei.lee@mediatek.com, houlong.wei@mediatek.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, linux-pwm@vger.kernel.org, kernel@collabora.com, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht Subject: [PATCH 01/27] dt-bindings: pwm: Add compatible for MediaTek MT6795 Date: Wed, 12 Apr 2023 13:27:13 +0200 Message-Id: <20230412112739.160376-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230412112739.160376-1-angelogioacchino.delregno@collabora.com> References: <20230412112739.160376-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762969731426966242?= X-GMAIL-MSGID: =?utf-8?q?1762969731426966242?= |
Series |
MediaTek Helio X10 - Mailbox, Display, MMC/SD/SDIO
|
|
Commit Message
AngeloGioacchino Del Regno
April 12, 2023, 11:27 a.m. UTC
Add a compatible string for MediaTek Helio X10 MT6795's display PWM
block: this is the same as MT8173.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: > Add a compatible string for MediaTek Helio X10 MT6795's display PWM > block: this is the same as MT8173. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> > --- > Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > index 0088bc8e7c54..153e146df7d4 100644 > --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > @@ -22,7 +22,9 @@ properties: > - mediatek,mt8173-disp-pwm > - mediatek,mt8183-disp-pwm > - items: > - - const: mediatek,mt8167-disp-pwm > + - enum: > + - mediatek,mt6795-disp-pwm > + - mediatek,mt8167-disp-pwm > - const: mediatek,mt8173-disp-pwm > - items: > - enum:
On Wed, 12 Apr 2023 13:27:13 +0200, AngeloGioacchino Del Regno wrote: > Add a compatible string for MediaTek Helio X10 MT6795's display PWM > block: this is the same as MT8173. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings. Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future. Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230412112739.160376-2-angelogioacchino.delregno@collabora.com pwm@1100e000: 'power-domains' does not match any of the regexes: 'pinctrl-[0-9]+' arch/arm64/boot/dts/mediatek/mt8183-evb.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-burnet.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-cozmo.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel14.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel14-sku2.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku1.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku6.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku7.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-juniper-sku16.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-kappa.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-kenzo.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-willow-sku0.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-willow-sku1.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu-sku22.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku16.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku272.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku288.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku32.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dtb arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dtb arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dtb pwm@1400a000: compatible: 'oneOf' conditional failed, one must be fixed: arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb arch/arm/boot/dts/mt7623n-rfb-emmc.dtb pwm@1401e000: compatible: 'oneOf' conditional failed, one must be fixed: arch/arm64/boot/dts/mediatek/mt8173-elm.dtb arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtb arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dtb arch/arm64/boot/dts/mediatek/mt8173-evb.dtb pwm@1401f000: compatible: 'oneOf' conditional failed, one must be fixed: arch/arm64/boot/dts/mediatek/mt8173-elm.dtb arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtb arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dtb arch/arm64/boot/dts/mediatek/mt8173-evb.dtb
On 12/04/2023 23:03, Rob Herring wrote: > > On Wed, 12 Apr 2023 13:27:13 +0200, AngeloGioacchino Del Regno wrote: >> Add a compatible string for MediaTek Helio X10 MT6795's display PWM >> block: this is the same as MT8173. >> >> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >> --- >> Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> > > Running 'make dtbs_check' with the schema in this patch gives the > following warnings. Consider if they are expected or the schema is > incorrect. These may not be new warnings. > These are not new warnings. I think we should address them in a different patch. In my opinion it shouldn't block this patch. In the end it only add as compatible here. Regards, Matthias > Note that it is not yet a requirement to have 0 warnings for dtbs_check. > This will change in the future. > > Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230412112739.160376-2-angelogioacchino.delregno@collabora.com > > > pwm@1100e000: 'power-domains' does not match any of the regexes: 'pinctrl-[0-9]+' > arch/arm64/boot/dts/mediatek/mt8183-evb.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-burnet.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-cozmo.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel14.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel14-sku2.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku1.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku6.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku7.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-juniper-sku16.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-kappa.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-kenzo.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-willow-sku0.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-willow-sku1.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu-sku22.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku16.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku272.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku288.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku32.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dtb > arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dtb > arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dtb > > pwm@1400a000: compatible: 'oneOf' conditional failed, one must be fixed: > arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb > arch/arm/boot/dts/mt7623n-rfb-emmc.dtb > > pwm@1401e000: compatible: 'oneOf' conditional failed, one must be fixed: > arch/arm64/boot/dts/mediatek/mt8173-elm.dtb > arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtb > arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dtb > arch/arm64/boot/dts/mediatek/mt8173-evb.dtb > > pwm@1401f000: compatible: 'oneOf' conditional failed, one must be fixed: > arch/arm64/boot/dts/mediatek/mt8173-elm.dtb > arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtb > arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dtb > arch/arm64/boot/dts/mediatek/mt8173-evb.dtb >
Il 13/04/23 10:52, Matthias Brugger ha scritto: > > > On 12/04/2023 23:03, Rob Herring wrote: >> >> On Wed, 12 Apr 2023 13:27:13 +0200, AngeloGioacchino Del Regno wrote: >>> Add a compatible string for MediaTek Helio X10 MT6795's display PWM >>> block: this is the same as MT8173. >>> >>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>> --- >>> Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- >>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> >> >> Running 'make dtbs_check' with the schema in this patch gives the >> following warnings. Consider if they are expected or the schema is >> incorrect. These may not be new warnings. >> > > These are not new warnings. I think we should address them in a different patch. In > my opinion it shouldn't block this patch. In the end it only add as compatible here. > I agree. These warnings should not block this patch, as they're totally unrelated to it. Regards, Angelo
Hello, On Wed, Apr 12, 2023 at 01:27:13PM +0200, AngeloGioacchino Del Regno wrote: > Add a compatible string for MediaTek Helio X10 MT6795's display PWM > block: this is the same as MT8173. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> I assume this patch will go in together with the other patches in this series via an ARM tree? (I.e. not via pwm.) Best regards Uwe
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: > Add a compatible string for MediaTek Helio X10 MT6795's display PWM > block: this is the same as MT8173. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > index 0088bc8e7c54..153e146df7d4 100644 > --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > @@ -22,7 +22,9 @@ properties: > - mediatek,mt8173-disp-pwm > - mediatek,mt8183-disp-pwm > - items: > - - const: mediatek,mt8167-disp-pwm > + - enum: > + - mediatek,mt6795-disp-pwm > + - mediatek,mt8167-disp-pwm This does not look correct. You do not add compatible, you replace breaking all mt8167-disp-pwm. At least it looks like this from context. Best regards, Krzysztof
On Fri, Apr 14, 2023 at 10:21:05AM +0200, Krzysztof Kozlowski wrote: > On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: > > Add a compatible string for MediaTek Helio X10 MT6795's display PWM > > block: this is the same as MT8173. > > > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > > --- > > Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > > index 0088bc8e7c54..153e146df7d4 100644 > > --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > > +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > > @@ -22,7 +22,9 @@ properties: > > - mediatek,mt8173-disp-pwm > > - mediatek,mt8183-disp-pwm > > - items: > > - - const: mediatek,mt8167-disp-pwm > > + - enum: > > + - mediatek,mt6795-disp-pwm > > + - mediatek,mt8167-disp-pwm > > This does not look correct. You do not add compatible, you replace > breaking all mt8167-disp-pwm. At least it looks like this from context. I thought the old semantic to be: "mediatek,mt8167-disp-pwm" and the new "mediatek,mt6795-disp-pwm" or "mediatek,mt8167-disp-pwm" . What am I missing? Best regards Uwe
On 14/04/2023 10:30, Uwe Kleine-König wrote: > On Fri, Apr 14, 2023 at 10:21:05AM +0200, Krzysztof Kozlowski wrote: >> On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: >>> Add a compatible string for MediaTek Helio X10 MT6795's display PWM >>> block: this is the same as MT8173. >>> >>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>> --- >>> Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- >>> 1 file changed, 3 insertions(+), 1 deletion(-) >>> >>> diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>> index 0088bc8e7c54..153e146df7d4 100644 >>> --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>> +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>> @@ -22,7 +22,9 @@ properties: >>> - mediatek,mt8173-disp-pwm >>> - mediatek,mt8183-disp-pwm >>> - items: >>> - - const: mediatek,mt8167-disp-pwm >>> + - enum: >>> + - mediatek,mt6795-disp-pwm >>> + - mediatek,mt8167-disp-pwm >> >> This does not look correct. You do not add compatible, you replace >> breaking all mt8167-disp-pwm. At least it looks like this from context. > > I thought the old semantic to be: > > "mediatek,mt8167-disp-pwm" > > and the new > > "mediatek,mt6795-disp-pwm" or "mediatek,mt8167-disp-pwm" > > . What am I missing? The new is ok for mt6795 but it is not valid for mt8167. Best regards, Krzysztof
Il 14/04/23 10:34, Krzysztof Kozlowski ha scritto: > On 14/04/2023 10:30, Uwe Kleine-König wrote: >> On Fri, Apr 14, 2023 at 10:21:05AM +0200, Krzysztof Kozlowski wrote: >>> On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: >>>> Add a compatible string for MediaTek Helio X10 MT6795's display PWM >>>> block: this is the same as MT8173. >>>> >>>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>>> --- >>>> Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- >>>> 1 file changed, 3 insertions(+), 1 deletion(-) >>>> >>>> diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>>> index 0088bc8e7c54..153e146df7d4 100644 >>>> --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>>> +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>>> @@ -22,7 +22,9 @@ properties: >>>> - mediatek,mt8173-disp-pwm >>>> - mediatek,mt8183-disp-pwm >>>> - items: >>>> - - const: mediatek,mt8167-disp-pwm >>>> + - enum: >>>> + - mediatek,mt6795-disp-pwm >>>> + - mediatek,mt8167-disp-pwm >>> >>> This does not look correct. You do not add compatible, you replace >>> breaking all mt8167-disp-pwm. At least it looks like this from context. >> >> I thought the old semantic to be: >> >> "mediatek,mt8167-disp-pwm" >> >> and the new >> >> "mediatek,mt6795-disp-pwm" or "mediatek,mt8167-disp-pwm" >> >> . What am I missing? > > The new is ok for mt6795 but it is not valid for mt8167. > Sorry, why is it not valid for MT8167? This is changing the doc from: OLD: - items: - const: mediatek,mt8167-disp-pwm - const: mediatek,mt8173-disp-pwm NEW: - items: - enum: - mediatek,mt6795-disp-pwm - mediatek,mt8167-disp-pwm - const: mediatek,mt8173-disp-pwm For me, that's totally valid, as the old semantic was: compatible = "mediatek,mt8167-disp-pwm", "mediatek,mt8173-disp-pwm"; ...and the new semantic is .. the same; this commit only *adds* the possibility to get a compatible = "mediatek,mt6795-disp-pwm", "mediatek,mt8173-disp-pwm"; without breaking anything. Regards, Angelo
On 14/04/2023 12:25, AngeloGioacchino Del Regno wrote: > Il 14/04/23 10:34, Krzysztof Kozlowski ha scritto: >> On 14/04/2023 10:30, Uwe Kleine-König wrote: >>> On Fri, Apr 14, 2023 at 10:21:05AM +0200, Krzysztof Kozlowski wrote: >>>> On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: >>>>> Add a compatible string for MediaTek Helio X10 MT6795's display PWM >>>>> block: this is the same as MT8173. >>>>> >>>>> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> >>>>> --- >>>>> Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- >>>>> 1 file changed, 3 insertions(+), 1 deletion(-) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>>>> index 0088bc8e7c54..153e146df7d4 100644 >>>>> --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>>>> +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml >>>>> @@ -22,7 +22,9 @@ properties: >>>>> - mediatek,mt8173-disp-pwm >>>>> - mediatek,mt8183-disp-pwm >>>>> - items: >>>>> - - const: mediatek,mt8167-disp-pwm >>>>> + - enum: >>>>> + - mediatek,mt6795-disp-pwm >>>>> + - mediatek,mt8167-disp-pwm >>>> >>>> This does not look correct. You do not add compatible, you replace >>>> breaking all mt8167-disp-pwm. At least it looks like this from context. >>> >>> I thought the old semantic to be: >>> >>> "mediatek,mt8167-disp-pwm" >>> >>> and the new >>> >>> "mediatek,mt6795-disp-pwm" or "mediatek,mt8167-disp-pwm" >>> >>> . What am I missing? >> >> The new is ok for mt6795 but it is not valid for mt8167. >> > > Sorry, why is it not valid for MT8167? Eh, above example did not help me, because it missed mt8173, but I see now the context I missed. It's already a list of two compatibles, so the patch is fine. Best regards, Krzysztof
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: > Add a compatible string for MediaTek Helio X10 MT6795's display PWM > block: this is the same as MT8173. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Thu, Apr 13, 2023 at 10:52:28AM +0200, Matthias Brugger wrote: > > > On 12/04/2023 23:03, Rob Herring wrote: > > > > On Wed, 12 Apr 2023 13:27:13 +0200, AngeloGioacchino Del Regno wrote: > > > Add a compatible string for MediaTek Helio X10 MT6795's display PWM > > > block: this is the same as MT8173. > > > > > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > > > --- > > > Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > > Running 'make dtbs_check' with the schema in this patch gives the > > following warnings. Consider if they are expected or the schema is > > incorrect. These may not be new warnings. > > > > These are not new warnings. I think we should address them in a different > patch. In my opinion it shouldn't block this patch. In the end it only add > as compatible here. I disagree if it's the schema that needs fixing. From the looks of it, I'd say it's probably at least some schema fixes needed. > > Regards, > Matthias > > > Note that it is not yet a requirement to have 0 warnings for dtbs_check. > > This will change in the future. > > > > Full log is available here: https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230412112739.160376-2-angelogioacchino.delregno@collabora.com > > > > > > pwm@1100e000: 'power-domains' does not match any of the regexes: 'pinctrl-[0-9]+' Are you saying the MT6795 has no power-domains? > > arch/arm64/boot/dts/mediatek/mt8183-evb.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-burnet.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-cozmo.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-damu.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel14.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel14-sku2.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku1.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku6.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-fennel-sku7.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-juniper-sku16.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-kappa.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-kenzo.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-willow-sku0.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi-willow-sku1.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu-sku22.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku16.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku272.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku288.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama-sku32.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku0.dtb > > arch/arm64/boot/dts/mediatek/mt8183-kukui-krane-sku176.dtb > > arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dtb > > > > pwm@1400a000: compatible: 'oneOf' conditional failed, one must be fixed: > > arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb > > arch/arm/boot/dts/mt7623n-rfb-emmc.dtb > > > > pwm@1401e000: compatible: 'oneOf' conditional failed, one must be fixed: > > arch/arm64/boot/dts/mediatek/mt8173-elm.dtb > > arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtb > > arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dtb > > arch/arm64/boot/dts/mediatek/mt8173-evb.dtb > > > > pwm@1401f000: compatible: 'oneOf' conditional failed, one must be fixed: > > arch/arm64/boot/dts/mediatek/mt8173-elm.dtb > > arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtb > > arch/arm64/boot/dts/mediatek/mt8173-elm-hana-rev7.dtb > > arch/arm64/boot/dts/mediatek/mt8173-evb.dtb The commit message says the MT6795 is the same as the MT8173. Which is wrong here, the dtb or the schema? Rob
On 14/04/2023 07:43, Uwe Kleine-König wrote: > Hello, > > On Wed, Apr 12, 2023 at 01:27:13PM +0200, AngeloGioacchino Del Regno wrote: >> Add a compatible string for MediaTek Helio X10 MT6795's display PWM >> block: this is the same as MT8173. >> >> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > > Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> > > I assume this patch will go in together with the other patches in this > series via an ARM tree? (I.e. not via pwm.) > That's totally fine, I'll take this patch through my tree once everything is ready. Regards, Matthias
On 12/04/2023 13:27, AngeloGioacchino Del Regno wrote: > Add a compatible string for MediaTek Helio X10 MT6795's display PWM > block: this is the same as MT8173. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Applied, thanks! > --- > Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > index 0088bc8e7c54..153e146df7d4 100644 > --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml > @@ -22,7 +22,9 @@ properties: > - mediatek,mt8173-disp-pwm > - mediatek,mt8183-disp-pwm > - items: > - - const: mediatek,mt8167-disp-pwm > + - enum: > + - mediatek,mt6795-disp-pwm > + - mediatek,mt8167-disp-pwm > - const: mediatek,mt8173-disp-pwm > - items: > - enum:
diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml index 0088bc8e7c54..153e146df7d4 100644 --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml @@ -22,7 +22,9 @@ properties: - mediatek,mt8173-disp-pwm - mediatek,mt8183-disp-pwm - items: - - const: mediatek,mt8167-disp-pwm + - enum: + - mediatek,mt6795-disp-pwm + - mediatek,mt8167-disp-pwm - const: mediatek,mt8173-disp-pwm - items: - enum: