From patchwork Thu Jan 27 23:07:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 12727528 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ADCBEC433EF for ; Thu, 27 Jan 2022 23:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2cuR1gmK/Cjz6PftHKKrrxCBiYF+0YTDDuurscC0p9Y=; b=rnzKJJHlPpVuAY 4owc4cqUcXabHHiTGRRqrYS1m0SBDKBQJlxiM+ON25xZy9tZlM1zCp0d7Bmoor+AuijCNU/lgvpny bz9aoe1z2s8AmrBg3EosnKN2ucxkWhiGWJS1vQDcXbPKCqToYDz+Pv1dFkPUBaNlQlelr0cUDEyGW DqZeoFnrcqJkdXFncX+wHoQxBphCnO7Ca3tFkgEpqPg2ZfosGnUd2Sh3Nnm5OKOSa+UFMTuDNWSYi ZPLcGr+zaNdkbvDPp4H+mDwmsuHNKHmQEHcDOsM7zRUFjqdlnGdpxLe/rRL32k3w9LzneD4tFFYeF SWE1JPNlkFVdDgI/UxdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDDyU-00HJMP-8w; Thu, 27 Jan 2022 23:14:42 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDDsk-00HGTE-Bf for linux-rockchip@lists.infradead.org; Thu, 27 Jan 2022 23:08:48 +0000 Received: by mail-pf1-x42f.google.com with SMTP id u130so4372230pfc.2 for ; Thu, 27 Jan 2022 15:08:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fXezxkg2kGuWbB36YJn2JEHiHCC80Um0xlTyospu4bE=; b=W52+ysBtqCsUepS7IJiVv6MqZt+QdNIY980EbuHquIW6109/e0+n0y9mwaOPmdVytS uRAk7qC1DiU/CwNi49mc4RvLPdUna1Oqj5Qgt0jPuWkra+DTqe1xx5fnNx2rjw/SO5hh qVqkuZdKSeug7aH608jY9tfD7Q/F1d9LkblPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fXezxkg2kGuWbB36YJn2JEHiHCC80Um0xlTyospu4bE=; b=JTmgV7Hqx2Ir2/F6yQEg4wNAVEMPevsJOuAfPsCJpEn9TycPTZVRun7OCAIwNddzuT eBgPBYkjyyW317PPuXZchz/UmrzaRCmrq2b4qpZw9PXdGO3Mnj+H5tMMrcsLYiD40oXB JsTudiGbY8k/RWgTzuhDPt8NPIyFOxqbecyvH0j9DnfM5ngIxGX79wfsy9sWhJO8xNUF qeO1nvVG9dGw/DyTOc9xlkMDoxZmWhWlSzWyfYCVi6pFrn5ASaAbbilQTP84Tx8JaJ7Y YgtbCpXyI4wbXk/aUARApd4Oi8jwknAeM+xMuNS3eU6xbuC/P+4Gams5pOi4heGfaKdw QKOA== X-Gm-Message-State: AOAM533+wDSkTiuC2I5vI5F/1tEgmyEcYgQun2LeWORN4c9ywMsFq1jL pfV8TnsmQXORG5qOPpFjl7Z5Rg== X-Google-Smtp-Source: ABdhPJzIjPFzmvY95upLY8umBbY8uqvVIvgVAGp2b3szXo3MoWikHuPQAGZ4kG2PB8Y9F89T9NfEvQ== X-Received: by 2002:a62:1cc9:: with SMTP id c192mr4895534pfc.70.1643324925797; Thu, 27 Jan 2022 15:08:45 -0800 (PST) Received: from localhost ([2620:15c:202:201:723d:38a9:9e7f:3435]) by smtp.gmail.com with UTF8SMTPSA id n22sm6497884pfu.77.2022.01.27.15.08.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jan 2022 15:08:45 -0800 (PST) From: Brian Norris To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Rob Herring Cc: linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Lin Huang , linux-arm-kernel@lists.infradead.org, Derek Basehore , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, Heiko Stuebner , Enric Balletbo i Serra , =?utf-8?q?Ga=C3=ABl_?= =?utf-8?q?PORTAY?= , Daniel Lezcano , Brian Norris Subject: [PATCH v2 11/15] arm64: dts: rk3399: Add dfi and dmc nodes Date: Thu, 27 Jan 2022 15:07:22 -0800 Message-Id: <20220127150615.v2.11.Ie97993621975c5463d7928a8646f3737c9f2921d@changeid> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog In-Reply-To: <20220127230727.3369358-1-briannorris@chromium.org> References: <20220127230727.3369358-1-briannorris@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220127_150846_433196_C94A9BD8 X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Lin Huang These are required to support DDR DVFS on RK3399 platforms. Signed-off-by: Lin Huang Signed-off-by: Enric Balletbo i Serra Signed-off-by: Gaƫl PORTAY Signed-off-by: Daniel Lezcano Signed-off-by: Brian Norris Change since Daniel's posting: reordered by unit address, per existing style --- Changes in v2: - rename dmc to memory-controller Changes in v1: This is based on a v5 posting from various authors: https://lore.kernel.org/lkml/20210308233858.24741-3-daniel.lezcano@linaro.org/ Much of that series was already merged, so I start over with the numbering. 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 d3cdf6f42a30..4096ef6f7b72 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1295,6 +1295,25 @@ pwm3: pwm@ff420030 { 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: memory-controller { + compatible = "rockchip,rk3399-dmc"; + rockchip,pmu = <&pmugrf>; + devfreq-events = <&dfi>; + clocks = <&cru SCLK_DDRC>; + clock-names = "dmc_clk"; + status = "disabled"; + }; + vpu: video-codec@ff650000 { compatible = "rockchip,rk3399-vpu"; reg = <0x0 0xff650000 0x0 0x800>;