Received: by 10.223.185.116 with SMTP id b49csp1978310wrg; Thu, 15 Feb 2018 04:47:33 -0800 (PST) X-Google-Smtp-Source: AH8x224tLe7tF31vpKn3/QHJsDI28pvwdqY07UGXWmABmdlKiI0QESQFDEqlBEFISZxddcGo8RKs X-Received: by 2002:a17:902:5305:: with SMTP id b5-v6mr2401570pli.61.1518698853178; Thu, 15 Feb 2018 04:47:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518698853; cv=none; d=google.com; s=arc-20160816; b=Q5rZGBFh597DK4sMU36O589Az0VwQSDHMa2uKAuT3OEmST1Exf/C68HVjYXS7uCC+q VFLGhEiyubdp3a7clvMFi98s9uH9PLtTpatSmMzTZHVWFPMjSGbfSct4fv3UmQL2F19b NhxFK1DurLf1NtsgMNFarfAtcGzWw3+/C3ZMjj7qe0xTMHn4iEbjLRlRpze9OADUq3WW AfA62lWjZMw+4kO0+TQvMNp6JxOk+yXROeEQg4ux/Pb2RqGjx9pNYbNPQUj/47np50Ds me0QYFDZxvQsni+qWwIMQRb8f3nZn3cnNvmfvcnTeyi4jFWjcATcpJoxSWOEiNbkWS3j 1syw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=7gRdc9tIxyHq8EnKIT8Df9bA8oooplCBqU1rzolGV9U=; b=sL4k5Ys3Pg/uW2h3k4kwzAXKkhN1jDRA7fJY3VaM8AnjN9FhUeP6H3jj2fCn9txvJN JBd1fetdtIVOAIuRVU+G7KGi1xD8A++/QsPwOFh6M6Z9ZE5EI5g42IA9XC0M6fXmLMs6 Q+uBAzhhN//PLPd7NkbWxgtD3ahPQpjINCPjbYdH8M8zLMyDSk5g8+G2ckk6AFZ4emoJ NVYglxHWfXirnGUGBDC3zqitB4HfPn3YR5YJUJHzggBUOo8/rwkLUlO5di4yCQ28PNFO lzorB2ON4MzjWmJqHMIM9azzkNrnb9Y/Hrg3CyTY7qpbrEK1YgIKPBsXwx5U7F5UVmyi m8TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JMnIXzHG; 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 p15si824018pff.251.2018.02.15.04.47.18; Thu, 15 Feb 2018 04:47:33 -0800 (PST) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JMnIXzHG; 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 S1031251AbeBOMqg (ORCPT + 99 others); Thu, 15 Feb 2018 07:46:36 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:33646 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030245AbeBOMqd (ORCPT ); Thu, 15 Feb 2018 07:46:33 -0500 Received: by mail-qt0-f196.google.com with SMTP id d8so11709046qtm.0; Thu, 15 Feb 2018 04:46:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=7gRdc9tIxyHq8EnKIT8Df9bA8oooplCBqU1rzolGV9U=; b=JMnIXzHGFBMEsJwJSdqL1q6EGM82nRgNH0UPgjl//B65pkB6Wj0jhyCQwQkJIdUwQi RcNDKtMlwe4RBlbL3B4tlpKSqwSYxRHjFr3wSonC8BWH3VoqavlHM63StmJIx2Te9S3R 3aWFeVhROrBiFXhCHGsBRtvI/KOk8F8May9ct9w/s1g8Lj8Azf+8xwEigBz9feHG/t3N p0GRhKyO4lIdT7PkAho9K2eigLWH6Gora2Zn53LIZRXdGEWJh2FMr4PM7gcDvCI1LWKO Y9zdC6upN+qrnhMkiaah7icNpgy869pycIUKqnaDHKA8xl0PBLLiJeZe7APL6nRFqho1 PqvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=7gRdc9tIxyHq8EnKIT8Df9bA8oooplCBqU1rzolGV9U=; b=n74cmEaFBcBH4ZD1AeXzJO3m3LvG+0lpO3f9oA+YIY07Fu9GvtJ2nqUrU/iGt5BFhD CFpussWkvv3F4K4q8Ucgs/068SF3RK0lJrBvHdJJ3Im8cVlpR+1/KPbyqEcNlnbqwrHL TgVwpQAQiI5mBIH/+6kuxRy8OkgBpJWMR3tLO6xR7jjqzGRSTcLH6X2NgcjyEoh0GQPZ 10rZ5rTbqVS2qbuDk0myXe2QYsGBhE+Og730IDkM8wo3niJZsikYklPEYY9ZnhbV+ulc BV3NAHUbSy4tI89Gms/V4JgvK+MCO4ieFu1S+wHKrJExJqWRu0uWpXwS+XH/nSlFL7fF SiGw== X-Gm-Message-State: APf1xPAHWdaSoAvaTqKutc17trypXFOA91bWlJWvVOnZhIn2tCoMAuSL IeR1SMyPU70N+W0hxTzFPKRy72SeiPpgNMSplgE= X-Received: by 10.200.112.1 with SMTP id x1mr3890701qtm.138.1518698793046; Thu, 15 Feb 2018 04:46:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.47.219 with HTTP; Thu, 15 Feb 2018 04:46:32 -0800 (PST) In-Reply-To: References: <1518683903-10681-1-git-send-email-kbingham@kernel.org> <1518683903-10681-6-git-send-email-kbingham@kernel.org> From: Geert Uytterhoeven Date: Thu, 15 Feb 2018 13:46:32 +0100 X-Google-Sender-Auth: PSrgo-SDzUiZGIgX-DFfn0kXPag Message-ID: Subject: Re: [PATCH 5/8] arm64: dts: renesas: r8a77995: Add LVDS support To: Kieran Bingham Cc: Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm-kernel@lists.infradead.org, Laurent Pinchart , Simon Horman , Kieran Bingham , Magnus Damm , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, On Thu, Feb 15, 2018 at 1:41 PM, Kieran Bingham wrote: > On 15/02/18 09:07, Geert Uytterhoeven wrote: >> On Thu, Feb 15, 2018 at 9:38 AM, Kieran Bingham wrote: >>> From: Kieran Bingham >>> >>> The r8a77995 D3 platform has 2 LVDS channels connected to the DU. >>> >>> Signed-off-by: Kieran Bingham >> >> I love your patch! >> Yet something to improve... >> >>> --- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi >>> +++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi >>> @@ -773,18 +773,70 @@ >>> port@1 { >>> reg = <1>; >>> du_out_lvds0: endpoint { >>> + remote-endpoint = <&du_out_lvds0>; >>> }; >>> }; >>> >>> port@2 { >>> reg = <2>; >>> du_out_lvds1: endpoint { >>> + remote-endpoint = <&du_out_lvds1>; >>> }; >>> }; >>> }; >>> }; >>> }; >>> >>> + lvds0: lvds@feb90000 { >>> + compatible = "renesas,lvds-r8a77995"; >>> + reg = <0 0xfeb90000 0 0x20>; >>> + clocks = <&cpg CPG_MOD 727>; >>> + status = "disabled"; >> >> Missing resets, power-domains > > Both lvds0, and lvds1 are actually the same 'module' (just different mappings > within the same IP block). > > That means they will share clock, reset etc. > > Will specifying the resets cause one to affect the other unduly? > > like if one becomes un-used, will it power down? or is it refcounted, and will > gracefully handle both device nodes from the same device? > > I'm already fairly sure clocks is fine for this - but it's just the reset's that > worry me. If the reset module tries to reset lvds0 for some reason - would lvds1 > get reset as a side effect ... Clocks handle sharing fine, they do refcounting. For resets, there is some sharing/exclusive support, but we don't have that much experience with resets as we don't use it that much yet (USB uses it). So for now it's mostly about "describing the hardware". Triggering a reset will indeed reset all modules using the same reset. The same is true for e.g. PWM. > Or perhaps that won't ever happen with an : > > power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; > resets = <&cpg 727>; The power-domains property is related to power management (in this case clock domain only, as it's the "always-on" domain), not reset. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds