Message ID | 20231026105345.3376-1-bryan.odonoghue@linaro.org |
---|---|
Headers | show |
Series | Add sc8280xp CAMCC bindings and driver | expand |
On 10/26/23 12:53, Bryan O'Donoghue wrote: > Add the sc8280xp CAMCC driver which follows the sdm845 CAMCC lineage > with additional CCI and IFE blocks and more granular clock parentage. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> > --- [...] > +static struct gdsc titan_top_gdsc; > + > +static struct gdsc bps_gdsc = { > + .gdscr = 0x7004, > + .pd = { > + .name = "bps_gdsc", > + }, > + .flags = HW_CTRL | RETAIN_FF_ENABLE, This should really be HW_CTRL_TRIGGER from [1] and then downstream uses cam_bps_transfer_gdsc_control and cam_bps_get_gdsc_control to control hw (fast) or sw (normal) mode similarly in drivers/cam_icp/icp_hw/ipe_hw/ipe_soc.c for IPE [...] > + /* > + * Keep camcc_gdsc_clk always enabled: > + */ > + regmap_update_bits(regmap, 0xc1e4, BIT(0), 1); /* Keep camcc_gdsc_clk always enabled */ regmap_update_bits(regmap, 0xc1e4, BIT(0), BIT(0)); [1] https://lore.kernel.org/linux-arm-msm/20230923115008.1698384-4-abel.vesa@linaro.org/ Konrad
On 10/26/23 12:53, Bryan O'Donoghue wrote: > Add in CAMCC for sc8280xp. The sc8280xp Camera Clock Controller looks > similar to most of the sdmX, smX and now scX controllers. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> > Suggested-by: Konrad Dybcio <konrad.dybcio@linaro.org> > Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
On 26/10/2023 12:21, Konrad Dybcio wrote: >> + .flags = HW_CTRL | RETAIN_FF_ENABLE, > This should really be HW_CTRL_TRIGGER from [1] > > and then downstream uses cam_bps_transfer_gdsc_control and > cam_bps_get_gdsc_control to control hw (fast) or sw (normal) mode > > similarly in drivers/cam_icp/icp_hw/ipe_hw/ipe_soc.c for IPE I'm happy to do such a conversion if said patch hits -next, qcom-next or clk-next before this patch, otherwise I'd rather not gate this driver on stuff that's not queued anywhere. There's alot of CAMSS stuff driver/compat/dtsi that is gated on having the CAMCC upstream, effectively all of the CAMSS stuff for sc8280xp. Fair ? --- bod
On 10/26/23 13:34, Bryan O'Donoghue wrote: > On 26/10/2023 12:21, Konrad Dybcio wrote: >>> + .flags = HW_CTRL | RETAIN_FF_ENABLE, >> This should really be HW_CTRL_TRIGGER from [1] >> >> and then downstream uses cam_bps_transfer_gdsc_control and >> cam_bps_get_gdsc_control to control hw (fast) or sw (normal) mode >> >> similarly in drivers/cam_icp/icp_hw/ipe_hw/ipe_soc.c for IPE > > I'm happy to do such a conversion if said patch hits -next, qcom-next or clk-next before this patch, otherwise I'd rather not gate this driver on stuff that's not queued anywhere. > > There's alot of CAMSS stuff driver/compat/dtsi that is gated on having the CAMCC upstream, effectively all of the CAMSS stuff for sc8280xp. > > Fair ? Fair Konrad
On 26/10/2023 11:53, Bryan O'Donoghue wrote: > v4-resend: > - Remove erroneous "--in-reply-to" from git send-email > > v4: > - Resend of v3.2 addendum as v4 for tooling purposes > > Link: https://lore.kernel.org/linux-arm-msm/20231024093919.226050-1-bryan.odonoghue@linaro.org/ > Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/qcom-linux-clk-for-6.7-camcc-sc8280xp-v4 Ping. This currently blocks the example in the yaml here -> https://lore.kernel.org/lkml/20231110-b4-camss-sc8280xp-v5-1-7f4947cc59c8@linaro.org/T/ Which in turn blocks -> https://lore.kernel.org/lkml/20231012113100.3656480-1-bryan.odonoghue@linaro.org/ --- bod
On Thu, 26 Oct 2023 11:53:41 +0100, Bryan O'Donoghue wrote: > v4-resend: > - Remove erroneous "--in-reply-to" from git send-email > > v4: > - Resend of v3.2 addendum as v4 for tooling purposes > > Link: https://lore.kernel.org/linux-arm-msm/20231024093919.226050-1-bryan.odonoghue@linaro.org/ > Link: https://git.codelinaro.org/bryan.odonoghue/kernel/-/tree/qcom-linux-clk-for-6.7-camcc-sc8280xp-v4 > > [...] Applied, thanks! [4/4] arm64: dts: qcom: sc8280xp: Add in CAMCC for sc8280xp commit: 9bd07f2c558f9c7d41f3761df3e93bd9ebaa0d4f Best regards,