Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4944717pxb; Tue, 5 Oct 2021 13:54:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEV137PIUwUaguSrMqOh55DbMcfZ9yDaPmDSRYIWDcgh+Tt8lrpqnTe29sh8fAR4wvTT9q X-Received: by 2002:a50:e08c:: with SMTP id f12mr29013476edl.178.1633467270176; Tue, 05 Oct 2021 13:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633467270; cv=none; d=google.com; s=arc-20160816; b=rdUoR+2cUK4O4tXIbvv+ym2FGfh+LDBpw04WZrv4zXhwyDOtqOW0BPSIH/60cK5Cff eUi+DirC1IgGT6i7MVCrG5VKf/xrFz/8ZA/TwCjz59u5ftyAumelvyAMG9G6e3nTk364 ExhSk1se9lOqboy8xwKLFJ+yNmjXsFog2dDHWcfcT67OXCoqsjSrxoapv44eoQGzdvos OqD7JqgT7ZgBBHYKwz1PZFr2aAgVSXhsJc2vz3ZHT21XbNTRLTLIhn/M3IZMBacWItSa E8qx7qrOqK8UERg9Cf3r0e+6Vg+vb3s3GbB4V5v48SdT13Rv3M1EFE92r6zH6Xbxc10U LNcA== 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:cc:to:subject:from:date; bh=Tjg40aaSyd2YL/0gRe+TGQChryHA1gd9BpROTsEjnOE=; b=gg0fk9yCoXTkw39ZxHCoPfM8aE/EC3zOfDTzN2J+XL0WTsdgZxHHL7Gk+dxes+aspj neLh6vxDEse8BRFIb8ZnUnG+tjTBa2977PqZpwGMRdXvS5/RitiaNL4+rxKHFDojZrWc t3YR/t6mYwUVmnWinL54qdet2uDQdEe5n8z8wzYdTmfH4WBeccfFnpgt6Rzo8DaOHc6h a5zLi9oLF8GflAjUq6xbaItlCOXKC7XVwrnhKvlI0fcrQAmUPNKSSpWvPLebi+37480N vA1CNNTYggBSbz0uRlMgf+/2JBJj1+EVzCA3XKVOkjiWnfPUVohuDY5bDv6Ed1Ei0qxd 3PoA== ARC-Authentication-Results: i=1; mx.google.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=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h20si12363259eds.283.2021.10.05.13.54.06; Tue, 05 Oct 2021 13:54:30 -0700 (PDT) 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; 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236352AbhJEUwS convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Oct 2021 16:52:18 -0400 Received: from aposti.net ([89.234.176.197]:51698 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235545AbhJEUwR (ORCPT ); Tue, 5 Oct 2021 16:52:17 -0400 Date: Tue, 05 Oct 2021 21:50:12 +0100 From: Paul Cercueil Subject: Re: [PATCH v5 5/7] MIPS: DTS: jz4780: Account for Synopsys HDMI driver and LCD controllers To: "H. Nikolaus Schaller" Cc: Rob Herring , Mark Rutland , Thomas Bogendoerfer , Geert Uytterhoeven , Kees Cook , "Eric W. Biederman" , Miquel Raynal , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jernej Skrabec , Ezequiel Garcia , Harry Wentland , Sam Ravnborg , Maxime Ripard , Hans Verkuil , Liam Girdwood , Mark Brown , Paul Boddie , devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, Jonas Karlman , dri-devel@lists.freedesktop.org Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nikolaus & Paul, Le mar., oct. 5 2021 at 14:29:17 +0200, H. Nikolaus Schaller a ?crit : > From: Paul Boddie > > A specialisation of the generic Synopsys HDMI driver is employed for > JZ4780 > HDMI support. This requires a new driver, plus device tree and > configuration > modifications. > > Signed-off-by: Paul Boddie > Signed-off-by: H. Nikolaus Schaller > --- > arch/mips/boot/dts/ingenic/jz4780.dtsi | 45 > ++++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > > diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi > b/arch/mips/boot/dts/ingenic/jz4780.dtsi > index 9e34f433b9b5..c3c18a59c377 100644 > --- a/arch/mips/boot/dts/ingenic/jz4780.dtsi > +++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi > @@ -424,6 +424,51 @@ i2c4: i2c@10054000 { > status = "disabled"; > }; > > + hdmi: hdmi@10180000 { > + compatible = "ingenic,jz4780-dw-hdmi"; > + reg = <0x10180000 0x8000>; > + reg-io-width = <4>; > + > + clocks = <&cgu JZ4780_CLK_AHB0>, <&cgu JZ4780_CLK_HDMI>; > + clock-names = "iahb", "isfr"; > + > + assigned-clocks = <&cgu JZ4780_CLK_HDMI>; > + assigned-clock-rates = <27000000>; Any reason why this is set to 27 MHz? Is it even required? Because with the current ci20.dts, it won't be clocked at anything but 48 MHz. > + > + interrupt-parent = <&intc>; > + interrupts = <3>; > + > + /* ddc-i2c-bus = <&i2c4>; */ > + > + status = "disabled"; > + }; > + > + lcdc0: lcdc0@13050000 { > + compatible = "ingenic,jz4780-lcd"; > + reg = <0x13050000 0x1800>; > + > + clocks = <&cgu JZ4780_CLK_TVE>, <&cgu JZ4780_CLK_LCD0PIXCLK>; > + clock-names = "lcd", "lcd_pclk"; > + > + interrupt-parent = <&intc>; > + interrupts = <31>; > + > + status = "disabled"; I think you can keep lcdc0 enabled by default (not lcdc1 though), since it is highly likely that you'd want that. Cheers, -Paul > + }; > + > + lcdc1: lcdc1@130a0000 { > + compatible = "ingenic,jz4780-lcd"; > + reg = <0x130a0000 0x1800>; > + > + clocks = <&cgu JZ4780_CLK_TVE>, <&cgu JZ4780_CLK_LCD1PIXCLK>; > + clock-names = "lcd", "lcd_pclk"; > + > + interrupt-parent = <&intc>; > + interrupts = <31>; > + > + status = "disabled"; > + }; > + > nemc: nemc@13410000 { > compatible = "ingenic,jz4780-nemc", "simple-mfd"; > reg = <0x13410000 0x10000>; > -- > 2.33.0 >