Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2054043pxv; Sat, 24 Jul 2021 04:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqsCMf30P3wwC2QArL46ov2xH1DhOAbgui1QJAVNCw3u70QUwwoRtZ2B9+b+h67NA+pS17 X-Received: by 2002:a92:8707:: with SMTP id m7mr6582028ild.177.1627124618012; Sat, 24 Jul 2021 04:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627124618; cv=none; d=google.com; s=arc-20160816; b=RbcVeRYhVPHMamVMBZ/2wjIEddxuap2s8G4CrFyrx3w3vbJO+UvcvmNFU27zmh2MNg Tm8fdEy7q692rCK5Y0YFDqB8dE5e2miOv8rqM0xsJANogns2NmN55JOYfEVRN5mW1Coc LicATgj84XRM7GHRUk7vJLbTLdGPYNMiW+AziBIHYjsdTgV2yeD3McCmhaJ7NAtyui/9 rYvOTQuGqY1PrR0P6DUbSdI7Ej2wOYMs6iwT4uCV8KdckJb9l8p7jQTu7wRUrwZqVCUX G48soOgd0WAGgHAareUlt/wCboU5HDBn5CTQoRIvBiCohGQrKNqhDzRbhVH/IROvKLSj tr4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date; bh=RfSGc9Or2GB5rlxEZOsH53N1msI6Y2fTxZSsBEu0Dg8=; b=vZsEUCZfEtuYckm+RKz1txph/251Ojg7PDR7mAmBDrFghjEIqWXNBOzSI447POR/d3 c1EMqIxOm2y3XGrQUG0DEpPrXJfDqHPwhxx1g672ASmcbCIFg/o0GfvMhhytY59vxmW8 ChJjxjDAlU1sFh6u1DxaO9QO75YXPdCRpjkoIILVmY7lhFd4iVlnh8g55JKSlXm2kQX6 UU0a0gS0Fax/wSPvdOwQ6kYjxHa2KaT5ZsZvbNow9qzO+2IPBFzbaC5qfK0Bj5uBVx5G vqg97BRkY/skFAjkMF/JIRsg+mtKsDt99/hHlqv+S1K4XXrNOUZIiscT+gSQ9xmz8i7B A4AQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si42111587jad.124.2021.07.24.04.03.26; Sat, 24 Jul 2021 04:03:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231747AbhGXKWL convert rfc822-to-8bit (ORCPT + 99 others); Sat, 24 Jul 2021 06:22:11 -0400 Received: from aposti.net ([89.234.176.197]:49034 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbhGXKWK (ORCPT ); Sat, 24 Jul 2021 06:22:10 -0400 Date: Sat, 24 Jul 2021 12:02:30 +0100 From: Paul Cercueil Subject: Re: [PATCH 1/2] dt-bindings: remoteproc: Add bindings for new Ingenic SoCs. To: =?UTF-8?b?5ZGo55Cw5p2w?= Cc: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, dongsheng.qiu@ingenic.com, aric.pzqi@ingenic.com, rick.tyliu@ingenic.com, sihui.liu@ingenic.com, jun.jiang@ingenic.com, sernia.zhou@foxmail.com Message-Id: <6CXQWQ.XVALRMYW4LM72@crapouillou.net> In-Reply-To: <1627117898-125239-2-git-send-email-zhouyanjie@wanyeetech.com> References: <1627117898-125239-1-git-send-email-zhouyanjie@wanyeetech.com> <1627117898-125239-2-git-send-email-zhouyanjie@wanyeetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Zhou, Le sam., juil. 24 2021 at 17:11:37 +0800, 周琰杰 (Zhou Yanjie) a écrit : > Add the remoteproc bindings for the JZ4760 SoC, the JZ4760B SoC, > the JZ4775 SoC, and the JZ4780 SoC from Ingenic. > > Signed-off-by: 周琰杰 (Zhou Yanjie) > --- > .../bindings/remoteproc/ingenic,vpu.yaml | 74 > ++++++++++++++++------ > 1 file changed, 56 insertions(+), 18 deletions(-) > > diff --git > a/Documentation/devicetree/bindings/remoteproc/ingenic,vpu.yaml > b/Documentation/devicetree/bindings/remoteproc/ingenic,vpu.yaml > index d0aa91b..6154596 100644 > --- a/Documentation/devicetree/bindings/remoteproc/ingenic,vpu.yaml > +++ b/Documentation/devicetree/bindings/remoteproc/ingenic,vpu.yaml > @@ -17,31 +17,52 @@ maintainers: > > properties: > compatible: > - const: ingenic,jz4770-vpu-rproc > + enum: > + - ingenic,jz4760-vpu-rproc > + - ingenic,jz4760b-vpu-rproc > + - ingenic,jz4770-vpu-rproc > + - ingenic,jz4775-vpu-rproc > + - ingenic,jz4780-vpu-rproc > > reg: > - items: > - - description: aux registers > - - description: tcsm0 registers > - - description: tcsm1 registers > - - description: sram registers > + oneOf: > + - items: > + - description: aux registers > + - description: tcsm0 registers > + - description: tcsm1 registers > + - description: sram registers > + - items: > + - description: aux registers > + - description: tcsm registers > + - description: sram registers Since we have "reg-names" already, we don't really need any description, so you could just have: reg: minItems: 3 maxItems: 4 > > reg-names: > - items: > - - const: aux > - - const: tcsm0 > - - const: tcsm1 > - - const: sram > + oneOf: > + - items: > + - const: aux > + - const: tcsm0 > + - const: tcsm1 > + - const: sram > + - items: > + - const: aux > + - const: tcsm > + - const: sram You could just add "tcsm" to the items list, and add: minItems: 3 maxItems: 4 > > clocks: > - items: > - - description: aux clock > - - description: vpu clock > + oneOf: > + - items: > + - description: aux clock > + - description: vpu clock > + - items: > + - description: vpu clock Same as above, since we already have clock-names, the descriptions don't bring much. You can replace with: clocks: minItems: 1 maxItems: 2 > > clock-names: > - items: > - - const: aux > - - const: vpu > + oneOf: > + - items: > + - const: aux > + - const: vpu > + - items: > + - const: vpu I think you could just add: minItems: 1 Cheers, -Paul > > interrupts: > maxItems: 1 > @@ -60,7 +81,7 @@ examples: > - | > #include > > - vpu: video-decoder@132a0000 { > + video-decoder@132a0000 { > compatible = "ingenic,jz4770-vpu-rproc"; > > reg = <0x132a0000 0x20>, /* AUX */ > @@ -75,3 +96,20 @@ examples: > interrupt-parent = <&cpuintc>; > interrupts = <3>; > }; > + - | > + #include > + > + video-decoder@132a0000 { > + compatible = "ingenic,jz4780-vpu-rproc"; > + > + reg = <0x132a0000 0x20>, /* AUX */ > + <0x132c0000 0x8000>, /* TCSM */ > + <0x132f0000 0x4000>; /* SRAM */ > + reg-names = "aux", "tcsm", "sram"; > + > + clocks = <&cgu JZ4780_CLK_VPU>; > + clock-names = "vpu"; > + > + interrupt-parent = <&intc>; > + interrupts = <62>; > + }; > -- > 2.7.4 >