Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1726783rwl; Sat, 8 Apr 2023 00:14:03 -0700 (PDT) X-Google-Smtp-Source: AKy350ZPtzvNKEILiv3FLBmmgz4GupR6HLSn197ov+0MoZ+PQXtHiTLC8CFYTLoro6MNx7fPt4Ti X-Received: by 2002:aa7:d902:0:b0:502:7d3f:1f04 with SMTP id a2-20020aa7d902000000b005027d3f1f04mr5044722edr.19.1680938042920; Sat, 08 Apr 2023 00:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680938042; cv=none; d=google.com; s=arc-20160816; b=P1cHNNT9nB+VOHycq42cJ+WchP77Ea5mJympEZNSEPvWPN4K263seCuhs+6YhWEx1f jnIacYSpVRMYh/0tbebaTZvlMe0e93HKZBFZF9Dmk5afLb66ahl1v5aLrJydekqtg/jm tcpHYMlET4PLUxnWhfyem95O5cW6fTO42XPuzBRxPemXtbHucaQTkTlU+ivrp0jBv+CF MudCVW/p/OCgipGRPwOI8b7HKr4PA3muxhS9W1blIF18xmrpIQyhzlh85XDHYEhIGya7 Oj8rVrDmyWwJa+4KwvZ/iEfKpjdgXEBomIMKOLoBhzZG3jguyhdmQ9Vgng5k1LjPivZW nY4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vXoFjgpD9Cwq3kIRxNGd8ecDEoW5EyNl4Aqp94FhPuY=; b=e3ha3Ayu24apV5rlvWl14adST75ZMzbZCaE9VA6oOjts6xYicfUqCuSkMXORHCcvaq 1mq1wo2z2ucR3os4FBs5Ti6uDR5O68ivyGauVbyZ2eyAwV4CP/PM9ZNeBtrbJUe4wKRu l8fECDmcRkKim0iLGky6hcdevy10r5E2ocUeEvphkCWpAfvCAunHXHdbUdjioq2xbgSb caAH7YMP7JoazFGzLxAVeTaljUqRSXrFOQYK44gbVAYjhzpNlL2R5QRwBI1bWt+Bvtgr qXnZtYV6MBhNkw7zdEqalzcSTpVwIl7KmkbwXqXC28VdTxU4KpuGuwFFI19icg5S7Jx7 2WTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="T3cs/Ibl"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t14-20020a056402020e00b004fd23c354a4si4510824edv.536.2023.04.08.00.13.35; Sat, 08 Apr 2023 00:14:02 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b="T3cs/Ibl"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229669AbjDHHHn (ORCPT + 99 others); Sat, 8 Apr 2023 03:07:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjDHHHm (ORCPT ); Sat, 8 Apr 2023 03:07:42 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EFE1D515 for ; Sat, 8 Apr 2023 00:07:41 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-504718a2282so1100920a12.0 for ; Sat, 08 Apr 2023 00:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680937660; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vXoFjgpD9Cwq3kIRxNGd8ecDEoW5EyNl4Aqp94FhPuY=; b=T3cs/IbldKyYw0jlOQBYubSsMBksZ/OsOf01EiSQRyLFouIQ/LDT6VDaWTlzucFVme RSog9LR8VZ4x519GvDIpPxMIeqdaNYkx/9wcSNiDms+hRFIxycfbb2vt/vJSRXP7GG8/ bq5r5YGs8GbCitPKhjmMiXFm917Yv4Osfscaa5ScKJNuBPNjLtOIIgnEdyfIz8CLEiy9 KcDOBHFXhvjTUzSF/hP7E8h2EGvBLHJJNFz9vXMbRbOV0UqwzixgBXrC2WlY+5hJIogd CIHCqETGiVSLF9EXN2q69VUcLduz0rrPXxn/vxw0FT5shCF0rvelG2pwLZdE/ZSCRqsw uPLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680937660; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vXoFjgpD9Cwq3kIRxNGd8ecDEoW5EyNl4Aqp94FhPuY=; b=rYy6Y1otWUKuc5kQjMYAFB+2EafrayiFYtCiPLfkugiuaPrTChubLh32U6YbnVzNj/ euscAuIoK60yKdFZGJSMD4ECB9gukCR4ScEVMdZdfGI2gqUp4MN9XznyVlfw6e4y0HGn 3nE44xjBM78Mhp9MI/19ZeuvC/8/6IxtgJzc1zdf5yFDat2ASUS+Z6icbZ/Rpp64eX6u 9/7Ym/vDQXTzJbkv3aCz7txgcwmusjtFrqFbLWVwKML9F5ohHbPI4QBivZMJiJ1ub5my VYeoaVsNr3m29Lg35eI0EdOQhJL5d47BVfLUZjgckPEYjUsz40sLIS6MR2oLvg0/lbj8 VyZA== X-Gm-Message-State: AAQBX9fZ8zq8LA40Piv8QU2g5CRudxT01kSF5nOL/LTI39H87+BPK9PI i9iFBUrUo5eV1HlHL/rpewM= X-Received: by 2002:a05:6402:b09:b0:501:cde5:4cc9 with SMTP id bm9-20020a0564020b0900b00501cde54cc9mr3621206edb.39.1680937659702; Sat, 08 Apr 2023 00:07:39 -0700 (PDT) Received: from jernej-laptop.localnet (89-212-118-115.static.t-2.net. [89.212.118.115]) by smtp.gmail.com with ESMTPSA id c90-20020a509fe3000000b005047d3c8700sm1285380edf.65.2023.04.08.00.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Apr 2023 00:07:39 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Maxime Ripard , Roman Beranek Cc: Frank Oltmanns , Chen-Yu Tsai , David Airlie , Daniel Vetter , Samuel Holland , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/sun4i: uncouple DSI dotclock divider from TCON0_DCLK_REG Date: Sat, 08 Apr 2023 09:07:37 +0200 Message-ID: <2219295.iZASKD2KPV@jernej-laptop> In-Reply-To: References: <20230320161636.24411-1-romanberanek@icloud.com> <20230329195802.veybo3367zifw77n@penduick> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 Dne sreda, 05. april 2023 ob 14:34:11 CEST je Roman Beranek napisal(a): > Hello Maxime, > > On Wed Mar 29, 2023 at 9:58 PM CEST, Maxime Ripard wrote: > > > In order to preserve semantic correctness however, I propose to preface > > > the change with a patch that renames sun4i_dotclock and tcon-pixel-clock > > > such that dot/pixel is replaced with d/data. What do you think? > > > > I don't think it's exposed to the userspace in any way so it makes sense > > to me > Here's a new series that includes those renames: > > > It turns out however that the new dclk rates can't be set exactly as > requested without touching pll-video0*, tcon0 now therefore gets > reparented from pll-mipi to pll-video0-2x which, as it further turns > out, breaks DSI. While simply forbidding the video0-2x mux option seems > to me as the right way to go because there's not much use for it with > non-DSI interfaces either besides the opportunity to power pll-mipi > down, I'd like to run by you first. It's been a long time since I looked at A64 HDMI clocks, but IIRC, pll-video0 is the only useful source for HDMI PHY (as opposed to HDMI controller.) So question remains how to properly support both displays at the same time. Have you ever tried to make HDMI and DSI work at the same time? This is one of issues of the PinePhone IIUC. > > Kind regards, > Roman > > * As pll-mipi doesn't have CLK_SET_RATE_PARENT flag set, pll-video0 > retains its boot-time rate of 294 MHz set by sunxi-dw-hdmi driver > in u-boot. Why 294 MHz (as opposed to the default rate of 297 MHz)? > The driver actually asks for 297 MHz, clock_set_pll3 rounds it to > 294 MHz though because it limits itself to 6 MHz steps. Yeah, we added CLK_SET_RATE_PARENT flag to several clocks after initial driver was merged. Adding this flag sounds completely reasonable. Best regards, Jernej