From patchwork Tue Nov 13 09:19:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 150937 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4167874ljp; Tue, 13 Nov 2018 01:20:17 -0800 (PST) X-Google-Smtp-Source: AJdET5djtb7m5WjJiU7e4ldlt/UEcrP6XAO3Jcy9A6I2YriJit4ohqw2TekczfTH8SA3sYAqgNGo X-Received: by 2002:a63:c051:: with SMTP id z17mr3954999pgi.20.1542100817525; Tue, 13 Nov 2018 01:20:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542100817; cv=none; d=google.com; s=arc-20160816; b=MRN37SL5PzLbh/lUAm17zoGSmIh7QV8ZPvS7bqtwzC6UDsjPNfPKtYKhNw0UXN7K6g A+WWHWYxBG2BuPw/CQAbrqRs+vRQqMy1i5ANMsHrE6klPO1KRRGzKNW2RDV00QwaVKXG +3BFabXFGXV/kyAJ0G0NlWYMmA0GH8PkpSMjcHCt1PyWTMDF9zobh3qm0N3wX0pE9pjG hbwexgM4n90+f3ZA6wXgBuli8JE+KUPwU2SKjmxCJrUGSJTZLh452NrTSnWmty/7bYA+ eH5HEJLYhqytW8SJcPv4JKbOLRsm8ZHWMqK7czkfFuUlYC/+DnvQlMKwhxeQPeZ0XozY OmBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Pa2jLSbNbMfF6e2oKbwa5SxhkKwCp+5/SCnBh4bR5HQ=; b=TXjgGXjFnk5ILZib3ZsTplJQWBG8N4RRkn4fPaDM+/RicTE0+qrM5rFTBdLuDcZYpQ MC78WOr4CPIHFQf5ShMWSAWmqikrBuVP9/0gvpXP2yNEaRv4fkfuUgKPq1GMYmXm/Ps7 LMnzqRa6aMropuFtMBTmeTVmK+x9o89rj8I5AMzO4qyl1wIwo6dDWmfal3szEq8Bn+rV 4FzBrjbYPxOd5VQ6z5zZsmauZ0Mg3FvPVaFlDmPQDujhGklFXvmkd89ptsIosqXBQEuq xBVDSORl8Vch8/acRhP1OV4wOyM0leEwtXWL1s8sQC91cDrM9O/VQWL2fxQ+BH8WED3e mgPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17-v6si18753551pgk.501.2018.11.13.01.20.16; Tue, 13 Nov 2018 01:20:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731553AbeKMTR0 (ORCPT + 32 others); Tue, 13 Nov 2018 14:17:26 -0500 Received: from ns.mm-sol.com ([37.157.136.199]:32970 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730995AbeKMTRU (ORCPT ); Tue, 13 Nov 2018 14:17:20 -0500 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 43610CDD0; Tue, 13 Nov 2018 11:20:07 +0200 (EET) From: Todor Tomov To: andy.gross@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, vinod.koul@linaro.org, Todor Tomov Subject: [PATCH 2/2] arm64: dts: qcom: Add pinctrls for camera sensors Date: Tue, 13 Nov 2018 11:19:13 +0200 Message-Id: <1542100753-27816-2-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542100753-27816-1-git-send-email-todor.tomov@linaro.org> References: <1542100753-27816-1-git-send-email-todor.tomov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add pinctrls required for camera sensors: - power down signal; - reset signal; - camera external clock. Signed-off-by: Todor Tomov --- arch/arm64/boot/dts/qcom/msm8916-pins.dtsi | 64 ++++++++++++++++++++ arch/arm64/boot/dts/qcom/msm8996-pins.dtsi | 96 ++++++++++++++++++++++++++++++ 2 files changed, 160 insertions(+) -- 2.7.4 diff --git a/arch/arm64/boot/dts/qcom/msm8916-pins.dtsi b/arch/arm64/boot/dts/qcom/msm8916-pins.dtsi index 990120c..aa9a0ff 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8916-pins.dtsi @@ -701,4 +701,68 @@ bias-disable; }; }; + + camera_front_default: camera_front_default { + pinmux_pwdn { + function = "gpio"; + pins = "gpio33"; + }; + pinconf_pwdn { + pins = "gpio33"; + drive-strength = <16>; + bias-disable; + }; + + pinmux_rst { + function = "gpio"; + pins = "gpio28"; + }; + pinconf_rst { + pins = "gpio28"; + drive-strength = <16>; + bias-disable; + }; + + pinmux_mclk1 { + function = "cam_mclk1"; + pins = "gpio27"; + }; + pinconf_mclk1 { + pins = "gpio27"; + drive-strength = <16>; + bias-disable; + }; + }; + + camera_rear_default: camera_rear_default { + pinmux_pwdn { + function = "gpio"; + pins = "gpio34"; + }; + pinconf_pwdn { + pins = "gpio34"; + drive-strength = <16>; + bias-disable; + }; + + pinmux_rst { + function = "gpio"; + pins = "gpio35"; + }; + pinconf_rst { + pins = "gpio35"; + drive-strength = <16>; + bias-disable; + }; + + pinmux_mclk0 { + function = "cam_mclk0"; + pins = "gpio26"; + }; + pinconf_mclk0 { + pins = "gpio26"; + drive-strength = <16>; + bias-disable; + }; + }; }; diff --git a/arch/arm64/boot/dts/qcom/msm8996-pins.dtsi b/arch/arm64/boot/dts/qcom/msm8996-pins.dtsi index d6a0a4a..8d5114d 100644 --- a/arch/arm64/boot/dts/qcom/msm8996-pins.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996-pins.dtsi @@ -519,4 +519,100 @@ bias-disable; }; }; + + camera_board_default: camera_board_default { + mux_pwdn { + function = "gpio"; + pins = "gpio98"; + }; + config_pwdn { + pins = "gpio98"; + drive-strength = <16>; + bias-disable; + }; + + mux_rst { + function = "gpio"; + pins = "gpio104"; + }; + config_rst { + pins = "gpio104"; + drive-strength = <16>; + bias-disable; + }; + + mux_mclk1 { + function = "cam_mclk"; + pins = "gpio14"; + }; + config_mclk1 { + pins = "gpio14"; + drive-strength = <16>; + bias-disable; + }; + }; + + camera_front_default: camera_front_default { + mux_pwdn { + function = "gpio"; + pins = "gpio133"; + }; + config_pwdn { + pins = "gpio133"; + drive-strength = <16>; + bias-disable; + }; + + mux_rst { + function = "gpio"; + pins = "gpio23"; + }; + config_rst { + pins = "gpio23"; + drive-strength = <16>; + bias-disable; + }; + + mux_mclk2 { + function = "cam_mclk"; + pins = "gpio15"; + }; + config_mclk2 { + pins = "gpio15"; + drive-strength = <16>; + bias-disable; + }; + }; + + camera_rear_default: camera_rear_default { + mux_pwdn { + function = "gpio"; + pins = "gpio26"; + }; + config_pwdn { + pins = "gpio26"; + drive-strength = <16>; + bias-disable; + }; + + mux_rst { + function = "gpio"; + pins = "gpio25"; + }; + config_rst { + pins = "gpio25"; + drive-strength = <16>; + bias-disable; + }; + + mux_mclk0 { + function = "cam_mclk"; + pins = "gpio13"; + }; + config_mclk0 { + pins = "gpio13"; + drive-strength = <16>; + bias-disable; + }; + }; };