From patchwork Wed Apr 27 12:54:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 12828805 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EEF4C433FE for ; Wed, 27 Apr 2022 12:54:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235004AbiD0M5k (ORCPT ); Wed, 27 Apr 2022 08:57:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234973AbiD0M5i (ORCPT ); Wed, 27 Apr 2022 08:57:38 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E66814B407 for ; Wed, 27 Apr 2022 05:54:26 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id p12so2977947lfs.5 for ; Wed, 27 Apr 2022 05:54:26 -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=HqwVCZPmc4mOi+NYnTP0qy4thOKdsBFKwRmb5wY2Y64=; b=nb2mYuJus/SBWKqm+xwNcWbLPTPY8OHld/D92DhMZDeDDvXZ1O2qm8P9B2sPE7HjDT k5SHg44VprWmmOt+sVgtGU6Mvqtizzsg4DSIsVHcZL9IVKk5tOSDofqu5PBDw9lu0LwA C1exm9Ip7hWKEo9MTPlsPSUgZwB7SCxi2RXc6EI9jlHJpxkypBW4+13lBclvGZCwZced FO0WN2MofEnZsf6/lK8ffA5xmzxwH2iRFGk6FRzqG8/ej3fhSpIOElB7lXrdrQF/rf1g +rEGoG/hnrctD39363ggSuJ/kI4bI0bs9eXqL5U+S069tQjpikEKee23Q6aRMU6hKYrQ RFxw== 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=HqwVCZPmc4mOi+NYnTP0qy4thOKdsBFKwRmb5wY2Y64=; b=cDnUuzRtLICuzntkDuQ+nri2FirSCVdbTg88OqHL+DrjaNDiD2HBfP8NI/3MmSNv/U WlaE8HTtDkCwU3BtqgARSsZo2bStn1s3X3aqb57ZqtQfD0cgKEcYbLFtOZBw5WRoUU5h t7jw5eLHDzn3epc4N/STyRSuFFxe+oJ3MmWvWlt4Hlt+l9V7KK+9mvhu7c9hBNtIKaJs 2A2TEPdRn+jyzbo1wchA/ccTTm6IkL++2RT8jYfA+dVNRaSJbhYaNXTBLLcSLzwJgRcD UfVFg7kAdrLkMbSw12N6YSMYfp05sFccnJJ+pVlTMM3o4UWU5uTUi41Q4tv+aQo3KMv/ sIZw== X-Gm-Message-State: AOAM5322MuRlHOTmZVyPbfDs0KUXw0BeC2L7Qx+R1yEr4EizHhRNxW/N mpBrNuPeF7D9KgMXpBTdYjp/4w== X-Google-Smtp-Source: ABdhPJzIgbUxr5NmjM1/E6copsx350dNy6TDDaAQYsEjU2Ck+B9ydWxc5wsxXOyLjTiao6E5dAqaEw== X-Received: by 2002:ac2:4204:0:b0:464:f034:77a7 with SMTP id y4-20020ac24204000000b00464f03477a7mr19790889lfh.328.1651064065238; Wed, 27 Apr 2022 05:54:25 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id r9-20020a2e94c9000000b0024b4c2a1346sm1827445ljh.123.2022.04.27.05.54.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 05:54:24 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Amit Kucheria , Thara Gopinath , Rob Herring , Krzysztof Kozlowski , Michael Turquette , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, quic_tdas@quicinc.com Subject: [PATCH v5 0/3] arm: qcom: qcom-apq8064: add separate device node for tsens Date: Wed, 27 Apr 2022 15:54:20 +0300 Message-Id: <20220427125423.3166138-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Currently gcc-msm8960 driver manually creates tsens device. Instantiate the device using DT node instead. This makes the APQ8064 follow the IPQ8064 device tree schema (which is also closer to the way tsens devices are described on newer Qualcomm platforms). Compatibility with the previous devices trees is kept intact. Changes since v4: - Added thermal-sensor description to the qcom,gcc-apq8064 schema Changes since v3: - Fix a typo qcom,gcc-msm8060 -> qcom,gcc-msm8960 (noted by Krzyshtof) - Fixed indentation in the example (also noted by Krzyshtof) Changes since v2: - Remove patches merged by Daniel - Rephrase commit messages to emphasize that these changes make apq8064 follow ipq8064 Changes since v1: - populate child devices in gcc-msm8960 - add syscon to the gcc device tree node Dmitry Baryshkov (3): clk: qcom: gcc-msm8960: create tsens device if there are no child nodes arm: dts: qcom-apq8064: create tsens device node dt-bindings: clock: qcom,gcc-apq8064: split tsens to the child node .../bindings/clock/qcom,gcc-apq8064.yaml | 49 +++++++++---------- arch/arm/boot/dts/qcom-apq8064.dtsi | 25 +++++++--- drivers/clk/qcom/gcc-msm8960.c | 6 ++- 3 files changed, 44 insertions(+), 36 deletions(-) base-commit: 3123109284176b1532874591f7c81f3837bbdc17 prerequisite-patch-id: b5aad2b1e0db4e6d77d6a2faa2fe95acf274b3c8 prerequisite-patch-id: a0c7dcfc85a1eac4969530b73230f226006d6e1a prerequisite-patch-id: 0fbf70957a52fa87d038d08f9c599e314c69e7d5 prerequisite-patch-id: d22652b1f0e097692b670a0ed4c3f803875d1c5e