From patchwork Fri Sep 25 10:31:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11799509 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 88C3C6CB for ; Fri, 25 Sep 2020 10:31:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 658A1221EB for ; Fri, 25 Sep 2020 10:31:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="EhBxqM0g" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728139AbgIYKbj (ORCPT ); Fri, 25 Sep 2020 06:31:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728003AbgIYKbf (ORCPT ); Fri, 25 Sep 2020 06:31:35 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2F9AC0613D4 for ; Fri, 25 Sep 2020 03:31:34 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id l15so1571085wmh.1 for ; Fri, 25 Sep 2020 03:31:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VxPsmY6xMrudobvS3a5IPxrVhQsTl32KRChwCgeKp24=; b=EhBxqM0gxfw+4TaYEZteTYA8hQZkx1kzQfS27bZUIV1ITXvTmaaW+VG0j1STKZLN+6 PjBtJf1Ej9wsqcJydZkd9nGbEKUlhHBlQOV1YLXzAjEJPmlBRs3cEv+kp7ru8e0kZshM RZTMYsOhIjdyQQogx3yyzqaDBqAKNBSYeMrmYq9Grm4n6KfaWkypU37EbpsLas3z1Ug0 LsJOvd9IZcO2dDVgSSVaf/a6NnaxZdx6N7NVRMwcxKh0ZuK9M24vN2rJ+CgpErv2VOKS 9UR15xCx2hRn6AQokIUBOQFiLFsKscDA0ywGJ3BKd39I3IrWhEpxtp3vWRvPTNFP3bEL RP1Q== 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:mime-version :content-transfer-encoding; bh=VxPsmY6xMrudobvS3a5IPxrVhQsTl32KRChwCgeKp24=; b=nnIWXxAz3vKM/FgRfLK+Lmwk3WBdf58EwvdyV3dL7Z/UOan8r4vykh1BhCQE1Q8zS5 wPWws67R+29L5rM2XNhuXlj8/7Xpn4nfz2XRfdp1QfgI3OjXAh6Dz2ME6RI9qlLUbyT4 CVgk+aBcjd3yNU8gG32R8JTDmtmna50ttaKqn4u3zeDSx7QIhjcnv98kQDL3k2WmQI5a eGBCp6XAdDpITJ+DG45ZAaCLkMXxkAu36PdyZ6OBsOSZ8M54YRYTACMuqt72M2nMyZZo oabC+koQ7V/TknL1jGCn84szeLz5rn9z85tfXIwIo8QDPLuf3NX/YjbiB2AAkks65+mU Nxew== X-Gm-Message-State: AOAM533M2kx4BnOVIjCSVVRb8id8TirDD08HDIGkCoiiziuz2MkcePnm lOSgkV8P/UdrK7pQDDyt2HZtoQ== X-Google-Smtp-Source: ABdhPJzBUn4IPDFlv9ZZH1Oyc5QFu+X0TgWUPsMiHto2i7T7FhUmEeqMXp6Ak6s+6Y6+V8ZTxUDD8g== X-Received: by 2002:a1c:e389:: with SMTP id a131mr2436342wmh.181.1601029892908; Fri, 25 Sep 2020 03:31:32 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id 11sm2354907wmi.14.2020.09.25.03.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 03:31:32 -0700 (PDT) From: Srinivas Kandagatla To: sboyd@kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org Cc: bjorn.andersson@linaro.org, mturquette@baylibre.com, robh+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v2 0/4] clk: qcom : add sm8250 LPASS GFM drivers Date: Fri, 25 Sep 2020 11:31:11 +0100 Message-Id: <20200925103115.15191-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org This patchset adds support for GFM Muxes found in LPASS (Low Power Audio SubSystem) IP in Audio Clock Controller and Always ON clock controller. Clocks derived from these muxes are consumed by LPASS Digital Codec. Currently the driver for Audio and Always ON clock controller only supports GFM Muxes, however it should be easy to add more clock support when required Changes since v1: -removed unnecessary Kconfig dependencies - cleaned up header includes. - moved to using pm_clk - Moved to right place in Makefile - moved to use module_platform_driver instead of builtin_platform_driver - add null check for of_device_get_match_data verified dt_binding_check to pass on linux next https://paste.ubuntu.com/p/6nVzjRwvsW/ Srinivas Kandagatla (4): dt-bindings: clock: Add support for LPASS Audio Clock Controller dt-bindings: clock: Add support for LPASS Always ON Controller clk: qcom: Add support to LPASS AUDIO_CC Glitch Free Mux clocks clk: qcom: Add support to LPASS AON_CC Glitch Free Mux clocks .../bindings/clock/qcom,aoncc-sm8250.yaml | 58 ++++ .../bindings/clock/qcom,audiocc-sm8250.yaml | 58 ++++ drivers/clk/qcom/Kconfig | 6 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/lpass-gfm-sm8250.c | 323 ++++++++++++++++++ .../clock/qcom,sm8250-lpass-aoncc.h | 11 + .../clock/qcom,sm8250-lpass-audiocc.h | 13 + 7 files changed, 470 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/qcom,aoncc-sm8250.yaml create mode 100644 Documentation/devicetree/bindings/clock/qcom,audiocc-sm8250.yaml create mode 100644 drivers/clk/qcom/lpass-gfm-sm8250.c create mode 100644 include/dt-bindings/clock/qcom,sm8250-lpass-aoncc.h create mode 100644 include/dt-bindings/clock/qcom,sm8250-lpass-audiocc.h