From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A0C030FC37 for ; Tue, 9 Sep 2025 07:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757403253; cv=none; b=Ra+XxmMdkGy3RHujH3afy2fkn0EffZ2Nk4rO5vwG0pIGAqmYbJiYN2MSwV+yssB1UgA7/EeOfZP9N/4IjHaipXhz5UZck5AQZqPSmIbeM/hYzB0CDl/bp34vYFMdbUM6YnIeLlY3rqlE1bRlyoElmsYETDOsktSwB7LWjlnP3F8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757403253; c=relaxed/simple; bh=eQ/FyPc5Zgfvvoi2dwn7X4THjFGPUOmpjmW0J4V+O04=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BK+pa1GqUsrVvyl0cTsoV75v/dokb3vqk5MVldAYJSdF0KSu68M+GxFJ6ltRvtA1OqwbMds/iqs1iWneYFelzthDV7y+3mdDMitOZDQ/iL2i8+1yhybFoBO1tdq+2UadiaXC/ZXH2aCoQ3EVviIa8Yn8bP3e2JCyKSwZrZlvNN4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=G6WHddid; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="G6WHddid" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-62733e779bbso2185218a12.1 for ; Tue, 09 Sep 2025 00:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1757403249; x=1758008049; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jOv6YZzImpUIBG/mr0NgF5IqW+E610SMfxEFIyqnXkU=; b=G6WHddid/+an2yB4DGyKHqblvoyKF/MGZ6+yYZzGq7jIMQaNsnqVOMu3IepZ+UPF5D bEeyvvU/z1hP2M3f/W3eQjjTayM4tNVfbscRBwtjfNlj0Umf4rF4qlD0Kc23nOpOKyME 5tgWsDSNKFLRqc0QXwHor0jcsoesz6QgIfxysc4PDLZA6l2dhggOLkriDc48I8f2whJa MluSc2SUgRKbjznhJwp9yyC70v3EGDMPe8UseaiDtJT9W9zypyIJD0gCi1F5lADsVE4e QNG7dWVbQq6Kvj0E4y3GyXUHg9WUOGCsKWezEeFlr3o5oP2F9iR9PkJjCvH/hkx3CmAH o9Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757403249; x=1758008049; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jOv6YZzImpUIBG/mr0NgF5IqW+E610SMfxEFIyqnXkU=; b=MSDRHUAhKSpnDSlvXbZoYe2Y1qR+mi8fIvyyN52VakXWp283QIadhgixShNIOS6+HA trijK7dZf1cg3IfPHb1PtwzcDgU0bMaHedIgEcaHcxeeVfh66t6dbPsJv3+hB66kSM6D WcCLqRiXXhD0Zr7N+9TaEUI3iCs3fR8KlctGp4EbLD2fU4HfggtPRwFOIIt6Qq9dkmV3 YSgmaf+1hMXcPPkcpU0H/83B/L7R7xY324EAjDnskycMDmbdE8YtAbvV77MGAZ9+NvuD OdvvW5gvJedQ4i28z5GReJBWMvSA/YFCqGdKG/xUm1bWe/3gL/97MdHbHbvcwWn8h2LN Ha3Q== X-Forwarded-Encrypted: i=1; AJvYcCV4+AC6c29z+jW+kIcnDEvlsV/S+mFTDzI+fJ8+D2CEITaxDHfP1xs7r1MYb1Mb036/HzOYktI3Kz5g@vger.kernel.org X-Gm-Message-State: AOJu0Yx1rwn52QwfxIgBUWP5b4l6sogQoSjqVCGdFUmd4BCTg0t2HFSm Bw+OfXSWksv6aNhQXNpCrwRrGAgXaOD3xbup/RP1P50G27UyOBSVgE1Lf0WRSEBFYpPgFyI0uJj +qpVE X-Gm-Gg: ASbGncunlptDruB6JA04vBsuY1JXBWbMP8y6ZglNDjVLDthnXw3GEKBekdygm6tYdfR bctSTPKvPoDtGSXofjkuRG+VzL7HH0+Fgueq6kDtnAuy6rJrGkMv0wq5tZ1dPinwuoQZQqCzcnF RFxi/+b3cWCta8TfVnn3WNuokNmK/a7WjYVkYahKibs618y8XMrFdexYfzLegevYovkvr4xDAT0 0A8/MCRcU4LmnHcJxEhCHlPouXiUgnR+x9KXGcqTaf08mB/aSzMnBLEdaBkK6L63n+rj5r0YEg5 iirqMCnBQg5m77Vi1WNGcEwoEAGzpw/DDBbP8571U5LEyhGuRzJYSe6+ZNHkpnyOg5NTZYWgbLF P4s7WDUG3ZeEvxvodmFyEeMKTh85bJLHIpA== X-Google-Smtp-Source: AGHT+IEFgIuQ+MAL0AXInCJzlXHyFtWrT8/3RqheCs0ENRxVF9nih4Vnn0GqZYmz9QaRd74+9eyp5Q== X-Received: by 2002:a05:6402:3814:b0:620:1030:138d with SMTP id 4fb4d7f45d1cf-6237edb1ca2mr9611565a12.22.1757403246636; Tue, 09 Sep 2025 00:34:06 -0700 (PDT) Received: from hackbox.lan ([86.121.170.194]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-62c6a264285sm226976a12.2.2025.09.09.00.34.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Sep 2025 00:34:05 -0700 (PDT) From: Abel Vesa Date: Tue, 09 Sep 2025 10:33:33 +0300 Subject: [PATCH v3 1/3] dt-bindings: phy: qcom-edp: Add missing clock for X Elite Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250909-phy-qcom-edp-add-missing-refclk-v3-1-4ec55a0512ab@linaro.org> References: <20250909-phy-qcom-edp-add-missing-refclk-v3-0-4ec55a0512ab@linaro.org> In-Reply-To: <20250909-phy-qcom-edp-add-missing-refclk-v3-0-4ec55a0512ab@linaro.org> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Dmitry Baryshkov , Konrad Dybcio , Sibi Sankar , Rajendra Nayak Cc: Johan Hovold , Taniya Das , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa , stable@vger.kernel.org X-Mailer: b4 0.15-dev-dedf8 X-Developer-Signature: v=1; a=openpgp-sha256; l=2004; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=eQ/FyPc5Zgfvvoi2dwn7X4THjFGPUOmpjmW0J4V+O04=; b=kA0DAAoBG19EyQCVFVYByyZiAGi/2GKg2tT6epSE41heO9EdESvI1fzKKIrV4s8MTff79i2h7 IkCMwQAAQoAHRYhBE7z7hFOeo8qyqfRuBtfRMkAlRVWBQJov9hiAAoJEBtfRMkAlRVWX80P/1tF k2nco2jZ5kwIf66I3/oea97Yez1B5JxFKTF70e0hrnFvMIquCzh2ojmI8EkXUm3Wcx2QJ5FzBHC WjpCaSGuLYdy79JaHop5AHrqJqyLsWwi+JnWS298L+P37a+zAwiyA4wGdVu6tgcyXwj9AofiOhT v7LJZSHUIXCVBoYnVXtucHYG0liLkdU2K3LnVCmkEeNp5DB5h2cdNgRmgQP6soH/jyb4B9c4+l/ gRpEoebWv+EDMUOLz6jnLozOgzAq3uXGVZCpzO5DSb+v9zCuaVUyCYFp0DdN5pXR00Uvh86catt QHpdrD5W8exgRT1r0dOYZBTXyCVpEyiLC2tyC//2fHuiILOhaGPe+8+nv6IspBd+78t4zALwlX/ DlIc7mCQzpXqfhQZbFQWTAVzTWhsbbU1BRkEFvKOt1VcfeG53i+r0IPlRnoWY468ohostUl2y8S l172uY8CEGzMyKGv8QIvys2wZZ607zDWof0Mzj+46VMfSuNAiiFTE6P0YJQE8IeJ5eoe+XfdSsw Mx591B6mR3MwmPv324Iw1dYh3NhiLJPbSHT/9ezJzH3vlrU0FTyN+lbqKt5cuoYwSsIupGva91F FsRoWaBh28do8Bn+5sBW8Z43+TFL7jcwdR0+St/sTXNMOOjLvGfkYi+Il1J3rGugTqBJlE37gCP 2aIJl X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE On X Elite platform, the eDP PHY uses one more clock called ref. The current X Elite devices supported upstream work fine without this clock, because the boot firmware leaves this clock enabled. But we should not rely on that. Also, even though this change breaks the ABI, it is needed in order to make the driver disables this clock along with the other ones, for a proper bring-down of the entire PHY. So attach the this ref clock to the PHY. Cc: stable@vger.kernel.org # v6.10 Fixes: 5d5607861350 ("dt-bindings: phy: qcom-edp: Add X1E80100 PHY compatibles") Signed-off-by: Abel Vesa --- .../devicetree/bindings/phy/qcom,edp-phy.yaml | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml index eb97181cbb9579893b4ee26a39c3559ad87b2fba..bfc4d75f50ff9e31981fe602478f28320545e52b 100644 --- a/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,edp-phy.yaml @@ -37,12 +37,15 @@ properties: - description: PLL register block clocks: - maxItems: 2 + minItems: 2 + maxItems: 3 clock-names: + minItems: 2 items: - const: aux - const: cfg_ahb + - const: ref "#clock-cells": const: 1 @@ -64,6 +67,29 @@ required: - "#clock-cells" - "#phy-cells" +allOf: + - if: + properties: + compatible: + enum: + - qcom,x1e80100-dp-phy + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + minItems: 3 + maxItems: 3 + else: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + minItems: 2 + maxItems: 2 + additionalProperties: false examples: -- 2.45.2