Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5124758imu; Tue, 13 Nov 2018 01:20:57 -0800 (PST) X-Google-Smtp-Source: AJdET5eUtKIM9KnO+QQiSs7XLL03f/04+FatqFMkJkwmXV4immc6CYOiecqPLyIJKdDcYYlQ/mSz X-Received: by 2002:a17:902:b181:: with SMTP id s1-v6mr4384107plr.51.1542100857278; Tue, 13 Nov 2018 01:20:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542100857; cv=none; d=google.com; s=arc-20160816; b=nh4xLKeG4NpF4jfYKyC/OxlbKKfZhLY+dap5UUyd0rbu8pWtLEUAvhQ6xBjb/Lnurw xjlVO1couCnl9F0CeknMLBnJqGxQpewua6ko3bc74pbZrxHWA9dpiM0/nnTGVSzOq9q3 VCxHQIS1RH4ajG3vhO7pbddq40nHRgbnONzY9htisAdd/gInjh67RVdLmpbGYxonYM72 2J51jmFxDhMcaB2L5XpZ3/Zgk/97PqpXLSEtmnFW+T9qf7JrTtAVEj76/YltlxMUbzNK DjJwsdvp1Tb7piT7dkJLTmzYBWneGc6JANucB1+/GaoVfFiQcblBVMSEg2PDbturb9uH QAZQ== 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 g11-v6si18758629pgu.315.2018.11.13.01.20.41; Tue, 13 Nov 2018 01:20:57 -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 S1731542AbeKMTR0 (ORCPT + 99 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(+) 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; + }; + }; }; -- 2.7.4