.../devicetree/bindings/media/i2c/ovti,ov8858.yaml | 4 +- .../devicetree/bindings/media/i2c/sony,imx258.yaml | 4 +- .../boot/dts/rockchip/rk3399-pinephone-pro.dts | 138 +++++++++++++++++++++ 3 files changed, 144 insertions(+), 2 deletions(-)
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. This series has raised a question about the proper label name for the front/user camera and rear/world camera for phones. This series is using "ucam" and "wcam", which is used in a few other Rockship DTBs: - arch/arm64/boot/dts/rockchip/px30-evb.dts - rk3399-gru-scarlet.dtsi Signed-off-by: Olivier Benjamin <olivier.benjamin@bootlin.com> --- Changes in v4: - Dropped "clock-names" property from IM258 as it is absent from the binding. - Renamed pinctrl definitions to match the names in the PinePhone Pro datasheet. - Collected Rob Herring's acked-by for patches 1 and 2 - Link to v3: https://lore.kernel.org/r/20250509-camera-v3-0-dab2772d229a@bootlin.com Changes in v3: - Fixed new DTB warnings reported by Rob Herring's bot - Link to v2: https://lore.kernel.org/r/20250302-camera-v2-0-312b44b4a89c@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 (4): dt-bindings: media: ov8858: inherit video-interface-devices properties dt-bindings: media: imx258: inherit video-interface-devices properties 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 .../devicetree/bindings/media/i2c/ovti,ov8858.yaml | 4 +- .../devicetree/bindings/media/i2c/sony,imx258.yaml | 4 +- .../boot/dts/rockchip/rk3399-pinephone-pro.dts | 138 +++++++++++++++++++++ 3 files changed, 144 insertions(+), 2 deletions(-) --- -- Olivier Benjamin <olivier.benjamin@bootlin.com>
Hi Olivier, On Fri, Jun 20, 2025 at 05:21:31PM +0200, 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. > > This series has raised a question about the proper label name for the > front/user camera and rear/world camera for phones. > This series is using "ucam" and "wcam", which is used in a few other > Rockship DTBs: > - arch/arm64/boot/dts/rockchip/px30-evb.dts > - rk3399-gru-scarlet.dtsi > > Signed-off-by: Olivier Benjamin <olivier.benjamin@bootlin.com> Thanks for the patches. I've picked the first two in the set, presumably the rest will be merged via another tree? -- Regards, Sakari Ailus
Hi, Am Montag, 23. Juni 2025, 08:47:44 Mitteleuropäische Sommerzeit schrieb Sakari Ailus: > Hi Olivier, > > On Fri, Jun 20, 2025 at 05:21:31PM +0200, 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. > > > > This series has raised a question about the proper label name for the > > front/user camera and rear/world camera for phones. > > This series is using "ucam" and "wcam", which is used in a few other > > Rockship DTBs: > > - arch/arm64/boot/dts/rockchip/px30-evb.dts > > - rk3399-gru-scarlet.dtsi > > > > Signed-off-by: Olivier Benjamin <olivier.benjamin@bootlin.com> > > Thanks for the patches. > > I've picked the first two in the set, presumably the rest will be merged > via another tree? correct, and with the first two being applied, I can now also safely pick the other two :-) Thanks a lot Heiko
Hi Heiko, On Mon, Jun 23, 2025 at 12:05:22PM +0200, Heiko Stuebner wrote: > Hi, > > Am Montag, 23. Juni 2025, 08:47:44 Mitteleuropäische Sommerzeit schrieb Sakari Ailus: > > Hi Olivier, > > > > On Fri, Jun 20, 2025 at 05:21:31PM +0200, 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. > > > > > > This series has raised a question about the proper label name for the > > > front/user camera and rear/world camera for phones. > > > This series is using "ucam" and "wcam", which is used in a few other > > > Rockship DTBs: > > > - arch/arm64/boot/dts/rockchip/px30-evb.dts > > > - rk3399-gru-scarlet.dtsi > > > > > > Signed-off-by: Olivier Benjamin <olivier.benjamin@bootlin.com> > > > > Thanks for the patches. > > > > I've picked the first two in the set, presumably the rest will be merged > > via another tree? > > correct, and with the first two being applied, I can now also safely pick > the other two :-) Once in my tree, they'll next end up to the media committers' tree and after some time you should be able to find them in linux-next. This process will take some time. Just FYI. -- Sakari Ailus
Am Montag, 23. Juni 2025, 12:08:07 Mitteleuropäische Sommerzeit schrieb Sakari Ailus: > Hi Heiko, > > On Mon, Jun 23, 2025 at 12:05:22PM +0200, Heiko Stuebner wrote: > > Hi, > > > > Am Montag, 23. Juni 2025, 08:47:44 Mitteleuropäische Sommerzeit schrieb Sakari Ailus: > > > Hi Olivier, > > > > > > On Fri, Jun 20, 2025 at 05:21:31PM +0200, 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. > > > > > > > > This series has raised a question about the proper label name for the > > > > front/user camera and rear/world camera for phones. > > > > This series is using "ucam" and "wcam", which is used in a few other > > > > Rockship DTBs: > > > > - arch/arm64/boot/dts/rockchip/px30-evb.dts > > > > - rk3399-gru-scarlet.dtsi > > > > > > > > Signed-off-by: Olivier Benjamin <olivier.benjamin@bootlin.com> > > > > > > Thanks for the patches. > > > > > > I've picked the first two in the set, presumably the rest will be merged > > > via another tree? > > > > correct, and with the first two being applied, I can now also safely pick > > the other two :-) > > Once in my tree, they'll next end up to the media committers' tree and > after some time you should be able to find them in linux-next. This process > will take some time. Just FYI. thanks for the heads up :-) . So I'll give that a bit more time for the bindings to appear. Thanks Heiko
On Fri 2025-06-20 17:21:31, 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. > > This series has raised a question about the proper label name for the > front/user camera and rear/world camera for phones. I am not familiar with "user" / "world" cameras, but "selfie" and "main" is something I've seen before. Best regards, Pavel -- I don't work for Nazis and criminals, and neither should you. Boycott Putin, Trump, and Musk!
On Fri, 20 Jun 2025 17:21:31 +0200, 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. > > [...] Applied, thanks! [3/4] arm64: dts: rockchip: describe I2c Bus 1 and IMX258 world camera on PinePhone Pro commit: b610dc822f38010508b54c8f556a3de28556d273 [4/4] arm64: dts: rockchip: describe the OV8858 user camera on PinePhone Pro commit: 9259c81a185663c2a7cd6a5301df4b9645980528 So I found the binding-patched from the media-tree in linux-next now, so picked up the dts patches. I fixed up some issues, please double check: - the pinctrl-handle in patch3 did not match the created one (which patch 4 fixed) but I adapted patch 3 instead - sorting of the avdd regulator (alphabetical by node-name please) - sorting of properties, broadly speaking, alphabetical too (caveats apply, see dt documentation) Best regards, -- Heiko Stuebner <heiko@sntech.de>
© 2016 - 2025 Red Hat, Inc.