From patchwork Thu Dec 6 13:23:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 62 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 3BF922E540B for ; Thu, 6 Dec 2018 14:23:15 +0100 (CET) Received: by mail-wm1-f71.google.com with SMTP id g184sf244399wmd.4 for ; Thu, 06 Dec 2018 05:23:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544102594; cv=pass; d=google.com; s=arc-20160816; b=OktFrQ+mjfgdC1zYdyhdYVvTvg07cmBw2kYmzpFldHaOABRRjB+09TRuIllwbuwYwt ym6qzFjUksX49HhIfYYtMBOVop78cg11AZnlPxa7E8uBVeo5uZweTca9JP3MGpVkyWyk sSxLVuvRAHCOInR+VfVLIt1aVNRzcuOqthlgZf0secwTGOwDO4bvTMRd0bumRNlCtak2 abN3mBObfIA+x5s7APbD+xeFtVw4OMupQwIQ6Ssi9o5qL4boQDuusoSPLu/r42JtrrXx bads7bm7lXJC8xc1U0eG4vtv8cpaLKbMkI+uAUssxb1O+TeNXpFRK9mDwbzoLwwZo0l5 BsmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lH8MSC1qJfoEJpVsttBDBCEiyuKYx7BBIW3tep4lLgE=; b=yJGrw7/opO8qnemCLpBe79nrF4jkOIPPupSGfBuhB8MjJ+fSlJ5KWGAtk9CN/vepau p6whQ4YpcA72gaO9Xam3VgUypVwhlvCs7fij1zGh6XScpYDppdyWA1MoJEVDeomUayp/ OtcLkKemNuw/+bm5JiHcW8lhspQ+edZ0c/Y/pzDX/E/PudJehsq4gjJel00Y2mMjYVq8 ZfTuKgOh1B4edGqutwSCdzezEphe6dipmM790tSm4nNYqouFO6PNR39EF/M2a9oTRo+a PNVXjPDvTocGnLwz1IXhgjvUDJKTg1wtmiV4uvSJdOtxL4H9zjPLbZVonKxW240QD7hp +CUg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=izBcePJw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=lH8MSC1qJfoEJpVsttBDBCEiyuKYx7BBIW3tep4lLgE=; b=H357RVVWfAJTmxJmhj8acYBxiJl2nBL+/Dw/EYPTXo265q14OaQ5w16JaXnlbh4e3i HxRTxN6pOxHW9MuY+3nlPxWY/Q8qW7YFJmEwBqsoXddWnMbB0RngLePfCwExMN9Bfy1M Dc6Vi36CDIOdi9iFKfp6h5AKcb6WlU9MYek04= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=lH8MSC1qJfoEJpVsttBDBCEiyuKYx7BBIW3tep4lLgE=; b=S6/IygSOWP9YP5ExkMPLVKZYJYYlCvgJd256T4BEvLil7mBxHtU4hEpW3BPKasNfsM YWZEGvNcHetX51Bi7hFYr0PV9l7emzYKGHD3k/A8rIiOH+/siMKJDSgbH88W7X5qPne1 hvSqTFd1PhLQjzS1L1hgkZUVLWJ0m0/UjBnEVodi8bcPuvimvwYeW5WNcfUrpZOTFxUJ jw1/R1a6xoP8+xwysXF7ABECbQ/yvOnKIkUwXnhXOvBlpJV/oloGN24HXabJ4zcIFHYg pShh7XqiBvaf+ga4GgeQYetrYSnfsPfO2S+8fwjw6yMxqsVl2erEODCJzd0E2b1hyB31 jGhg== X-Gm-Message-State: AA+aEWYmXCi1j7QaHUfRxM10nQwDUykWHi7Qj2/IKl9wGGRekOLilY1H IXQzgU69Vbn70vY0ApA1G5KzGa30 X-Google-Smtp-Source: AFSGD/UuCC9g61e9U/oJqFa3xl0Epae+ln/RPF0kwHuEdwR1dp18+HcHBH+Fjql2Ii0l0Xmd630Hkg== X-Received: by 2002:a1c:ee0b:: with SMTP id m11mr3122998wmh.18.1544102594770; Thu, 06 Dec 2018 05:23:14 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a1c:b1c5:: with SMTP id a188ls4388886wmf.5.gmail; Thu, 06 Dec 2018 05:23:14 -0800 (PST) X-Received: by 2002:a1c:5656:: with SMTP id k83mr20084652wmb.125.1544102594298; Thu, 06 Dec 2018 05:23:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544102594; cv=none; d=google.com; s=arc-20160816; b=0PsvWv1LmdvEESeQST28s3e7VNBHIFjfuJWUbwN26eXnDFhUlT2EJ1WLcTZu/hYm3e w5GozEG9x6/ss6BkWbqMFjrlCCYCij0ol/UMRZom8z18zAabpdSYISEf66VA4LT0E0En ywIb4wSD6v14TCDwE/9B0SG+0suc385Y9gNNpTy9YEQ1pOZYjJ8vWEO4LK8QFwDbfd9+ 44IIhJnEFAsa7FI22bl2/odJzcZn1EL99eURMyV7QJgwNPdFYoOUkAcSRAte4Rd5rZOt 0x1Duaz/A2wgpa46MhWZ6YU/haAGYPbuPTbdvqJSUvdZceBsbwm8vGMoGdsVLKQd3Bch Wmwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=lH8MSC1qJfoEJpVsttBDBCEiyuKYx7BBIW3tep4lLgE=; b=iQSB2hKMbL+e+oaAf2aebfwT9G/Ky4HESmObvsRO0JrH32GCVCGHNn9c9bpqGwFGy7 qFbkBl3S+WG38sShGiWwTRASuJNijYex5YV4YHaxCMw6uqaIIfdZVn0pA/jbTZyBGwfJ M5FX1mgFbJaXghfKJoNS6iHZilSaXfuhRyYax3gpehrOOrtLOpNDbXWXd61b3zUA5j9V oNHYSIRti7dJHvkpQs8QyGMxSKMnMmbUpjMXBkEPvT5s8O2ktZfIRA2yMgJS72bHn/a4 KJl5xg+jrZnQ0xyeuJD6FZt0MFkRETNH4WDMOtDK7YtvGWPp7epPqkCSI7l3D3pZc3QB IBdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=izBcePJw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l13sor291600wre.39.2018.12.06.05.23.14 for (Google Transport Security); Thu, 06 Dec 2018 05:23:14 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a5d:40c1:: with SMTP id b1mr26842238wrq.133.1544102593867; Thu, 06 Dec 2018 05:23:13 -0800 (PST) Received: from localhost.localdomain (ip-161-243.sn-213-198.clouditalia.com. [213.198.161.243]) by smtp.gmail.com with ESMTPSA id z13sm363769wrq.19.2018.12.06.05.23.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 05:23:13 -0800 (PST) From: Jagan Teki To: Chen-Yu Tsai , Maxime Ripard , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Michael Trimarchi Cc: Jagan Teki Subject: [PATCH v2 1/3] dt-bindings: media: sun6i: Add A64 CSI compatible (w/ H3 fallback) Date: Thu, 6 Dec 2018 18:53:04 +0530 Message-Id: <20181206132306.11843-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=izBcePJw; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Allwinner A64 CSI has single channel time-multiplexed BT.656 CMOS sensor interface like H3. Add a compatible string for it with H3 fallback compatible string, in this case the H3 driver can be used. Signed-off-by: Jagan Teki --- Changes for v2: - none Documentation/devicetree/bindings/media/sun6i-csi.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/sun6i-csi.txt b/Documentation/devicetree/bindings/media/sun6i-csi.txt index eb5a14b828d9..5fb6fd4e2c7d 100644 --- a/Documentation/devicetree/bindings/media/sun6i-csi.txt +++ b/Documentation/devicetree/bindings/media/sun6i-csi.txt @@ -7,6 +7,7 @@ Required properties: - compatible: value must be one of: * "allwinner,sun6i-a31-csi" * "allwinner,sun8i-h3-csi" + * "allwinner,sun50i-a64-csi", "allwinner,sun8i-h3-csi" * "allwinner,sun8i-v3s-csi" - reg: base address and size of the memory-mapped region. - interrupts: interrupt associated to this IP From patchwork Thu Dec 6 13:23:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 63 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f69.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id BC73E2E5411 for ; Thu, 6 Dec 2018 14:23:16 +0100 (CET) Received: by mail-wr1-f69.google.com with SMTP id y7sf137300wrr.12 for ; Thu, 06 Dec 2018 05:23:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544102596; cv=pass; d=google.com; s=arc-20160816; b=AjieNl3cOvNHK5pDP4njZ9fMOgVUuenfogbPbC6gwkivgvl8UWr2bNwgUb2M7kRUui 8QTvLCMbgzeryl9lpghxrcxVek6gbrsn346wXzxE5UqsiT7Id1gVnjPhJCjWvsd9wR/C onWcdFSLNaZJE+Cy3deaJBSXgp4XGtSzIbzlVST/tosRcGI3LS3KdPhcDzzvH3J/9Ijr aoxWq42vmoA73N4f3D6AF1qJa7Fd0ablXpUXhISgYgxhh/o1WXL3s8d7Wk4qmZnlaX04 byDaTgcbwnKpvsxXdeMxfy2tfcRKi+2ZCn98xlO2LNbE710L4sCVIQOBjLdIbYe/M4f8 spHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FDwQO14UGM5SUk/PNniHDmDivUIWcO7xrzPBHqSWB1I=; b=DwsAMsXdw4nz14GZNFCypz6MGXNHmBMkb3WmdnwCBzDc2h6VXWfNbKysznnJZungzz oxnp3eRk9IXjdfddM4aEUr36Y44gy2xxgvNRU8AfOla6rRApzVaPhY/o6H6l67PjaKk8 Q7yZHMh0NzjNDXDb9ujvtGNkA2otAQlLg3qaGDvn4Ce1zVFViyHdO1nFacq7Qfx+S9dr kQ+4ujuM7XeA1cga4fLga0L13psmIx5J8pdIBxj4zvvx5sDksTY/Yqk/H+hpiDIMsoa0 7SBggQnpgz2HpqF+YGglwRnQI29sVJKhpEnIbAj+o0JyJLloL8d//3UJ1AMVkxEPYgXr YLug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WxNuUCnT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=FDwQO14UGM5SUk/PNniHDmDivUIWcO7xrzPBHqSWB1I=; b=mYpOSmAjXW0eBhyb+l1xPbarnZvNOrEyxGtZNADU6ogb+7S0/hK/bGcMRvREczF5Kp Qwv10N4++UWm97mDroqvMt8jQASvTHlQzuOuGFS08dRgOfgvP+yRLYy5j4/vtnXwHAnN SDF0GYURo2C+XzmfSby6Dce30k9ULjggBOOmI= 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:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=FDwQO14UGM5SUk/PNniHDmDivUIWcO7xrzPBHqSWB1I=; b=A6jg4MfBNchiy0fnKmA0SNIOP+lZAs0/Sv9VkXwwo06HeLiCGw78dfzsH/5nLFG65r w6u92vY9wEhnzC/sA242osRFwObc2ITQj9+1zZEivILxuDSonxX8yRxnpx8E0w4gNJ1A lEAlUrnKEz/ucgONxz5koXdo3ulnj+KeQ6+J3XxckyuOV4hYeDcQc0jk15SKAXXxuX30 2JSF8sRR47TlMUfEJimtILcGnjqatjvh2+cN52cvFWb4T2UmmgzzHqwcdeeuZZYP2+wi UVSldv345vb0+iIXmFYzWhBequIphMEuBNOFn6jnp+88JOQeRvb0NlSftpMILpbD0QtW gXFg== X-Gm-Message-State: AA+aEWbH1X1EKwOnWYVFcv0UL3tFgoVfaPW62FLw55TdS8a/doRENioe oPenN5oZXbs1SlVg94DI4gb/ENeD X-Google-Smtp-Source: AFSGD/VsqUuNl23Sx/iEVXKXFVrMpeUKcQqpfGXz1sHdHHvCLhM9IsZlAAVu2s+rYqyrl+lp2a88Gg== X-Received: by 2002:a1c:834e:: with SMTP id f75mr2837813wmd.17.1544102596377; Thu, 06 Dec 2018 05:23:16 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a7b:ce03:: with SMTP id m3ls4563740wmc.10.canary-gmail; Thu, 06 Dec 2018 05:23:16 -0800 (PST) X-Received: by 2002:a1c:2314:: with SMTP id j20mr19314628wmj.142.1544102595893; Thu, 06 Dec 2018 05:23:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544102595; cv=none; d=google.com; s=arc-20160816; b=niNY56iErfw/X8To65LSvfE5m/3hNGLwBxB8fcx4m7vwayo8prVDSu3divF8mMVTAS IOSWvfG1SLclYnDTwXF0V7xSclZ4VEtP0Fm9v+12Q1A2TBtHIeCRLHtH73+3c6mn7GJQ +MTCPOq/y5wSf3oZNST1tPUrvOXYEaCl1wVAFsKKoX57M+JpYzOKiSv4QvGTNYkQz9eW /11dgZEh/p7LhQZBQwy0mlRLhLZOb65+RQn9rFaeNvpFYO3L6va/UshU/bVlIB+Y+7XS gY8GgI2RsWDAaEOpzvFZXJc+wx95MvJqfow6gRMI/vtCMGKQw+Y7o+BiQewJwb7goZJd 5wqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=FDwQO14UGM5SUk/PNniHDmDivUIWcO7xrzPBHqSWB1I=; b=N5aZZp/xZKFzaAj02FNGEFitAPYTXmCkUqwOeLPAB7Dh6UxqlegheN7bOGve5BTtlk lRYHFpXheZ/zL3oChjESslTTEcl3MedWLnpi6X6hWCLkAROgGzJW1RUKncNN9QzThLKF r0pNVckDNzclSkEnrWIF6C+8v7MjBR6Wblx+Din1E8pm8kmtUKvLPz4svvAhBTvG40HN ChAhqUIhFgNco//ZtkEUGYYL0C6RvqOO0gueJrkw7IMkb/PHR2MKmEykDuqxy88pHzqy KWaeZPv7aEDAQ+M4lp0KZwZnK1TxPUEzrKYGnNmFXXAMGJOAecwtLt8mpBMN01DrSc51 jz3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WxNuUCnT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t7sor300388wrv.18.2018.12.06.05.23.15 for (Google Transport Security); Thu, 06 Dec 2018 05:23:15 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a5d:4a45:: with SMTP id v5mr24199502wrs.7.1544102595481; Thu, 06 Dec 2018 05:23:15 -0800 (PST) Received: from localhost.localdomain (ip-161-243.sn-213-198.clouditalia.com. [213.198.161.243]) by smtp.gmail.com with ESMTPSA id z13sm363769wrq.19.2018.12.06.05.23.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 05:23:14 -0800 (PST) From: Jagan Teki To: Chen-Yu Tsai , Maxime Ripard , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Michael Trimarchi Cc: Jagan Teki Subject: [PATCH v2 2/3] arm64: dts: allwinner: a64: Add A64 CSI controller Date: Thu, 6 Dec 2018 18:53:05 +0530 Message-Id: <20181206132306.11843-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181206132306.11843-1-jagan@amarulasolutions.com> References: <20181206132306.11843-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=WxNuUCnT; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Allwinner A64 CSI controller has similar features as like in H3, So add support for A64 via H3 fallback. Also updated CSI_SCLK to use 300MHz via assigned-clocks, since the default clock 600MHz seems unable to drive the sensor(ov5640) to capture the image. Signed-off-by: Jagan Teki --- Changes for v2: - Use CSI_SCLK to 300MHz arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 384c417cb7a2..d7ab0006ebce 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -532,6 +532,12 @@ interrupt-controller; #interrupt-cells = <3>; + csi_pins: csi-pins { + pins = "PE0", "PE2", "PE3", "PE4", "PE5", "PE6", + "PE7", "PE8", "PE9", "PE10", "PE11"; + function = "csi0"; + }; + i2c0_pins: i2c0_pins { pins = "PH0", "PH1"; function = "i2c0"; @@ -899,6 +905,23 @@ status = "disabled"; }; + csi: csi@1cb0000 { + compatible = "allwinner,sun50i-a64-csi", + "allwinner,sun8i-h3-csi"; + reg = <0x01cb0000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_SCLK>, + <&ccu CLK_DRAM_CSI>; + clock-names = "bus", "mod", "ram"; + resets = <&ccu RST_BUS_CSI>; + pinctrl-names = "default"; + pinctrl-0 = <&csi_pins>; + assigned-clocks = <&ccu CLK_CSI_SCLK>; + assigned-clock-rates = <300000000>; + status = "disabled"; + }; + hdmi: hdmi@1ee0000 { compatible = "allwinner,sun50i-a64-dw-hdmi", "allwinner,sun8i-a83t-dw-hdmi"; From patchwork Thu Dec 6 13:23:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 64 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f70.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 509142E540B for ; Thu, 6 Dec 2018 14:23:18 +0100 (CET) Received: by mail-wr1-f70.google.com with SMTP id w4sf132021wrt.21 for ; Thu, 06 Dec 2018 05:23:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1544102598; cv=pass; d=google.com; s=arc-20160816; b=zBOMUEDsUXC+QEqvt49a1vY5D8cheaRvAJwVrDPLCW8U6FqqSdIwaGijKNNFyIcKhz hfw5WLKY+G/Xcrj77HYuKhZbiZofBsycgUuAUno1opdcU8zQ56K4oh5ynfwnml1nPWxJ ISYVNpdx+166MkEcs//y3ctDy/qDpYmBPT38OcYaPQ7A0sDnAGB/3+KKbO5jH35vwuVY 7ywFmYH/mdamN0KKtiYYnjbEULjCEuXJ3cLiV+441dDrUuto8sFpXJy9NebXkn/T4m5z UXwMmwLHWhxX9hec/AneSIB5OMFrhGuxNtoSD7zR2DAaRGfyxN7SJbDfoUvrJ2mIJQrf wJwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+6c2p5GS0n2B85+iY5/xmGhhqO6RfF4DQegwQl6h6Xc=; b=yRUeBq76MiIT7+A+Lve5pEk1oPQTzCVIfVERNv0HdNMaVExc46lKIwXdazWLjT++WG lktKGBRHV5oZCv8GAipqHLzOO1bQtMNlIexzmxmSLMAMn/PJgrmWXeRIx/p246aFvNLv TNDmRgZWF0SzziFC/NcWxPI8//H3oydrgdjzcGJb3fW28vCW7blutOsmur7OU9OGYP86 0Ys0GWONqf6NAjE2zIfTMF518Ac2VPPmovMZHFDcT0WwgVwo/e/leakANj8//CgsONYM 7G3q0ZL10+tTlXpjvjZlZurATyvVgk0jJ+FiAVtnOeLrveLQEpsnNmIemP6lpt3ov93n PYvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HIOiqs8x; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=+6c2p5GS0n2B85+iY5/xmGhhqO6RfF4DQegwQl6h6Xc=; b=Vj1g1NYgxxAyjLuBLiHU5i+Xj6VmEqgeUxwpRiiUFYPgU8X7f7ryklPzSi9BGghJAx dxJjqazdfRkqKaUwu3SyUD7r7Gv7x1jQDwtEee5Y7oObPTgN1e37fwW95D6yvF9MHCIt V/DYPOxtgrda1nbYmLCZvHM5p21RqFv8B/tho= 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:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=+6c2p5GS0n2B85+iY5/xmGhhqO6RfF4DQegwQl6h6Xc=; b=eqA7wlQhsgzZIAhNbS7S3kB5WQItU0I4+6FFUZuYMEHq+VogN6ar0v+IvwbxhuX9d6 s/5Q1ikJHlKSOKJY/qSDs+Yd/H/qqF4vsAEstytwoQ+L99FJ1MLxiFMXqxjMA15Fi4W5 65IFj2YkbRLqcadFIPaIppB2e+YvGwciWJwvvwhvone8M5zYod2/3iE6D0QZ/e21hOej kBuuNpqxtIXydQ42e07/zrlW6IZPocOACjV3s4M+bLavx6QnS6xDwZvbZ8ZWwITG4nXO PuL6KFkM0lBQeifTFFT9lp8AYwV7sRrBf76erj6yDM+c+qMDl821pCpuiyJ/6PkfToo4 Mx4Q== X-Gm-Message-State: AA+aEWa/tNQz9ZtXYEwpbtEH7n7QQBKCUk06WdfnTtIoiSXCq5nfGSty HTCYrgW3kig6iHsDvrpaYjTkp6l8 X-Google-Smtp-Source: AFSGD/Vsvlq/njgAw614FSpVLBL0Zt62vdPqYw/V7TDo7C2rOUXEn4rdiVr0EGz6Pi/sJIAVpGP55g== X-Received: by 2002:a1c:b482:: with SMTP id d124-v6mr2941794wmf.16.1544102597930; Thu, 06 Dec 2018 05:23:17 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:4982:: with SMTP id r2ls7094941wrq.0.gmail; Thu, 06 Dec 2018 05:23:17 -0800 (PST) X-Received: by 2002:adf:9484:: with SMTP id 4mr19724033wrr.98.1544102597483; Thu, 06 Dec 2018 05:23:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544102597; cv=none; d=google.com; s=arc-20160816; b=QzCSCpBPiekWMdcIZEnHercSZ4EsQsNmcs3V6yr3mwciKrMben587ZDeJVux7Fco5P I9Y14u7aacSyXZbIhs/ljo7XcS1Mqc+Ha1jpI/VW/bEUZchRsx3jBOcw25WrJwJd+Cat YYbqDGPkB+AoyLGT6GFediZ7noUTdh5qOT79XUGWBRA9hiQWmVaAv9LVF6R1+xPelEyF oPfaMmIfpBesYayazQgISwK/RxSCk1QwS3WyBSNuI0oNe7iK+vrGXMMdGzn+sdNd9QV0 201h/zD65Nlq3ZoKfSJm0biXunTQxo9N3goYVjF/dL1nY7U9NIekVr8f0+4LnaBLSlpj 2Zdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=+6c2p5GS0n2B85+iY5/xmGhhqO6RfF4DQegwQl6h6Xc=; b=nIIz0TKX0b14P8S6NRCbqKpLCpPxP5mzQchB++448ZVU/LDc4flg0WCrVW3v4kJ8AK Vmo0QWZzMa7L7oZDNges83JRunhCjx0NUzKl7tBSoyyh35C1bbqIeSKgQ81G8WJenE19 A4jjKpH0E/rcXguJNoA2kbtMH5ABc9jMjfnWBvLMKyzf4tOMD3cQ3c5cz+5+TGcXAtfo E75UBTFux6E8nkuL0PPeIPFz0jDRDeHK9cGmJwJiHeNVVpS66g39oTRY8n0Dmw0Id5w1 Esm3jQWWqu+sbblzuIDSppcm7JsUq2o7wBJqOA+xBmLdcF7cMxG+bmkMXrqLlM2drWj8 jzeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HIOiqs8x; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id w8sor292960wrl.37.2018.12.06.05.23.17 for (Google Transport Security); Thu, 06 Dec 2018 05:23:17 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a5d:4b42:: with SMTP id w2mr25496873wrs.156.1544102597199; Thu, 06 Dec 2018 05:23:17 -0800 (PST) Received: from localhost.localdomain (ip-161-243.sn-213-198.clouditalia.com. [213.198.161.243]) by smtp.gmail.com with ESMTPSA id z13sm363769wrq.19.2018.12.06.05.23.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Dec 2018 05:23:16 -0800 (PST) From: Jagan Teki To: Chen-Yu Tsai , Maxime Ripard , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Michael Trimarchi Cc: Jagan Teki Subject: [PATCH v2 3/3] arm64: dts: allwinner: a64: Add pinmux setting for CSI MCLK on PE1 Date: Thu, 6 Dec 2018 18:53:06 +0530 Message-Id: <20181206132306.11843-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181206132306.11843-1-jagan@amarulasolutions.com> References: <20181206132306.11843-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HIOiqs8x; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Some camera modules have the SoC feeding a master clock to the sensor instead of having a standalone crystal. This clock signal is generated from the clock control unit and output from the CSI MCLK function of pin PE1. Add a pinmux setting for it for camera sensors to reference. Signed-off-by: Jagan Teki --- Changes for v2: - new patch arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index d7ab0006ebce..902b5238f1dd 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -538,6 +538,11 @@ function = "csi0"; }; + csi_mclk_pin: csi-mclk { + pins = "PE1"; + function = "csi0"; + }; + i2c0_pins: i2c0_pins { pins = "PH0", "PH1"; function = "i2c0";