Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2204774lqt; Mon, 22 Apr 2024 04:51:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6/gblDkonSjSSQyNRxB6Mw4PQ3TT+8rdUyyB7gH6L1QRyE0l3FUu2uUT9ZfnFDHbzPVr2UtnxioDII+uTlWuMekJxkN6J4lrvUw7iPg== X-Google-Smtp-Source: AGHT+IHM681Zvfl4KBWWHW8KcA8Yot0dLUBSoLz1e8ThDSPQChFtDXeSvnuzUw41150Q0cIKYLRr X-Received: by 2002:a17:906:f8d9:b0:a57:2cef:89c0 with SMTP id lh25-20020a170906f8d900b00a572cef89c0mr664948ejb.67.1713786668673; Mon, 22 Apr 2024 04:51:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713786668; cv=pass; d=google.com; s=arc-20160816; b=QVeCfmGvXA+CJudPwHT4QsAaIpsXmv0g6kbe0IfoVFbcw5tzpMMiZxfsl+2I9HEfi+ xbe2M97REPaYN+nE9On4gwJzbpWX//lZq8mUD7vTj071fszgI7RM951k2DUhxSZ9RivE L4u2kkNF28Vj+q1nORs917n4gIUw8hfiZV+9KH+iZxgej8Kcwq+dXo5eUa9nrFnPPa2U UgVgv3RmNR4dKjrUUYMGF7L3IoiZxCikmo7mJJRFn7kv+aYkjUEBuwjCjz4o4lDfyBwa mpdRANuMmiweFIc3mKH/ty/BlMweQKQuj1J4w6GPAHR5FY+gM9D9XsV9XTKC8rgZIWi7 LC0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:message-id:references:in-reply-to:cc:to:from:mime-version :list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:date:dkim-signature; bh=4BJlG7EIdMcZ7iCJQUFsHtEri/19DCgiT+UBj4DTLTQ=; fh=9enNaQ6rupAF8xaxb8B3wWJpuPopfhkgeEQa56mFxDY=; b=jbrcaceoRIPNoav7H9Tk/UKhDoe0FPaITGsEeWi/Ky/tkKT+HYehgqnkngPUTCPQxE QnUVewtHGJUe8RCLglk1ghHmYUoFR4exz1KnoNMN0mLXRW+mstaw0LzghHCxx9mn1i5J H3ZGsT3iPSqS4lN6bX4xEJE4LD1NRYlXqIJWYRdacGmfSeVb9/HFmOCzTA63suzPw3j/ X6igc2WA70ONRI7daVWw+zQSDCr08PiLVLYjOom5Tiz8PvoxkAK7ZxqgJ2fSCoDgUo4k zNKRfdr5Oh65wHXXBrXbVuG9LDOZ4Fagg7ZHnu3/jENqlFR4r3rb+msY0TSbL1ZPKHIb +t0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bpEmg+5m; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h8-20020a170906110800b00a55ad0eb8ccsi1960075eja.52.2024.04.22.04.51.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 04:51:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bpEmg+5m; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 639701F24213 for ; Mon, 22 Apr 2024 11:51:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FE9A14A4CE; Mon, 22 Apr 2024 11:50:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bpEmg+5m" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39BCE146A9A; Mon, 22 Apr 2024 11:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713786628; cv=none; b=PQP8WnGsx/apw0FbyXz/pr7j1YwyWkShSq9h86M71h3/WZvNofPfCfa2Hve0qjVbsE1ECl/jxQxM42nOG2OhXfxotOcVDb3wlk0mhQZOV8xFL0a11T9bRF94AhPUCiWYIUPS6OW9Y1cxAGVWlqIcgH1GW3cnNqnK+d9xMlBcCfg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713786628; c=relaxed/simple; bh=zIsEFBhzD+ZLEO1S9a4Cy+7IngF0zRAtRSaUbuQMgQ0=; h=Date:Content-Type:MIME-Version:From:To:Cc:In-Reply-To:References: Message-Id:Subject; b=MPYydDTES9kHxbuKfr3f87g2h4kbnpH7plMTkrGoKtBfdSAjcdKIAJpUAdPFW7Dtxs47qqbD6j6GcG07HlWtdykpaQfwJRstAx6MIyaZqaTmDxa9puxWeEPHea2g3w4EsXePPdJCDQvpdElAJYzPjRMFdCrhtNDgUhHEl2q3c2Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bpEmg+5m; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74B58C32782; Mon, 22 Apr 2024 11:50:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713786627; bh=zIsEFBhzD+ZLEO1S9a4Cy+7IngF0zRAtRSaUbuQMgQ0=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=bpEmg+5mn+onj3b66rqHoJKYf13F+mBQn6j56G+3+iyAuuian6f5TSaJcbAPMG1JX h3ICYktXKg5hhzHsUobwLyzm46KYj5mn37dGf9FFoWTDdqK+lPjdhhAvKVDDOhPN4b yIEc4HifqRQGw1bVR8PnS62Q7maQYpNVXDERrDhq3RmtCGKLlD4Psr7CpOe8IVeRId chXylBwNAE9yPunHZywdrdU4Jabixsg0lSV58u5n0ZWZfu0RGQ3twcBvfI+6Kre1oz 0Nly5z40HFKG2t7ZGyopobEAg/fpFPLCxZLCZJMz0r0asFp+IwUB4vZfgCqVQB7HHe Q8jhbsXjv6P4Q== Date: Mon, 22 Apr 2024 06:50:26 -0500 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Rob Herring To: Neil Armstrong Cc: Conor Dooley , Vinod Koul , devicetree@vger.kernel.org, Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-msm@vger.kernel.org, Bjorn Andersson , Krzysztof Kozlowski , Dmitry Baryshkov , Konrad Dybcio , Kishon Vijay Abraham I In-Reply-To: <20240422-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v3-0-799475a27cce@linaro.org> References: <20240422-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v3-0-799475a27cce@linaro.org> Message-Id: <171378646293.749182.6639047187760279527.robh@kernel.org> Subject: Re: [PATCH v3 0/3] arm64: qcom-sm8[456]50: properly describe the PCIe Gen4x2 PHY AUX clock On Mon, 22 Apr 2024 10:33:10 +0200, Neil Armstrong wrote: > The PCIe Gen4x2 PHY found in the SM8[456]50 SoCs have a second clock named > "PHY_AUX_CLK" which is an input of the Global Clock Controller (GCC) which > is muxed & gated then returned to the PHY as an input. > > Document the clock IDs to select the PIPE clock or the AUX clock, > also enforce a second clock-output-names and a #clock-cells value of 1 > for the PCIe Gen4x2 PHY found in the SM8[456]50 SoCs. > > The PHY driver needs a light refactoring to support a second clock, > and finally the DT is changed to connect the PHY second clock to the > corresponding GCC input then drop the dummy fixed rate clock. > > Signed-off-by: Neil Armstrong > --- > Changes in v3: > - Rebased on linux-next, applies now cleanly > - Link to v2: https://lore.kernel.org/r/20240322-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v2-0-3ec0a966d52f@linaro.org > > Changes in v2: > - Collected review tags > - Switched back to of_clk_add_hw_provider/devm_add_action_or_reset to maintain compatibility > - Tried to use generic of_clk_hw_onecell_get() but it requires to much boilerplate code > and would still need a local qmp_pcie_clk_hw_get() to support the current #clock-cells=0 > when exposing 2 clocks, so it's simpler to just return the clocks in qmp_pcie_clk_hw_get() > - Link to v1: https://lore.kernel.org/r/20240319-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v1-0-926d7a4ccd80@linaro.org > > --- > Neil Armstrong (3): > arm64: dts: qcom: sm8450: remove pcie-1-phy-aux-clk and add pcie1_phy pcie1_phy_aux_clk > arm64: dts: qcom: sm8550: remove pcie-1-phy-aux-clk and add pcie1_phy pcie1_phy_aux_clk > arm64: dts: qcom: sm8650: remove pcie-1-phy-aux-clk and add pcie1_phy pcie1_phy_aux_clk > > arch/arm64/boot/dts/qcom/sm8450.dtsi | 8 ++++---- > arch/arm64/boot/dts/qcom/sm8550-hdk.dts | 4 ---- > arch/arm64/boot/dts/qcom/sm8550-mtp.dts | 4 ---- > arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 8 -------- > arch/arm64/boot/dts/qcom/sm8550.dtsi | 13 ++++--------- > arch/arm64/boot/dts/qcom/sm8650-mtp.dts | 4 ---- > arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 4 ---- > arch/arm64/boot/dts/qcom/sm8650.dtsi | 13 ++++--------- > 8 files changed, 12 insertions(+), 46 deletions(-) > --- > base-commit: f529a6d274b3b8c75899e949649d231298f30a32 > change-id: 20240319-topic-sm8x50-upstream-pcie-1-phy-aux-clk-4b35169707dd > > Best regards, > -- > Neil Armstrong > > > My bot found new DTB warnings on the .dts files added or changed in this series. Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments. If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date: pip3 install dtschema --upgrade New warnings running 'make CHECK_DTBS=y qcom/sm8550-hdk.dtb qcom/sm8550-mtp.dtb qcom/sm8550-qrd.dtb qcom/sm8650-mtp.dtb qcom/sm8650-qrd.dtb' for 20240422-topic-sm8x50-upstream-pcie-1-phy-aux-clk-v3-0-799475a27cce@linaro.org: arch/arm64/boot/dts/qcom/sm8550-qrd.dtb: clock-controller@100000: clocks: [[41], [42], [43], [44, 0], [45, 0], [45, 1], [45, 2], [46, 0]] is too short from schema $id: http://devicetree.org/schemas/clock/qcom,sm8550-gcc.yaml# arch/arm64/boot/dts/qcom/sm8550-qrd.dtb: clock-controller@100000: Unevaluated properties are not allowed ('clocks' was unexpected) from schema $id: http://devicetree.org/schemas/clock/qcom,sm8550-gcc.yaml#