From patchwork Sat Aug 4 11:14:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 10555677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A198313AC for ; Sat, 4 Aug 2018 11:15:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 883862A02A for ; Sat, 4 Aug 2018 11:15:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C3E52A152; Sat, 4 Aug 2018 11:15:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 160242A02A for ; Sat, 4 Aug 2018 11:15:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AOH/wp8+sYShk/V0oypixcql5kNKioZ/hfc29mfgelM=; b=l0XuzkqGF6CODp P9n3t7LnzkNbEjkyMOOZNR9RosJiuKOt3EaHQsTrFqH3Wv3vPHVjwoBuJVTQprfzrYHji9wG6yDR+ 94ryGlPrK8Hq92Va1259M0KihrnNZ6eHRkk8irS8j5A0c1e/FV/EFZLSH0zgdRDshB3Ui8f7bFobr dAiQDn7jtomGaD1QMGt3FsrNiMGuKDwRpBj1OwWX1xVYO5iZ/oC5cl+gSmBgFPXtKKZBupHjbhCQf A2T2vfIoYVNhpR2oopPf2cXHXWgnHHTSKGwbyTgePfMLH1FqvcfNZBX6MSnkMSqtU+DFSGFVeJl2s Cbu6YZ43E4itpJ4y36lA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fluWv-0004vo-DM; Sat, 04 Aug 2018 11:15:29 +0000 Received: from mail-ve1eur01on0097.outbound.protection.outlook.com ([104.47.1.97] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fluWb-0003Bv-Tg for linux-arm-kernel@lists.infradead.org; Sat, 04 Aug 2018 11:15:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6ZCxZiPOq01DgtqeNoBYvdYLNpkWsLWQ+UV51mXhsgw=; b=NGBSfbV+6S1WGZTFbZcIigsXSPAX0yz8vNB4eMszhdZf84XJOv3qzMPXINDzYGS4AXk43YCPEvxiQKXPWt2XBt5m+k9UFxmWtIbYr6gJg6bIcyXtkd+ilkHCgxsYQhNOfDy9LWbf/R9ZwG+aJ1XD5cFlR+NUJ1iUU1WVRVPR2kM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from orc.pedanet (85.226.244.23) by AM5PR0201MB2451.eurprd02.prod.outlook.com (2603:10a6:203:35::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1017.15; Sat, 4 Aug 2018 11:14:58 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v7 2/3] dt-bindings: display: atmel: optional video-interface of endpoints Date: Sat, 4 Aug 2018 13:14:38 +0200 Message-Id: <20180804111439.7455-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180804111439.7455-1-peda@axentia.se> References: <20180804111439.7455-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: DB6PR0301CA0043.eurprd03.prod.outlook.com (2603:10a6:4:54::11) To AM5PR0201MB2451.eurprd02.prod.outlook.com (2603:10a6:203:35::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dbc24798-23ab-4fb5-6320-08d5f9fb84a7 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(7021125)(8989117)(4534165)(7022125)(4603075)(4627221)(201702281549075)(8990107)(7048125)(7024125)(7027125)(7028125)(7023125)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:AM5PR0201MB2451; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2451; 3:jkm84Cr3jDCPjM0nEQrNKczE+9E7Bqy3/q6Exj5IquLg7wRoZHuBT+uL4eaOMjV9hE+XYjHqias3xESF7H8CLsQH76bdYfNDWGpIwV/5X/ejJlTZ5F/30IN2Qr9gLjqMYPaCsy4whHHznyRw61MSzILJt/gQYxQNMvrr1gtdPukYC2/4x/06lwGfFqWpB78WzneOxlMmWF0loqQtYZWloQ+HqCEyu3fh3KDduxZSnUhRnmIvI3FAKPaSZzR3+bdn; 25:YdjXVkkNAAlhDld4exzglZN6UIoPXCpjA5nqrw+9UN7ulZJ64iIsVYmbxey6BgVJ7P+SgkXdH1Adt2qXCsMtmVuXYE4wsjLltrBn2LyOqEXP7t6gqhlp14ysWxEoxthaqetNuUk1KvOoW5UYKgk/XFNJf9RKLYPOPI7aIftWxfjnt4U31trE3uqHdhkLYxA7Hje6ybqWorEv7bresLYOUZ1W6QTNAFEIY+s4ixYUgfeAWVHHFVvJtJE6oAW0tLzrG6M+zbJAIdzydlL1tU654vMpVkE65uvlNA2yKVZOJPAixPKgsgMojise3CCc3H683ap4rVqOfjhbm2W001pYRw==; 31:0O2rHC2vNNyfBnh87giz2QA5AqAyzbgdewwcVURKaXUWhIyPUrg6b4uvUcRrhhTLQMktL6252ITZAh4FDmdjIZIoYYTz8TXUgTFesTkaHn4cgpIDCYtYx2YWWbARA69vQeKeIXnNp+71UHxnQgEA3cQEi+l0vv9ljbG51vmSEIzMsJ+NCTF9twrBLUXHuitRbsdIdtkLrRx2F2mvnyNfw1NIO5sV5/rco7q3+txAvgo= X-MS-TrafficTypeDiagnostic: AM5PR0201MB2451: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231311)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(20161123560045)(2016111802025)(20161123558120)(20161123562045)(20161123564045)(6043046)(6072148)(201708071742011)(7699016); SRVR:AM5PR0201MB2451; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0201MB2451; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2451; 4:vpCA19LkGxmMQA+/2/UjNGrhTztIGljCwYfnQkWMMduDDL9bRksZfyZX4Y4LSMkhFweMn3OwtfU/U/+gsO6cZzsSgkkOmRxOJgx0DTMal3RISQ8ihK2Z5ozBfTRq1EBqbAskMZWkg6JWyolmiIUrpGnn8oKrdynOeiy2obuBpRDqU/yL1MKTmXWy2R39TjvgFMpklYXU9XnZvnKNKCbYSQybLs9Ev3jMpGoDhEgEESibssH3kEMVbD59oewmGo2kBA2slHb0/EN93HClHwQ7ag== X-Forefront-PRVS: 0754F7E325 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(376002)(396003)(136003)(39830400003)(366004)(346002)(189003)(199004)(76176011)(51416003)(106356001)(52116002)(50466002)(48376002)(2351001)(50226002)(4326008)(25786009)(2906002)(68736007)(47776003)(478600001)(5660300001)(6666003)(7416002)(66066001)(11346002)(956004)(2616005)(486006)(476003)(6916009)(97736004)(3846002)(1076002)(305945005)(74482002)(6116002)(446003)(7736002)(16586007)(316002)(54906003)(8676002)(81166006)(81156014)(8936002)(6486002)(86362001)(2361001)(26005)(16526019)(6512007)(186003)(386003)(6506007)(105586002)(53936002)(36756003)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0201MB2451; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0201MB2451; 23:Pt7R5hl1BPa2pHcIhhWHlQdNg1Zkk+Skev/zxDm?= zTCmgtffcuUUoSGibTn4NePSCeZCm4CWihDePzaPvIaghpE3PjpsB7FrJlMu8Dy18rC0l35/coLE4FFL7woQIUv8Ky5vkfIwlW2O+ueqHLPJ85gsElzt6EYHIa1eiKjwlYkqbgSobPJGcl0NK/DtrRspvI8rAAQ0x6Uf7048X/JWDEtji4bsR7+zXOiEZAZ9SCCmLPTbL12tZ0YoMtkTgFAUTslvNeWcYDDhtjpKd0+PAiqS0FcLCjx8mhbT8QAdkt5B1MDAesjeAkSt9+zHyyi8/fymQ9kkR+y3tuuioon7Wfaqp7JMsxAF/3eSV78K5TCdo6G8lOGJMRhhD124IIqV7Qthp4Gj8/xrfajRI1xxLsmBJ6ayVwAvcNecpldNkp3lizs0d6sFBuISMBjywCos4Z78FxAU1BpzyXE1QydDg0I/NAgB0WsiOQOa3wErnMIsOXP6zI80boJhMFHustd+L5Jfkxx6tD3TWK5QyZWRfWWfZgpkJrIiw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NSPM X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Aug 2018 11:14:58.8803 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dbc24798-23ab-4fb5-6320-08d5f9fb84a7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2451 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180804_041510_269035_F7A6C360 X-CRM114-Status: GOOD ( 12.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Alexandre Belloni , Andrzej Hajda , David Airlie , Jyri Sarha , dri-devel@lists.freedesktop.org, Russell King - ARM Linux , Boris Brezillon , Rob Herring , Jacopo Mondi , Laurent Pinchart , Daniel Vetter , Sakari Ailus , Peter Rosin , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With bus-type/bus-width properties in the endpoint nodes, the video- interface of the connection can be specified for cases where the heuristic fails to select the correct output mode. This can happen e.g. if not all RGB pins are routed on the PCB; the driver has no way of knowing this, and needs to be told explicitly. This is critical for the devices that have the "conflicting output formats" issue (SAM9N12, SAM9X5, SAMA5D3), since the most significant RGB bits move around depending on the selected output mode. For devices that do not have the "conflicting output formats" issue (SAMA5D2, SAMA5D4), this is completely irrelevant. Acked-by: Boris Brezillon Reviewed-by: Rob Herring Reviewed-by: Jacopo Mondi Signed-off-by: Peter Rosin --- .../devicetree/bindings/display/atmel/hlcdc-dc.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt index 82f2acb3d374..d29e1e425518 100644 --- a/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt +++ b/Documentation/devicetree/bindings/display/atmel/hlcdc-dc.txt @@ -15,6 +15,13 @@ Required children nodes: to external devices using the OF graph reprensentation (see ../graph.txt). At least one port node is required. +Optional properties in grandchild nodes: + Any endpoint grandchild node may specify a desired video interface + according to ../../media/video-interfaces.txt, specifically + - bus-width: recognized values are <12>, <16>, <18> and <24>, and + override any output mode selection heuristic, forcing "rgb444", + "rgb565", "rgb666" and "rgb888" respectively. + Example: hlcdc: hlcdc@f0030000 { @@ -50,3 +57,24 @@ Example: #pwm-cells = <3>; }; }; + +Example 2: With a video interface override to force rgb565; as above +but with these changes/additions: + + &hlcdc { + hlcdc-display-controller { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_rgb565>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + hlcdc_panel_output: endpoint@0 { + reg = <0>; + bus-width = <16>; + }; + }; + }; + };