Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp911142pxf; Thu, 1 Apr 2021 17:50:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQBq7wGj+px+2cHv+N3pJkfagy6qS+ylsgBXo3Wg1WfXXvJalhcRoYs/RLqSRQB35bGzqg X-Received: by 2002:a05:6638:2101:: with SMTP id n1mr10749190jaj.7.1617324620704; Thu, 01 Apr 2021 17:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617324620; cv=none; d=google.com; s=arc-20160816; b=HDhajiHeXFym2PhM5oc6z9JjbWEqWEnvyJxrjP+vFvwBVYHz8B3TXp9Rxwd9AG4EJt 3cJ94ZupsYdFC8k3LpfPjzTind6qpLPMHuSaD/csHaVItycmVjxdL/gvHUh9PJ8vSnLH GGWU3jcANbXU/kyQVbp2X1CZy+ZGOpOF4f2OJ1HmFz+tQnm2XhP+nCxnY41k5BaSdHOL spEO7OoQDs0R6LGOeoaK7FqQhXVhRxaABb4tHFPssIPqG4/bGN59MByI5HX6jIo0h4Ww PLOV5ajxQObtmis6gFRFY9WIRtdXAmTK+U+tXWImoWoML6TlA1J7ji6rxNzXwgaa+f/E 0Dxg== 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:date:subject:cc:to:from :dkim-signature; bh=mG1Dm2fW2UwoboBnU+wIfFXTMY9ejhypOdNwoGlLiJ0=; b=nnpvG20/oyQ+5HKbsxrwR35HjaPruf3DI1Cz/KES+LubeoROeH09VIi7tL/jEwvNnS A6Yr78X5fMufnMEbfhu5qNW3UAQyNvXuJ1PVGAVhQsOmz+a19VjRyzVLm6b/vc20j7/1 6Kl/dPo2H4by2JC46RXQ+HFZbACKlXIj/dMwekymbe9fyWTORLm1RJ3E9UyPSDN7t1UN L8LCSh+YxstGCRWXgP28V+pK7dre2b3x7qF35RgJgsuPzfe637iA/3W1PHHsHzcc7D3w 4JZgzOeldAZSGCH4BNL1CiVk94WMHwg2UVgZtCjeMqo1PBxpAyRwoAEMH2E74DsP2SXZ Q+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bewilderbeest.net header.s=thorn header.b=JzRnOyxo; 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=bewilderbeest.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si6182236jav.10.2021.04.01.17.50.06; Thu, 01 Apr 2021 17:50:20 -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=@bewilderbeest.net header.s=thorn header.b=JzRnOyxo; 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=bewilderbeest.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234117AbhDBArx (ORCPT + 99 others); Thu, 1 Apr 2021 20:47:53 -0400 Received: from thorn.bewilderbeest.net ([71.19.156.171]:36941 "EHLO thorn.bewilderbeest.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234029AbhDBArg (ORCPT ); Thu, 1 Apr 2021 20:47:36 -0400 Received: from hatter.bewilderbeest.net (unknown [IPv6:2600:6c44:7f:ba20::7c6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: zev) by thorn.bewilderbeest.net (Postfix) with ESMTPSA id 3CEDFAE5; Thu, 1 Apr 2021 17:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bewilderbeest.net; s=thorn; t=1617324456; bh=mG1Dm2fW2UwoboBnU+wIfFXTMY9ejhypOdNwoGlLiJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JzRnOyxoFrgmrZpc90OW3tWruXxmmEeL2tIVxWU1Qh2TPsVmB03UcdGZFtj+uO+XU aViEnKHRLtefBzI7Su5d+tf8B82XRHJAtPz7mV7SaVtIPzYrVqonHoNDHXZ0YRSYQB 6OPt1iKp1UuYFqOVDPrAFH0O+OJmpGyhd5mWXNJ0= From: Zev Weiss To: Joel Stanley Cc: openbmc@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Andrew Jeffery , Zev Weiss , Greg Kroah-Hartman , Rob Herring , Lubomir Rintel , - , linux-serial@vger.kernel.org Subject: [PATCH v3 4/4] dt-bindings: serial: 8250: add aspeed,lpc-address and aspeed,sirq Date: Thu, 1 Apr 2021 19:47:16 -0500 Message-Id: <20210402004716.15961-5-zev@bewilderbeest.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210402004716.15961-1-zev@bewilderbeest.net> References: <20210402004716.15961-1-zev@bewilderbeest.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These correspond to the existing lpc_address, sirq, and sirq_polarity sysfs attributes; the second element of aspeed,sirq provides a replacement for the deprecated aspeed,sirq-polarity-sense property. Signed-off-by: Zev Weiss --- .../devicetree/bindings/serial/8250.yaml | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documentation/devicetree/bindings/serial/8250.yaml index 491b9297432d..a6e01f9b745f 100644 --- a/Documentation/devicetree/bindings/serial/8250.yaml +++ b/Documentation/devicetree/bindings/serial/8250.yaml @@ -12,8 +12,13 @@ maintainers: allOf: - $ref: /schemas/serial.yaml# - if: - required: - - aspeed,sirq-polarity-sense + anyOf: + - required: + - aspeed,lpc-address + - required: + - aspeed,sirq + - required: + - aspeed,sirq-polarity-sense then: properties: compatible: @@ -190,6 +195,20 @@ properties: applicable to aspeed,ast2500-vuart. deprecated: true + aspeed,lpc-address: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: | + The VUART LPC address. Only applicable to aspeed,ast2500-vuart. + + aspeed,sirq: + $ref: "/schemas/types.yaml#/definitions/uint32-array" + minItems: 2 + maxItems: 2 + description: | + A 2-cell property describing the VUART SIRQ number and SIRQ + polarity (IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_LEVEL_HIGH). Only + applicable to aspeed,ast2500-vuart. + required: - reg - interrupts @@ -221,6 +240,7 @@ examples: }; - | #include + #include serial@1e787000 { compatible = "aspeed,ast2500-vuart"; reg = <0x1e787000 0x40>; @@ -228,7 +248,8 @@ examples: interrupts = <8>; clocks = <&syscon ASPEED_CLK_APB>; no-loopback-test; - aspeed,sirq-polarity-sense = <&syscon 0x70 25>; + aspeed,lpc-address = <0x3f8>; + aspeed,sirq = <4 IRQ_TYPE_LEVEL_LOW>; }; ... -- 2.31.1