From patchwork Mon Oct 28 02:37:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13852886 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2051.outbound.protection.outlook.com [40.107.103.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2B4718732E; Mon, 28 Oct 2024 02:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730083158; cv=fail; b=C4aiQHZIb/noCQw1mJ3jAhqL8/ZH8LdV/PU+hV4zWnXwFyFz1GdJnqzF3b02INHMsvKqJfANN9dNNTDFzPrFAF7X3N3OO9wvLBPwTi2YSmVMztaB07s1KXB61ooABvgtoEdG0muF94l1+bNPVDpnIxLDOgVQpPFqAs843DqnAig= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730083158; c=relaxed/simple; bh=VL99a28XgZTfCdTP9ZHq00n0DpGzFUsuNpBezF4a9/Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=U7yw6ygtj1C7wxFW2hKQZXsm3orQZ2I+0vMGHPjp7ScsBtlXmCYAz6Mo/IKdWxjV34wBdIuBAjHT9qb+cWhwI26Vya8v/F/edEYHvY01Ej3ShPhT7n38wU/RJtNiROqnjEyBQin08hWHf/oNDaimuOiP7isWyeNdDiz4JOO8cIM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=NM0qdkse; arc=fail smtp.client-ip=40.107.103.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="NM0qdkse" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YNYOEkixx2r5yvrVG9LrjgFlD6uxwPP36u94O0f4EwZI9udH7VUjM09K7sTP4hdGNa4BJ5oh0HKx/N093kZqTWdNJKBGzPK5vk9gkYMgeIF5FEp5/PMRoqMMDm44/JNVKSMUVJWQwag8dTEnPi74pj/BO3Eee0wZGjUkV7pLmQ4w5emIt6v10JPelPnHex7j8KxFmzyg8jlRByjOg6gDbJfSl81tNBOk6symEx0MRE0o61nGjAOmxuyfGcqKC2Oo7JIucUhmBmrJvkGTIhN1JNn5h5365HXH83dPm+Xw9xfQ6mdw/y3uMWrmO64JeP+ZEiAKIsWiaoQXW8a8J4OEhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X0MXb51dWLwzIYBv3HCuE9rQsm7JB2ox21JOfSc/9sE=; b=vmOREsrL5h6nUauAAbT8/QSedTVUAo9jtBRwtWpMl6TS273RWAhDHkLCWxiEvr4ZqjeJjWrSGfXCbdaoAXlwy7LL92q2W1AYlYR1d+hZ1oVLkf5QjcjIyw00PsuVLYHG9AGkOGu7lIjLhk+UKGA1cpNDw2BbH0U96ItG/qnGQUK/9m8eVLdfn6e6xEFpsTa1bSX25ANm+vT3SbOkD/pBbiwVgFTvbUCXFSwa9LYzH8k/eC8fYaFkMI1KsU9SN/vonNsdGhSKuFlWiifVn9bS8YuECaEf4Q5ye+1xVcqcl8OXDFMCTqtzTuLykJG+bZ8EHUIKXJAMs9ZW31dDeA7FIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X0MXb51dWLwzIYBv3HCuE9rQsm7JB2ox21JOfSc/9sE=; b=NM0qdkseoi1R1o89pqcLLz8EKMA75f4dtgmL/43pjEB6bpogUyhTmeOeVWlEnrmc+CZ3LVuDcrgePpOS9TS/ugU/zaQnxRCg+rc3xr6hn9J96hhAQ+yLijDTr1IWPOgmFfwJxs2FqgILX0DMdFsvgDn1A5mgYL4YR2iQ9gJnib1GquyPXB74xT43zxvuil5I3XLaP5OIdRpg5n9+U0F52dGOt98sLUePlH5+KN2mQGTjK9ZyWLWCUcqdJwjaSIeow9FIDK/bNR1iWmEPQ7NTPADW6rF9xAnOd0VARXiBXGleaIcdsCkv5gEzGV8DXuwyLH3f/P9CWY0CWy82hW6Q9g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by DU2PR04MB8709.eurprd04.prod.outlook.com (2603:10a6:10:2dc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 28 Oct 2024 02:39:12 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8093.021; Mon, 28 Oct 2024 02:39:12 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, simona@ffwll.ch, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, quic_jesszhan@quicinc.com, mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, sakari.ailus@linux.intel.com, hverkuil@xs4all.nl, tomi.valkeinen@ideasonboard.com, quic_bjorande@quicinc.com, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, arnd@arndb.de, nfraprado@collabora.com, thierry.reding@gmail.com, prabhakar.mahadev-lad.rj@bp.renesas.com, sam@ravnborg.org, marex@denx.de, biju.das.jz@bp.renesas.com Subject: [PATCH v4 08/13] dt-bindings: display: Document dual-link LVDS display common properties Date: Mon, 28 Oct 2024 10:37:35 +0800 Message-Id: <20241028023740.19732-9-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241028023740.19732-1-victor.liu@nxp.com> References: <20241028023740.19732-1-victor.liu@nxp.com> X-ClientProxiedBy: SI1PR02CA0002.apcprd02.prod.outlook.com (2603:1096:4:1f7::16) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|DU2PR04MB8709:EE_ X-MS-Office365-Filtering-Correlation-Id: 65c68bdf-4b61-429d-c027-08dcf6f9b519 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|366016|376014|7416014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: LwTcbiYLiMUHjWwYyXjepMDZj3eaUfQEq6xqVIRZwoT75WKpESSHjRqoGLlzmOpbmdiog4GXBoAayDUKn3o29bdMeM/Gj6P7wSbQyD5vltf3/fLNP23lyWL799EyD96ERlH3T+wRrDCXpEuIl1Csw79e0AloGOF5Z7pj9SoGQZlrOhGvLQ/AdDv3mbIcnay528UoUvo4jsDybkcKUjTFqCOCN659EOGoh5i0yfLU6+nsA7mWBiiHYPO0dVHsm084jW/U0ZTZNzF0oMhoM8slv+6RGDloYUnc06uQlWgy+qcCtpPul8SVRrgBo50LSvDzsd4vc8WrlthFq42DUXHMa0qDS7VKcyJ9w5no059ynTEiznMOrPW7kPP0HRmxl/IEkmvezDSpVyzXlFU0hcV7kScvmvVVKETA2+VI3wrbFbzUqMgoewL8cktiKdtBY7UogXtpMh6GnajXUs34RSGNCGnx7zJSu/q3r0b9acFEN3qBr7g8X1r9prbJuzs+WmeoC51XHRBvlNz1LHJCAu7oTHjpH8eLiJlPTDAbBYa6ubFHMlIh3gdn1iozxRHRpXd0sIvLlVFzCtOJ8iiTYYXun/y4t+CMKeuoZOzgYnu58q9V7VM2rWOot0qmxiINrbaiGGOz3tqVPn0+fc3YwlMSBz0+cLtVRF3Q80jVq9D4X7cSgV6bOWK8mbfU39aKHZyIseGtpI6AVENIVIfPY38EDPpirsHPeUdgudG6GE6gzPY/F7BAqQ1s4DNh0kEJKXzD0yl3MWAkiOGkw4VIWrOJ8Qboxcm1MInfKdCACuv1o6zy5NknU3BAcJa2E6YB7r8H2vTZJxxoHShog4LO4evcI8oEM1lSJU8Jhzl8ZyIFBBKzjexAhWfOFdJ3aqPTVIWUW7L0AzkusxW+XEW3WCxmct33+t8LrmsM/GkI3DBfj09O6HqXxy/ynbD+H+sOT+vcdV5Iem8hEguTifIkorR06VKrKOCVLJb9GSyQ2orIok5uTqspW0S4p205J8BzkfXA4nZjLK4UQPJ67kxZAim6ibdXi5O/NWsrdusdfmaqdbLwvLEwewZ+CVSlNTa14ZM9GIhZMSHyRPwOqIucj6ZDKhm3qNr//nSRKOF6vyWicBNKaVWmtzuyAOu4a6ctNS3EoRRGLYTjpVehFnDCA1hlNYStyGsX7R6g2w6CKNz5/1sgbAu5jU+6ur38NIAXViKe7O+JK6ElksCJdwi8gZ3r9+L/uXw+lP0/QkDm1EebMF6nBCWhAuuwelsWCUz+ECSMyO0cwuwDJjhEn8eZEFS7Y6Xlq/o3jsjG93f4gEXeI+th+QBZYJsNZSfggWONHkuz X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(366016)(376014)(7416014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /GZBue8I3eGxfLT8uabOU2T1Y5P0sx8jmwTIVmycpxGh5jVkxzDJwBvFeDZ/sgvjv+C745sjoQB7J+TbbWpP4+cEB36AcShR+yNmPgE5MNV5xMNnsWWNvaRFle+P93n9JQ7bvnuXgBMFSSUAgrc/XK1uM2Rs1ZahSd5Fu6fZ66XleLV8B8Bs2C9PxmZEauUL7Clb4aji+94UBtjsTrb+T7SpFXV2TnocJNsQPqeT0gkg8OgBzi0OLm4sFGQh5aiaXw7MYxLvrmYgzphMunb4YJUnY2i91kRzWLTW2CFQbIfo0FgCWjBoRNydlx3FEeA16FYpbAPdmbf22Y65K2L2E30wRxxCxRZi/8lhsesORaiIqZcgbqUkfnVfpHk6OMKZYFrv2E9gQ6te24Ak6YF2b2/SnYSCWxT5M/n1sMqffJhC0wZVxCgFe8e93SDAiS9Stbhs5DnlEnE65jjAr0oB+Prh4ZFXhj0xPF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AHSNpgtsWf8dnSgwOYEpgvNDrV0GqwsM12L X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65c68bdf-4b61-429d-c027-08dcf6f9b519 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2024 02:39:12.7225 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CnoOGy2n8yFWd/lrXQQc61f8HYTiTCSduZbWmmib7cpEw051n1TjhM0tBFYB0RcgT+5vxXwpbKLvlmzi4rtV0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8709 Dual-link LVDS displays receive odd pixels and even pixels separately from dual LVDS links. One link receives odd pixels and the other receives even pixels. Some of those displays may also use only one LVDS link to receive all pixels, being odd and even agnostic. Document common properties for those displays by extending LVDS display common properties defined in lvds.yaml. Suggested-by: Dmitry Baryshkov Signed-off-by: Liu Ying --- v4: * Squash change for advantech,idk-2121wr.yaml and panel-simple-lvds-dual-ports.yaml with lvds-dual-ports.yaml. (Rob) * Improve description in lvds-dual-ports.yaml. (Krzysztof) v3: * New patch. (Dmitry) .../bindings/display/lvds-dual-ports.yaml | 76 +++++++++++++++++++ .../display/panel/advantech,idk-2121wr.yaml | 14 +--- .../panel/panel-simple-lvds-dual-ports.yaml | 20 +---- 3 files changed, 78 insertions(+), 32 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/lvds-dual-ports.yaml diff --git a/Documentation/devicetree/bindings/display/lvds-dual-ports.yaml b/Documentation/devicetree/bindings/display/lvds-dual-ports.yaml new file mode 100644 index 000000000000..5f7a30640404 --- /dev/null +++ b/Documentation/devicetree/bindings/display/lvds-dual-ports.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/lvds-dual-ports.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Dual-link LVDS Display Common Properties + +maintainers: + - Liu Ying + +description: | + Common properties for LVDS displays with dual LVDS links. Extend LVDS display + common properties defined in lvds.yaml. + + Dual-link LVDS displays receive odd pixels and even pixels separately from + the dual LVDS links. One link receives odd pixels and the other receives + even pixels. Some of those displays may also use only one LVDS link to + receive all pixels, being odd and even agnostic. + +allOf: + - $ref: lvds.yaml# + +properties: + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: the first LVDS input link + + properties: + dual-lvds-odd-pixels: + type: boolean + description: the first LVDS input link for odd pixels + + dual-lvds-even-pixels: + type: boolean + description: the first LVDS input link for even pixels + + oneOf: + - required: [dual-lvds-odd-pixels] + - required: [dual-lvds-even-pixels] + - properties: + dual-lvds-odd-pixels: false + dual-lvds-even-pixels: false + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: the second LVDS input link + + properties: + dual-lvds-odd-pixels: + type: boolean + description: the second LVDS input link for odd pixels + + dual-lvds-even-pixels: + type: boolean + description: the second LVDS input link for even pixels + + oneOf: + - required: [dual-lvds-odd-pixels] + - required: [dual-lvds-even-pixels] + - properties: + dual-lvds-odd-pixels: false + dual-lvds-even-pixels: false + +required: + - ports + +additionalProperties: true + +... diff --git a/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml b/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml index 2e8dbdb5a3d5..05ca3b2385f8 100644 --- a/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml +++ b/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml @@ -20,6 +20,7 @@ description: | dual-lvds-odd-pixels or dual-lvds-even-pixels). allOf: + - $ref: /schemas/display/lvds-dual-ports.yaml# - $ref: panel-common.yaml# properties: @@ -44,22 +45,10 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The sink for odd pixels. - properties: - dual-lvds-odd-pixels: true - required: - dual-lvds-odd-pixels port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The sink for even pixels. - properties: - dual-lvds-even-pixels: true - required: - dual-lvds-even-pixels @@ -75,7 +64,6 @@ required: - height-mm - data-mapping - panel-timing - - ports examples: - |+ diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml index 10ed4b57232b..e80fc7006984 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml @@ -22,6 +22,7 @@ description: | If the panel is more advanced a dedicated binding file is required. allOf: + - $ref: /schemas/display/lvds-dual-ports.yaml# - $ref: panel-common.yaml# properties: @@ -55,28 +56,10 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The first sink port. - - properties: - dual-lvds-odd-pixels: - type: boolean - description: The first sink port for odd pixels. - required: - dual-lvds-odd-pixels port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The second sink port. - - properties: - dual-lvds-even-pixels: - type: boolean - description: The second sink port for even pixels. - required: - dual-lvds-even-pixels @@ -88,7 +71,6 @@ unevaluatedProperties: false required: - compatible - - ports - power-supply examples: