Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7647085ybi; Tue, 9 Jul 2019 02:00:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmg0V3MvbrnKtOEuxa/N0XKphSDUVIF0trEh2wfVoV2q0d64ZlcPtTzyjbAwiqpNwPB3ty X-Received: by 2002:a63:7a4f:: with SMTP id j15mr29864175pgn.427.1562662855684; Tue, 09 Jul 2019 02:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562662855; cv=none; d=google.com; s=arc-20160816; b=PTHuKX+DYyjIuyU/SU0IA8nC0UqRi4q267XANsu3AiVzo4oby3PaSwPqh6pYJLL5fX Pulc8XbCxJ14dTwn1Qjq+SOcuOWykROZ2z9/bzAmT0XCSupBZ7XXEX/4oI6ahAZ1Fi11 LzTlVdDolux9wDDoXieALQdt6kfY+CfcmXDoGEVQRxmsLjmXzC8dq4bcJQEIISOq9Alh ph/A/9ztjRh5RAwGNRqfPrZBaSjapZhdwIwSwtcrwBTpEqmfyTSd8Ge8LfQYdknZsJ++ /nvrZjf6xdNMwKoqcZ8ERhstXYkNKqmHh/WI1aOR5q6AKvmc56u0s5uqfeVZg0uVMVS4 3vmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to:date; bh=ZxTOyCif+a3NMnY+femJpLHVVrYMUDz7pZoBdAmJiw0=; b=tm8aj4KSOIFysPPNnvwKrwKu3yHEEZoFF6kLdSILn2WypbeKPuPCf5diQ0tQVVNhQR nmqbgnKjOMt8ZF/DfQYfYLJilhgaiY8uTI2ieSGIyR7J5COSQKsOSeLmFQAym5t0mZee pmMzaCBnj3rfDIxjc+qGpukTORhhPPBfiMUzkbdeJzHxaWQ+DMKuSYWYpI9yMRnbQTWI hxvs9FpNET9XxdDG57nh28rXw9ZzKxsfxAmtRFD754QqrkP5v8EUrMeVfQgwy74mya7j QQndarB+u/kftjHKDRn7JLy0Gv+Wv8PeBhm+APQIrStwN2E1oxApMU0GVkPnW5l4QM4R O+GQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si20686130plw.379.2019.07.09.02.00.39; Tue, 09 Jul 2019 02:00:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726197AbfGII6w convert rfc822-to-8bit (ORCPT + 99 others); Tue, 9 Jul 2019 04:58:52 -0400 Received: from hermes.aosc.io ([199.195.250.187]:50534 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbfGII6w (ORCPT ); Tue, 9 Jul 2019 04:58:52 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 557806E5CF; Tue, 9 Jul 2019 08:58:42 +0000 (UTC) Date: Tue, 09 Jul 2019 16:58:35 +0800 In-Reply-To: <20190709085532.cdqv7whuesrjs64c@flea> References: <20190605120237.ekmytfxcwbjaqy3x@flea> <20190607062802.m5wslx3imiqooq5a@flea> <20190607094030.GA12373@lst.de> <66707fcc-b48e-02d3-5ed7-6b7e77d53266@samsung.com> <20190612152022.c3cfhp4cauhzhfyr@flea> <20190701095842.fvganvycce2cy7jn@flea> <20190709085532.cdqv7whuesrjs64c@flea> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH v2 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I To: linux-arm-kernel@lists.infradead.org, Maxime Ripard , Vasily Khoruzhick CC: Mark Rutland , devicetree , Sean Paul , David Airlie , Greg Kroah-Hartman , linux-kernel , dri-devel , Andrzej Hajda , Chen-Yu Tsai , Rob Herring , Torsten Duwe , Laurent Pinchart , Daniel Vetter , Harald Geyer , Thierry Reding , Thomas Gleixner , arm-linux From: Icenowy Zheng Message-ID: <72E7C765-3660-413A-8450-94BE4B3D1345@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 于 2019年7月9日 GMT+08:00 下午4:55:32, Maxime Ripard 写到: >On Mon, Jul 08, 2019 at 05:49:21PM -0700, Vasily Khoruzhick wrote: >> > > Maybe instead of edp-connector one would introduce integrator's >specific >> > > connector, for example with compatible >"olimex,teres-edp-connector" >> > > which should follow edp abstract connector rules? This will be at >least >> > > consistent with below presentation[1] - eDP requirements depends >on >> > > integrator. Then if olimex has standard way of dealing with >panels >> > > present in olimex/teres platforms the driver would then create >> > > drm_panel/drm_connector/drm_bridge(?) according to these rules, I >guess. >> > > Anyway it still looks fishy for me :), maybe because I am not >> > > familiarized with details of these platforms. >> > >> > That makes sense yes >> >> Actually, it makes no sense at all. Current implementation for >anx6345 >> driver works fine as is with any panel specified assuming panel >delays >> are long enough for connected panel. It just doesn't use panel >timings >> from the driver. Creating a platform driver for connector itself >looks >> redundant since it can't be reused, it doesn't describe actual >> hardware and it's just defeats purpose of DT by introducing >> board-specific code. > >I'm not sure where you got the idea that the purpose of DT is to not >have any board-specific code. > >It's perfectly fine to have some, that's even why there's a compatible >assigned to each and every board. > >What the DT is about is allowing us to have a generic behaviour that >we can detect: we can have a given behaviour for a given board, and a >separate one for another one, and this will be evaluated at runtime. > >This is *exactly* what this is about: we can have a compatible that >sets a given, more specific, behaviour (olimex,teres-edp-connector) >while saying that this is compatible with the generic behaviour >(edp-connector). That way, any OS will know what quirk to apply if >needed, and if not that it can use the generic behaviour. > >And we could create a generic driver, for the generic behaviour if >needed. > >> There's another issue: if we introduce edp-connector we'll have to >> specify power up delays somewhere (in dts? or in platform driver?), >so >> edp-connector doesn't really solve the issue of multiple panels with >> same motherboard. > >And that's what that compatible is about :) Maybe we can introduce a connector w/o any driver just like hdmi-connector? > >> I'd say DT overlays should be preferred solution here, not another >> connector binding. > >Overlays are a way to apply a device tree dynamically. It's orthogonal >to the binding. > >Maxime > >-- >Maxime Ripard, Bootlin >Embedded Linux and Kernel engineering >https://bootlin.com -- 使用 K-9 Mail 发送自我的Android设备。