Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1012498pxk; Thu, 3 Sep 2020 20:13:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqvvAyOX3wwJj1dCyVfkwvgeLkJQunDsNNSOcIOT8f7Cw1bGsBm/iYCQDL/AIYDr/wHQ0o X-Received: by 2002:a05:6402:156:: with SMTP id s22mr6281079edu.372.1599189203377; Thu, 03 Sep 2020 20:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599189203; cv=none; d=google.com; s=arc-20160816; b=PsCHo6GraJpZ7HEnLJtTUYnC8lxA9jrqDzfEV7+e2THq/81od9Cg1EyAq6q4tyq8vz noyOQ6HBwWQ2rf8/2t26fJx/UIh+NptRCvPqpMUQwa4Ib6wafaFhUqHvME5WXFa/gYbD ezKZd+D9K0iIdFuRF5koASr/cmbo2JVhE0O2y+GsQ1dk3Ejg5nKLy5H8oY5TEXkzU+AK xsuAzy+/wGpLFk+RIlXlhYBxH3fWg0qAYviLVvBqD96Oiiqslfb1Fu7MKe/deF2gi+ru eEAt5/vXKEOfzV+eCqOznvJegqhFt9zgBYPdNJOKZCk2smn9HZjPDmkVWHMbmFKBkVT4 morQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OLoaAoUtSGtp7+gBUBV6btVKeUPUq6rFicIl47OfSpo=; b=Mk4i3ZKyleTznDVBReSG+zE1PGL8wNmfRwD7YxtY57/PhxNW0chJwWzMXiE9Usrxyc V6KzZsi74s6eWXpEfFb8EaTeBwpwjMPjgXl58XbhqLPLo9728/Ib4YWX7pNzgWiJ2fbA sWMynG5f/lzFum0cT7LuFaGUU7Vr+jfhHrMjtdU9uuP6FgA6mIPLuK1IeAcpq2IEbhX8 kgkfAfqUwlvu+kehrmAue5nHlp2IxKRMOrpKa1rP2x9ozWGI/JI/N48/i6I20btdg1o1 TJjdgxtW1hZ35FMpSaOXEFOMquvz9Y+4Iwk7i64nxMoJOcOV+g4bs9bPin3CL6M0djqg vGQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=wcKDmDFh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si2947215edv.405.2020.09.03.20.13.00; Thu, 03 Sep 2020 20:13:23 -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=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=wcKDmDFh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729752AbgIDDL2 (ORCPT + 99 others); Thu, 3 Sep 2020 23:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729688AbgIDDKx (ORCPT ); Thu, 3 Sep 2020 23:10:53 -0400 Received: from mail-qv1-xf44.google.com (mail-qv1-xf44.google.com [IPv6:2607:f8b0:4864:20::f44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9C22C061247 for ; Thu, 3 Sep 2020 20:10:52 -0700 (PDT) Received: by mail-qv1-xf44.google.com with SMTP id db4so2399722qvb.4 for ; Thu, 03 Sep 2020 20:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OLoaAoUtSGtp7+gBUBV6btVKeUPUq6rFicIl47OfSpo=; b=wcKDmDFhKCf/i3s6XQhoACLr+CO6BfT6c65H8XgfCtVFcv2eYdTWER+gcRIGT0MDVS PU5fhB46CSx9mNagPaJpnH4SfxjUqwr1kuME/OLT42B6rKY55Ed9DwA8ztknH6/V2UPD FdYu5dxtbUEwTY4+qZbsvBO4gq/YYfr2q8ntHkM5uXe31yLP74mvc5YE1WSTwk9JCris MHYhs8QTEC6BD85oM3ToXWlhIYRGAV9Y0FZiSlhIHvlPCLMlduMuvktvSkKzzh4iz9/u 5otVUX5gVp5Jx6p2XLXsn6/j4hZhtIPBvddKR1Q59hvO7G6iLGmaq3znk/3rZIy0s/Ix GyUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OLoaAoUtSGtp7+gBUBV6btVKeUPUq6rFicIl47OfSpo=; b=fU0YFO+SddBeMQqsQt3pI5xFQgSdz9t4ZipEWnnzX/dobMgwYgmOv8B9dVkMLtvPuG LRVfTFjTsn3XWzwJRntXbMhgjaXAovLq8OiI20LYoISDbwCiL0CD498FmmGxuBZTFbLE 2Vg7amInIcZ1IgKTRvKF0RNXyURRYeV9DjE7vqcu0Fmdw9EFTLifHLfKXeKu994onQv0 fSAp/io8PijQv1Kb0wBaGXyM6rwmo4+OTEVbhtUSDoFmZ5hzsEItZ3c3wGZBZnJWK9P+ 4j9adO34rWhafwAfWu2ZWWBwna9I1djI+rMQGOE3vT9uTTlVLLq5IWA5BNneeLMWP3gs J+zg== X-Gm-Message-State: AOAM530/tLsQALbun+1yIbZP8gtOVvG0b+FXe6q3k3+JPRhLndZH08ut 7EbLds1n9XrhfjBmcgRi1a08/w== X-Received: by 2002:a0c:e082:: with SMTP id l2mr6100531qvk.157.1599189052164; Thu, 03 Sep 2020 20:10:52 -0700 (PDT) Received: from localhost.localdomain ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id x59sm3481063qte.14.2020.09.03.20.10.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 20:10:51 -0700 (PDT) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Taniya Das , linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 2/5] dt-bindings: clock: add SM8150 QCOM video clock bindings Date: Thu, 3 Sep 2020 23:09:51 -0400 Message-Id: <20200904030958.13325-3-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200904030958.13325-1-jonathan@marek.ca> References: <20200904030958.13325-1-jonathan@marek.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device tree bindings for video clock controller for SM8150 SoCs. Signed-off-by: Jonathan Marek --- .../bindings/clock/qcom,videocc.yaml | 4 ++- .../dt-bindings/clock/qcom,videocc-sm8150.h | 25 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 include/dt-bindings/clock/qcom,videocc-sm8150.h diff --git a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml index 17666425476f..d04f5bd28dde 100644 --- a/Documentation/devicetree/bindings/clock/qcom,videocc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,videocc.yaml @@ -11,17 +11,19 @@ maintainers: description: | Qualcomm video clock control module which supports the clocks, resets and - power domains on SDM845/SC7180. + power domains on SDM845/SC7180/SM8150. See also: dt-bindings/clock/qcom,videocc-sdm845.h dt-bindings/clock/qcom,videocc-sc7180.h + dt-bindings/clock/qcom,videocc-sm8150.h properties: compatible: enum: - qcom,sdm845-videocc - qcom,sc7180-videocc + - qcom,sm8150-videocc clocks: items: diff --git a/include/dt-bindings/clock/qcom,videocc-sm8150.h b/include/dt-bindings/clock/qcom,videocc-sm8150.h new file mode 100644 index 000000000000..e24ee840cfdb --- /dev/null +++ b/include/dt-bindings/clock/qcom,videocc-sm8150.h @@ -0,0 +1,25 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved. + */ + +#ifndef _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8150_H +#define _DT_BINDINGS_CLK_QCOM_VIDEO_CC_SM8150_H + +/* VIDEO_CC clocks */ +#define VIDEO_CC_IRIS_AHB_CLK 0 +#define VIDEO_CC_IRIS_CLK_SRC 1 +#define VIDEO_CC_MVS0_CORE_CLK 2 +#define VIDEO_CC_MVS1_CORE_CLK 3 +#define VIDEO_CC_MVSC_CORE_CLK 4 +#define VIDEO_CC_PLL0 5 + +/* VIDEO_CC Resets */ +#define VIDEO_CC_MVSC_CORE_CLK_BCR 0 + +/* VIDEO_CC GDSCRs */ +#define VENUS_GDSC 0 +#define VCODEC0_GDSC 1 +#define VCODEC1_GDSC 2 + +#endif -- 2.26.1