Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1533393ybk; Thu, 21 May 2020 09:05:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbKYJnjWWKNvMVtxCnjr8JxrYTFQmqu7wFA2wUP61lIs9n1ZZu0di+nOpBkssSMM67I15H X-Received: by 2002:aa7:d48d:: with SMTP id b13mr8264797edr.262.1590077113419; Thu, 21 May 2020 09:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590077113; cv=none; d=google.com; s=arc-20160816; b=Q9qZaPNQpJzWv2nDeuFj78NN/7fLBeno0pwy7VQa9RQ5GYbsRb6Vwg6F9mv3kDyafd 05NNyzpSn4ulqIgF7W/87nCYNeOVV8MqAArxJj1RUqXNR+AqmCA9ZTuFmijDOuNEBZVf BFvoqB+kZU6Mf7TWFtEB/3H6Oaz7oA+A2Fa+VBdXWdC+xKdBqLVtzSXl//bz7cgnX+7D eED+/7rRQ9yD0b3+7BND2l1Lb4VSI0CY6Vv9oroiqo31d5KkA6FRvhxcecsKfXPUG2JY /oLdEUsZnXWJlfqsyW8rtoKeRKwOBGqBL9jL7wyIyUn/fKOKOMCEkibUgEzlXd/dgXsZ cxLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=l1/7oVopGR8ZQd6NaIEuCXZDCOqHLrR/3N7LZWtpNqA=; b=GF0ZmyNtHzIlBh91HOjsAHzkRmmK6edwzQiAbobLNuQxGtCMmqTDJHiii9AdlMk85E X78dIm+qRT5lYoISy02kBVyEyk9eC9ZAlIhA1/gj1+fhUIBYiRekjpV+CoSpUQHJ2W2x 8nnuaP19g/Gk4srJCa029xPKJXoLjjXqIGlwZ7vABijCaUQ09xAErBuL60cOehMFgZCX UGbAFiSiLDws2+BYrXWxb/BecH8516DILfYoVletvSU/UctfpitQtFt8U0jdUljqXExL Ixm4b3lNKfexrDdVkfZXKCM6r6idS4FoOa3Xymii4DjztFadw9RbIyQucemwKbX1asSQ Hrxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GeTX2t72; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si2882461ejg.267.2020.05.21.09.04.49; Thu, 21 May 2020 09:05:13 -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=@chromium.org header.s=google header.b=GeTX2t72; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728456AbgEUQAv (ORCPT + 99 others); Thu, 21 May 2020 12:00:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728435AbgEUQAu (ORCPT ); Thu, 21 May 2020 12:00:50 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95E4BC05BD43 for ; Thu, 21 May 2020 09:00:50 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f134so6017996wmf.1 for ; Thu, 21 May 2020 09:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=l1/7oVopGR8ZQd6NaIEuCXZDCOqHLrR/3N7LZWtpNqA=; b=GeTX2t72tcZNw5Q1Vq3bxOOwmr927HcyIkpXvBpKk0ZxuhWAwrGZ2fRvHtBA+vCd0a shiz7RMixnasTu8+CYC9VSFQPu/XFvPZUYSqT+77V10ReU/ZVMLAWMEwJi0ovuk6Cshd DWBNncRW5nBLTOcjfC9jlB3vujEzgdkgNY/1Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=l1/7oVopGR8ZQd6NaIEuCXZDCOqHLrR/3N7LZWtpNqA=; b=RicBzfOHG1HJN0uc+dAP/pgqH71FQou33P6yX/A/Y2rPS6SY9dYRjLj4pNd0KR9byv Pe1ozOSUb2UHt68eSp1PJHd7d6F90TWky2IG9ioBrCx/3u04BNx1FAnWRiNcZJYtA3F+ o7yoUDjAlWMQxMpIO7hwgaYSXtvuAqnosf8d0dudnuesllF2zDGlFLwucw5YvutpFYFF BfIkSPw12bI0aWCYYnL9wYcE6Aa8+sldzaT+RCu1CKaSB1TXbNJywEXtiZjlM1yd4z1+ Cvj1a2NYipQzw7jM0gpa6p5up3VRQrt8dV9EMiLutoHCSF7k5Fr0kkYju9o20tAgQmv/ P5mg== X-Gm-Message-State: AOAM532rdrXhlqeVXGruHw6iuzzcrJm6uUV+oOaGgJFKrhHqE33An2tT UDgqU9aqTHJ7G5n5wydu7ax6Rw== X-Received: by 2002:a7b:c3da:: with SMTP id t26mr8868032wmj.146.1590076848935; Thu, 21 May 2020 09:00:48 -0700 (PDT) Received: from chromium.org (205.215.190.35.bc.googleusercontent.com. [35.190.215.205]) by smtp.gmail.com with ESMTPSA id y207sm7661823wmd.7.2020.05.21.09.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 09:00:48 -0700 (PDT) Date: Thu, 21 May 2020 16:00:46 +0000 From: Tomasz Figa To: Xia Jiang Cc: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Rick Chang , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Marek Szyprowski , srv_heupstream@mediatek.com, senozhatsky@chromium.org, mojahsu@chromium.org, drinkcat@chromium.org, maoguang.meng@mediatek.com, sj.huang@mediatek.com, yong.wu@mediatek.com Subject: Re: [PATCH v8 11/14] media: dt-bindings: Add jpeg enc device tree node document Message-ID: <20200521160046.GJ209565@chromium.org> References: <20200403094033.8288-1-xia.jiang@mediatek.com> <20200403094033.8288-12-xia.jiang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200403094033.8288-12-xia.jiang@mediatek.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xia, On Fri, Apr 03, 2020 at 05:40:30PM +0800, Xia Jiang wrote: > Add jpeg enc device tree node document > > Reviewed-by: Rob Herring > Signed-off-by: Xia Jiang > --- > v8: no changes > > v7: no changes > > v6: no changes > > v5: no changes > > v4: no changes > > v3: change compatible to SoC specific compatible > > v2: no changes > --- > .../bindings/media/mediatek-jpeg-encoder.txt | 37 +++++++++++++++++++ > 1 file changed, 37 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt > Thank you for the patch. Please see my comments inline. > diff --git a/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt > new file mode 100644 > index 000000000000..fa8da699493b > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/mediatek-jpeg-encoder.txt > @@ -0,0 +1,37 @@ > +* MediaTek JPEG Encoder > + > +MediaTek JPEG Encoder is the JPEG encode hardware present in MediaTek SoCs > + > +Required properties: > +- compatible : should be one of: > + "mediatek,mt2701-jpgenc" > + ... What does this "..." mean? > + followed by "mediatek,mtk-jpgenc" > +- reg : physical base address of the JPEG encoder registers and length of > + memory mapped region. > +- interrupts : interrupt number to the interrupt controller. > +- clocks: device clocks, see > + Documentation/devicetree/bindings/clock/clock-bindings.txt for details. > +- clock-names: must contain "jpgenc". It is the clock of JPEG encoder. nit: In principle the clocks should be named after the function the clock performs on the consumer side, i.e. the JPEG block in this case, I guess here it's just a generic clock that does everything, but I guess it comes from somewhere. Is it the AHB clock or something? In that case it would normally be called "ahb". > +- power-domains: a phandle to the power domain, see > + Documentation/devicetree/bindings/power/power_domain.txt for details. > +- mediatek,larb: must contain the local arbiters in the current SoCs, see > + Documentation/devicetree/bindings/memory-controllers/mediatek,smi-larb.txt > + for details. I believe this isn't necessary anymore, because larbs are added automatically by the MTK IOMMU driver using device links. +CC Yong who worked on that. > +- iommus: should point to the respective IOMMU block with master port as > + argument, see Documentation/devicetree/bindings/iommu/mediatek,iommu.txt > + for details. > + > +Example: > + jpegenc: jpegenc@1500a000 { > + compatible = "mediatek,mt2701-jpgenc", > + "mediatek,mtk-jpgenc"; > + reg = <0 0x1500a000 0 0x1000>; > + interrupts = ; > + clocks = <&imgsys CLK_IMG_VENC>; > + clock-names = "jpgenc"; > + power-domains = <&scpsys MT2701_POWER_DOMAIN_ISP>; > + mediatek,larb = <&larb2>; Ditto. Best regards, Tomasz