Message ID | 20250302-camera-v2-0-312b44b4a89c@bootlin.com (mailing list archive) |
---|---|
Headers | show |
Series | Describe the cameras in the PinePhone Pro dts | expand |
On Sun, 02 Mar 2025 16:41:01 +0100, Olivier Benjamin wrote: > This series adds support for the Pine64 PinePhone Pro's rear and front > cameras in Device Tree. > This is based on some of Ondrej Jirman's patches hosted in his tree at > https://codeberg.org/megi/linux, but I have also fully reviewed and > re-written the code from the RK3399 datasheet, the PinePhone Pro > schematic, and the IMX258-0AQH5 software reference manual. > > I have tested these changes on my PinePhone Pro and am able to take > photos from both cameras using libcamera's cam. > > Signed-off-by: Olivier Benjamin <olivier.benjamin@bootlin.com> > --- > Changes in v2: > - Rebase on mainline > - Change patch subject to arm64: dts: rockchip > - Rename new regulators to fit preferred form for fixed regulators > - Link to v1: https://lore.kernel.org/r/20250228-camera-v1-0-c51869f94e97@bootlin.com > > --- > Olivier Benjamin (2): > arm64: dts: rockchip: describe I2c Bus 1 and IMX258 world camera on PinePhone Pro > arm64: dts: rockchip: describe the OV8858 user camera on PinePhone Pro > > .../boot/dts/rockchip/rk3399-pinephone-pro.dts | 138 +++++++++++++++++++++ > 1 file changed, 138 insertions(+) > --- > -- > Olivier Benjamin <olivier.benjamin@bootlin.com> > > > 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 for arch/arm64/boot/dts/rockchip/' for 20250302-camera-v2-0-312b44b4a89c@bootlin.com: arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dtb: camera@1a: port:endpoint: 'link-frequencies' is a required property from schema $id: http://devicetree.org/schemas/media/i2c/sony,imx258.yaml# arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dtb: camera@1a: 'clock-names', 'lens-focus', 'orientation', 'rotation' do not match any of the regexes: 'pinctrl-[0-9]+' from schema $id: http://devicetree.org/schemas/media/i2c/sony,imx258.yaml# arch/arm64/boot/dts/rockchip/rk3399-pinephone-pro.dtb: camera@36: 'orientation', 'rotation' do not match any of the regexes: 'pinctrl-[0-9]+' from schema $id: http://devicetree.org/schemas/media/i2c/ovti,ov8858.yaml#
This series adds support for the Pine64 PinePhone Pro's rear and front cameras in Device Tree. This is based on some of Ondrej Jirman's patches hosted in his tree at https://codeberg.org/megi/linux, but I have also fully reviewed and re-written the code from the RK3399 datasheet, the PinePhone Pro schematic, and the IMX258-0AQH5 software reference manual. I have tested these changes on my PinePhone Pro and am able to take photos from both cameras using libcamera's cam. Signed-off-by: Olivier Benjamin <olivier.benjamin@bootlin.com> --- Changes in v2: - Rebase on mainline - Change patch subject to arm64: dts: rockchip - Rename new regulators to fit preferred form for fixed regulators - Link to v1: https://lore.kernel.org/r/20250228-camera-v1-0-c51869f94e97@bootlin.com --- Olivier Benjamin (2): arm64: dts: rockchip: describe I2c Bus 1 and IMX258 world camera on PinePhone Pro arm64: dts: rockchip: describe the OV8858 user camera on PinePhone Pro .../boot/dts/rockchip/rk3399-pinephone-pro.dts | 138 +++++++++++++++++++++ 1 file changed, 138 insertions(+) ---