Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2489062rwj; Mon, 19 Dec 2022 05:23:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXsFFOIANRq3ZZvubE/PgK2e5ViZEohUI/tGb2F8pJYPYRKgQgd91RgmZrkDBucUosiTQvnx X-Received: by 2002:a17:906:5957:b0:7d5:29e1:15ea with SMTP id g23-20020a170906595700b007d529e115eamr13913661ejr.8.1671456220571; Mon, 19 Dec 2022 05:23:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671456220; cv=none; d=google.com; s=arc-20160816; b=KPuRJgq3qt5c0L/K7rSA5zZlf5iu2pojUkZfji3ZWFKm+WvLbtsQVtIgcZGJTpgot4 rmiDICLH1sdwSBIkzI2zbMbXIhq1m/qGKei5+92stgN5vhN/kxq5VrFlCX4ZC5Ch/Z0Y GAEbLyP/j4jatfPW+OJRqTAGoIEsldrfF2sSty0LFUgERDAfFba9av9ieXVbVSFCcDCr mTcGKFfVAp7b3KDRUqpaYerE+nYov58KaEF0L1EqWIAlI6ZbQ2e4YwFYV8UTEndRW+Pr lCuZdw8QjCwTstV7immZmhPbXKSogBB3kg8FX9HPiJaUEBmpasijIYkN0tMH6TiDYPg9 ZvJw== 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=uEl6FOWuKZ6UAvDbu88RJHguk6sS9ZMQHT6dYgluwo8=; b=D10R2Rrrs0zOFM0ySqlcJPHwSoTGgXjGQuTLrQp89x4gd3ZWzh5GMYBLI04J15xzFq KtdIIydUCdZ7/6Fu+tBn7DFjAXceG8m5ZNhaMRzCVHMPZu8WGRt07LouxMq8sk6YKcus QXRgWlNLhBM9mNjyjrGRos81t1iV7D8koGRftfX/X7PYlvro9nEbOIXVunWQkTW//5Ic i00B2mZrmSINNYw040Ej8dT8qnf37Vu+CyOeRBWWZyJGaL9iR9dxF6tFyvJNLLrKkXV5 V8+Yn6sgncJqr4FKBGJzgvrvfUw++9t4phkag8LA7q3I1diNdo8bvtpzwEObMx8qMKls zw1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R/5PgBXY"; 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 g17-20020a1709067c5100b007c65bfa965csi7570301ejp.999.2022.12.19.05.23.24; Mon, 19 Dec 2022 05:23:40 -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="R/5PgBXY"; 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 S232011AbiLSNFK (ORCPT + 70 others); Mon, 19 Dec 2022 08:05:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbiLSNFI (ORCPT ); Mon, 19 Dec 2022 08:05:08 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87B2EFAD8 for ; Mon, 19 Dec 2022 05:05:03 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id c1so13527257lfi.7 for ; Mon, 19 Dec 2022 05:05:03 -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=uEl6FOWuKZ6UAvDbu88RJHguk6sS9ZMQHT6dYgluwo8=; b=R/5PgBXYN7w1BEUCUag9ctmn2yHfIYDc+7U39SyBATEkLrp1YnFu2oN66OukgektU/ mbno7A9xcaWtKv9gWhNdsBdyYtoapM6RAYvSUtNC8ptvyQC7HngaSIT5/bUD8TFhnsva SpPT27ILprpmZUHuijYB1j5Lng7rDSDxlR/VIm3s7yNcMIR2OpzEDgdlVPd9Hg/tC84Z bipcn9Cr4tA+hZsFOoaIFW6PCI1VMpaGbJvj/GDEG522BbqhyTecbt9rDohQgQuldaCg AibJcJlF23LXi5pvb/QVwNQjhK6avWxKxXUVw46FIbFZ1ApZ+DgW6y6RE7Kq04zs2Gcf QPaw== 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=uEl6FOWuKZ6UAvDbu88RJHguk6sS9ZMQHT6dYgluwo8=; b=1wnprs1WWoTUU5ThSslVIm/TVNMh2QvI6H1pyO4PpwT9CzP4fmfGxAVsYxOPhAKY5M 3KT8duaFRZfm/oGBpmoaUxjF82OospKNV/z18bWwxOAeqlWZ9uESFlf8ChNeu8prxIwP Y3uuxxmnR/4aSBPriC8B7prh0v4zTo7glqQDBwbZtMqZTQf9/zDKDgEVy9TS2DENhPCW rJIAikoGsk7gfRt4/9MgaV32OlQ4U1vCx+gC9FOtjB+0MJUBTm18w6Cw9rWSAwUhoZgp I+66H/VHP2HygyiPTPINgRIi1yxeCPIXhnvHoMbEi+h7AMX03HEnfQJY20sQzWOw9c0x wYkg== X-Gm-Message-State: ANoB5plEAWsnrHY4js+ySQo4LAP2oWfX5hb6iI64gRjrnqpDEpSilp4v Bq+JTlxFOBTQzIYXtYeUxB/OLg== X-Received: by 2002:a19:e051:0:b0:4b5:b7be:136b with SMTP id g17-20020a19e051000000b004b5b7be136bmr10806206lfj.69.1671455101743; Mon, 19 Dec 2022 05:05:01 -0800 (PST) Received: from [192.168.0.20] (088156142067.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.67]) by smtp.gmail.com with ESMTPSA id z11-20020a056512370b00b004b4f1ea713csm1097577lfr.73.2022.12.19.05.04.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Dec 2022 05:05:00 -0800 (PST) Message-ID: <8db62d1a-365c-d41d-90aa-4c78c5d5e9ce@linaro.org> Date: Mon, 19 Dec 2022 14:04:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v3] dt-bindings: display: rockchip: convert rockchip-lvds.txt to YAML To: Johan Jonker , heiko@sntech.de Cc: hjc@rock-chips.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org References: Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.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 19/12/2022 13:32, Johan Jonker wrote: > Convert rockchip-lvds.txt to YAML. > > Changed: > Add power-domains property. > Requirements between PX30 and RK3288 > > Signed-off-by: Johan Jonker > --- > > Changed V3: > Filename matching compatible style > Drop "Regulator phandle for " > Specify properties and requirements per SoC > Sort order and restyle > > Changed V2: > Fix title > --- > .../display/rockchip/rockchip,lvds.yaml | 170 ++++++++++++++++++ > .../display/rockchip/rockchip-lvds.txt | 92 ---------- > 2 files changed, 170 insertions(+), 92 deletions(-) > create mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml > delete mode 100644 Documentation/devicetree/bindings/display/rockchip/rockchip-lvds.txt > > diff --git a/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml b/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml > new file mode 100644 > index 000000000..03b002a05 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/rockchip/rockchip,lvds.yaml > @@ -0,0 +1,170 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/rockchip/rockchip,lvds.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Rockchip low-voltage differential signal (LVDS) transmitter > + > +maintainers: > + - Sandy Huang > + - Heiko Stuebner > + > +properties: > + compatible: > + enum: > + - rockchip,px30-lvds > + - rockchip,rk3288-lvds > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: pclk_lvds > + > + avdd1v0-supply: > + description: 1.0V analog power. > + > + avdd1v8-supply: > + description: 1.8V analog power. > + > + avdd3v3-supply: > + description: 3.3V analog power. > + > + rockchip,grf: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: Phandle to the general register files syscon. > + > + rockchip,output: > + $ref: /schemas/types.yaml#/definitions/string > + enum: [rgb, lvds, duallvds] > + description: This describes the output interface. > + > + phys: > + maxItems: 1 > + > + phy-names: > + const: dphy > + > + pinctrl-names: > + const: lcdc > + > + pinctrl-0: true > + > + power-domains: > + maxItems: 1 > + > + ports: > + $ref: /schemas/graph.yaml#/properties/ports > + > + properties: > + port@0: > + $ref: /schemas/graph.yaml#/properties/port > + description: > + Video port 0 for the VOP input. > + The remote endpoint maybe vopb or vopl. > + > + port@1: > + $ref: /schemas/graph.yaml#/properties/port > + description: > + Video port 1 for either a panel or subsequent encoder. > + > + required: > + - port@0 > + - port@1 > + > +required: > + - compatible > + - rockchip,grf > + - rockchip,output > + - ports > + > +allOf: > + - if: > + properties: > + compatible: > + contains: > + const: rockchip,px30-lvds > + > + then: > + properties: > + reg: false > + clocks: false > + clock-names: false > + avdd1v0-supply: false > + avdd1v8-supply: false > + avdd3v3-supply: false > + I see one compatible expects regmap from parent (grf is the parent here) and other is directly on MMIO bus. Not the best combination... Maybe this should be just split to two separate bindings? Looking at driver, their code is also very different between these two variants. Best regards, Krzysztof