Skip to content
Merged
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
5 changes: 4 additions & 1 deletion Documentation/devicetree/bindings/media/apple,t8010-isp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ properties:
maxItems: 1
tele-shutdown-gpios:
maxItems: 1
description: the telephoto camera's shutdown line, on the boards that
have a telephoto camera (the iPhone 7 Plus) only
front-shutdown-gpios:
maxItems: 1

Expand All @@ -80,7 +82,8 @@ properties:
apple,platform-id:
$ref: /schemas/types.yaml#/definitions/uint32
description: the board's camera platform, which selects the firmware's
sensor setup (0x88 on the iPhone 6s, 0x90 on the iPhone 7)
sensor setup (0x88 on the iPhone 6s, 0x90 on the iPhone 7, 0x91 on
the iPhone 7 Plus)

firmware-name:
maxItems: 1
Expand Down
17 changes: 17 additions & 0 deletions arch/arm64/boot/dts/apple/t8010-7.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,23 @@
status = "okay";
};

/*
* The cameras: rear 12 MP and front 7 MP on every iPhone 7 and 7 Plus,
* wired the same (ADT isp). The 7 Plus adds its telephoto camera's shutdown
* line; each board sets its camera platform (the ADT's sensor-type).
*/
&isp {
cam-avdd-supply = <&cam_avdd>;
cam-avdd2-supply = <&cam_avdd2>;
cam-avdd3-supply = <&cam_avdd3>;
cam0-supply = <&cam0>;
rear-shutdown-gpios = <&pinctrl_ap 65 GPIO_ACTIVE_HIGH>;
front-shutdown-gpios = <&pinctrl_ap 43 GPIO_ACTIVE_HIGH>;
strobe-gpios = <&pinctrl_ap 176 GPIO_ACTIVE_HIGH>;
firmware-name = "apple/isp-t8010.bin";
status = "okay";
};

&framebuffer0 {
power-domains = <&ps_disp0_fe &ps_disp0_be &ps_mipi_dsi>;
};
Expand Down
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/apple/t8010-d10.dts
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,5 @@

/* The cameras: rear 12 MP, front 7 MP */
&isp {
cam-avdd-supply = <&cam_avdd>;
cam-avdd2-supply = <&cam_avdd2>;
cam-avdd3-supply = <&cam_avdd3>;
cam0-supply = <&cam0>;
rear-shutdown-gpios = <&pinctrl_ap 65 GPIO_ACTIVE_HIGH>;
front-shutdown-gpios = <&pinctrl_ap 43 GPIO_ACTIVE_HIGH>;
strobe-gpios = <&pinctrl_ap 176 GPIO_ACTIVE_HIGH>;
apple,platform-id = <0x90>;
firmware-name = "apple/isp-t8010.bin";
status = "okay";
};
9 changes: 0 additions & 9 deletions arch/arm64/boot/dts/apple/t8010-d101.dts
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,5 @@

/* The cameras: rear 12 MP, front 7 MP */
&isp {
cam-avdd-supply = <&cam_avdd>;
cam-avdd2-supply = <&cam_avdd2>;
cam-avdd3-supply = <&cam_avdd3>;
cam0-supply = <&cam0>;
rear-shutdown-gpios = <&pinctrl_ap 65 GPIO_ACTIVE_HIGH>;
front-shutdown-gpios = <&pinctrl_ap 43 GPIO_ACTIVE_HIGH>;
strobe-gpios = <&pinctrl_ap 176 GPIO_ACTIVE_HIGH>;
apple,platform-id = <0x90>;
firmware-name = "apple/isp-t8010.bin";
status = "okay";
};
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/apple/t8010-d11.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@
touchscreen-size-x = <1080>;
touchscreen-size-y = <1920>;
};

/* The cameras: rear 12 MP, telephoto 12 MP, front 7 MP */
&isp {
tele-shutdown-gpios = <&pinctrl_ap 69 GPIO_ACTIVE_HIGH>;
apple,platform-id = <0x91>;
};
6 changes: 6 additions & 0 deletions arch/arm64/boot/dts/apple/t8010-d111.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@
touchscreen-size-x = <1080>;
touchscreen-size-y = <1920>;
};

/* The cameras: rear 12 MP, telephoto 12 MP, front 7 MP */
&isp {
tele-shutdown-gpios = <&pinctrl_ap 69 GPIO_ACTIVE_HIGH>;
apple,platform-id = <0x91>;
};
10 changes: 9 additions & 1 deletion arch/arm64/boot/dts/apple/t8010.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -899,19 +899,27 @@
<AIC_IRQ 47 IRQ_TYPE_LEVEL_HIGH>,
<AIC_IRQ 48 IRQ_TYPE_LEVEL_HIGH>;

/* The camera sensors' reference clocks: rear (66), front (72) */
/*
* The camera sensors' reference clocks: rear (66),
* telephoto (70) and front (72). Every iPhone 7 and 7
* Plus ADT lists all three as the ISP's extclk pads,
* including the boards without a telephoto.
*/
isp_refclk_gpio: isp-refclk-gpio-pins {
pinmux = <APPLE_PINMUX(66, 0)>,
<APPLE_PINMUX(70, 0)>,
<APPLE_PINMUX(72, 0)>;
};

isp_refclk_f1: isp-refclk-f1-pins {
pinmux = <APPLE_PINMUX(66, 1)>,
<APPLE_PINMUX(70, 1)>,
<APPLE_PINMUX(72, 1)>;
};

isp_refclk_f2: isp-refclk-f2-pins {
pinmux = <APPLE_PINMUX(66, 2)>,
<APPLE_PINMUX(70, 2)>,
<APPLE_PINMUX(72, 2)>;
};

Expand Down
Loading
Loading