Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Documentation/devicetree/bindings/media/apple,isp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,25 @@ properties:
description:
Firmware temporal-filter strength selected for the attached sensor.

apple,ane:
$ref: /schemas/types.yaml#/definitions/phandle
description:
The Neural Engine the ISP firmware runs its ML noise reduction (MLVNR)
on. The two coprocessors exchange messages on rings in shared memory
and ring each other's doorbells.

apple,mlvnr-sensor-config:
$ref: /schemas/types.yaml#/definitions/uint32-array
items:
- description: Default sensor configuration index to replace
- description: Sensor configuration index used when ANE MLVNR is active
description:
Optional. Pair of sensor configuration indices <from to>. When the ANE
peer endpoint is active for MLVNR, presets using configuration <from>
(such as a binned mode without MLVNR networks) switch to configuration
<to> with their crop rectangles scaled to <to>'s dimensions. Without
the ANE endpoint, the default presets on <from> are used.

apple,camera-indicator:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Expand Down
19 changes: 19 additions & 0 deletions Documentation/devicetree/bindings/media/apple,t8140-isp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,25 @@ properties:
description:
Firmware temporal-filter strength selected for the attached sensor.

apple,ane:
$ref: /schemas/types.yaml#/definitions/phandle
description:
The Neural Engine the ISP firmware runs its ML noise reduction (MLVNR)
on. The two coprocessors exchange messages on rings in shared memory
and ring each other's doorbells.

apple,mlvnr-sensor-config:
$ref: /schemas/types.yaml#/definitions/uint32-array
items:
- description: Default sensor configuration index to replace
- description: Sensor configuration index used when ANE MLVNR is active
description:
Optional. Pair of sensor configuration indices <from to>. When the ANE
peer endpoint is active for MLVNR, presets using configuration <from>
(such as a binned mode without MLVNR networks) switch to configuration
<to> with their crop rectangles scaled to <to>'s dimensions. Without
the ANE endpoint, the default presets on <from> are used.

apple,camera-indicator:
$ref: /schemas/types.yaml#/definitions/phandle
description:
Expand Down
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/apple/t604x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1436,6 +1436,8 @@
<&ps_isp_clr>, <&ps_ispsens0>;
/* the shared memory window above the firmware's 32 MiB */
apple,dart-vm-size = /bits/ 64 <0xde600000>;
/* ADT isp0 function-ane_ep_control/data_param_set/get */
apple,ane = <&ane>;
status = "disabled";
};

Expand Down
16 changes: 12 additions & 4 deletions arch/arm64/boot/dts/apple/t8142-j813-isp.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@
apple,dart-vm-size = <0x0 0xe0000000>;
apple,platform-id = <0x71>;
apple,temporal-filter = <1>;
/* ADT isp function-ane_ep_control/data_param_set/get */
apple,ane = <&ane>;
};
};

Expand All @@ -218,15 +220,21 @@
&isp {
apple,temporal-filter = <1>;
apple,center-stage;
/*
* When the ANE peer endpoint comes up with ispane-j813.afpp, switch
* binned config 8 (1520x1440) presets to full-resolution config 7
* (3040x2880) for MLVNR. Without the .afpp file, keep binned config 8.
*/
apple,mlvnr-sensor-config = <8 7>;

/*
* All presets scale from the binned sensor mode config 8 (3040x2880
* binned 2x2 to 1520x1440), with centred crops. Binning averages four
* pixels: indoors it shows about half the colour noise of the
* full-resolution config 7, for some fine detail. In the other binned
* mode, config 10, the firmware's AWB keeps the setfile's default
* white point and the picture is magenta; in configs 7 and 8 it
* converges.
* full-resolution config 7 without MLVNR, for some fine detail. In
* the other binned mode, config 10, the firmware's AWB keeps the
* setfile's default white point and the picture is magenta; in
* configs 7 and 8 it converges.
*
* The driver derives the other call sizes from these crops only
* without upscaling. The binned crops are too small for the portrait
Expand Down
Loading
Loading