From patchwork Fri Nov 12 12:35:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 12692387 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A273C433EF for ; Fri, 12 Nov 2021 12:37:51 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id EDF3560F70 for ; Fri, 12 Nov 2021 12:37:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EDF3560F70 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=BFDfuwgMyKv0gyuaycDWtDkwaiHWadmuRADKMYnqwNE=; b=Bw5wmDTx8uxgZY XCSWRtV+LHiDF7dq+HIDgeXbbedFsRR46wt2iQwwonIrv5/28qJyxKyuaor7JLJM7k1yHZMumct+g pX2OXZ+5ToQXb8ZsrSVnFy+XUO4XmWp21KJ7M2l0w+SiMJDGoPUW/B4wiK06VqjcibaFIJ7jRFeAw 9b3xIV8gbIar71d71cocCGHKvD4+sazow8CZP8oKosGaWrm8PlgAdGYehzqGY5gyktUnse5T8HlQ4 47vuYvxCtPNmgIxgJ+EDnXjFBYyhi+4ysbepQ7jSlP8yhswsBHVSdF9TT7nwAI8h0hkdkVVUnd7Vo MREF3ry1Sh8YG9ugl4Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlVnB-00AKLH-M8; Fri, 12 Nov 2021 12:36:29 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlVmi-00AKDj-3E for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 12:36:01 +0000 Received: by mail-wr1-x42a.google.com with SMTP id i5so15296469wrb.2 for ; Fri, 12 Nov 2021 04:35:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=243izrX/RxZR31RQONkzjW80N0L6t2Vzy44t3zq2gr0=; b=Bk4E8X/xB0886BL+7dgirHUwUQgCRPG/Cna8dAKwBf92EFm2q9QH+0UhcE2NJhTSbH +GdITz3rmI40D41Z2PE5pmh6cvQLNMLGlsiznVqoqzVj+wXKSI06q4XXM3jFN0rRW1Pz R7FYfX7HRtZXqhxDV3bfGAOsP+XhEV6kUsSqLU7zkHL5prO2DPkPzBZAQhtuXsKIdCPH mjvDCT0KdmgFSpVufAuCtHQP74PjnFgFDPF2+SWBgIopiwQETBGkxq0zgnark625YWHe VKKli7SxZBh7UsmhVzgAOnRh0sxkfN4Kogar+pR3M1EWyG8wmUi8WRTJSTYsE7jTkngB P2mA== 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=243izrX/RxZR31RQONkzjW80N0L6t2Vzy44t3zq2gr0=; b=wjjoMw67lnXYdUUDcee/4KAlAwFZULALfRX74BrFRsB8qzzX7HEE5ycgzU79AOuMl2 t+3LvCqIpO4nOilNBeRrdT+awuZ+GCfWtTzFkwYb3fWARIi1Guq616DMtWTBdbgwAH/M tjT9gl6hYr40LQWjURb0zKWSR6sdCR4395yEXyUO03hK1ZgUnA9UdAcw0NYTaigced5Z OvB/1Xup48v/irg/YTlMa9bRz0XSeMDCjzH1gbowpEUMXgX+QpoeL9nJkusYVKwBTBTi k9Gy4kDULln1Efkdppi7b6smXvc4/nBdyY5x29658aZrbukxs0bm9gc8UVo4bDhLmz3t 7Hfw== X-Gm-Message-State: AOAM531vHxu1hHtWfRo0vxBjIOfaBYiPjxwZF+xUW4j76WriOvuYkovJ SJXDoH5vprMkVoRXJ6bTzsigRjlIKyoK0A== X-Google-Smtp-Source: ABdhPJwKIcXCM0a4+eG5D8HnEp2y0slms5tkkU14YbU+XzikRF1G5piTvmsrYruL71DdxERBYRadDA== X-Received: by 2002:a05:6000:1541:: with SMTP id 1mr17791140wry.347.1636720558353; Fri, 12 Nov 2021 04:35:58 -0800 (PST) Received: from localhost ([193.209.96.43]) by smtp.gmail.com with ESMTPSA id 21sm5286573wmj.18.2021.11.12.04.35.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Nov 2021 04:35:57 -0800 (PST) From: Thierry Reding To: Thierry Reding , Rob Herring Cc: linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 03/11] dt-bindings: Update headers for Tegra234 Date: Fri, 12 Nov 2021 13:35:34 +0100 Message-Id: <20211112123542.3680629-4-thierry.reding@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211112123542.3680629-1-thierry.reding@gmail.com> References: <20211112123542.3680629-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211112_043600_169784_666DDAAC X-CRM114-Status: GOOD ( 12.29 ) 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 From: Mikko Perttunen Add a few more clocks that will be used in follow-up patches to enable more functionality on Tegra234. Signed-off-by: Mikko Perttunen Signed-off-by: Thierry Reding Reviewed-by: Rob Herring --- include/dt-bindings/clock/tegra234-clock.h | 17 ++++++++++++++--- include/dt-bindings/reset/tegra234-reset.h | 12 ++++++++++-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/include/dt-bindings/clock/tegra234-clock.h b/include/dt-bindings/clock/tegra234-clock.h index 2c82072950ee..21ed0c732fb9 100644 --- a/include/dt-bindings/clock/tegra234-clock.h +++ b/include/dt-bindings/clock/tegra234-clock.h @@ -4,11 +4,22 @@ #ifndef DT_BINDINGS_CLOCK_TEGRA234_CLOCK_H #define DT_BINDINGS_CLOCK_TEGRA234_CLOCK_H +/** + * @file + * @defgroup bpmp_clock_ids Clock ID's + * @{ + */ /** @brief output of gate CLK_ENB_FUSE */ -#define TEGRA234_CLK_FUSE 40 +#define TEGRA234_CLK_FUSE 40U /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC4 */ -#define TEGRA234_CLK_SDMMC4 123 +#define TEGRA234_CLK_SDMMC4 123U /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_UARTA */ -#define TEGRA234_CLK_UARTA 155 +#define TEGRA234_CLK_UARTA 155U +/** @brief CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC_LEGACY_TM switch divider output */ +#define TEGRA234_CLK_SDMMC_LEGACY_TM 219U +/** @brief PLL controlled by CLK_RST_CONTROLLER_PLLC4_BASE */ +#define TEGRA234_CLK_PLLC4 237U +/** @brief 32K input clock provided by PMIC */ +#define TEGRA234_CLK_CLK_32K 289U #endif diff --git a/include/dt-bindings/reset/tegra234-reset.h b/include/dt-bindings/reset/tegra234-reset.h index b3c63be06d2d..50e13bced642 100644 --- a/include/dt-bindings/reset/tegra234-reset.h +++ b/include/dt-bindings/reset/tegra234-reset.h @@ -4,7 +4,15 @@ #ifndef DT_BINDINGS_RESET_TEGRA234_RESET_H #define DT_BINDINGS_RESET_TEGRA234_RESET_H -#define TEGRA234_RESET_SDMMC4 85 -#define TEGRA234_RESET_UARTA 100 +/** + * @file + * @defgroup bpmp_reset_ids Reset ID's + * @brief Identifiers for Resets controllable by firmware + * @{ + */ +#define TEGRA234_RESET_SDMMC4 85U +#define TEGRA234_RESET_UARTA 100U + +/** @} */ #endif