Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1674641ybz; Thu, 16 Apr 2020 13:26:28 -0700 (PDT) X-Google-Smtp-Source: APiQypJsuEki05as5CnnBMVx9AMBjLcO1U53blChQrLLeFbmaCZnzfDjxumUtf1xJEWsqhLxatr7 X-Received: by 2002:a05:6402:710:: with SMTP id w16mr28428204edx.125.1587068788432; Thu, 16 Apr 2020 13:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587068788; cv=none; d=google.com; s=arc-20160816; b=TklRCMcxOxYajEBrJ9TQj4Av3baqMn5LHZ10n1GSAn62lrfNqUWwNhHTnwUgTPYa0j ys98mN7KLB216Wcy+PntECjYzCMTb9S4lL+2PnovObeqO/D8Ov/Y5YBcctu8oSWkSRqB x0Uvd5GldbZ9ymSP68PAkmdfiNWd9NDxjnDZ2bciW/O6QFahiS7/WPR0EQqPqRNugs6r ZAd/TnFCSvdQfKHDsGQiisJYy7CufRIBSPBNyMUpp+g9I0tKCQj07OJ3BtYARk4+Xnjs cXPvyxw1rK27qgSNmBdev0+9Ob5ypAtJsXmlL0H39e+2nhpbPv6y/HdZ5V+X428p2kIp onBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=NHqfdeNveULnM7vQAbJglacV+XZ4nJdoryqrPGPSWH0=; b=xbDnFaenP1GTj6MQQJXQjAcpQJtFI3i+lNXFnsEY1LlLc3ual+z1QMv6fLFCK5UER9 y9SRxphN+ENRA2TfrrQZxDk2WHKBxOIDKfdLS8wt58WJrmC6iSFnBr2mCGjqrXgUcZz7 99dFwF7ZydL9SbH23TVsmNHxaw/hWLNXoBs/jk9VNhRAZCd3eRDl+aF19488gts0D7V7 bl7fv4AWEUjM+PACxS8pCjKmmJ9g7lEQPdBBPozbapZE35OZHsPIaHTSSNhmdQ5Pp35q K/p2NZCDZ0YXuXpDvgwe/yo3tzI5hd+jCsgtk938PCndX7/PNJATRQ4ylLiW9rBrvzWH 5Qbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=joAdCPp1; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l12si12876582edn.414.2020.04.16.13.26.05; Thu, 16 Apr 2020 13:26:28 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=joAdCPp1; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2410238AbgDPOcD (ORCPT + 99 others); Thu, 16 Apr 2020 10:32:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2503979AbgDPOCo (ORCPT ); Thu, 16 Apr 2020 10:02:44 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9EAFC061A0C; Thu, 16 Apr 2020 07:02:43 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id c195so2617105wme.1; Thu, 16 Apr 2020 07:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NHqfdeNveULnM7vQAbJglacV+XZ4nJdoryqrPGPSWH0=; b=joAdCPp1vLkSbqtIwf3+wLlZtkPXrnifqtZ7/pDNKHE5OT01834YQYcWRvCorRphmA 310gNbj+A8S3oahU7wcGkJiCOoBzmwTlZTl7uT+gehWEXbQHl3HJ/QnWzYMrKU1qjg3e zxGQD6Lc4IdSrNdSiAyKW4NKk3A/glK+jt3xv5gClHrFMfhDrmGOYSOzEmzxki3SWVpA MubOA85JiEnSOZBdfdWDSsudvebrjpXqzDY0fSvczrFXBRH6Y5aM5kZyO9zURhRH408N W7ZkmLOTf5gcVncU6pvW7GEFIETnpmo2r/utHGnjS4flkxmwX4hruSPYDXbuRADMQua5 UTgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NHqfdeNveULnM7vQAbJglacV+XZ4nJdoryqrPGPSWH0=; b=ERMelN433tbcElDIGgZNXQXnsQkrmmgMh3CGNvwElOrnPApg6mOZthba3jJm5AV6wW aQzIvh1+kRlBHqdmU/azFrV8JBYRjjuMCFixxkJ6R/2HqlKOdclH+XuoSo3JNjvdwPek y5bYAYCSs5Oi7bjTxJyk/822zoBg/LkkINbwwS5Uh+LohRHkaBLLN8GNar/14DM1vqCQ mYjOMDDqhm5zzlOyk/dd3NO00QZsIc2LEg2VOeBINT9zC+lrIml8i4vcRHEwT98cDQqY BFqQCrnFS6o0dUv3sKw7a0g7aMvDv8FGVN8L8Oki+1EDbOJBOa9zcf1AAI97PHjzZ1PJ O4ng== X-Gm-Message-State: AGi0PuaYTrDKu3E3JwgRioCl3s/7GQHzvphsFZeQHju9C1FnkUwFYzgV NXktowfjlayNapFb46sNdvI= X-Received: by 2002:a05:600c:2194:: with SMTP id e20mr5049382wme.22.1587045761652; Thu, 16 Apr 2020 07:02:41 -0700 (PDT) Received: from [192.168.2.1] (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id p10sm26933094wrm.6.2020.04.16.07.02.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Apr 2020 07:02:40 -0700 (PDT) Subject: Re: [PATCH 2/4] arm64: dts: rockchip: Add RGA support to the PX30 To: Paul Kocialkowski Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacob Chen , Ezequiel Garcia , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Heiko Stuebner , Hans Verkuil , Thomas Petazzoni References: <20200416115047.233720-1-paul.kocialkowski@bootlin.com> <20200416115047.233720-3-paul.kocialkowski@bootlin.com> <478f0a8b-f819-62f4-83b8-27918c4c2431@gmail.com> <20200416132442.GI125838@aptenodytes> <20200416135519.GJ125838@aptenodytes> From: Johan Jonker Message-ID: Date: Thu, 16 Apr 2020 16:02:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200416135519.GJ125838@aptenodytes> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/16/20 3:55 PM, Paul Kocialkowski wrote: > Hi, > > On Thu 16 Apr 20, 15:44, Johan Jonker wrote: >> On 4/16/20 3:24 PM, Paul Kocialkowski wrote: >>> Hi, >>> >>> On Thu 16 Apr 20, 15:02, Johan Jonker wrote: >>>> Hi Paul, >>>> >>>> The conversion of rockchip-rga.txt to rockchip-rga.yaml by myself just >>>> has been approved by robh. >>> >>> Huh, I looked around for ongoing related work but missed it. >>> I'll definitely rebase on top of your series and use the yaml description >>> instead. Thanks! >>> >>>> Maybe place dts patches at the end of a patch serie. >>>> Could you include a &rga patch if your device is supported in mainline, >>>> so we can test with: >>>> make ARCH=arm64 dtbs_check >>>> DT_SCHEMA_FILES=Documentation/devicetree/bindings/media/rockchip-rga.yaml >>> >>> I tested with the PX30 EVB so I can surely add a node there if that turns >>> out necessary (see below). >>> >>>> Johan >>>> >>>> On 4/16/20 1:50 PM, Paul Kocialkowski wrote: >>>>> The PX30 features a RGA block: add the necessary node to support it. >>>>> >>>>> Signed-off-by: Paul Kocialkowski >>>>> --- >>>>> arch/arm64/boot/dts/rockchip/px30.dtsi | 11 +++++++++++ >>>>> 1 file changed, 11 insertions(+) >>>>> >>>>> diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi >>>>> index 75908c587511..4bfbee9d4123 100644 >>>>> --- a/arch/arm64/boot/dts/rockchip/px30.dtsi >>>>> +++ b/arch/arm64/boot/dts/rockchip/px30.dtsi >>>>> @@ -1104,6 +1104,17 @@ vopl_mmu: iommu@ff470f00 { >>>>> status = "disabled"; >>>>> }; >>>>> >>>>> + rga: rga@ff480000 { >>>>> + compatible = "rockchip,px30-rga"; >>>>> + reg = <0x0 0xff480000 0x0 0x10000>; >>>>> + interrupts = ; >>>>> + clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>; >>>>> + clock-names = "aclk", "hclk", "sclk"; >>>>> + resets = <&cru SRST_RGA>, <&cru SRST_RGA_A>, <&cru SRST_RGA_H>; >>>>> + reset-names = "core", "axi", "ahb"; >>>>> + power-domains = <&power PX30_PD_VO>; >>>> >>>> status = "disabled"; >>> >>> As of 5.6, the rk3399 has the node enabled by default. Did that change? >> >> 'status' disappeared during review for rk3399 between v2 and v3, but >> doesn't mention the reason. If someone can give more info here? >> >> https://lore.kernel.org/lkml/1500101920-24039-5-git-send-email-jacob-chen@iotwrt.com/ >> >> https://lore.kernel.org/lkml/1501470460-12014-5-git-send-email-jacob-chen@iotwrt.com/ >> >>> >>> Since it's a standalone block that has no I/O dependency, I don't really see >>> the point of disabling it by default. >> >> Vop, hdmi and other video devices are also disabled. >> Follow the rest I think... > > Well, these blocks do have related I/O ports so it makes sense not to enable > them by default because of pinmux, or because there might be no connector > populated/routed. > > For a memory to memory internal block, I don't see any reason why. > It's definitely not board-specific and having to add these nodes for every board > that has them is kind of a pain and might be overlooked. This will easily result > in the feature not being available for end users without having to change the > dt. > > Also, the vpu node is always enabled on rockchip (and sunxi) platforms. > I think these are better examples to follow. From PX30 TRM-Part1: Power domain is shared by vop and dsi. It's up to the user what blocks he/she enables and what power it uses. PD_VO: VOP_M, VOP_S, RGA and DSI > > Cheers, > > Paul > >>> >>> What do you think? >>> >>> Cheers, >>> >>> Paul >>> >>>>> + }; >>>>> + >>>>> qos_gmac: qos@ff518000 { >>>>> compatible = "syscon"; >>>>> reg = <0x0 0xff518000 0x0 0x20>; >>>>> >>>> >>> >> >