Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6727967rwd; Tue, 6 Jun 2023 00:42:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7GYaJR5wtBNfFS80G8AqovBigaXL8k6MBTGFjfAZgEwS2Gm/fEymfuXGOfI5Nshk8iWYF1 X-Received: by 2002:a05:6358:4e11:b0:129:c1c1:c897 with SMTP id cf17-20020a0563584e1100b00129c1c1c897mr1351260rwb.24.1686037357316; Tue, 06 Jun 2023 00:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686037357; cv=none; d=google.com; s=arc-20160816; b=i7aWeysIKrs63L8zNzX5s2CQSdKlfQzPhkPLw0sFusTPpA/BAF64JpQAcKun3VxR3H KLNiBm0VGky+jdt+dUutOLkcDZ3MS/kuCw/vx5cYdAVsK3j00CjUG+gXISb+RL99X/aF AdzY+W9rFQfG/etEEuB9zfyX7i8jAbDSH4C7SLTPC4GOWZ8uzbx2zJb/q3m78rDjjw0+ 7KAFvTW5P9fnyITBbfnLVIGutH76j3OC3usc6jCPaMVwxomIQmIDW9QhiCQq4jW2GssH 7w2rkT36fs5Y6aLXfYT9Tw5zYKAhTFvCLlAYdycuE7/zfYwWsDpl/4qELq4S155NH5LE X61g== 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:dkim-signature; bh=Nmg5B5xd0F6ji255iT9ndVhG10e1qDV7laJHq3pBNCk=; b=QoIj18qGXhf7UfiWpmFGHXjSds7Ew51b+UXIFYp0c0QnnQy7xpRkovfS7XiEVjXhLI uI0bUTTiEDTSZp1eaguBR0OZpsqdeTsnQ2cu3e3khuGBrcuJl0hYiFIHj42UIBRtT6WS NiOkEpXI1Qz3ONDnE362MUkdcKAtgxGqkpO8U+1IsXNmADcJj87hAHhFHvGe0Pjf16/Q 2hlfVMXdSPR9uAHl2L/tV4bPavzcldRFQDE2XkPd/BkS7Jn/LTl3fdq5Z+oLqaTuRhL+ esFG0R1xFHQcVRMW55VMD7aqD6n2YqqXmqZ+W74Qm57Z5C5Szv+yF4b+uhswFgT071Jj 3b3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Q1273Etd; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a17090b010600b00256ae6cfd31si6882481pjz.101.2023.06.06.00.42.25; Tue, 06 Jun 2023 00:42:37 -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; dkim=pass header.i=@collabora.com header.s=mail header.b=Q1273Etd; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236176AbjFFHbI (ORCPT + 99 others); Tue, 6 Jun 2023 03:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235308AbjFFHbH (ORCPT ); Tue, 6 Jun 2023 03:31:07 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E2B911D; Tue, 6 Jun 2023 00:31:05 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab] (unknown [IPv6:2001:b07:2ed:14ed:a962:cd4d:a84:1eab]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5DB726606E98; Tue, 6 Jun 2023 08:31:02 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1686036664; bh=G9Yg0TlFYfsIFKwfhY9f+u1E2TG+wfhcVIp+pvHR+b4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Q1273EtdsG0JKBag/szWRjp/W+OmD9K0OIHSeUMw0w77R7uUWJNJlMRd4dTsf1sYu GLEuQV4HRJoalp02WkpDphRmE8ug4K2UsKmJPnOxI0/TAn3LPxJimghjNxEl0MgCBD f0ue0X1AtmFhl/2GQoWwW4RYmE495iZcpzCzYPq7/BBAcydvbPW0JaKrtv4cntL9Ap 3R2srxnNaqjSqLq8eq+TTHGMfKdvcgT349ncQS9Gmz7AoXZFwSNoLbrj9ZihsWpeJW xEeANv/0MysGhWD7PcDbfHNVMgqLqWQh2G9FUb+nzlU+gpVwPI4UjfHB5vNfjuPHwN HvvMPLObxxW+w== Message-ID: <3400aec0-4532-ab39-52c4-13c718817ab3@collabora.com> Date: Tue, 6 Jun 2023 09:30:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH 3/6] media: dt-bindings: mediatek,vcodec: Remove VDEC_SYS for mt8183 Content-Language: en-US To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Matthias Brugger , Hans Verkuil Cc: kernel@collabora.com, Andrew-CT Chen , Conor Dooley , Krzysztof Kozlowski , Mauro Carvalho Chehab , Rob Herring , Tiffany Lin , Yunfei Dong , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20230605162030.274395-1-nfraprado@collabora.com> <20230605162030.274395-4-nfraprado@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230605162030.274395-4-nfraprado@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Il 05/06/23 18:20, NĂ­colas F. R. A. Prado ha scritto: > The binding expects the first register space to be VDEC_SYS. But on > mt8183, which uses the stateless decoders, this space is used only for > controlling clocks and resets, which are better described as separate > clock-controller and reset-controller nodes. > > In fact, in mt8173's devicetree there are already such separate > clock-controller nodes, which cause duplicate addresses between the > vdecsys node and the vcodec node. But for this SoC, since the stateful > decoder code makes other uses of the VDEC_SYS register space, it's not > straightforward to remove it. > > In order to avoid the same address conflict to happen on mt8183, > since the only current use of the VDEC_SYS register space in > the driver is to read the status of a clock that indicates the hardware > is active, remove the VDEC_SYS register space from the binding and > describe an extra clock that will be used to directly check the hardware > status. > > Also add reg-names to be able to tell that this new register schema is > used, so the driver can keep backward compatibility. > > Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno