From patchwork Tue Mar 8 00:09:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 12772776 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 15C5EC433F5 for ; Tue, 8 Mar 2022 00:11:50 +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: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:In-Reply-To:References: List-Owner; bh=HFwr1tcI0SFzGvhWyTcONK94YHvMb/7oFTaumZ6fGJQ=; b=bzEfXpo+fFOzFu M7TjJF9sZfwEZtnTCleBjxC/KQOtCHHnRTmd98cKuXveoff18DHnNlpniT4m+xk0WjP9SsCaI2VQy EExf4iniQsi1IbLbSgWo8LepvRUpL8kolX6PA/ff63obRH5CQ24jAwjjmFXGF1QM8ml7BlTPaSn+N jZrV/4fO3Mx6x1lFnhlIbDKgIEXUZclXbJRCZMG/LCpnzksrw+lIQT2dnn4KTj7GgARDCT0PIaeOE 7c5RKjYbeUXLEFMeWlLmSmXGDCNPBdxh2r8wRBi1aaXRote/zl8UEF0Wyl5SyYEHA+igLvingSXzK sWKYIP8GHPSSOERb7aMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRNQa-0022FS-Iy; Tue, 08 Mar 2022 00:10:12 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRNQU-0022Cf-AS for linux-arm-kernel@lists.infradead.org; Tue, 08 Mar 2022 00:10:09 +0000 Received: by mail-pj1-x1035.google.com with SMTP id mr24-20020a17090b239800b001bf0a375440so668110pjb.4 for ; Mon, 07 Mar 2022 16:10:04 -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:mime-version :content-transfer-encoding; bh=Nn87tDnvGv7OSX+fx7BgpaSZEoHCAFqg9zr3N4CuzSM=; b=SNkZ77KXm9TDAmC6IViNJBK5BRVhvxf+LuzTh1Fyhvr6rdO4Y9SdqHibqv2o60wOrS 9K59MfwQiCSqMbosa6EkcVrOtp6cwX+4xu67VbZCvW5gdYIOgsqvaGMr6EBDU2Hue6Nb S85FSIWNOdu9UiD/DNtHOVECLYAbPnztNE6H0= 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:mime-version :content-transfer-encoding; bh=Nn87tDnvGv7OSX+fx7BgpaSZEoHCAFqg9zr3N4CuzSM=; b=ILubgyA/K2TWizpvXRgoPRf+vAvJylKLC69DoRx79F80jltqJF2ROtWNjN6nhwcbDI ny1OAA1M03wvk32UHwaH0fU3Wi264HW2/D/cZuKY6i4bnydux/+am+OIYJREOVVk5ihi XyU4IZHZKPuOCq2MWTjRnjfdWcXD9o7nNHmV9/WLj/fOZeYVJKLFufMXRAgiu0xGpWT6 dmWwDDjBND/FVNOfucy32a7Fji/k0OYlyMZTSJB2N5uWr0smOUErZpGavuyaUtt/urd5 Eq3QFMopuagSGVEcJD3aH2IqhR/cOrK4PgwUYZQtXdnUi2fe7jhZZeIuqXraCh2qWC8E LJuQ== X-Gm-Message-State: AOAM533rOe7FF8ratZTc2wl/wmufGMrsuiVSItlu/IwDHEK8PvEwHXOt wya6z+YzoZFfrIAprPM1Wr41Mw== X-Google-Smtp-Source: ABdhPJz1ralX9qOcr9TOi/L1wMWVp6Zl1h9OZu4ylYSwFzToc98tvA1ZZGEW8BvLFUdlYIU9BD+Ilw== X-Received: by 2002:a17:902:c3cd:b0:151:806d:1b9b with SMTP id j13-20020a170902c3cd00b00151806d1b9bmr15351414plj.98.1646698204021; Mon, 07 Mar 2022 16:10:04 -0800 (PST) Received: from localhost ([2620:15c:202:201:e551:44dc:2842:57f1]) by smtp.gmail.com with UTF8SMTPSA id bi29-20020a056a00311d00b004f6fa51e70dsm5177381pfb.196.2022.03.07.16.10.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Mar 2022 16:10:03 -0800 (PST) From: Brian Norris To: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Rob Herring Cc: Lin Huang , Heiko Stuebner , Derek Basehore , linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Brian Norris Subject: [PATCH v3 00/15] rk3399: Clean up and enable DDR DVFS Date: Mon, 7 Mar 2022 16:09:30 -0800 Message-Id: <20220308000945.706701-1-briannorris@chromium.org> X-Mailer: git-send-email 2.35.1.616.g0bdcbb4464-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_161006_375272_3CC1B4A6 X-CRM114-Status: GOOD ( 15.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series covers 2 primary tasks: 1) Resubmit prior work: [RESEND PATCH v5 3/4] arm64: dts: rockchip: Enable dmc and dfi nodes on gru. https://lore.kernel.org/lkml/20210308233858.24741-2-daniel.lezcano@linaro.org/ [RESEND PATCH v5 2/4] arm64: dts: rk3399: Add dfi and dmc nodes. https://lore.kernel.org/lkml/20210308233858.24741-3-daniel.lezcano@linaro.org/ This series was partially merged a while back, but the remaining 2 patches were blocked mostly on stylistic grounds (alpha/numerical ordering). 2) Integrate many updates, bugfixes, and clarifications that were done by Rockchip and Google engineers when first launching this platform. Many of these were not integrated in the earlier series (e.g., the OPPs changed before production; earlier patchsets used pre-production numbers). Along the way, it seemed worthwhile to convert the binding docs to a schema. Among other reasons, it actually helped catch several errors and omissions in translation between downstream device trees and the version that actually landed upstream. See the patches for further details. Regards, Brian Changes in v3: * Add |maxItems| for devfreq-events * Improve deprecation notes * Collect some Acked/Reviewed tags Changes in v2: * Fix yamllint issues * Adapt to various review comments (use of *-hz, hyphens, node naming) * Add a few new bugfixes * Add some new properties (ported from downstream kernels) required for stability * Convert more properties from "cycles" to "nanoseconds" Brian Norris (13): dt-bindings: devfreq: rk3399_dmc: Convert to YAML dt-bindings: devfreq: rk3399_dmc: Deprecate unused/redundant properties dt-bindings: devfreq: rk3399_dmc: Fix Hz units dt-bindings: devfreq: rk3399_dmc: Specify idle params in nanoseconds dt-bindings: devfreq: rk3399_dmc: Add more disable-freq properties PM / devfreq: rk3399_dmc: Drop undocumented ondemand DT props PM / devfreq: rk3399_dmc: Drop excess timing properties PM / devfreq: rk3399_dmc: Use bitfield macro definitions for ODT_PD PM / devfreq: rk3399_dmc: Support new disable-freq properties PM / devfreq: rk3399_dmc: Support new *-ns properties PM / devfreq: rk3399_dmc: Disable edev on remove() PM / devfreq: rk3399_dmc: Use devm_pm_opp_of_add_table() PM / devfreq: rk3399_dmc: Avoid static (reused) profile Lin Huang (2): arm64: dts: rk3399: Add dfi and dmc nodes arm64: dts: rockchip: Enable dmc and dfi nodes on gru .../bindings/devfreq/rk3399_dmc.txt | 212 ---------- .../bindings/devfreq/rk3399_dmc.yaml | 371 ++++++++++++++++++ .../dts/rockchip/rk3399-gru-chromebook.dtsi | 7 + .../boot/dts/rockchip/rk3399-gru-scarlet.dtsi | 12 + arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 28 ++ .../boot/dts/rockchip/rk3399-op1-opp.dtsi | 25 ++ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 19 + drivers/devfreq/rk3399_dmc.c | 299 +++++++------- 8 files changed, 596 insertions(+), 377 deletions(-) delete mode 100644 Documentation/devicetree/bindings/devfreq/rk3399_dmc.txt create mode 100644 Documentation/devicetree/bindings/devfreq/rk3399_dmc.yaml