Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1933497lql; Wed, 13 Mar 2024 12:15:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHN16GeE3bBZyv8kdQcLm4vZr0cy1GUC/AOcMuuaGC8/C2a1jdoXmJt3F3vLRWCrszXrr6jJ0xf9d4KrCka4wS5UghOkVWcenb59qsLQ== X-Google-Smtp-Source: AGHT+IGBYFw9eVzV2EGS2TJZFJZ3BHP9zYYdUCOXRyGeTtzEB9baIrvib9qHcOJYNfGJh/Nv1fA6 X-Received: by 2002:a17:902:dac5:b0:1dd:9090:a36c with SMTP id q5-20020a170902dac500b001dd9090a36cmr14680651plx.45.1710357334647; Wed, 13 Mar 2024 12:15:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710357334; cv=pass; d=google.com; s=arc-20160816; b=opLWCfUpemGQqpCgWGwk66jmEarYwWQoBrbKmaPw1LhCUC2EOj4bQCOOYycEeAWfyy tFhoGAu6rOmsAO9bAJzkx6xSNKIccFncGPuJADpw2WDi1uovTA7+SU+qgx25O+mc9sar 0Y9jYQx4VOEo+f4RhESnJi29LGOQTj1RboJJiGDc+oF9I8Bt1Nwuvb/mmDx7d66NNb2R +sQwg6CVYQNFxqgAbBD58/xeeoDjXQTRxVRO8XV/pz/UwLW5q0TDaXzuvxocGEaxlyag h2NtEizbPBpDRyOaTu5igaNBmFQ8EGUT92iKWtpwSeOs2KjVSUSj2IXc5fjtHViQEorc /exw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=cumHnSAU0uyTVlzJRc7lws76GfX96Vv3WFCUpPGbENc=; fh=HIRlsgyIeuDo3T67F29fx5w/lFFSv4B/plvIaQZLras=; b=caERYKn3PG8JHloljezLX0rlCVjATGDjFTEreNajI0ihBjd/XIeu9ly8cXcbvzTGUZ qML515ph3YU1kdEHfqZZmUSDI5eMjLfyalCsPAss7zIpMkxB51KO0jiwJUXE0vU/iSgk qpDtGtfZOSq+WQzU2tl2nzm4o2f8B6aEhEdYByQVnurgU/f4Jw0juCg3u1OeFPrNBfTS Xfvzi9QSRfW6VD4ovk9iZrY6n0Xs5tms/fsq5BBmh69WicEOrvIXyXPJBSy6f3HQlWDT w2u+/+AvMQK8Iv9kjoSv792p0FgapWNMTHrQf0AxQXBPPQ1bmweZTL9Es2R7H6b3B8eP xhCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y5DOZNzi; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-102363-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102363-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u3-20020a170902b28300b001dcd0cf3781si9243324plr.135.2024.03.13.12.15.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 12:15:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102363-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y5DOZNzi; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-102363-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102363-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0CE21281084 for ; Wed, 13 Mar 2024 19:10:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 321AA7442D; Wed, 13 Mar 2024 18:29:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Y5DOZNzi" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1916605C9 for ; Wed, 13 Mar 2024 18:29:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710354544; cv=none; b=pzKvP7S12E8/uS85mwhBGJzl55WTqaF1CsM8NKMTllFnluTPsIqncry4B9Mwp8r+IRPcZnDtCvqVCH3ID4N2Z/k066knHI4yev19XbV64CKdT2dMQ/vnL5KyWo9tduNZowSIHT3J56EDE1cwHbmDaqnqZkP6KdfJTkNXbpw3PJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710354544; c=relaxed/simple; bh=bO0kt7AO7t61PvpHXNNdrdrLQbOyPYBQGn8YDjEi9O8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=anp342UurgZ+60WaSbJqCWIYB01/9z99W+egybfVpUb0l0shgqQ9iihNGOWrxU2w+BMM3NjOvV1EmvcyryOOH6chYWsmjqXCg0v001nHQuFAIClwHoEV70jQv4BSZ0fz1TA+jAiyiHWILPs6raV5GQpCT/1TuKscXLhyEDU5TOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Y5DOZNzi; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-33e9990da78so88048f8f.0 for ; Wed, 13 Mar 2024 11:29:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710354540; x=1710959340; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=cumHnSAU0uyTVlzJRc7lws76GfX96Vv3WFCUpPGbENc=; b=Y5DOZNzicwQW0DUFtIRfPHocyE3vXGq4ogAqLPrIlBdW0pS+n2viScDeEawc36n6zY tVqjO26k0qqi6dcwLJe5UBJL+60YuQt5YheIqg63h4Hkw/J+FX8kz4eFq8e8mHgmgxV7 8ciP0wWTp8NFR2wJ8gMUeU2rFJqppb7RXVq20D/l7f3h6Y2yCwAyJGOlXHsascSXaNeu p9bEDuv+20ZcE+TQYxhGBXCS7/MNcCnm7AP/rlHGsym/EyE6qlSDBtjUKnxtM/2Et2mH v8C6ANSXEQuSXEXWsdjcOkU2NyHfC3GOFAo1nJ9YUfZj1EFh8ATdwkeHynxCNl4018By U1Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710354540; x=1710959340; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cumHnSAU0uyTVlzJRc7lws76GfX96Vv3WFCUpPGbENc=; b=O9g+slcAOdwMriABFGoW2Hp4gN53B8W+V1pkPj3yHLTnxilw/szDDZyHoqMnliNucm h484NT0VWcvFobuKhAgqYWV8Z2sqGTrrrY3jrraBPEYgHZMhUxy/nu04JlxPr6qXWhsg elehwdRcLIT4f6FdecKLosa6TStfzSVXpMHeU79569PcuUlLleucoMjFaZL9/R35kU1t R8V9Krm/9jCjyFZ8o/lGpV6w+byOGL45Hnqqj6iR7tggwq+d2otd5Tj6/Lmlc9yWUVzx iQ2Z2Oy/PfohB+zHpBjuQ3+RDOLL1olc8TMEK+1WgreI5+1Cnig3J6ePjQAVSTPUQTm6 9tKA== X-Forwarded-Encrypted: i=1; AJvYcCVC3pP4Yu4eNxI/BYqEZtMTUzDEs4nQcu0KK27H/k/NX/sMI9lcDRvdmmQcsHqYmkwUUTVtlwWe14iun3N1XXapGagdcZe/JJGbZDas X-Gm-Message-State: AOJu0YzyBcMVPUDv/LqcceJPCBToNyCxfbnwX0iIUbBU6wSd/6hZUuqh kSW46p56IHqw+hpurec+fv6AbaMhVroOHhlhC3vjv4GhPQPAc9j/NY1jb/cKk8o= X-Received: by 2002:a5d:6a52:0:b0:33e:7942:4139 with SMTP id t18-20020a5d6a52000000b0033e79424139mr2723567wrw.61.1710354540100; Wed, 13 Mar 2024 11:29:00 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id z4-20020adff744000000b0033e7910ae23sm12218118wrp.49.2024.03.13.11.28.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:28:59 -0700 (PDT) From: Krzysztof Kozlowski To: Inki Dae , Seung-Woo Kim , Kyungmin Park , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2] dt-bindings: display: samsung,exynos5-dp: convert to DT Schema Date: Wed, 13 Mar 2024 19:28:55 +0100 Message-Id: <20240313182855.14140-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert Samsung Exynos5250/5420 SoC Display Port Controller bindings to DT schema with a change: add power-domains, already used in DTS. This Display Port controller is actually variant of Analogix Display Port bridge, however new DT Schema does not reference analogix,dp.yaml, because of incompatibilities in the driver. The analogix,dp.yaml expects two ports, input and output, but Linux Exynos DP DRM driver and DTS use only one port: output. Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. Document deprecated samsung,hpd-gpios --- .../bindings/display/exynos/exynos_dp.txt | 112 ------------ .../display/samsung/samsung,exynos5-dp.yaml | 163 ++++++++++++++++++ 2 files changed, 163 insertions(+), 112 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/exynos/exynos_dp.txt create mode 100644 Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml diff --git a/Documentation/devicetree/bindings/display/exynos/exynos_dp.txt b/Documentation/devicetree/bindings/display/exynos/exynos_dp.txt deleted file mode 100644 index 3a401590320f..000000000000 --- a/Documentation/devicetree/bindings/display/exynos/exynos_dp.txt +++ /dev/null @@ -1,112 +0,0 @@ -The Exynos display port interface should be configured based on -the type of panel connected to it. - -We use two nodes: - -dp-controller node - -dptx-phy node(defined inside dp-controller node) - -For the DP-PHY initialization, we use the dptx-phy node. -Required properties for dptx-phy: deprecated, use phys and phy-names - -reg: deprecated - Base address of DP PHY register. - -samsung,enable-mask: deprecated - The bit-mask used to enable/disable DP PHY. - -For the Panel initialization, we read data from dp-controller node. -Required properties for dp-controller: - -compatible: - should be "samsung,exynos5-dp". - -reg: - physical base address of the controller and length - of memory mapped region. - -interrupts: - interrupt combiner values. - -clocks: - from common clock binding: handle to dp clock. - -clock-names: - from common clock binding: Shall be "dp". - -phys: - from general PHY binding: the phandle for the PHY device. - -phy-names: - from general PHY binding: Should be "dp". - -Optional properties for dp-controller: - -interlaced: - interlace scan mode. - Progressive if defined, Interlaced if not defined - -vsync-active-high: - VSYNC polarity configuration. - High if defined, Low if not defined - -hsync-active-high: - HSYNC polarity configuration. - High if defined, Low if not defined - -samsung,hpd-gpio: - Hotplug detect GPIO. - Indicates which GPIO should be used for hotplug - detection - -video interfaces: Device node can contain video interface port - nodes according to [1]. - - display-timings: timings for the connected panel as described by - Documentation/devicetree/bindings/display/panel/display-timing.txt - -For the below properties, please refer to Analogix DP binding document: - * Documentation/devicetree/bindings/display/bridge/analogix,dp.yaml - -phys (required) - -phy-names (required) - -hpd-gpios (optional) - force-hpd (optional) - -Deprecated properties for DisplayPort: --interlaced: deprecated prop that can parsed from drm_display_mode. --vsync-active-high: deprecated prop that can parsed from drm_display_mode. --hsync-active-high: deprecated prop that can parsed from drm_display_mode. --samsung,ycbcr-coeff: deprecated prop that can parsed from drm_display_mode. --samsung,dynamic-range: deprecated prop that can parsed from drm_display_mode. --samsung,color-space: deprecated prop that can parsed from drm_display_info. --samsung,color-depth: deprecated prop that can parsed from drm_display_info. --samsung,link-rate: deprecated prop that can reading from monitor by dpcd method. --samsung,lane-count: deprecated prop that can reading from monitor by dpcd method. --samsung,hpd-gpio: deprecated name for hpd-gpios. - -------------------------------------------------------------------------------- - -Example: - -SOC specific portion: - dp-controller { - compatible = "samsung,exynos5-dp"; - reg = <0x145b0000 0x10000>; - interrupts = <10 3>; - interrupt-parent = <&combiner>; - clocks = <&clock 342>; - clock-names = "dp"; - - phys = <&dp_phy>; - phy-names = "dp"; - }; - -Board Specific portion: - dp-controller { - display-timings { - native-mode = <&lcd_timing>; - lcd_timing: 1366x768 { - clock-frequency = <70589280>; - hactive = <1366>; - vactive = <768>; - hfront-porch = <40>; - hback-porch = <40>; - hsync-len = <32>; - vback-porch = <10>; - vfront-porch = <12>; - vsync-len = <6>; - }; - }; - - ports { - port@0 { - dp_out: endpoint { - remote-endpoint = <&bridge_in>; - }; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml b/Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml new file mode 100644 index 000000000000..dda9097a7911 --- /dev/null +++ b/Documentation/devicetree/bindings/display/samsung/samsung,exynos5-dp.yaml @@ -0,0 +1,163 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/samsung/samsung,exynos5-dp.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos5250/Exynos5420 SoC Display Port + +maintainers: + - Inki Dae + - Seung-Woo Kim + - Kyungmin Park + - Krzysztof Kozlowski + +properties: + compatible: + const: samsung,exynos5-dp + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: dp + + display-timings: + $ref: /schemas/display/panel/display-timings.yaml# + + interrupts: + maxItems: 1 + + hpd-gpios: + description: + Hotplug detect GPIO. + Indicates which GPIO should be used for hotplug detection + + phys: + maxItems: 1 + + phy-names: + items: + - const: dp + + power-domains: + maxItems: 1 + + interlaced: + type: boolean + deprecated: true + description: + Interlace scan mode. Progressive if defined, interlaced if not defined. + + vsync-active-high: + type: boolean + deprecated: true + description: + VSYNC polarity configuration. High if defined, low if not defined + + hsync-active-high: + type: boolean + deprecated: true + description: + HSYNC polarity configuration. High if defined, low if not defined + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port: + $ref: /schemas/graph.yaml#/properties/port + description: + Port node with one endpoint connected to a dp-connector node. + + required: + - port + + samsung,hpd-gpios: + maxItems: 1 + deprecated: true + + samsung,ycbcr-coeff: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can parsed from drm_display_mode. + + samsung,dynamic-range: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can parsed from drm_display_mode. + + samsung,color-space: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can parsed from drm_display_info. + + samsung,color-depth: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can parsed from drm_display_info. + + samsung,link-rate: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can reading from monitor by dpcd method. + + samsung,lane-count: + $ref: /schemas/types.yaml#/definitions/uint32 + deprecated: true + description: + Deprecated prop that can reading from monitor by dpcd method. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - phys + - phy-names + +additionalProperties: false + +examples: + - | + #include + #include + #include + + dp-controller@145b0000 { + compatible = "samsung,exynos5-dp"; + reg = <0x145b0000 0x1000>; + clocks = <&clock CLK_DP>; + clock-names = "dp"; + interrupts = <10 3>; + interrupt-parent = <&combiner>; + phys = <&dp_phy>; + phy-names = "dp"; + pinctrl-0 = <&dp_hpd>; + pinctrl-names = "default"; + power-domains = <&pd_disp1>; + + samsung,color-space = <0>; + samsung,color-depth = <1>; + samsung,link-rate = <0x0a>; + samsung,lane-count = <2>; + hpd-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>; + + ports { + port { + dp_out: endpoint { + remote-endpoint = <&bridge_in>; + }; + }; + }; + }; -- 2.34.1