From patchwork Mon May 18 08:21:29 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 11555007 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B52A9138A for ; Mon, 18 May 2020 08:21:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9CE86207F5 for ; Mon, 18 May 2020 08:21:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y8DuRMtZ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726522AbgERIVf (ORCPT ); Mon, 18 May 2020 04:21:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726489AbgERIVe (ORCPT ); Mon, 18 May 2020 04:21:34 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EA17C05BD09 for ; Mon, 18 May 2020 01:21:34 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id h4so8318069wmb.4 for ; Mon, 18 May 2020 01:21:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ke8BoO5EmHk4SIG95iemEMZnR5BDFJSAvPbDzk3LsE=; b=y8DuRMtZ5m32J99ssZXJXSq+X+AfOmJ+8dm6KSocF9Z7GTbedT/x+AWJ7/buNAr3pg Lc4iDOZnNKa1b971lpHeSODJhZ4KsL7pg3cd7aNHPsLWp+woLitHcV75oXe/SFMpFWH6 mRETIVp45P9yo8Vo9q/avbqmc59f2lnBmAsRsoyJV/oWG0W9PRJE5a53kk1GMfdahNzp h090VIAv9PNzyF+oVrlPFrp3oBdB27BDMGL8b36Wy4DkS9m435f3D3if4j6tR0cRQfhC OnVMJiDqXESB8zrBykPNUJIbFiwQqwRHG2yZRbwCdOYvKuT2iI0SkwgGXHSRhw29Fo9U mGbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ke8BoO5EmHk4SIG95iemEMZnR5BDFJSAvPbDzk3LsE=; b=OJugDb7GZbPsr2w0wSTqlps48l97v+SSrumKhbSiaLomThNlkl31Qj+7qKTyuRv5C9 2MD60f8lyk91cx83tE97Ty3lMaXNg/BKdy2ekzsswS+FOxBzWOSi/gWXQa09lT/z611e RarAKraq+12nxd1oHyENivqkIXDPmTNWsf4RY+aCBiC1EpoQMz4TFprHwuZeK0+inlBV BOYe+hngoTfHKm755epDDGJSvPmKyozOXg33Ghk0h2elme3d8JqChSDmQezXp7TALxFW zcwMh/nBKinkLkz9yNdlOBxJGRoO7J9wShEHefXUMp0GkYLu4NsPs0hidJnrvOaZM8ED QHdw== X-Gm-Message-State: AOAM532fyjGq29LINye06qy3f79ZVt0XoRn2+9pDcbKeaQmHTLxi8TIb 105UW9H0IhFHAi1PHCpFzI0OyQ== X-Google-Smtp-Source: ABdhPJz3/vAFGGLjGfXRhTYtndwC2SARogPWWAdkeE9QbQBVTa6G6s3MYYvtL+u+txx74j1Lpr8f7w== X-Received: by 2002:a7b:ce01:: with SMTP id m1mr6593049wmc.116.1589790092914; Mon, 18 May 2020 01:21:32 -0700 (PDT) Received: from localhost.localdomain ([37.120.32.219]) by smtp.gmail.com with ESMTPSA id x184sm15849567wmg.38.2020.05.18.01.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2020 01:21:32 -0700 (PDT) From: Robert Foss To: Vinod Koul , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree , linux-kernel Cc: Nicolas Dechesne , Robert Foss Subject: [PATCH v3] arm64: dts: qcom: apq8016-sbc-d3: Add Qualcomm APQ8016 SBC + D3Camera mezzanine Date: Mon, 18 May 2020 10:21:29 +0200 Message-Id: <20200518082129.2103683-1-robert.foss@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add device treee support for the Qualcomm APQ8016 SBC, otherwise known as the Dragonboard 410c with the D3Camera mezzanine expansion board. The D3Camera mezzanine ships in a kit with a OmniVision 5640 sensor module, which is what this DT targets. Signed-off-by: Robert Foss Reviewed-by: Vinod Koul --- Changes since v2: - Vinod: Change copyright assignment to Linaro Changes since v1: - Vinod: Changed license to GPL+BSD - Vinod: Changed copyright year to 2020 - Nico: Changed name of mezzanine to d3camera arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/apq8016-sbc-d3camera.dts | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/apq8016-sbc-d3camera.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index cc103f7020fd..3f95b522694e 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_QCOM) += apq8016-sbc.dtb +dtb-$(CONFIG_ARCH_QCOM) += apq8016-sbc-d3camera.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8096-db820c.dtb dtb-$(CONFIG_ARCH_QCOM) += apq8096-ifc6640.dtb dtb-$(CONFIG_ARCH_QCOM) += ipq6018-cp01-c1.dtb diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc-d3camera.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc-d3camera.dts new file mode 100644 index 000000000000..752e5ec47499 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc-d3camera.dts @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Copyright (c) 2020, The Linux Foundation. All rights reserved. + */ + +/dts-v1/; + +#include "apq8016-sbc.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. APQ 8016 SBC w/ D3Camera Mezzanine"; + compatible = "qcom,apq8016-sbc", "qcom,apq8016", "qcom,sbc"; +}; + +&cci_i2c0 { + /delete-node/ camera_rear@3b; + + camera_rear@76 { + compatible = "ovti,ov5640"; + reg = <0x76>; + + enable-gpios = <&msmgpio 34 GPIO_ACTIVE_HIGH>; + reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&camera_rear_default>; + + clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; + clock-names = "xclk"; + clock-frequency = <23880000>; + + vdddo-supply = <&camera_vdddo_1v8>; + vdda-supply = <&camera_vdda_2v8>; + vddd-supply = <&camera_vddd_1v5>; + + status = "ok"; + + port { + ov5640_ep: endpoint { + clock-lanes = <1>; + data-lanes = <0 2>; + remote-endpoint = <&csiphy0_ep>; + }; + }; + }; +};