Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1615887rdb; Thu, 25 Jan 2024 00:28:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLNDR2PzDQHe2jFh3GgndpztCeMuZtszljmFAvMTIiRhVEUpnW9OMPWPUA7yioyGz824Tz X-Received: by 2002:a17:902:82c2:b0:1d7:7a5a:61a5 with SMTP id u2-20020a17090282c200b001d77a5a61a5mr467389plz.20.1706171333444; Thu, 25 Jan 2024 00:28:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706171333; cv=pass; d=google.com; s=arc-20160816; b=dRWgdpjwl8wTb7MyXEjzJzxE1BMAStxXNtdBRRB7f0N3Aj8+1nE3a97iVCakzui8/x UoIC7qVodmP79jlwvwE9vQmZx5/+ljC5vFuPn7sbqGr+9sW3mKS+d36ZQCB8nEyDuuH8 fuE9RUnMGM3y8OIVisXtLj2vKi12ZguSSBgHr3mMP5cNbZpRCIbfN1fP0gVUwY3Qoady H393+mzMqoV4BbkSxioN6fH36zgjq26ZCXLZ8TefmR7CodnB7ylBF4kuEC4J5BRXgD3+ RQg1fHvDah8VSktokkNJE1pS5snU89+sl2n7v7VdDUc6wuY6wIr6012o3Pulab7OXvL9 pN8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=F1UT6rpuVRH1UQxFSGP5bm7A2J4osq+beAtqCZgxV1c=; fh=oGjYYRcdVP4PwuIVV/50H4e2IpQwnJc/8uMR8Sy6qGw=; b=N0XbcM+yVn+lkrlXaHW/nE2sxVS86JwWbcam452ihz8KOSx1GKdaW3qQM390W2Wr6C ZciMX5OmB6iUxYSh2EzB5Hc0aTYDeNg+3WsIh1YC3aqspXHcHW3Hg9PiPEtJqilUlJuM BSVUJK4wEppD6vDCGkYlMPPULEOf1rFpZ36QdP2s8CiwV0t2Q3Rcz/tBKCre92WXhRTH TWWmoO5SvRrAfIzbtcqg3hbzH9PVtuRJpOt3NWF87iCvDBNM6rpMo4qQ7yhE2//81dVT tSp3zA2iefOgYU6kC4ODmXmvmhlU4OGhtkvj5QllI0b5SAj+A7FFQs8R8JEYu2Q79KNJ cpUw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=t5h14y6l; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-38176-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q10-20020a170902edca00b001d730061829si8768079plk.324.2024.01.25.00.28.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:28:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38176-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=@microchip.com header.s=mchp header.b=t5h14y6l; arc=pass (i=1 spf=pass spfdomain=microchip.com dkim=pass dkdomain=microchip.com dmarc=pass fromdomain=microchip.com); spf=pass (google.com: domain of linux-kernel+bounces-38176-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=microchip.com 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 EC94328133A for ; Thu, 25 Jan 2024 08:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1179B179AF; Thu, 25 Jan 2024 08:28:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="t5h14y6l" Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 B8445175B4; Thu, 25 Jan 2024 08:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706171322; cv=none; b=YQkwZsXZKoF7xwGrWqR6ApF/N6CLldorKyK556qbFOg/j7EntcRXPw7UKCJmuysNzSwPSzZbsRELWxYC14p2aNnEaMW3nrCacG9q9YRzE2qUCgmCXjIPiB0abZcyDStYKw3EcmmdJN6G9St2ZJyIE5nFbl9qey6KWPHvz4BB8oc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706171322; c=relaxed/simple; bh=0o18t8f3/iC5wQSPwN+S8bs8VJQ/VDGiBZsmcwU/bDw=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=guWQ21QytdC0/xR0H3QoIQ+6YjmEVKZcPF5D1f1e+c3vjqjYlVxhDi+mX8ORMIJMd+YS4LGInnfjvsmjexndOVGmEaBikfoQINOKvNd9sVR/yD7dIYnwE2eRjrC5T5ivwFgDHmyxFYnru0F4zqJO50L4eMtc+45O1PdbKBQRVhM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=t5h14y6l; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1706171320; x=1737707320; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0o18t8f3/iC5wQSPwN+S8bs8VJQ/VDGiBZsmcwU/bDw=; b=t5h14y6lHFOYRbzFgZXIcxelOhEUWdmsz/gfdVmr8gnEk6MKHcwwP5aL dEFbwGz00l2O6jzVEyUsb12wsSImVS06oSCWEu2erARSUFxSux8yFllZv htrkJG0eFuU1iC887mXWI+m6hL1GOL+HSVn7FR02GVtffm8ruthlqf08Z onxDTDQTcHci/+5Q/bjkoIXkSwaPLJxPKtz8R2TGZDeqi2R5a4eru9Jsp L6IrIClV2CPVg3RToiy8C/1/hoSYR7gGia8wanS+i7IRCAtK6PoKzuv2Z FX39Q6W4wyXywj81Irr/FamKyQ0fx3QTKhh2GCGxgrllPLIkPwqEAgdNe w==; X-CSE-ConnectionGUID: yWKH6XeGSSC8CBa5MkUWWA== X-CSE-MsgGUID: /2Vw4AgiQCK4jHQhEACeAA== X-IronPort-AV: E=Sophos;i="6.05,216,1701154800"; d="asc'?scan'208";a="15276256" X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 25 Jan 2024 01:28:38 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 25 Jan 2024 01:28:36 -0700 Received: from wendy (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 25 Jan 2024 01:28:32 -0700 Date: Thu, 25 Jan 2024 08:27:55 +0000 From: Conor Dooley To: CC: , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v3 3/3] dt-bindings: mfd: atmel,hlcdc: Convert to DT schema format Message-ID: <20240125-proved-passage-7fa128f828db@wendy> References: <20240118092612.117491-1-dharma.b@microchip.com> <20240118092612.117491-4-dharma.b@microchip.com> <20240118-recent-glorified-fd35d72e006e@spud> <20240119-character-mardi-43571d7fe7d5@wendy> <20240122-stark-duress-2f59294dcf27@spud> <4906b7e2-0ddb-4d3c-a48b-e16278f2d649@microchip.com> <20240124-lend-emerald-1028fe65cc39@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KV2dTBGvLz55uW11" Content-Disposition: inline In-Reply-To: --KV2dTBGvLz55uW11 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > If the lvds pll is an input to the hlcdc, you need to add it here. > > From your description earlier it does sound like it is an input to > > the hlcdc, but now you are claiming that it is not. >=20 > The LVDS PLL serves as an input to both the LCDC and LVDSC Then it should be an input to both the LCDC and LVDSC in the devicetree. > with the=20 > LVDS_PLL multiplied by 7 for the Pixel clock to the LVDS PHY, and=20 Are you sure? The diagram doesn't show a multiplier, the 7x comment there seems to be showing relations? > LVDS_PLL divided by 7 for the Pixel clock to the LCDC. > I am inclined to believe that appropriately configuring and enabling it= =20 > in the LVDS driver would be the appropriate course of action. We're talking about bindings here, not drivers, but I would imagine that if two peripherals are using the same clock then both of them should be getting a reference to and enabling that clock so that the clock framework can correctly track the users. > > I don't know your hardware, so I have no idea which of the two is > > correct, but it sounds like the former. Without digging into how this > > works my assumption about the hardware here looks like is that the lvds > > controller is a clock provider, >=20 > It's a PLL clock from PMC. >=20 > > and that the lvds controller's clock is > > an optional input for the hlcdc. >=20 > Again it's a PLL clock from PMC. >=20 > Please refer Section 39.3=20 > https://ww1.microchip.com/downloads/aemDocuments/documents/MPU32/ProductD= ocuments/DataSheets/SAM9X7-Series-Data-Sheet-DS60001813.pdf It is not the same exact clock as you pointed out above though, so the by 7 divider should be modelled. > > Can you please explain what provides the lvds pll clock and show an > > example of how you think the devictree would look with "the lvds pll in > > the lvds dt node"? >=20 > Sure, Please see the below example >=20 > The typical lvds node will look like >=20 > lvds_controller: lvds-controller@f8060000 { > compatible =3D "microchip,sam9x7-lvds"; > reg =3D <0xf8060000 0x100>; > interrupts =3D <56 IRQ_TYPE_LEVEL_HIGH 0>; > clocks =3D <&pmc PMC_TYPE_PERIPHERAL 56>, <&pmc= =20 > PMC_TYPE_CORE PMC_LVDSPLL>; > clock-names =3D "pclk", "lvds_pll_clk"; > status =3D "disabled"; > }; In isolation, this looks fine. Cheers, Conor. --KV2dTBGvLz55uW11 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZbIbiwAKCRB4tDGHoIJi 0h+8AQCpYI71+drl2FDrbEGThmMOFS/iz1jS+CPJczvYePVUqwD/ZilClwywAcjj BSSdZJ4KLwpHGZIe4dxZJbifZWhXPAY= =rMTy -----END PGP SIGNATURE----- --KV2dTBGvLz55uW11--