Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp701319pxm; Thu, 3 Mar 2022 02:55:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXah/ZYX8dHeT2IfMvRii0SzcMIqLdhbtqFjJBNir/hLtN5m/GoteGM6r0pCrTG9dv81gP X-Received: by 2002:a05:6402:d06:b0:412:eafd:8b9a with SMTP id eb6-20020a0564020d0600b00412eafd8b9amr34369519edb.278.1646304949677; Thu, 03 Mar 2022 02:55:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646304949; cv=none; d=google.com; s=arc-20160816; b=xNhAunp3DSm4pt8/QWp0/NQCDgujNlJt1D3/2AZmlqqr9C8TItL6DFGgw3cnqpOl+c GhBaJX+6SDzZyOCcK4L2YuhUpBE7VL6TaM92Y05iDUQ3fdhVc6Hi1FXDrDgzHYEjtQ77 Q9ijy0j8G/mBM9ZoF8ftcqhvi8D8a8Qk9e+jfTp1MX0pnUEFjPkkHX/LkrdDPMugVVoB 41iwP1iY0epHeoM7qPGEvCbIYOuDUh0DT5XfuXnirmq6XSGxyeZl+PKaqq/LFH2xktOe TUBJ144mJIgNNmoVDk4BXbwlbcVsIifmpuY6ScK3RJf71D73DwCy71yC2JBmpjZe3nBd WrNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JraoEzfEu6BVdZPY22b9hr2HRvi9Lg4wAD5QnaTlQvQ=; b=q7drHiLhpaBHrdSsyLsehLpMDYQD5WF3Q5hHdyjO9/P6E90HbFR/AJwC09HHD7PUCd SXXIn2ci0HADyZR7ChUwXsoPAnekLHbpQTX75t9VX0clsza34PUsa0jK8z3PqjOcjI5c ZfZU2SpfHd+q8mmO+Uqz6KD+G4tFtnIXpER3nanpFrBtDkn2Eh0QpciGbEd1nQo2fU0o F56njR0t3Mdl86S6mcf9gtgzS5UHiJPZzCMpNH1FSgEKqpmW2Rmkvt2D7Jo9FRkJaQ29 UQ0fYbyb2VSZQIiD2CMihgfNSQ4XgHeFrkSbtDN/sm5r6nz4E5fGtOroxzJvnMdMsk0T F3kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=Uzu5ikcd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z16-20020a05640240d000b00415c2a4fdfdsi1182880edb.503.2022.03.03.02.55.26; Thu, 03 Mar 2022 02:55:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@earth.li header.s=the header.b=Uzu5ikcd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231680AbiCCIul (ORCPT + 99 others); Thu, 3 Mar 2022 03:50:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230378AbiCCIui (ORCPT ); Thu, 3 Mar 2022 03:50:38 -0500 Received: from the.earth.li (the.earth.li [IPv6:2a00:1098:86:4d:c0ff:ee:15:900d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 914F4175871; Thu, 3 Mar 2022 00:49:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=earth.li; s=the; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=JraoEzfEu6BVdZPY22b9hr2HRvi9Lg4wAD5QnaTlQvQ=; b=Uzu5ikcdaD2LeKuz7YlSfqL2Rd zHmlzoo/7Rp94sqmn55Y/prB0TYZe/9B8ocnsqcxOeflHQ8BQFcwYU9Gc8A17OfgljU5DWsREfzox pGqr0j3osNbyhYjud8eLurnfnoAsSq8AuhFCMVsARC5/MCGJbMIFgkKVD3/YvaV0X7cukuL6khjr4 dCSs9kLBkqv3FYqdxHTWdgWYUzFyWA5ucAcuVCJeYbJEdGipec3/oEUetYU1CVBAaG6F9ZOxATauF 2yq9GIlMYgqieGSRGmOpttxgLxwTtZtU9DDm/9EPTz+H1jIU9cGhwPRK1+AvYnxH50KelgKX3eGWo ofb6PtZA==; Received: from noodles by the.earth.li with local (Exim 4.94.2) (envelope-from ) id 1nPh9U-00287t-A6; Thu, 03 Mar 2022 08:49:36 +0000 Date: Thu, 3 Mar 2022 08:49:36 +0000 From: Jonathan McDowell To: Ansuel Smith Cc: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Philipp Zabel , Taniya Das , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 00/15] Multiple addition and improvement to ipq8064 gcc Message-ID: References: <20220226135235.10051-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220226135235.10051-1-ansuelsmth@gmail.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 26, 2022 at 02:52:20PM +0100, Ansuel Smith wrote: > This is an attempt in making the ipq8064 SoC actually usable. Currently > many feature are missing for this SoC and devs user off-the-tree patches > to make it work (example patch for missing clock, patch for cpufreq > driver, patch to add missing node in the dts) > > I notice there was some work in modernizing the gcc driver for other > qcom target but this wasn't done for ipq806x. This does exactly this, we > drop any parent_names stuff and we switch to the parent_data way. We > also drop the pxo and cxo source clk from gcc driver and we refer to the > dts for it. > > This also add all the missing feature for the nss cores and the > cryptoengine in them. It does also introduce the required flags to make > the RPM actually work and NOT reject any command. There was an attempt > in declaring these clock as core clock in the dts but this ends up in no > serial as the kernel makes these clock not accessible. We just want to > make the kernel NOT disable them if unused nothing more. > > At the end we update the ipq8064 dtsi to add the pxo and cxo tag and > declare them in gcc and also fix a problem with tsens probe. FWIW, series tested on my RB3011. No regressions, tsens driver now correctly loads. Tested-by: Jonathan McDowell > v6: > - Add more info about the changed define > - Fixed wrong definition for pxo/cxo parent map > v5: > - Drop patch removing fixed clk > - Use name in parent_data to keep compatibility with old dtb > - Fix error in the documentation commits > - Keep old copyright for gcc documentation > - Fix an error with the rcg floor ops > - Set nss clk based on the device compatible > v4: > - Drop drivers in all the patches. > - Introduce floor ops for sdc > - gcc.yaml to gcc-other.yaml > - gcc-common.yaml to gcc.yaml > v3: > - Rework Documentation with Rob suggestions > v2: > - Fix error from Rob bot. > - Add additional commits to make qcom,gcc.yaml a template > - Squash parent_hws patch with the modernize patch > - Create gcc_pxo instead of using long define. > > Ansuel Smith (15): > dt-bindings: clock: split qcom,gcc.yaml to common and specific schema > dt-bindings: clock: simplify qcom,gcc-apq8064 Documentation > dt-bindings: clock: document qcom,gcc-ipq8064 binding > clk: qcom: gcc-ipq806x: fix wrong naming for gcc_pxo_pll8_pll0 > clk: qcom: gcc-ipq806x: convert parent_names to parent_data > clk: qcom: gcc-ipq806x: use ARRAY_SIZE for num_parents > clk: qcom: gcc-ipq806x: add additional freq nss cores > clk: qcom: gcc-ipq806x: add unusued flag for critical clock > clk: qcom: clk-rcg: add clk_rcg_floor_ops ops > clk: qcom: gcc-ipq806x: add additional freq for sdc table > dt-bindings: clock: add ipq8064 ce5 clk define > clk: qcom: gcc-ipq806x: add CryptoEngine clocks > dt-bindings: reset: add ipq8064 ce5 resets > clk: qcom: gcc-ipq806x: add CryptoEngine resets > ARM: dts: qcom: add syscon and cxo/pxo clock to gcc node for ipq8064 > > .../bindings/clock/qcom,gcc-apq8064.yaml | 29 +- > .../bindings/clock/qcom,gcc-ipq8064.yaml | 76 ++ > .../bindings/clock/qcom,gcc-other.yaml | 70 ++ > .../devicetree/bindings/clock/qcom,gcc.yaml | 59 +- > arch/arm/boot/dts/qcom-ipq8064.dtsi | 8 +- > drivers/clk/qcom/clk-rcg.c | 24 + > drivers/clk/qcom/clk-rcg.h | 1 + > drivers/clk/qcom/gcc-ipq806x.c | 649 +++++++++++++----- > include/dt-bindings/clock/qcom,gcc-ipq806x.h | 5 +- > include/dt-bindings/reset/qcom,gcc-ipq806x.h | 5 + > 10 files changed, 685 insertions(+), 241 deletions(-) > create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-ipq8064.yaml > create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-other.yaml > > -- > 2.34.1 J. -- Web [ Even the Evening Herald slags me off. ] site: https:// [ ] Made by www.earth.li/~noodles/ [ ] HuggieTag 0.0.24