Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2746544pxb; Sun, 24 Jan 2021 19:22:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTwwDuj/6LDAMde/HhHY5hjtf2APl+Ce4ECAeuVSHV5zSZbWJ3JE8E4pLW5CNPy6TIMEUq X-Received: by 2002:a17:906:5846:: with SMTP id h6mr207005ejs.521.1611544948263; Sun, 24 Jan 2021 19:22:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1611544948; cv=pass; d=google.com; s=arc-20160816; b=nxRer+2eoHsbwVwXgVTqi3rtP7il3mXETpG6LvGl48ZJWvU/O8QL75obF0BXtM/2Ih yqYBczlWnRvfhTqxuTMOS0942rJri0DSR2vI3mdDDMS/gxKFUN6yC0OOnhHle4/YCHrg Y5xZMJ5G/qLT/H7oTcsxuWmq44ZcJxA26GVQ0ShbycoKp5tnZ2vDN6Ev6r4Ch+IQpJ0D 5LvAiuHWMhfhzF9R08h0+Ej+Wen9daW6wKNPR6DDPxoB+kg7Vxd/4xsDPP6L7HTPAjs7 4CwWji28frsANEIOChgTE34lq10tj1pzkPA0kxHhcnoMdJVg4JKPjbepsnbyv1A9IzZl aRUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Gi/wzaBUE598SByZGw7LmXSSBOYLYdOUD/PyH6HPmZg=; b=loCJi/CtpklvByNLWUb/CqCiitRSd74CEprCZ6abXDkZkS7fbojavjeNhpgEB8FwqJ QaulD0DTMyJ+US/OGKGE2VPY8XiSNpajiT6ViNVSkA8u2Ev5gY4JiNXWeIQ5TWSj05UW +AiKvDfWrGe3Lmtz/CC7xAhzQu6825weUoXi63uAWIfAZwAiFQ0Qkw0Bv6AXLTWhssmM Q0v/SU5VGsARDRCr9uPWM0K7EP8AE9fwc21qMl9lW/jDKWAM6tu/RnW7VdcRZ0xwkZOm A5HSTVp2cNq3oyAlIb5Ge2alsqivQ02asf6PJn/ePfNCN/dcPTomntiscIE5jGk50Kf7 L4sA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=Uk1dptyn; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp13si5504798ejc.439.2021.01.24.19.22.05; Sun, 24 Jan 2021 19:22:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@Analogixsemi.onmicrosoft.com header.s=selector2-Analogixsemi-onmicrosoft-com header.b=Uk1dptyn; arc=pass (i=1 spf=pass spfdomain=analogixsemi.com dkim=pass dkdomain=analogixsemi.com dmarc=pass fromdomain=analogixsemi.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analogixsemi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727108AbhAYDSq (ORCPT + 99 others); Sun, 24 Jan 2021 22:18:46 -0500 Received: from mail-bn8nam12on2122.outbound.protection.outlook.com ([40.107.237.122]:1633 "EHLO NAM12-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727078AbhAYDSe (ORCPT ); Sun, 24 Jan 2021 22:18:34 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YCS65KE+QhM2pKYniFHJ+QYNCwXvfwtYo0sxBlj2yLiQ/kxV7RF8QraFjpme4aIZ6cSOnHSKG3ehqdkhH5BNndocWqE7p/EJ6ZJ5JOi8RiEQ3zmulMQ4Usz97lo756zsMIKbYn05p2DCtpQQvg0skw/JbkjlhtACTYQKDcMn48hYSKljYEQN+LZYVX9ybB1jFsHY1p5nzAdDjBlI7zIAwHtQ2ewCZbHj7/59HbQDfarbRYNeSgdFwpnWxJxwH9gXt8Gj7PsS7LgRlz+6KD1S8bXqAYLf3QohzA/9rhAw2N5G8ECmToXq0A7svAyiPQf2AceXqN5Hfqr+J05QLL6VDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gi/wzaBUE598SByZGw7LmXSSBOYLYdOUD/PyH6HPmZg=; b=RzwCwC919JkIibVMVlq+P9iH0fuEFb3DPq87y61mhI9rJ0hFrbFY1YNjXtsCQCceQ3ZGGauNcto0+8vFoZ/BemMY05UCPDXwqyPcBvm2WiWACqtqOpo55iaZhDJXtAThHC/+JH5xrub7P4nqNJLcmM7bVMLOLf3dUMeLdpZaFy0nZBSgHMSr4yYQWh/3X8e5lRfnj/tl6HvfATNIvq40XkYlMtO7ZWIAJEXamAsSTjGWzlPngCJbtQcB4fQJtWGQdtG0OrVGtXks67tN1uUlMkpNuRJcLbges1NdTGbeGH5wtmx2raN7xdHWYZVmubPKBlBP1FGbWnDIQuRZmuwqjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=analogixsemi.com; dmarc=pass action=none header.from=analogixsemi.com; dkim=pass header.d=analogixsemi.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Analogixsemi.onmicrosoft.com; s=selector2-Analogixsemi-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gi/wzaBUE598SByZGw7LmXSSBOYLYdOUD/PyH6HPmZg=; b=Uk1dptyncPcBOMr/CBjv/KJv4vz389f1J2thyR8wL0LB4a7V0Ux74JEYkvnpp19N7lbWFx9OtFdCFYSm6pO6my16pvC5/NhS6Xvh5wO5jaudIgb1ztNk72GSSVCjUwUYB9CFAhTnYj38edPqU/oC30WsKbxNzYXmdKYGqKPQkJY= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=analogixsemi.com; Received: from BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) by BYAPR04MB4741.namprd04.prod.outlook.com (2603:10b6:a03:12::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.11; Mon, 25 Jan 2021 03:17:39 +0000 Received: from BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5813:96a7:b2d6:132]) by BY5PR04MB6739.namprd04.prod.outlook.com ([fe80::5813:96a7:b2d6:132%6]) with mapi id 15.20.3763.015; Mon, 25 Jan 2021 03:17:39 +0000 Date: Mon, 25 Jan 2021 11:17:10 +0800 From: Xin Ji To: Rob Herring Cc: David Airlie , Nicolas Boichat , Hsin-Yi Wang , Daniel Vetter , Sam Ravnborg , Laurent Pinchart , Maxime Ripard , Mark Brown , Ricardo =?iso-8859-1?Q?Ca=F1uelo?= , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Sheng Pan , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting Message-ID: <20210125031709.GA12296@zhaomy-pc> References: <20210111221435.GA3138373@robh.at.kernel.org> <20210112085737.GC5827@pc-user> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [61.148.116.10] X-ClientProxiedBy: HK2PR0401CA0023.apcprd04.prod.outlook.com (2603:1096:202:2::33) To BY5PR04MB6739.namprd04.prod.outlook.com (2603:10b6:a03:229::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from zhaomy-pc (61.148.116.10) by HK2PR0401CA0023.apcprd04.prod.outlook.com (2603:1096:202:2::33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.3784.12 via Frontend Transport; Mon, 25 Jan 2021 03:17:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f0deb1d3-5f75-4caf-19c8-08d8c0dfc50c X-MS-TrafficTypeDiagnostic: BYAPR04MB4741: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hKX6PAcLQG9lAEEP0dmIsIbQJv1MDy+4wMGwSKjhOCWGwMq4r2UKvdoEXw6CG6jS7X7wOZbakmnvcn9IcsnCIBX6eFVYh4Tduv+U5Fcv/33V3Zta1jXbMy8uXrWj5vJXZPlmiJI/hFcAx9npweDKUDgwsDESI6kVelKy/nQP9lbMIPVc/xcaGVzBNqS9nl3h6X4eRmmH+0KXAffJZ16Q7Wylfna/oDpHskPim3LoIvk+1XYcrYjnlt8d2zNw802xVm2HpgPlnZ0vYeYJoaf6MG5GBDysrSHjhVbKmg6k3YgJ5bOdTjNfo1f4kUzh+DuEaFmIk+w/liAL2bT86VIHFqlRj/sIHJyA82ew/DegHj8z327budbVFUPREB6toWeAWZB1MlTfPi2SpSuAuHqxur97BiqRwvqv9iQKDEnFmZDUrU5NN8k8l6xIcd32f2/F X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR04MB6739.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(136003)(39840400004)(376002)(346002)(396003)(33656002)(6496006)(52116002)(956004)(83380400001)(316002)(2906002)(8676002)(54906003)(33716001)(4326008)(478600001)(86362001)(5660300002)(1076003)(55016002)(66476007)(66556008)(26005)(16526019)(6916009)(8936002)(66946007)(9686003)(186003)(53546011)(7416002)(6666004)(16060500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?vJwwbLgR37v6gbGQ9RMiIim0pYBc8OIpeXiBOV2D0Gr6UAYR/ZBJtfLLUCDv?= =?us-ascii?Q?V/oxCQpaXH/czn2AzP0B2n0IdWupsOu6RGrfyAEb0r0kf2YytvvzO8zGz26C?= =?us-ascii?Q?/2BWnzzWKxkQnhHoci4IF0jpdefpo9rtj5uHUeGI1tjwlpHBjV68jJIKGOdy?= =?us-ascii?Q?OKCrdQzApoPyiFsNwmgEpoWlj1Hvac5VlqWF7U2pIf8WNZWl5WVqucpDJGgg?= =?us-ascii?Q?U3c0Wu96i31lTQ5/VYMzHGUfdeGoQAcn+CJrXTRdRnt2FrPew4tC0kKRDY45?= =?us-ascii?Q?7gPeLN//6U+oSmGZXRjfOj6kK+RiN8KsD5pKGX5pRZIlxydNpuvTuHWWJrwc?= =?us-ascii?Q?BxrdYZsD8e7NVH4B2ksJoDztpospwP00xz2k16r8bY3jUxJWYiUTJTuAmU40?= =?us-ascii?Q?8D3b4mbEl8eAxlSuXIe4N6VThJXRjzB2Q4LCjlI92qBUCTvUThNkrv91PDj9?= =?us-ascii?Q?uyFawFl9sz6PtzpHxeqMSGDJWqwJmz73IacirDA6IkywXPQUKQvJ/t5KJA8w?= =?us-ascii?Q?2eModwtEOC5rCu/hBhpe4ozgsjWFPy/V8R7N0Wc3pdXSbqggIshbpYsEfTqO?= =?us-ascii?Q?wOyLSkrktFw9HT+bXrtfv9mUIEaVrpsYVwXR/Ka6wr5KclOwi3Qyt5Y9t9cV?= =?us-ascii?Q?xkMBX5vZqGzi4Rdjl6SyC+jNvroNTmQU4eIUtQY4XZ0hdXpFQnukvKt+vGmC?= =?us-ascii?Q?CW9l+GxHAtT1p3pbLJpuCrEano3CbWrdpQJY/yCezUkQPQH5Z1qL/lQudgf4?= =?us-ascii?Q?oB/XND8jH/IvD9bUSFk3QjTEqHHVJTZujo9hOEtDJikeciBD20fI2TH71Kp7?= =?us-ascii?Q?yDU97POVXdmMzQD/hObo4y6ipA/nK0ZixASC4vCCt4vEO/KvtVlbFxydGC3N?= =?us-ascii?Q?GroGePAwygGA7E/yxC1kD/KxwUBu/CDqf5q/xlIWvLrbysEtR4f9VrPZrN9F?= =?us-ascii?Q?75qTfv6bcePcAZPcHf9AC6afkr2zi8VraGskjYCnfxmMVXTbCD3r4r5Pgy1J?= =?us-ascii?Q?vXr+YjIQ5TyXBA79G9SjrRNrrt7WijDSOH23VNnpRDET/LS4L/ME3Q5D9CuN?= =?us-ascii?Q?Jh5i4/Q4?= X-OriginatorOrg: analogixsemi.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0deb1d3-5f75-4caf-19c8-08d8c0dfc50c X-MS-Exchange-CrossTenant-AuthSource: BY5PR04MB6739.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2021 03:17:39.2176 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b099b0b4-f26c-4cf5-9a0f-d5be9acab205 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 6G+ByPT6h5mqaVNu26eLVhk9GItFgbyclurLVSIjDO+LPHn/xc+SpdfgEL5iK7q/syHFDCiuLY+xLsiPStEslQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB4741 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jan 23, 2021 at 12:16:02AM +0800, Rob Herring wrote: > On Tue, Jan 12, 2021 at 2:57 AM Xin Ji wrote: > > > > Hi Rob Herring, thanks for the comments. > > > > On Mon, Jan 11, 2021 at 04:14:35PM -0600, Rob Herring wrote: > > > On Thu, Dec 31, 2020 at 10:21:12AM +0800, Xin Ji wrote: > > > > Add DPI flag for distinguish MIPI input signal type, DSI or DPI. Add > > > > swing setting for adjusting DP tx PHY swing > > > > > > > > Signed-off-by: Xin Ji > > > > --- > > > > .../bindings/display/bridge/analogix,anx7625.yaml | 25 ++++++++++++++++++++-- > > > > 1 file changed, 23 insertions(+), 2 deletions(-) > > > > > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > > > index 60585a4..4eb0ea3 100644 > > > > --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > > > +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml > > > > @@ -34,6 +34,16 @@ properties: > > > > description: used for reset chip control, RESET_N pin B7. > > > > maxItems: 1 > > > > > > > > + analogix,swing-setting: > > > > + type: uint8-array > > > > > > Humm, this should have be rejected by the meta-schema. > > We needs define an array to adjust DP tx PHY swing, the developer hopes these > > settings are changeable, so I moved the register data to DT. Can you > > give me some suggestion if it is rejected by the meta-schema? > > > > > > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > > > > > This is how types are defined other than boolean or nodes (object). > > > > > > > + description: an array of swing register setting for DP tx PHY > > > > + > > > > + analogix,mipi-dpi-in: > > > > + type: int > > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > > + description: indicate the MIPI rx signal type is DPI or DSI > > > > > > Why does this need to be in DT, you should be able to determine this > > > based on what you are connected to. > > As the anx7625 can receive MIPI DSI and DPI data (depends on hardware > > implement, we have a project which have two anx7625, one is DSI input, > > the other is DPI input), we needs to let driver know what kind of MIPI > > rx signal input. And there is no other way to tell driver the MIPI rx > > signal type, we needs define this flag. > > That's only true if what's driving the output is a single h/w block > that can drive either. But typically you have 2 blocks: an LCD > controller driving parallel signals and a DSI controller in front of > it doing parallel to DSI conversion. The anx7625 would be connected to > the LCD controller or DSI controller via the graph binding depending > on the h/w connection. > > However, if you do need this, then let's extend video-interfaces.yaml > 'bus-type' to include DSI (it already has parallel). > > Rob Hi Rob, thanks, I'll add 'bus-type' in the next version. Thanks, Xin