Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp459056pxv; Thu, 24 Jun 2021 11:42:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ2yTn+eKQ5fTJivB19xV/OCKr7Qiy+gn3lIH5A/mPmvV96t3Ch+6J/8DLfsgaR8zqe5W9 X-Received: by 2002:a5d:9549:: with SMTP id a9mr5142520ios.152.1624560155043; Thu, 24 Jun 2021 11:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624560155; cv=none; d=google.com; s=arc-20160816; b=UNv9Uusd4ap6APTh3hVLQc7NyIZm7JQ11mwwyUM3Rb3RXgOyEYV1+tikDOUf19wtoY 5skyKRH8gpGlUNcZVlxniyCyYbxpmgK3QE3UeLtTkVmpjrNVSawXSqegN/vERnhoT6gW AmhDiDCQlFYKUrbxQLL4OCT+5Xh5BWkOa8FAQRfsk04EK+I2VzsA4fIUSJkDtUrl+YAx 3IR7sbJcU8rOsz3+aJtpe58crBoFz3W/ceX5TARUH24FCX2N1gAQp2dZRkBRpevuArhC HTknOFrtFZ9BAnE8dwGroO3UEGRkyOgU5XTlyCCwx4MWrNbdMdkwfHxHN+iXtFDKJuaG x1Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PwhGT5b1kWmV4Ngw9Q8N5BJaBMf7WQHsRP6rwzdY8gc=; b=megPG1NmUJDnP68ejrziy7Jc29DI60iIpGpxtFlZK/SgX6DfHrC7C8HFIpGwINwsys FgpM6HycQiWfO7B1b2vy7akgusae8oQgoUQ7JaXoc4edBTLlG1tVxureDEfd+HoyA46S KULxfH9L3E4+5cgV4i9qj0gFOJmxJVdiTdBzQu4dGKFdpKRg9h6ohBbmqoxcc902fald Nq61YNBQnOVljEiAavK5JGRQuLaSwJiUsg3MB0WO/FpgRxJ9M18nNGxvCnjw1c09x+Mb iCMun15/p6jNQUPxuBfqb3Ab/UYkgXw6J53OTN+sdDojyL6XQXXcGgeHaFnVvgf9aQjN g19w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dK3xG2Dk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w15si3784435ilm.28.2021.06.24.11.42.23; Thu, 24 Jun 2021 11:42:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dK3xG2Dk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232643AbhFXSn6 (ORCPT + 99 others); Thu, 24 Jun 2021 14:43:58 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:37764 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232633AbhFXSny (ORCPT ); Thu, 24 Jun 2021 14:43:54 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 15OIfDQ6074471; Thu, 24 Jun 2021 13:41:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1624560073; bh=PwhGT5b1kWmV4Ngw9Q8N5BJaBMf7WQHsRP6rwzdY8gc=; h=From:To:CC:Subject:Date; b=dK3xG2Dkj9pSbC9Gvs/+Dujrnyhy/LVhV+sqH8CVVySZt9MBpqOme6UmbQqLnVqjJ 0wP1JD5vM/fqxa7U13i7yPDYvDMYYzeHP0SEuPkoZBv/M8z/gCtGngDWFsQibSZekz NDuO0LL7I/X2LDOLpzUFO90wYy11E2P4JhnUxmMU= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 15OIfDaf107198 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Jun 2021 13:41:13 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 24 Jun 2021 13:41:13 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 24 Jun 2021 13:41:13 -0500 Received: from pratyush-OptiPlex-790.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 15OIf9Hv041395; Thu, 24 Jun 2021 13:41:10 -0500 From: Pratyush Yadav To: Vinod Koul CC: Nikhil Devshatwar , Tomi Valkeinen , Laurent Pinchart , Paul Kocialkowski , Vignesh Raghavendra , Chunfeng Yun , Kishon Vijay Abraham I , Peter Chen , Pratyush Yadav , Rob Herring , , , Subject: [PATCH v3 0/7] Rx mode support for Cadence DPHY Date: Fri, 25 Jun 2021 00:11:01 +0530 Message-ID: <20210624184108.21312-1-p.yadav@ti.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds support for Rx mode on Cadence DPHY driver. It has been split off from [0] to facilitate easier merging. I have still kept it as v3 to maintain continuity with the previous patches. This series also includes conversion to YAML binding. Tested on TI's J721E with OV5640 sensor. [0] https://patchwork.linuxtv.org/project/linux-media/list/?series=5526&state=%2A&archive=both Changes in v3: - Use a table to select the band. - Use a table to poll the data lane ready bits. - Multiply the DPHY HS clock rate by 2 to get the bit rate since the clock is DDR. - Add Rob's R-by. Changes in v2: - Drop reg description. - Add a description for each DPHY clock. - Rename dphy@... to phy@... in example. - Add Laurent's R-by. - Re-order subject prefixes. - Re-order subject prefixes. - Add power-domain to the example. - Add Laurent's R-by. - Re-order subject prefixes. Paul Kocialkowski (1): phy: Distinguish between Rx and Tx for MIPI D-PHY with submodes Pratyush Yadav (6): phy: cdns-dphy: Prepare for Rx support phy: cdns-dphy: Allow setting mode phy: cdns-dphy: Add Rx support phy: dt-bindings: Convert Cadence DPHY binding to YAML phy: dt-bindings: cdns,dphy: make clocks optional phy: dt-bindings: cdns,dphy: add power-domains property .../devicetree/bindings/phy/cdns,dphy.txt | 20 - .../devicetree/bindings/phy/cdns,dphy.yaml | 54 +++ drivers/phy/cadence/cdns-dphy.c | 344 ++++++++++++++++-- include/linux/phy/phy-mipi-dphy.h | 13 + 4 files changed, 375 insertions(+), 56 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/cdns,dphy.txt create mode 100644 Documentation/devicetree/bindings/phy/cdns,dphy.yaml -- 2.30.0