Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1863231rwr; Fri, 21 Apr 2023 00:12:11 -0700 (PDT) X-Google-Smtp-Source: AKy350bB5ZQWoCPcUaANJ8bytrl1CNTziuXzAZI9nenJmyOAGy02aV5pGBO78FKm21+bc6PfAmiE X-Received: by 2002:a05:6a20:e68b:b0:ef:70b:42fc with SMTP id mz11-20020a056a20e68b00b000ef070b42fcmr4945508pzb.38.1682061131589; Fri, 21 Apr 2023 00:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682061131; cv=none; d=google.com; s=arc-20160816; b=Ibc/YTVvEQAPRy6i9DnDE6kskOmGGZEi0vxYO0wZ9qjpI0aGI9KjFT6D3erDCs/q1y ijIdnEWgFTo4kPP+wb8RBgMH2YN1QW1ZC1kF9WKrnqYavJT9DXjXs749F/BlYa74g5mx 1evPntsFQGHTXXzOB9Ns1DkdKNBYGLK2rSx7tNVUW2s3L9BitBHv/XH3mwuSAQ0ag3Ii 0K0qqcCdBSDmWFOkaWUQb/459/1Tbdx9xOoWs2st/gGvuvtD6drZ4z0AeHPPFrcjAt1+ H/ut+6GEHbX+EeKMLuXo3o6sz9Po9EKETvdG/nk0JO5U6gYGhFlqgiUeEKTOLLke2ifx y5jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=koHPrluoK/FU2Nmd2CxYRy3PW2KQiP3OhGJFXyEkUR4=; b=PNP6BR7o3CFA0IkFm9web6lZTsVtBLo8/KXMXG2EyRA7LmFq4Tkn0eJRRvzCLTF2RC kaNm71KfKkoYn1LTQqZuOqHUHEzq8pzqGfMVpHUF/Ho+jSyq46U5yHUzJRH2C2k59vCU znm0ME/LnBT5r+tVCNdLzixszHI+aAgdGkmz5ZPEMiR6upa34DWhrnOQJ+rMmJHNbM6x SBwHZniu5JYa5KxBApYUmpDfOuM2QEifN0Qis4epZOEMFxVnoMb9rvKlfgN+Hko5zQ+Y MZMR10XWM50USg5SCzBthCBaiQ6H9BNndl5u0gzXW0ZweeXs4xPrwFtdD7onrGg0w0jD LFbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a63d507000000b0051fc9e06b8csi3708059pgg.378.2023.04.21.00.11.57; Fri, 21 Apr 2023 00:12:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229820AbjDUHHZ (ORCPT + 99 others); Fri, 21 Apr 2023 03:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjDUHHX (ORCPT ); Fri, 21 Apr 2023 03:07:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1B002101; Fri, 21 Apr 2023 00:07:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4643364E2C; Fri, 21 Apr 2023 07:07:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 950C6C433D2; Fri, 21 Apr 2023 07:07:17 +0000 (UTC) Message-ID: Date: Fri, 21 Apr 2023 09:07:15 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 1/3] dt-bindings: display: synopsys,dw-hdmi: Add property for disabling CEC Content-Language: en-US To: Rob Herring , Jernej Skrabec Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, krzysztof.kozlowski+dt@linaro.org, wens@csie.org, samuel@sholland.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-media@vger.kernel.org References: <20230415104613.61224-1-jernej.skrabec@gmail.com> <20230415104613.61224-2-jernej.skrabec@gmail.com> <20230418214115.GA2376963-robh@kernel.org> From: Hans Verkuil In-Reply-To: <20230418214115.GA2376963-robh@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/04/2023 23:41, Rob Herring wrote: > On Sat, Apr 15, 2023 at 12:46:11PM +0200, Jernej Skrabec wrote: >> Even though some DW-HDMI controllers have perfectly usable HDMI-CEC >> implementation, some boards might prefer not to use it or even use >> software implementation instead. >> >> Add property for disabling CEC so driver doesn't expose unused CEC >> interface, if CEC pin isn't connected anywhere. > > Isn't this all true for any bridge supporting CEC? Make this common. I agree with that, there was a similar case in the past: https://lore.kernel.org/linux-media/20180323125915.13986-1-hverkuil@xs4all.nl/ I never followed up to that, but I believe this is generic for any HDMI transmitter or receiver with built-in CEC support where the CEC line is not actually hooked up to the HDMI pin. There is no way for the CEC driver to detect that, so this has to be communicated in the device tree. For standalone CEC devices you can just disable them in the device tree, of course, but if it is incorporated into the HDMI device itself, then it needs to be told. Regards, Hans > >> >> Signed-off-by: Jernej Skrabec >> --- >> .../devicetree/bindings/display/bridge/synopsys,dw-hdmi.yaml | 5 +++++ >> 1 file changed, 5 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/display/bridge/synopsys,dw-hdmi.yaml b/Documentation/devicetree/bindings/display/bridge/synopsys,dw-hdmi.yaml >> index 4b7e54a8f037..624d32c024f6 100644 >> --- a/Documentation/devicetree/bindings/display/bridge/synopsys,dw-hdmi.yaml >> +++ b/Documentation/devicetree/bindings/display/bridge/synopsys,dw-hdmi.yaml >> @@ -48,6 +48,11 @@ properties: >> interrupts: >> maxItems: 1 >> >> + snps,disable-cec: >> + $ref: /schemas/types.yaml#/definitions/flag >> + description: >> + Disable HDMI-CEC. >> + >> additionalProperties: true >> >> ... >> -- >> 2.40.0 >>