Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2980817yba; Mon, 8 Apr 2019 08:37:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVaYYdqSp6mR/AEWuOtuf7az1qhPjNiFXn/5bL77DOF36oix51aT9iC30rFF39iZluhSks X-Received: by 2002:a62:6587:: with SMTP id z129mr30875155pfb.88.1554737837492; Mon, 08 Apr 2019 08:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554737837; cv=none; d=google.com; s=arc-20160816; b=zgp3PeOnswJPD8OZybw3M9y42StQdlpWB8D+BtKS9I7nNSznXtuBdT9UYGEdCanIxs wHvdwQkR5BHJ4t9QycX2BO4so2SKyojP3RAWYkdO844bTtIeHSEbWSmERdJ32ZPCA38r 5kxv4P86Y1axQdUXOrqj228jdQKbWq5RgaO+7qjshhb9m87j6iUGE6NGGxtFrL/wQy1n sm/5Yo/esxfbx9BSqaOSJMDrFsNlDQzgBK5pGlKt+jPuwzMhUgD2jij0KEjsEG7Guesj 7dKjd0zVEhxovKhjNAf46BOrO7kCFTn8lXZCTwCeRpmuBh1AH28OG4hXX8OCFR+dgSzM e18A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CSE12Di9vovu1Muo5qQd1ef/R1QZIPn35Nb8uVVAHxY=; b=AdfDVPLzoMI6XS9JwPW38q8fU01Xwy0tftaVtxM983ca6fuUXnUf1lXQdzEieAw7Df MCmoFICSBTxS2+jE3UvHReSbveTaie0SpJNWZ4ogDZicMersbFYGfBsJS1QcOEFY+f+j yvKmO9iaFLxmZ+uGygStMYgJfByM7b9r8xO4DC6lQr2UON0C+9AH4FgOAzlZaZLe+llx gjETvGF1FTinpzdOtsLmCNv4a9LSK4/XRwMRJ0mzB79rCJVjmdRmx+IRNzPcmV86UXL5 DifxKooWjc6EYL2FjRvaZUpdlScx1DL21EGEHQjhpXqACWniH14sTCd2V4AbHEg/YRcL yYWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YtgoKlpx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9si23632229plr.17.2019.04.08.08.37.02; Mon, 08 Apr 2019 08:37:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YtgoKlpx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbfDHOMU (ORCPT + 99 others); Mon, 8 Apr 2019 10:12:20 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34020 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726575AbfDHOMT (ORCPT ); Mon, 8 Apr 2019 10:12:19 -0400 Received: by mail-pf1-f195.google.com with SMTP id b3so7712412pfd.1 for ; Mon, 08 Apr 2019 07:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CSE12Di9vovu1Muo5qQd1ef/R1QZIPn35Nb8uVVAHxY=; b=YtgoKlpx2b5UvW9Z0o2C7WSAr4DReWgK4k6PJiMx11bnsZXbMwRQC9JwIkiPzyRr1b qS2qh4lQTacKaJNkk27M6GyjrfZGxZpTVxJEBYBZ9vyXl+pOMX9s5Sbmhj0yAmaAHuFl epZgfAO5aa+swJbdUxtz8MVxB151lce+I9YyzhvZn04OFSIaj+2fn03E7Qj3EHDMtTXV VlMLPAAsfrxdwtFXV65TCQTKjAe7yPa5Mh4NBlJ+pftX6cOGQ5LB8xKwa/H1ZUOyvjIv anlVnHzgFes/qNm7i/rIURFmGuDylCoqbeVyHdTTFwD2cFC2fMhG5M/rDDu/8rjEiaMl XXYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CSE12Di9vovu1Muo5qQd1ef/R1QZIPn35Nb8uVVAHxY=; b=HHeD7sKHrLrZYobtHy0XFowwCLtcG+4JlEWv4C3xY4Z4xoJYnyl8hf4tN8eEqgbwg2 X3xfhdSsu8279xshKnXE6tWtnABSIE5b/Ugc0YEGqmFKbItGktc1xs270ZY1f3Qm2uqh 2pOgnRF3eHIFGs3GCHczhrWB/zeZO/s96UetxnhRoOlv5uS8DWhYfd9DxTCN2vGXSBJ8 8JGlHb//i5fUBuYGRsSVXx1wqOdIlvcksFTcrL6VwDfoOq/hcspmPxcXTdgZOWxaVw8l 5Jt8t7OlBbDrucVtKtkT0EJdBlHBydCHEJhSTh9pRRp90oHuXZb4+A/b+3YZ77Fx886i iXRw== X-Gm-Message-State: APjAAAUiZE51SBU7udECL9wy8XnM+d5CZPShjNigUksTSOkASy7X9Lp8 sQTPo4LHR17z0DGAUevPCXpqyYE0ig1iYnf3zq0t/Q== X-Received: by 2002:a62:61c2:: with SMTP id v185mr30310167pfb.117.1554732738636; Mon, 08 Apr 2019 07:12:18 -0700 (PDT) MIME-Version: 1.0 References: <20190404152544.214988-1-venture@google.com> <8c412bc4-6528-4496-a912-f098604e707b@www.fastmail.com> In-Reply-To: <8c412bc4-6528-4496-a912-f098604e707b@www.fastmail.com> From: Patrick Venture Date: Mon, 8 Apr 2019 07:12:07 -0700 Message-ID: Subject: Re: [PATCH v9 1/2] dt-bindings: misc: aspeed-p2a-ctrl: add support To: Andrew Jeffery Cc: Rob Herring , Mark Rutland , Joel Stanley , Greg Kroah-Hartman , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-aspeed@lists.ozlabs.org, Linux Kernel Mailing List , Rob Herring Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 7, 2019 at 7:03 PM Andrew Jeffery wrote: > > > > On Fri, 5 Apr 2019, at 01:55, Patrick Venture wrote: > > Document the ast2400, ast2500 PCI-to-AHB bridge control driver bindings. > > > > Signed-off-by: Patrick Venture > > Reviewed-by: Rob Herring > > --- > > Changes for v9: > > - Added missing details about syscon parent > > Changes for v8: > > - None > > Changes for v7: > > - Moved node under the syscon node it requires > > Changes for v6: > > - None > > Changes for v5: > > - None > > Changes for v4: > > - None > > Changes for v3: > > - None > > Changes for v2: > > - Added comment about syscon required parameter. > > --- > > .../bindings/misc/aspeed-p2a-ctrl.txt | 56 +++++++++++++++++++ > > 1 file changed, 56 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt > > > > diff --git a/Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt > > b/Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt > > new file mode 100644 > > index 0000000000000..05ed654848b60 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/misc/aspeed-p2a-ctrl.txt > > @@ -0,0 +1,56 @@ > > +====================================================================== > > +Device tree bindings for Aspeed AST2400/AST2500 PCI-to-AHB Bridge > > Control Driver > > +====================================================================== > > + > > +The bridge is available on platforms with the VGA enabled on the > > Aspeed device. > > +In this case, the host has access to a 64KiB window into all of the > > BMC's > > +memory. The BMC can disable this bridge. If the bridge is enabled, > > the host > > +has read access to all the regions of memory, however the host only > > has read > > +and write access depending on a register controlled by the BMC. > > + > > +Required properties: > > +=================== > > + > > + - compatible: must be one of: > > + - "aspeed,ast2400-p2a-ctrl" > > + - "aspeed,ast2500-p2a-ctrl" > > + > > +Optional properties: > > +=================== > > + > > +- memory-region: A phandle to a reserved_memory region to be used for > > the PCI > > + to AHB mapping > > + > > +The p2a-control node should be the child of a syscon node with the > > required > > +property: > > + > > +- compatible : Should be one of the following: > > + "aspeed,ast2400-scu", "syscon", "simple-mfd" > > + "aspeed,g4-scu", "syscon", "simple-mfd" > > + "aspeed,ast2500-scu", "syscon", "simple-mfd" > > + "aspeed,g5-scu", "syscon", "simple-mfd" > > + > > +The aspeed-p2a-ctrl node should be the child of a syscon node with the > > required > > +property: > > + > > +- compatible : Should be one of the following: > > + "aspeed,ast2400-scu", "syscon", "simple-mfd" > > + "aspeed,g4-scu", "syscon", "simple-mfd" > > + "aspeed,ast2500-scu", "syscon", "simple-mfd" > > + "aspeed,g5-scu", "syscon", "simple-mfd" > > Agh, now the info's here twice! Agh! I don't even know how that happened. Perhaps I was overzealous in my pasting! I can fix it. > > Next time, surely :D > > Unless Greg or Rob want to chop one out as they apply it? It looks good to > me otherwise. > > Andrew > > > + > > +Example > > +=================== > > + > > +g4 Example > > +---------- > > + > > +syscon: scu@1e6e2000 { > > + compatible = "aspeed,ast2400-scu", "syscon", "simple-mfd"; > > + reg = <0x1e6e2000 0x1a8>; > > + > > + p2a: p2a-control { > > + compatible = "aspeed,ast2400-p2a-ctrl"; > > + memory-region = <&reserved_memory>; > > + }; > > +}; > > -- > > 2.21.0.392.gf8f6787159e-goog > > > >