From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795515362; b=0nJmOe55Xm9SHPtAUrwcL08AnSgj5s2r59XXCUHVdBfJZegl35ykIu0FR87J88xmpXNp vf9VTvjjagVMzXRbfjv9M+kK3CvqH3o5hM+k0OQagDMPtB+fMrHFXZ7dnyVZ5Hyzh2I8g CpW1ehv2EveCR/b82B7rY+CTKurK3TCdjB3C0dGY/JBv3ty4tnrJRtnzmm1gTxh6ldMxY wqOTRauwRQAJVqqt0Ac32E5W2d1sRE7yoq6pFFZYkut4/Y4YIiraQRHF3AXKF9xbK4GJ6 /8BPjAtY+ouHKNqTHhjcn2jAFBqqVgsRLlxA/Z6VOufdPo4AgrlRlRygl9TwyzkX+fQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795515362; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=RrKfr9NI9CivHaA8pHjFoPu8oHwiXk5e1C77F3AOha0=; b=foe78bcXNIBeaQDJdZQv1HJHu+1VQH7fsHJsjRybf0QvFzCmKX6UWVxZeu8l34dc4rxg gkJJzn9DADqUqSSSOocVAzlU3kLgjmPK83gj5mRArnTM7+bxLeylIu6WbR9Fg+ecVqN2x QPtFbAPIavNNJUpRqmHt0dW6nB5hOwtbvXikt0J8rifg1CAU9O3Z/pDmikuF7dITNsdz4 eBHixYtEyQFy887m8tZcrzt73ZtHnFa/DxI490DkDzID0FAKyE2uwsvxP0HpAd7mrl8eK 4CCcwMeY25hzKKvX/5kP7UvkuPGdQ/8ZIOlS4X9jesXOUgngqz47KosHA8VT18ljLRA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=BEzQ6evf; arc=none smtp.remote-ip=209.85.208.178 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98FC9606A690 for ; Tue, 24 Nov 2026 10:16:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 98FC9606A690 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, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=BEzQ6evf Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-3adfb744fa6so3524161fa.2 for ; Tue, 24 Nov 2026 02:16:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1795515360; x=1796120160; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from:references :cc:to:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to:content-type; bh=RrKfr9NI9CivHaA8pHjFoPu8oHwiXk5e1C77F3AOha0=; b=BEzQ6evfQL/UWxcO1jMemegBaiItWgXt7K3ICkbaB+XVjQx3epFSxALyZnr3KEcsHE jmT41Y+/N5yi6qiRjAotOmDCy47AW8AmnIepEhRivFuxjhKXTwNLcNvRw6gyK0Blaj0B 16GA59m5BLke/QdOwHVVHRtC/49B+83NGxnh1loplB9EHrgNYfbZZiCp7kWgbUv8Q2fr FNGNFC3FuI17j1Q/ivCovmgN0OgfUCrt5CpEnr4bQmq7sKX8fqYSXlzNYIl5e4T9EF5v 0TK6L/KUhPXEbbukolilaEUgXwdFwYnfy5KpOpJdNUgAson4KD5hmJi0wS1e4PPwblQ/ HzTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795515360; x=1796120160; h=content-transfer-encoding:content-type:in-reply-to:from:references :cc:to:subject:user-agent:mime-version:date:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=RrKfr9NI9CivHaA8pHjFoPu8oHwiXk5e1C77F3AOha0=; b=rCT38Lp8hJe10scucMBo2OhcM/xO61bEDKdCAjaDfYh6luaPUVFb1Fo32YhsRry11P YXoXad9OZzYAuoXSnWC3YPhYkS2nedaq45kEOY7Vtq5Fy45rntM9/xM+9HgAMr+wwEVm P5sSI4fY+0fKNCHIBY9r22HnzMr42MEsL8DGyu4ICfoe+DkN+QzjoQ0OJgguxwTezxrN f3+SAp+RHFNtz/cHrxM4qaKxtDi5WP/akdju2aNxldv7MXK0WJZ+2x8dkC6ShxIaq1ZF 7Beqk87ZgfueDc3RQ3vkXrdKpa9OGwZvSZLpSCxMAbVGh2ClvxM8SSNy+ldBe8+NeXsR 7ZIw== X-Forwarded-Encrypted: i=1; AL+hErFuc44k7r0NnADkMAupd0SMS6WAJLu8hsAzL55JPVY+Xx4ZTG2emg/p3+fhJD8fQI5zLy1WoUVk8STZTUc=@vger.kernel.org X-Gm-Message-State: APuU4Z8HMQzBlGdEsfovlcMXl/Vh8FCAxI1pjFMBTS9FKC9+YTIpQ9Mc Dd/OLFcXfxRgXM1Gfq3k3/w6ZhbJDS6HtnfzJmwUSz1miyOxAynZWkvQoZR6IInMn2k= X-Gm-Gg: AZFdTZc6caZQD5uQCh43D0j0aJWpVsyn5PscFLb2FoAjhXDjVd4sAebj7ANQoL1IH/R t40gIpAxzKzuAKzcobDfu678YdgwDQDohQEjTnmoL0UWARByTKkI+mjdpcK4MksdeTuTnBDXxRG WJKqgL23cJ8RHo11doJKbdnhqMQpRFaBZrY3uq51TXbHfyzdvIV37gjLxm7oI2f48HwDdb8W6u2 thDt64ZCASLSP4NXeS+NNPI9CIZ66Dzia3YzbKPuLLbYXtHoJ0IGnM8JsouKttxzzID6/lgzT06 FG/Vm0RH3HvUPVrB1O7c7qpuvf3QbjK4MzriL8Owcdm2ZwIePewK+sNUo8lQBJNBhC8qpfUxhwj 3x4GoO5UhYYVzg+LCZPr67Pz7hrPAWvnZNwI+V2GwTyouI2efGirZOa59RbbiaNuAEDSXKEe3bZ ni0QN4C2e6TP5uzeLwC5ulOtRuRNstG3DG6y+nQ2uBDj11Kuu0fMAP41xtjxub+o3+MAyTjcRKV /G2V2r4X+Ly7M9FmF9v361SLCtdhn5GGiQ6eZguwMMBlXb80mHVQwOLIByCjZeBfcodfZHlZGMw 23QlFCpqHV+oQR0rl+ab27Gg/eWqISMVi9cYjSN/5JZTIjD/Ox6X/BbpA6k6Rhz26oS6WN62/cQ 2HLBfNvg= X-Received: by 2002:a05:651c:c011:10b0:3ac:dfad:319d with SMTP id 38308e7fff4ca-3ae7f9d6f4bmr30282431fa.1.1795515359820; Tue, 24 Nov 2026 02:15:59 -0800 (PST) Received: from [192.168.1.101] (91-159-24-186.elisa-laajakaista.fi. [91.159.24.186]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-3ae8044e211sm38976231fa.2.2026.11.24.02.15.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Nov 2026 02:15:59 -0800 (PST) Message-ID: Date: Tue, 24 Nov 2026 12:15:58 +0200 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 3/7] dt-bindings: phy: qcom,sm8150-csi2-phy: Add SM8150 CSI2 PHY To: Andrew Gigena , Loic Poulain , Robert Foss , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bryan O'Donoghue , Mauro Carvalho Chehab , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Abel Vesa , Andi Shyti , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-phy@lists.infradead.org References: <20261106-sm8150-v7.4-rc1-camss-v3-0-0103e8a0bbcd@andrewgigena.dev> <20261106-sm8150-v7.4-rc1-camss-v3-3-0103e8a0bbcd@andrewgigena.dev> From: Vladimir Zapolskiy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Andrew. On 11/11/26 01:52, Andrew Gigena wrote: > Hi Vladimir, > > Thanks for the review, replies below. > >> Please double check if SM8150 CSIPHY v1.1 is capable of C-PHY: > > The hardware can do combo mode, but the driver only implements D-PHY and "The hardware can do ..." is necessary and sufficient, when you add a device tree binding description, anything else is irrelevant. > returns -EOPNOTSUPP for C-PHY, so the binding stays D-PHY. Would you > like it documented as "not yet supported" anyway? You may add a short note to a commit message, but definitely not to the hardware documentation. Hardware is not dependant on driver status. > >> D-PHY combo mode is also supported on the SM8150 CSIPHY apparently, >> it shall be reflected in a way that two endpoints could be present. > > Split mode is described in the binding, but the driver rejects it, so it Don't look at an incomplete driver at all, when you provide hardware description. > cannot be used today. Is it fine to keep it out until the driver > supports it? This change provides hardware description only, and anything related to one or another driver is irrelevant. However since downstream driver provides support of some hardware features, it tells about the hardware, and therefore this information should be represented in the dt bindings documentation. >> In downstream camcc-sm8150.c, PLL0 is on MX, and PLL0 supplies CSIPHY >> clocks. I believe MX shall be added to the list of 'power-domains'. > > You are right that PLL0 uses the MX corner in camcc, but that corner is > internal to the clock controller, not a power domain of the CSIPHY. The Formally yes, but probably CAMCC driver should not enable the MX power domain, if I'm not mistaken, there were arguments against it and to delegate such logic to a clock consumer, which is CSIPHY here. > PHY only consumes the top GDSC; SM8150 uses legacy GDSCs, while on X1E > MX is a real power domain attached by the PHY driver. Here someone from Qualcomm may help to get better understanding. If MX is truly not needed, you may add an exception for SM8150 CSIPHY dt binding description. >> Still it would be preferred to get 'vdda-0p9-supply' and >> 'vdda-1p2-supply' properties. > > Renamed in the binding on v4, the driver and the DTS, matching the X1E naming. > Good. >> In general the change looks good, thank you, but likely it can be >> embedded into the scheme for X1E. > > Clocks, register offset, power domains, lane table and timer all differ, > so folding it in would need if/then blocks for almost every property. > Would you still prefer that, or is a separate schema acceptable? > I believe it is good enough to embed SM8150 CSIPHY dt bindings into X1E CSIPHY dt bindings. These two pieces of hardware are non-compatible, but they do belong to one class of devices and can be described by the same dt binding documentation. -- Best wishes, Vladimir