From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB4C4C35E04 for ; Tue, 25 Feb 2020 18:24:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 834362082F for ; Tue, 25 Feb 2020 18:24:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="hrT+lREt" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 834362082F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0iFN1wtxXqYPpnzDVxkb1HQKJZ/rzF1HTWKHB6J2uls=; b=hrT+lREt0L1E1e SXAtfaUZkILdgmuRe1I0qzdq4yKhCygkewxiyWNScm/QzIQIZZa244RFJN0zQKfc8thlhwxD7E+0k KIZu4O8vtEhP87v7pXp22dRqs1bRn2YoITUQ+dfwsjC6rsxPZdfTInjq0G0DFPVMq5Topme/Y3tDp MJy+6D3zwhR16oepu15Z3DNnaVCpMHKqIjmL6NvyDwRWg2nJ35hvSExgpgEimEhx/6aW01d7BX8p7 WQ871YuLG6HjxBVOouIPVfh3R5WAwPMx81XbWLmAENk8Fzc9y9jpYh3GDbxIopaXGsmToSVTENs2x iMVBBH5n6AWoBJGKPP2A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6esR-0006w7-U9; Tue, 25 Feb 2020 18:24:15 +0000 Received: from mail-oi1-f194.google.com ([209.85.167.194]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6esP-0006vj-0f; Tue, 25 Feb 2020 18:24:14 +0000 Received: by mail-oi1-f194.google.com with SMTP id v19so223537oic.12; Tue, 25 Feb 2020 10:24:12 -0800 (PST) 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:user-agent; bh=zyUEcnd6mf3xDLs58H/+znKVsIUHaN8BT7T15bn5I/4=; b=ofZudJ/8ni0qHtfMeaqXbd6G/Qgpt2m+db9A9EoNqLyp52jFuHwAtBX98i1L9108hr +Eb8hEvKtcnSo6KEWPfJAGl/Aws8t8+2zvOQ2wYYj9Z07oSYuPdbVoDuhk5MoTB0Ftra CzZpyaIukUatFJwbhXJFPjNX3uAR6wYZVMk76RiUlWcPOljUVZTlPyArJ3/50gRmuHCr qDqgOzy0hylNqYIQB/TVmJdEw2l/DepPqpdpTS7GKOAHU/D0ajbV1saIcBWBTJyWgGnW 928PRSvsVO8qgJNvxDG59aq4FO6c8MbQXRCmvzUea14DYf/uiLU4btvS0iPTSuthPCWm DV3g== X-Gm-Message-State: APjAAAVUg7IerlvZwdN3xvofL1cJpYIz6yLux2ipkfh5rSJQ20ghUMNa TJWQIkfjBqoFStOQ8Lt5sQ== X-Google-Smtp-Source: APXvYqy2YFi/Z/AQYaFr+0YJAOKBBXw2YKbb14sGV3IuzdQIEB+ZE6Mmn4i6K3FgKLi1IMdYd8+R/w== X-Received: by 2002:a05:6808:251:: with SMTP id m17mr190704oie.15.1582655052039; Tue, 25 Feb 2020 10:24:12 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id n27sm5572706oie.18.2020.02.25.10.24.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 10:24:11 -0800 (PST) Received: (nullmailer pid 14462 invoked by uid 1000); Tue, 25 Feb 2020 18:24:10 -0000 Date: Tue, 25 Feb 2020 12:24:10 -0600 From: Rob Herring To: Maxime Ripard Subject: Re: [PATCH 88/89] dt-bindings: display: vc4: hdmi: Add BCM2711 HDMI controllers bindings Message-ID: <20200225182410.GA7661@bogus> References: <4c21dda4f0b73977de1e54d408d7bf6bf3b6d238.1582533919.git-series.maxime@cerno.tech> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4c21dda4f0b73977de1e54d408d7bf6bf3b6d238.1582533919.git-series.maxime@cerno.tech> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200225_102413_060016_66726EEA X-CRM114-Status: GOOD ( 16.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Tim Gover , Dave Stevenson , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Eric Anholt , bcm-kernel-feedback-list@broadcom.com, Nicolas Saenz Julienne , Phil Elwell , linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Feb 24, 2020 at 10:07:30AM +0100, Maxime Ripard wrote: > The HDMI controllers found in the BCM2711 SoC need some adjustments to the > bindings, especially since the registers have been shuffled around in more > register ranges. > > Cc: Rob Herring > Cc: devicetree@vger.kernel.org > Signed-off-by: Maxime Ripard > --- > Documentation/devicetree/bindings/display/brcm,bcm2835-hdmi.yaml | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------ > 1 file changed, 109 insertions(+), 9 deletions(-) > > diff --git a/Documentation/devicetree/bindings/display/brcm,bcm2835-hdmi.yaml b/Documentation/devicetree/bindings/display/brcm,bcm2835-hdmi.yaml > index 52b3cdac0bdf..a9d24e1cf684 100644 > --- a/Documentation/devicetree/bindings/display/brcm,bcm2835-hdmi.yaml > +++ b/Documentation/devicetree/bindings/display/brcm,bcm2835-hdmi.yaml > @@ -11,24 +11,58 @@ maintainers: > > properties: > compatible: > - const: brcm,bcm2835-hdmi > + enum: > + - brcm,bcm2835-hdmi > + - brcm,bcm2711-hdmi0 > + - brcm,bcm2711-hdmi1 > > reg: > + oneOf: > + - items: > + - description: HDMI register range > + - description: HD register range > + > + - items: > + - description: HDMI controller register range > + - description: DVP register range > + - description: HDMI PHY register range > + - description: Rate Manager register range > + - description: Packet RAM register range > + - description: Metadata RAM register range > + - description: CSC register range > + - description: CEC register range > + - description: HD register range > + > + reg-names: > items: > - - description: HDMI register range > - - description: HD register range > + - const: hdmi > + - const: dvp > + - const: phy > + - const: rm > + - const: packet > + - const: metadata > + - const: csc > + - const: cec > + - const: hd Don't you want 'hd' 2nd or need to define the 2 entry case separately? Really, I think this should be 2 files. All but interrupts and ddc have a difference. > > interrupts: > minItems: 2 > > clocks: > - items: > - - description: The pixel clock > - - description: The HDMI state machine clock > + oneOf: > + - items: > + - description: The pixel clock > + - description: The HDMI state machine clock > + > + - items: > + - description: The HDMI state machine clock > > clock-names: > - items: > - - const: pixel > + oneOf: > + - items: > + - const: pixel > + - const: hdmi > + > - const: hdmi > > ddc: > @@ -51,15 +85,54 @@ properties: > dma-names: > const: audio-rx > > + resets: > + maxItems: 1 > + > required: > - compatible > - reg > - - interrupts > - clocks > - ddc > > additionalProperties: false > > +if: > + properties: > + compatible: > + contains: > + enum: > + - brcm,bcm2711-hdmi0 > + - brcm,bcm2711-hdmi1 > + > +then: > + properties: > + reg: > + minItems: 9 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + maxItems: 1 > + > + required: > + - reg-names > + - resets > + > +else: > + properties: > + reg: > + maxItems: 2 > + > + clocks: > + minItems: 2 > + > + clock-names: > + minItems: 2 > + > + required: > + - interrupts > + > examples: > - | > #include > @@ -77,4 +150,31 @@ examples: > clock-names = "pixel", "hdmi"; > }; > > + - | > + hdmi0: hdmi@7ef00700 { > + compatible = "brcm,bcm2711-hdmi0"; > + reg = <0x7ef00700 0x300>, > + <0x7ef00300 0x200>, > + <0x7ef00f00 0x80>, > + <0x7ef00f80 0x80>, > + <0x7ef01b00 0x200>, > + <0x7ef01f00 0x400>, > + <0x7ef00200 0x80>, > + <0x7ef04300 0x100>, > + <0x7ef20000 0x100>; > + reg-names = "hdmi", > + "dvp", > + "phy", > + "rm", > + "packet", > + "metadata", > + "csc", > + "cec", > + "hd"; > + clocks = <&firmware_clocks 13>; > + clock-names = "hdmi"; > + resets = <&dvp 0>; > + ddc = <&ddc0>; > + }; > + > ... > -- > git-series 0.9.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel