Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp285525pxf; Thu, 11 Mar 2021 04:00:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYW7GD/9YKLkMc1zEIQ8YGmAC93wnl5I5uOBl203QxscB8EOeosQn3vY4iP5Q7e1z6Ph3p X-Received: by 2002:a17:906:ae8d:: with SMTP id md13mr2724158ejb.275.1615464032770; Thu, 11 Mar 2021 04:00:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615464032; cv=none; d=google.com; s=arc-20160816; b=gAoQnZackFjmqRHrUPygxc2Zq0/HDaNvpEuKR3lrvDWrnD29PjC8oRdxO6kyHLR2eg UibwGhSXyoHm8BLyH8zSnrgA45zoigisq5vbGcM9GXvASaO+DM1PEX3UCIh/148tSauY 2V5exIYDgXo+K6xPcaXMQM2sYvcaX3reaksJCHMlM0rSNXouZjETx7wkeNDUos5p+2md Efhcf9aJUhL3PuQY+CwrZMDcQJ1RDfUK3IjZBYQWITrqjqwBGchrMq2GyL3g9U9y9410 mWnGYI1SuCFLxWQUB9v8ksQQ7/xFwjmsNXfsFymJHTBi/nBRQe/U/FLXV1l5zf+cEEPD BkvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=sZHKANcfp4HNPSh4JPMPf2bq7tkkwGzMZt04c3NuqNM=; b=SNHlZW4qE3RV1Sv86PKCrOLjKV4h0qNvlf5+WHM+k6sXx84Eq+1/V6T8jZF2KrTbO8 rdoY8LrUi62vJwFPplFU1IkZE3xVeOYHzlaq/hyupVUHHUGFFbDfGkN/WTMBUEs4S7Pp XO6SSjx+JXXXSQNGmNSj7MWur7WiVynnj5WNUZXfgao5cOI+HLcQM/fM+3j0UbPdVAJ0 EvxKNVkRowJZ7l9SpY4APa3J1yRSREFARGi8iZCzqDojQiO1/V6z/BOh8Rtxbu50MM1T e1X8RUiyoehxBYBBuKWewVIpVp42Vu5xDwyc75PlnDDKsZEAXygiqt5jVhUZ26Etb/Nc KFMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=slLbTWW+; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si1481890edu.536.2021.03.11.04.00.10; Thu, 11 Mar 2021 04:00:32 -0800 (PST) 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=@linaro.org header.s=google header.b=slLbTWW+; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232871AbhCKL7E (ORCPT + 99 others); Thu, 11 Mar 2021 06:59:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232614AbhCKL7C (ORCPT ); Thu, 11 Mar 2021 06:59:02 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC236C061574 for ; Thu, 11 Mar 2021 03:59:01 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id f12so1541251wrx.8 for ; Thu, 11 Mar 2021 03:59:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sZHKANcfp4HNPSh4JPMPf2bq7tkkwGzMZt04c3NuqNM=; b=slLbTWW+VCiQjXJ0yTY3dZELEMPbF3D/++3Ly5kWq1OvjC25KtW+/hnON08Z7DLU0E f6ZRIJhgOPVk49Bl8C2BxCqXG79ROzFy3CnS7RjxVD61hr/tk+uRrSe/eZ2Up5hg6G+F EEmkshnsttUouBqiWmrehhJl3E8fFoSh1VMviSypCHWTown2HoXUfxJLttdwklR8FkyF w/4qs0fxAI2tEITnk19lYd9EKZ1vqs6J+1oWwsZW0uKRNFBm6C5JOcfRG1eY0Ta6cSO1 XTYcB3WUISPfERpIlWT+sYSxeruvrA6vdrQHLy5c3jZkjD13ZSY2UybKVS4XMRG3Si4z j0uQ== 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=sZHKANcfp4HNPSh4JPMPf2bq7tkkwGzMZt04c3NuqNM=; b=qcVg6JSvrSDeVHqXGyEszBQiGjvxBqwXFak4SfVqpgGzz5uFeGmK0WgQE572YzykbG hXrR6XAzdAcljGofDwhc18c255Uu1HdLDHaU9EhSt4PIhjLRyUg0NYcgIRToQcVsiV3I Gqu5SFqpP37+PQJwWpopBDKR9JpVBnPZ6ggWWxcpYWydDCHeZxKRk9/XEUpbFXTqJ7CE POt5Mt3gKNXZiNYEhLDdkOtMu/SBneRYOuc0a+wEKPRQWOuWH9zcHFH3il3v6DLywC/e 4LBhw90lzbTl5D+IFmTBjhiIUBRydltWTSCd/zEI75eS5RFRszAvz8AZfCC2lhMuJb1n 8WXw== X-Gm-Message-State: AOAM533HIpEtHKCBom+vMFLnScCq67D+JWR9LY5ciPP2v8E9Y5SufnrF gQe67isx8hAs4w7nqK0rbwT6e/r2oQlJ3A== X-Received: by 2002:adf:a406:: with SMTP id d6mr8435048wra.141.1615463940408; Thu, 11 Mar 2021 03:59:00 -0800 (PST) Received: from ?IPv6:2a01:e34:ed2f:f020:84cf:7f4d:d470:dfd4? ([2a01:e34:ed2f:f020:84cf:7f4d:d470:dfd4]) by smtp.googlemail.com with ESMTPSA id m10sm3455006wmh.13.2021.03.11.03.58.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Mar 2021 03:59:00 -0800 (PST) Subject: Re: [RESEND PATCH v5 2/4] arm64: dts: rk3399: Add dfi and dmc nodes. To: Johan Jonker , heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Lin Huang , Enric Balletbo i Serra , =?UTF-8?Q?Ga=c3=abl_PORTAY?= , Rob Herring , Helen Koike , Chen-Yu Tsai , Jacob Chen , Shunqian Zheng , Robin Murphy , Boris Brezillon , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list References: <20210308233858.24741-1-daniel.lezcano@linaro.org> <20210308233858.24741-2-daniel.lezcano@linaro.org> <9c36893a-6ca8-dade-e203-890a4071bf50@gmail.com> From: Daniel Lezcano Message-ID: <5f66f43e-8b50-39f2-f326-07a9378c0909@linaro.org> Date: Thu, 11 Mar 2021 12:58:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <9c36893a-6ca8-dade-e203-890a4071bf50@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/03/2021 12:42, Johan Jonker wrote: > Hi Daniel, > > Some comments. Have a look if it's useful or that you disagree with. > > New nodes should be verifiable if possible. > Especially with so many properties. > Could you convert rockchip-dfi.txt and rk3399_dmc.txt to yaml instead of > changing old txt documents? > Add rockchip-dfi.yaml and rk3399_dmc.yaml before this patch in version 6. I don't have a lot of bandwidth to do it but I will give a try. Thanks for reviewing -- Daniel > Nodes and properties have a sort order. Please fix. > Some goes for [RESEND PATCH v5 3/4]. > > (This is a generic dtsi. How about cooling and dmc ??) > > ---- > Heiko rules: > > compatible > reg > interrupts > [alphabetical] > status [if needed] > > ---- > My incomplete list: > > For nodes: > If exists on top: model, compatible and chosen. > Sort things without reg alphabetical first, > then sort the rest by reg address. > > Inside nodes: > If exists on top: compatible, reg and interrupts. > In alphabetical order the required properties. > Then in alphabetical order the other properties. > And as last things that start with '#' in alphabetical order. > Add status below all other properties for soc internal components with > any board-specifics. > Keep an empty line between properties and nodes. > > Exceptions: > Sort pinctrl-0 above pinctrl-names, so it stays in line with clock-names > and dma-names. > Sort simple-audio-card,name above other simple-audio-card properties. > Sort regulator-name above other regulator properties. > Sort regulator-min-microvolt above regulator-max-microvolt. > > On 3/9/21 12:38 AM, Daniel Lezcano wrote: >> From: Lin Huang >> >> These are required to support DDR DVFS on rk3399 platform. >> >> Signed-off-by: Lin Huang >> Signed-off-by: Enric Balletbo i Serra >> Signed-off-by: Gaël PORTAY >> Signed-off-by: Daniel Lezcano >> --- >> arch/arm64/boot/dts/rockchip/rk3399.dtsi | 19 +++++++++++++++++++ >> 1 file changed, 19 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi >> index edbbf35fe19e..6f23d99236fe 100644 >> --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi >> +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi >> @@ -1937,6 +1937,25 @@ >> status = "disabled"; >> }; >> >> + dfi: dfi@ff630000 { >> + reg = <0x00 0xff630000 0x00 0x4000>; >> + compatible = "rockchip,rk3399-dfi"; >> + rockchip,pmu = <&pmugrf>; >> + interrupts = ; >> + clocks = <&cru PCLK_DDR_MON>; >> + clock-names = "pclk_ddr_mon"; >> + status = "disabled"; >> + }; >> + >> + dmc: dmc { >> + compatible = "rockchip,rk3399-dmc"; >> + rockchip,pmu = <&pmugrf>; >> + devfreq-events = <&dfi>; >> + clocks = <&cru SCLK_DDRC>; >> + clock-names = "dmc_clk"; >> + status = "disabled"; >> + }; >> + >> pinctrl: pinctrl { >> compatible = "rockchip,rk3399-pinctrl"; >> rockchip,grf = <&grf>; >> > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog