From patchwork Wed Mar 2 22:07:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 12766865 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 052BAC433F5 for ; Wed, 2 Mar 2022 22:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+9x9mB860iNC2r7c/EQeNoTvb9ZmCM6XsPETmuGkLh8=; b=Sk3vsEJoBNaPsE gJnsPGbQkaAUQZQ/E1V2AT16oSO03qI2UNtI/7MKzq0XS0RsyBif7GKJEIQh5ieoPLKjvvhx2gk5o DIbWeB6pd8pgHDTHkggqq2ER4au72MGGsYzvbkb1xdCuKAB00nXAQ7mi5qSC5nhRu91UjaliSf0sM RGwwSTZchlGDvFuOQrX8At3f8bCthjwR7SnXcB4L8OLvPuMBz+uqhuNn5znFXhDCZtrccRXu3fcLc +ksBGHJUWeplzW7G/OE6E4ELQyANSO5TPeb2sn2eN5X2J+iUkrjc9Es1ngA/rq8y+jVPKNN0uSykj Dk9qc2TrXAnyEBPny9Pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPXA0-004Sm9-Ja; Wed, 02 Mar 2022 22:09:28 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPX8i-004S5G-RY; Wed, 02 Mar 2022 22:08:13 +0000 Received: (Authenticated sender: paul.kocialkowski@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id BB3AEE0005; Wed, 2 Mar 2022 22:07:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1646258876; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eymG5qtlYkxjiqQgEdxW89q1KILX/L8h+KZV8d8+vVY=; b=evJeg/DYJqPbJp6//lkkq0Tz6uchK2o+BcKYPowU5ktya//YVfpO8z2qO/tIRPdxs5IW6Y D0b8dbx8mKZbuSKVdHJhfSPsK9e7+7Wfn/V7qzMLd6fS8ECs4RgLrdTJv6qlqzPw5CVUKg KbleBJ5iGe9PyZUDsJ31q8blkUYJNpyn+v5v+nFQ1z66FUCPcNDiB1osAl7GrwnDOdZvRK uoWWu5KotZA1uc8P1sHWSw0pr9PXurFDQ1oDR65PFBO8kFcY+qNJi20KKW4rJPA09BJz4R rx0JhZ//QBcsPvQBGdgtY7kR697cy4I0SUPky5fySCa98il+toIMgC/CboD6uw== From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org Cc: Yong Deng , Mauro Carvalho Chehab , Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Hans Verkuil , Laurent Pinchart , Paul Kocialkowski , Kishon Vijay Abraham I , Vinod Koul , Maxime Ripard , Thomas Petazzoni Subject: [PATCH v3 1/9] dt-bindings: sun6i-a31-mipi-dphy: Add optional direction property Date: Wed, 2 Mar 2022 23:07:31 +0100 Message-Id: <20220302220739.144303-2-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220302220739.144303-1-paul.kocialkowski@bootlin.com> References: <20220302220739.144303-1-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220302_140809_033826_CA9E6756 X-CRM114-Status: GOOD ( 12.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Allwinner A31 MIPI D-PHY block supports both tx and rx directions, although each instance of the block is meant to be used in one direction only. There will typically be one instance for MIPI DSI and one for MIPI CSI-2 (it seems unlikely to ever see a shared instance). Describe the direction with a new allwinner,direction property. For backwards compatibility, the property is optional and tx mode should be assumed by default. Signed-off-by: Paul Kocialkowski Reviewed-by: Rob Herring --- .../bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml index d0b541a461f3..22636c9fdab8 100644 --- a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml @@ -37,6 +37,18 @@ properties: resets: maxItems: 1 + allwinner,direction: + $ref: '/schemas/types.yaml#/definitions/string' + description: | + Direction of the D-PHY: + - "rx" for receiving (e.g. when used with MIPI CSI-2); + - "tx" for transmitting (e.g. when used with MIPI DSI). + + enum: + - tx + - rx + default: tx + required: - "#phy-cells" - compatible