Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp4058417ioo; Mon, 30 May 2022 17:00:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4F7SQ4gPTo571IIVl6+loUNa8WZKenV8B4PbZlp2F77jKY2xfVOhsCHzcfWJrhCX4nVzl X-Received: by 2002:a17:907:8c8c:b0:6fe:ecbf:3412 with SMTP id td12-20020a1709078c8c00b006feecbf3412mr34351504ejc.377.1653955232766; Mon, 30 May 2022 17:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653955232; cv=none; d=google.com; s=arc-20160816; b=vHIcliVJCVQjBZPtAEISi/dyDh+4GUw/o1eCvbsfIaE60yEvlD8x6Q23vNBLB/qCgy wJyJMhdpE3JfEQr+uveedoHfQYZDlGtObRSBOkmFtCKIQN6z+8RTi4qsI3OQxIwf/il+ dY+EbVpbkSoYiNQgYLQHDsbQoC6j1VLttof2aZ+lGG7egeQno0mJWhxNNEYeZsL8Nbu9 sojNArMZYxvTAsB7cPcGWgZQtfD1V9XIAQsKX0ZkjgUunFTXXDAZojI2cp0T2zv7cmqR 5hJ6K1Je9OEHR1IbT+Se15Xgajl4btt0KZZyZ4omiAxKLijT85V84sTiNP69EbXv+rR8 VpMA== 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=68IUzThINQHS9c64e/2mypyGj3LqFegF7aUXUpeQSII=; b=RGKNp5VAkQQCDs89/J67hIgGGzvhIgq1R9uAYZ98c+8gTMDHWGAQs2ApMu6eSf15J9 aHdRbjH6g8ydWtWMsIKrgNGndSuBP8RI8UfWleBR/mv/5oZdQS9+rBpWdLUcWzHOQJZy mNe0ZFqiZm9XOu4Ka6BwSFdM03oq6ge4CCRZouF+CcgjgBjdOvn09bsusMDmASY+3pL+ Oy89sEMEDCPr1X+gDb5cg/Mw6+BDrlmNx6X1xzshHh7Qp1oGJVrVjNJNnEckEZNdUL2z atm0zyjBS8lmYldqAj7Hkki2QO1z6QGV81AbwhKFSOA+sspu3PBNfGMOwZ4VS4c2GQzQ +I1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=u2d8p4QA; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs14-20020a1709072d0e00b006feaf6b2ad9si13168770ejc.776.2022.05.30.17.00.06; Mon, 30 May 2022 17:00:32 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=u2d8p4QA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243160AbiE3UPM (ORCPT + 99 others); Mon, 30 May 2022 16:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243141AbiE3UPE (ORCPT ); Mon, 30 May 2022 16:15:04 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 821E981486 for ; Mon, 30 May 2022 13:15:02 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id d26so10410068wrb.13 for ; Mon, 30 May 2022 13:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=68IUzThINQHS9c64e/2mypyGj3LqFegF7aUXUpeQSII=; b=u2d8p4QAEi3ctSajLm45PHcAdGNb4dc77i74TOisR6B9VoH4w4onMoONsDGc3+PD+H +CrhEa4dqWqz9Ox/kXTWVRT8E7CQbbf7aihiXS2nwKfsF7QdmyITkvGLWshI6CBe8T3o w+MZ3qyL9qilLXMp73nAWWB+Wf7+LKB0j1tLpB4aiA6DfeiwUpupRWzLyf2NdaFVwFhp 06XaOJrlzigu+lK98u0RqdZ4636R+6b0oGqiR/Rv9Wpdw2nS8VyJTiojxul5B+VTONR3 8g+oeqgqR/+0BrG0MjTMrWqf6A0PMwEMqEuRVaqq+3TNoBTalrcrKHPHGw0XGUawcdLW kgig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=68IUzThINQHS9c64e/2mypyGj3LqFegF7aUXUpeQSII=; b=NeBTrDzDVNt0dk8DImCKPXAKK2MEFc4eYRH4Su2TOk/Sp3FOaFswYBad/xHE8J9/xu zyLvGYDAs3hNZCgHkvV240gkZH6wBky/xtL5HQm1KBzGvVJ5MGBkL598eR+oNgmb3odz VQFOSQAcxhXanOwulLqb3ZJ2TvYwwNdBTUKqHhX9uISUkb5YsK0XtbO9LREfYBPTN1MT FZH5/3cJw0CcxP2PecQeOWoiXQQGAgLAgD/rZpntCldstMveQ2xF3S+S9jofsX4LcZTj iEwZWDSlTiMOg9GXi2Hwzlyhs1bCHbBjVDDUqgMk6i7m5CnP8dVRfjKLyzgw2NoXS8Qv NJcw== X-Gm-Message-State: AOAM530go/Yp5hvjPO+ZoBm9TNTQNvU7lYiQt39GX5KQpFwJ+1CJuUrO FfXrb6Qtd2+hGowpOufu3eL6kg== X-Received: by 2002:a05:6000:2ab:b0:210:12ab:76e6 with SMTP id l11-20020a05600002ab00b0021012ab76e6mr17162232wry.120.1653941700978; Mon, 30 May 2022 13:15:00 -0700 (PDT) Received: from localhost.localdomain ([88.160.162.107]) by smtp.gmail.com with ESMTPSA id t1-20020adfe101000000b0020d110bc39esm9770401wrz.64.2022.05.30.13.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 May 2022 13:15:00 -0700 (PDT) From: Fabien Parent To: matthias.bgg@gmail.com, ck.hu@mediatek.com, jitao.shi@mediatek.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org Cc: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch, 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, Fabien Parent Subject: [PATCH 2/7] dt-bindings: display: mediatek: dpi: add binding for MT8365 Date: Mon, 30 May 2022 22:14:31 +0200 Message-Id: <20220530201436.902505-2-fparent@baylibre.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220530201436.902505-1-fparent@baylibre.com> References: <20220530201436.902505-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 DPI for MT8365 is compatible with MT8192 but requires an additional clock. Modify the documentation to requires this clock only on MT8365 SoCs. Signed-off-by: Fabien Parent --- .../display/mediatek/mediatek,dpi.yaml | 44 ++++++++++++++++--- 1 file changed, 37 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index caf4c88708f4..c9c9f4d5ebe7 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -17,13 +17,18 @@ description: | properties: compatible: - enum: - - mediatek,mt2701-dpi - - mediatek,mt7623-dpi - - mediatek,mt8173-dpi - - mediatek,mt8183-dpi - - mediatek,mt8186-dpi - - mediatek,mt8192-dpi + oneOf: + - enum: + - mediatek,mt2701-dpi + - mediatek,mt7623-dpi + - mediatek,mt8173-dpi + - mediatek,mt8183-dpi + - mediatek,mt8186-dpi + - mediatek,mt8192-dpi + - items: + - enum: + - mediatek,mt8365-dpi + - const: mediatek,mt8192-dpi reg: maxItems: 1 @@ -32,16 +37,20 @@ properties: maxItems: 1 clocks: + minItems: 3 items: - description: Pixel Clock - description: Engine Clock - description: DPI PLL + - description: DPI Clock clock-names: + minItems: 3 items: - const: pixel - const: engine - const: pll + - const: dpi pinctrl-0: true pinctrl-1: true @@ -71,6 +80,27 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8365-dpi + + then: + properties: + clocks: + maxItems: 4 + clock-names: + maxItems: 4 + + else: + properties: + clocks: + maxItems: 3 + clock-names: + maxItems: 3 + examples: - | #include -- 2.36.1