From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 480E8C4332F for ; Tue, 13 Dec 2022 08:25:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234702AbiLMIZJ (ORCPT ); Tue, 13 Dec 2022 03:25:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231888AbiLMIZG (ORCPT ); Tue, 13 Dec 2022 03:25:06 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 266BD13CEE; Tue, 13 Dec 2022 00:25:04 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:03 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 693D62059054; Tue, 13 Dec 2022 17:25:03 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:03 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 3A1D4A855F; Tue, 13 Dec 2022 17:25:03 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 01/17] dt-bindings: clock: Fix node descriptions in uniphier-clock example Date: Tue, 13 Dec 2022 17:24:33 +0900 Message-Id: <20221213082449.2721-2-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Prior to adding dt-bindings for SoC-dependent controllers, rename the clock nodes to the generic names in the example. And drop redundant examples and a parent node of the clock as it is not directly necessary. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../clock/socionext,uniphier-clock.yaml | 39 ++----------------- 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/socionext,uniphier-clo= ck.yaml b/Documentation/devicetree/bindings/clock/socionext,uniphier-clock.= yaml index 9a0cc7341630..4e82582fb2f3 100644 --- a/Documentation/devicetree/bindings/clock/socionext,uniphier-clock.yaml +++ b/Documentation/devicetree/bindings/clock/socionext,uniphier-clock.yaml @@ -61,40 +61,7 @@ required: =20 examples: - | - sysctrl@61840000 { - compatible =3D "socionext,uniphier-sysctrl", "simple-mfd", "syscon= "; - reg =3D <0x61840000 0x4000>; - - clock { - compatible =3D "socionext,uniphier-ld11-clock"; - #clock-cells =3D <1>; - }; - - // other nodes ... - }; - - - | - mioctrl@59810000 { - compatible =3D "socionext,uniphier-mioctrl", "simple-mfd", "syscon= "; - reg =3D <0x59810000 0x800>; - - clock { - compatible =3D "socionext,uniphier-ld11-mio-clock"; - #clock-cells =3D <1>; - }; - - // other nodes ... - }; - - - | - perictrl@59820000 { - compatible =3D "socionext,uniphier-perictrl", "simple-mfd", "sysco= n"; - reg =3D <0x59820000 0x200>; - - clock { - compatible =3D "socionext,uniphier-ld11-peri-clock"; - #clock-cells =3D <1>; - }; - - // other nodes ... + clock-controller { + compatible =3D "socionext,uniphier-ld11-clock"; + #clock-cells =3D <1>; }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 786B3C4332F for ; Tue, 13 Dec 2022 08:25:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234583AbiLMIZ2 (ORCPT ); Tue, 13 Dec 2022 03:25:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234565AbiLMIZH (ORCPT ); Tue, 13 Dec 2022 03:25:07 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D960E13D60; Tue, 13 Dec 2022 00:25:05 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:04 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 06B052059054; Tue, 13 Dec 2022 17:25:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:04 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 5E9ECA855C; Tue, 13 Dec 2022 17:25:03 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 02/17] dt-bindings: reset: Fix node descriptions in uniphier-reset example Date: Tue, 13 Dec 2022 17:24:34 +0900 Message-Id: <20221213082449.2721-3-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Prior to adding dt-bindings for SoC-dependent controllers, rename the reset nodes to the generic names in the example. And drop redundant examples and a parent node of the reset as it is not directly necessary. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../reset/socionext,uniphier-glue-reset.yaml | 23 +++----- .../reset/socionext,uniphier-reset.yaml | 52 ++----------------- 2 files changed, 11 insertions(+), 64 deletions(-) diff --git a/Documentation/devicetree/bindings/reset/socionext,uniphier-glu= e-reset.yaml b/Documentation/devicetree/bindings/reset/socionext,uniphier-g= lue-reset.yaml index 0a2c13e1e230..fa253c518d79 100644 --- a/Documentation/devicetree/bindings/reset/socionext,uniphier-glue-reset= .yaml +++ b/Documentation/devicetree/bindings/reset/socionext,uniphier-glue-reset= .yaml @@ -95,19 +95,12 @@ required: =20 examples: - | - usb-glue@65b00000 { - compatible =3D "simple-mfd"; - #address-cells =3D <1>; - #size-cells =3D <1>; - ranges =3D <0 0x65b00000 0x400>; - - usb_rst: reset@0 { - compatible =3D "socionext,uniphier-ld20-usb3-reset"; - reg =3D <0x0 0x4>; - #reset-cells =3D <1>; - clock-names =3D "link"; - clocks =3D <&sys_clk 14>; - reset-names =3D "link"; - resets =3D <&sys_rst 14>; - }; + usb_rst: reset-controller@0 { + compatible =3D "socionext,uniphier-ld20-usb3-reset"; + reg =3D <0x0 0x4>; + #reset-cells =3D <1>; + clock-names =3D "link"; + clocks =3D <&sys_clk 14>; + reset-names =3D "link"; + resets =3D <&sys_rst 14>; }; diff --git a/Documentation/devicetree/bindings/reset/socionext,uniphier-res= et.yaml b/Documentation/devicetree/bindings/reset/socionext,uniphier-reset.= yaml index 6566804ec567..033b252a3dfe 100644 --- a/Documentation/devicetree/bindings/reset/socionext,uniphier-reset.yaml +++ b/Documentation/devicetree/bindings/reset/socionext,uniphier-reset.yaml @@ -66,53 +66,7 @@ required: =20 examples: - | - sysctrl@61840000 { - compatible =3D "socionext,uniphier-sysctrl", "simple-mfd", "syscon= "; - reg =3D <0x61840000 0x4000>; - - reset { - compatible =3D "socionext,uniphier-ld11-reset"; - #reset-cells =3D <1>; - }; - - // other nodes ... - }; - - - | - mioctrl@59810000 { - compatible =3D "socionext,uniphier-mioctrl", "simple-mfd", "syscon= "; - reg =3D <0x59810000 0x800>; - - reset { - compatible =3D "socionext,uniphier-ld11-mio-reset"; - #reset-cells =3D <1>; - }; - - // other nodes ... - }; - - - | - perictrl@59820000 { - compatible =3D "socionext,uniphier-perictrl", "simple-mfd", "sysco= n"; - reg =3D <0x59820000 0x200>; - - reset { - compatible =3D "socionext,uniphier-ld11-peri-reset"; - #reset-cells =3D <1>; - }; - - // other nodes ... - }; - - - | - adamv@57920000 { - compatible =3D "socionext,uniphier-ld11-adamv", "simple-mfd", "sys= con"; - reg =3D <0x57920000 0x1000>; - - reset { - compatible =3D "socionext,uniphier-ld11-adamv-reset"; - #reset-cells =3D <1>; - }; - - // other nodes ... + reset-controller { + compatible =3D "socionext,uniphier-ld11-reset"; + #reset-cells =3D <1>; }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EA89AC4332F for ; Tue, 13 Dec 2022 08:25:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234786AbiLMIZV (ORCPT ); Tue, 13 Dec 2022 03:25:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234447AbiLMIZG (ORCPT ); Tue, 13 Dec 2022 03:25:06 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9C1E9B4B4; Tue, 13 Dec 2022 00:25:05 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:04 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 072252058B4F; Tue, 13 Dec 2022 17:25:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:04 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 832031CDE; Tue, 13 Dec 2022 17:25:03 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 03/17] dt-bindings: pinctrl: Fix node descriptions in uniphier-pinctrl example Date: Tue, 13 Dec 2022 17:24:35 +0900 Message-Id: <20221213082449.2721-4-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Drop parent node of the pinctrl as it is not directly necessary, and add more examples, that is "groups", "function", and a child node to set pin attributes, to express this pinctrl node in detail. Signed-off-by: Kunihiko Hayashi --- .../pinctrl/socionext,uniphier-pinctrl.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/socionext,uniphier-p= inctrl.yaml b/Documentation/devicetree/bindings/pinctrl/socionext,uniphier-= pinctrl.yaml index 14a8c0215cc6..bc34e2c872bc 100644 --- a/Documentation/devicetree/bindings/pinctrl/socionext,uniphier-pinctrl.= yaml +++ b/Documentation/devicetree/bindings/pinctrl/socionext,uniphier-pinctrl.= yaml @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause + %YAML 1.2 --- $id: http://devicetree.org/schemas/pinctrl/socionext,uniphier-pinctrl.yaml# @@ -69,11 +70,17 @@ examples: - | // The UniPhier pinctrl should be a subnode of a "syscon" compatible n= ode. =20 - soc-glue@5f800000 { - compatible =3D "socionext,uniphier-pro4-soc-glue", "simple-mfd", "= syscon"; - reg =3D <0x5f800000 0x2000>; + pinctrl { + compatible =3D "socionext,uniphier-ld20-pinctrl"; + + pinctrl_ether_rgmii: ether-rgmii { + groups =3D "ether_rgmii"; + function =3D "ether_rgmii"; =20 - pinctrl: pinctrl { - compatible =3D "socionext,uniphier-pro4-pinctrl"; + tx { + pins =3D "RGMII_TXCLK", "RGMII_TXD0", "RGMII_TXD1", + "RGMII_TXD2", "RGMII_TXD3", "RGMII_TXCTL"; + drive-strength =3D <9>; + }; }; }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F06B7C4332F for ; Tue, 13 Dec 2022 08:25:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234804AbiLMIZc (ORCPT ); Tue, 13 Dec 2022 03:25:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234631AbiLMIZH (ORCPT ); Tue, 13 Dec 2022 03:25:07 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9EF0013DCF; Tue, 13 Dec 2022 00:25:06 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:04 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 0BD132058442; Tue, 13 Dec 2022 17:25:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:04 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id A9678A855C; Tue, 13 Dec 2022 17:25:03 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 04/17] dt-bindings: regulator: Fix node descriptions in uniphier-regulator example Date: Tue, 13 Dec 2022 17:24:36 +0900 Message-Id: <20221213082449.2721-5-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Drop a parent node of the regulator as it is not directly necessary. Signed-off-by: Kunihiko Hayashi Acked-by: Krzysztof Kozlowski --- .../socionext,uniphier-regulator.yaml | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/socionext,uniphier= -regulator.yaml b/Documentation/devicetree/bindings/regulator/socionext,uni= phier-regulator.yaml index c0acf949753d..a6949a581cd1 100644 --- a/Documentation/devicetree/bindings/regulator/socionext,uniphier-regula= tor.yaml +++ b/Documentation/devicetree/bindings/regulator/socionext,uniphier-regula= tor.yaml @@ -89,18 +89,11 @@ required: =20 examples: - | - usb-glue@65b00000 { - compatible =3D "simple-mfd"; - #address-cells =3D <1>; - #size-cells =3D <1>; - ranges =3D <0 0x65b00000 0x400>; - - usb_vbus0: regulators@100 { - compatible =3D "socionext,uniphier-ld20-usb3-regulator"; - reg =3D <0x100 0x10>; - clock-names =3D "link"; - clocks =3D <&sys_clk 14>; - reset-names =3D "link"; - resets =3D <&sys_rst 14>; - }; + usb_vbus0: regulators@100 { + compatible =3D "socionext,uniphier-ld20-usb3-regulator"; + reg =3D <0x100 0x10>; + clock-names =3D "link"; + clocks =3D <&sys_clk 14>; + reset-names =3D "link"; + resets =3D <&sys_rst 14>; }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 769F7C4332F for ; Tue, 13 Dec 2022 08:25:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234708AbiLMIZp (ORCPT ); Tue, 13 Dec 2022 03:25:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234732AbiLMIZI (ORCPT ); Tue, 13 Dec 2022 03:25:08 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD4C613DD6; Tue, 13 Dec 2022 00:25:06 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:04 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 842912059054; Tue, 13 Dec 2022 17:25:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:04 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id CDFF8A855F; Tue, 13 Dec 2022 17:25:03 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 05/17] dt-bindings: watchdog: Fix node descriptions in uniphier-wdt example Date: Tue, 13 Dec 2022 17:24:37 +0900 Message-Id: <20221213082449.2721-6-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Drop a parent node of the watchdog as it is not directly necessary. Signed-off-by: Kunihiko Hayashi Acked-by: Krzysztof Kozlowski --- .../bindings/watchdog/socionext,uniphier-wdt.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/watchdog/socionext,uniphier-= wdt.yaml b/Documentation/devicetree/bindings/watchdog/socionext,uniphier-wd= t.yaml index 90698cfa8f94..70c005fdd197 100644 --- a/Documentation/devicetree/bindings/watchdog/socionext,uniphier-wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/socionext,uniphier-wdt.yaml @@ -25,12 +25,6 @@ examples: - | // The UniPhier watchdog should be a subnode of a "syscon" compatible = node. =20 - sysctrl@61840000 { - compatible =3D "socionext,uniphier-ld11-sysctrl", - "simple-mfd", "syscon"; - reg =3D <0x61840000 0x10000>; - - watchdog { - compatible =3D "socionext,uniphier-wdt"; - }; + watchdog { + compatible =3D "socionext,uniphier-wdt"; }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54DD5C4332F for ; Tue, 13 Dec 2022 08:25:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231902AbiLMIZf (ORCPT ); Tue, 13 Dec 2022 03:25:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234707AbiLMIZI (ORCPT ); Tue, 13 Dec 2022 03:25:08 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9F01613DD3; Tue, 13 Dec 2022 00:25:06 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:04 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 6D5532059054; Tue, 13 Dec 2022 17:25:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:04 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 06F6BA855C; Tue, 13 Dec 2022 17:25:04 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 06/17] dt-bindings: thermal: Fix node descriptions in uniphier-thermal example Date: Tue, 13 Dec 2022 17:24:38 +0900 Message-Id: <20221213082449.2721-7-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Prior to adding dt-bindings for SoC-dependent controllers, rename the thermal node and its parent node to the generic names in the example. And drop a parent node of the thermal-sensor as it is not directly necessary. Signed-off-by: Kunihiko Hayashi Acked-by: Krzysztof Kozlowski --- .../thermal/socionext,uniphier-thermal.yaml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/socionext,uniphier-t= hermal.yaml b/Documentation/devicetree/bindings/thermal/socionext,uniphier-= thermal.yaml index c5b25ce44956..6f975821fa5e 100644 --- a/Documentation/devicetree/bindings/thermal/socionext,uniphier-thermal.= yaml +++ b/Documentation/devicetree/bindings/thermal/socionext,uniphier-thermal.= yaml @@ -46,14 +46,9 @@ examples: - | // The UniPhier thermal should be a subnode of a "syscon" compatible n= ode. =20 - sysctrl@61840000 { - compatible =3D "socionext,uniphier-ld20-sysctrl", - "simple-mfd", "syscon"; - reg =3D <0x61840000 0x10000>; - - pvtctl: thermal { - compatible =3D "socionext,uniphier-ld20-thermal"; - interrupts =3D <0 3 1>; - #thermal-sensor-cells =3D <0>; - }; + #include + pvtctl: thermal-sensor { + compatible =3D "socionext,uniphier-ld20-thermal"; + interrupts =3D ; + #thermal-sensor-cells =3D <0>; }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D2E3C4332F for ; Tue, 13 Dec 2022 08:25:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234477AbiLMIZy (ORCPT ); Tue, 13 Dec 2022 03:25:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234743AbiLMIZI (ORCPT ); Tue, 13 Dec 2022 03:25:08 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 736DE13D0A; Tue, 13 Dec 2022 00:25:07 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:04 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 87D622058B4F; Tue, 13 Dec 2022 17:25:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:04 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 2B9F9A855F; Tue, 13 Dec 2022 17:25:04 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 07/17] dt-bindings: phy: Fix node descriptions in uniphier-phy example Date: Tue, 13 Dec 2022 17:24:39 +0900 Message-Id: <20221213082449.2721-8-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Prior to adding dt-bindings for SoC-dependent controllers, rename the phy nodes and their parent nodes to the generic names in the example. And drop parent nodes of each phy as they are not directly necessary here. Signed-off-by: Kunihiko Hayashi Acked-by: Krzysztof Kozlowski ] --- .../phy/socionext,uniphier-ahci-phy.yaml | 24 ++++------- .../phy/socionext,uniphier-usb2-phy.yaml | 41 ++++++++----------- .../phy/socionext,uniphier-usb3hs-phy.yaml | 29 +++++-------- .../phy/socionext,uniphier-usb3ss-phy.yaml | 26 ++++-------- 4 files changed, 46 insertions(+), 74 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/socionext,uniphier-ahci-= phy.yaml b/Documentation/devicetree/bindings/phy/socionext,uniphier-ahci-ph= y.yaml index a3cd45acea28..de3cffc850bc 100644 --- a/Documentation/devicetree/bindings/phy/socionext,uniphier-ahci-phy.yaml +++ b/Documentation/devicetree/bindings/phy/socionext,uniphier-ahci-phy.yaml @@ -117,20 +117,12 @@ additionalProperties: false =20 examples: - | - ahci-glue@65700000 { - compatible =3D "socionext,uniphier-pxs3-ahci-glue", - "simple-mfd"; - #address-cells =3D <1>; - #size-cells =3D <1>; - ranges =3D <0 0x65700000 0x100>; - - ahci_phy: phy@10 { - compatible =3D "socionext,uniphier-pxs3-ahci-phy"; - reg =3D <0x10 0x10>; - #phy-cells =3D <0>; - clock-names =3D "link", "phy"; - clocks =3D <&sys_clk 28>, <&sys_clk 30>; - reset-names =3D "link", "phy"; - resets =3D <&sys_rst 28>, <&sys_rst 30>; - }; + ahci_phy: phy@10 { + compatible =3D "socionext,uniphier-pxs3-ahci-phy"; + reg =3D <0x10 0x10>; + #phy-cells =3D <0>; + clock-names =3D "link", "phy"; + clocks =3D <&sys_clk 28>, <&sys_clk 30>; + reset-names =3D "link", "phy"; + resets =3D <&sys_rst 28>, <&sys_rst 30>; }; diff --git a/Documentation/devicetree/bindings/phy/socionext,uniphier-usb2-= phy.yaml b/Documentation/devicetree/bindings/phy/socionext,uniphier-usb2-ph= y.yaml index 63dab914a48d..19522c54f448 100644 --- a/Documentation/devicetree/bindings/phy/socionext,uniphier-usb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/socionext,uniphier-usb2-phy.yaml @@ -61,28 +61,23 @@ examples: - | // The UniPhier usb2-phy should be a subnode of a "syscon" compatible = node. =20 - soc-glue@5f800000 { - compatible =3D "socionext,uniphier-ld11-soc-glue", "simple-mfd", "= syscon"; - reg =3D <0x5f800000 0x2000>; - - usb-controller { - compatible =3D "socionext,uniphier-ld11-usb2-phy"; - #address-cells =3D <1>; - #size-cells =3D <0>; - - usb_phy0: phy@0 { - reg =3D <0>; - #phy-cells =3D <0>; - }; - - usb_phy1: phy@1 { - reg =3D <1>; - #phy-cells =3D <0>; - }; - - usb_phy2: phy@2 { - reg =3D <2>; - #phy-cells =3D <0>; - }; + usb-hub { + compatible =3D "socionext,uniphier-ld11-usb2-phy"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + usb_phy0: phy@0 { + reg =3D <0>; + #phy-cells =3D <0>; + }; + + usb_phy1: phy@1 { + reg =3D <1>; + #phy-cells =3D <0>; + }; + + usb_phy2: phy@2 { + reg =3D <2>; + #phy-cells =3D <0>; }; }; diff --git a/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3h= s-phy.yaml b/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3h= s-phy.yaml index 21e4414eea60..2107d98ace15 100644 --- a/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.y= aml +++ b/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3hs-phy.y= aml @@ -146,22 +146,15 @@ additionalProperties: false =20 examples: - | - usb-glue@65b00000 { - compatible =3D "socionext,uniphier-ld20-dwc3-glue", "simple-mfd"; - #address-cells =3D <1>; - #size-cells =3D <1>; - ranges =3D <0 0x65b00000 0x400>; - - usb_hsphy0: hs-phy@200 { - compatible =3D "socionext,uniphier-ld20-usb3-hsphy"; - reg =3D <0x200 0x10>; - #phy-cells =3D <0>; - clock-names =3D "link", "phy"; - clocks =3D <&sys_clk 14>, <&sys_clk 16>; - reset-names =3D "link", "phy"; - resets =3D <&sys_rst 14>, <&sys_rst 16>; - vbus-supply =3D <&usb_vbus0>; - nvmem-cell-names =3D "rterm", "sel_t", "hs_i"; - nvmem-cells =3D <&usb_rterm0>, <&usb_sel_t0>, <&usb_hs_i0>; - }; + usb_hsphy0: phy@200 { + compatible =3D "socionext,uniphier-ld20-usb3-hsphy"; + reg =3D <0x200 0x10>; + #phy-cells =3D <0>; + clock-names =3D "link", "phy"; + clocks =3D <&sys_clk 14>, <&sys_clk 16>; + reset-names =3D "link", "phy"; + resets =3D <&sys_rst 14>, <&sys_rst 16>; + vbus-supply =3D <&usb_vbus0>; + nvmem-cell-names =3D "rterm", "sel_t", "hs_i"; + nvmem-cells =3D <&usb_rterm0>, <&usb_sel_t0>, <&usb_hs_i0>; }; diff --git a/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3s= s-phy.yaml b/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3s= s-phy.yaml index 4c26d2d2303d..8f5aa6238bf3 100644 --- a/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3ss-phy.y= aml +++ b/Documentation/devicetree/bindings/phy/socionext,uniphier-usb3ss-phy.y= aml @@ -131,21 +131,13 @@ additionalProperties: false =20 examples: - | - usb-glue@65b00000 { - compatible =3D "socionext,uniphier-ld20-dwc3-glue", - "simple-mfd"; - #address-cells =3D <1>; - #size-cells =3D <1>; - ranges =3D <0 0x65b00000 0x400>; - - usb_ssphy0: ss-phy@300 { - compatible =3D "socionext,uniphier-ld20-usb3-ssphy"; - reg =3D <0x300 0x10>; - #phy-cells =3D <0>; - clock-names =3D "link", "phy"; - clocks =3D <&sys_clk 14>, <&sys_clk 16>; - reset-names =3D "link", "phy"; - resets =3D <&sys_rst 14>, <&sys_rst 16>; - vbus-supply =3D <&usb_vbus0>; - }; + usb_ssphy0: phy@300 { + compatible =3D "socionext,uniphier-ld20-usb3-ssphy"; + reg =3D <0x300 0x10>; + #phy-cells =3D <0>; + clock-names =3D "link", "phy"; + clocks =3D <&sys_clk 14>, <&sys_clk 16>; + reset-names =3D "link", "phy"; + resets =3D <&sys_rst 14>, <&sys_rst 16>; + vbus-supply =3D <&usb_vbus0>; }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 040EFC4332F for ; Tue, 13 Dec 2022 08:26:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234681AbiLMI0A (ORCPT ); Tue, 13 Dec 2022 03:26:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234747AbiLMIZI (ORCPT ); Tue, 13 Dec 2022 03:25:08 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E508713D60; Tue, 13 Dec 2022 00:25:07 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:05 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id EB1042059054; Tue, 13 Dec 2022 17:25:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:04 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 5056CA855C; Tue, 13 Dec 2022 17:25:04 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 08/17] dt-bindings: nvmem: Fix node descriptions in uniphier-efuse example Date: Tue, 13 Dec 2022 17:24:40 +0900 Message-Id: <20221213082449.2721-9-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Prior to adding dt-bindings for SoC-dependent controllers, rename the parent node to the generic name in the example. And drop a parent node of the nvmem as it is not directly necessary here. Signed-off-by: Kunihiko Hayashi Acked-by: Krzysztof Kozlowski --- .../nvmem/socionext,uniphier-efuse.yaml | 101 ++++++++---------- 1 file changed, 46 insertions(+), 55 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/socionext,uniphier-efu= se.yaml b/Documentation/devicetree/bindings/nvmem/socionext,uniphier-efuse.= yaml index 2578e39deda9..a1dea3d7669c 100644 --- a/Documentation/devicetree/bindings/nvmem/socionext,uniphier-efuse.yaml +++ b/Documentation/devicetree/bindings/nvmem/socionext,uniphier-efuse.yaml @@ -31,65 +31,56 @@ unevaluatedProperties: false =20 examples: - | - // The UniPhier eFuse should be a subnode of a "soc-glue" node. + efuse@100 { + compatible =3D "socionext,uniphier-efuse"; + reg =3D <0x100 0x28>; + }; =20 - soc-glue@5f900000 { - compatible =3D "simple-mfd"; + efuse@200 { + compatible =3D "socionext,uniphier-efuse"; + reg =3D <0x200 0x68>; #address-cells =3D <1>; #size-cells =3D <1>; - ranges =3D <0x0 0x5f900000 0x2000>; =20 - efuse@100 { - compatible =3D "socionext,uniphier-efuse"; - reg =3D <0x100 0x28>; + /* Data cells */ + usb_rterm0: trim@54,4 { + reg =3D <0x54 1>; + bits =3D <4 2>; }; - - efuse@200 { - compatible =3D "socionext,uniphier-efuse"; - reg =3D <0x200 0x68>; - #address-cells =3D <1>; - #size-cells =3D <1>; - - /* Data cells */ - usb_rterm0: trim@54,4 { - reg =3D <0x54 1>; - bits =3D <4 2>; - }; - usb_rterm1: trim@55,4 { - reg =3D <0x55 1>; - bits =3D <4 2>; - }; - usb_rterm2: trim@58,4 { - reg =3D <0x58 1>; - bits =3D <4 2>; - }; - usb_rterm3: trim@59,4 { - reg =3D <0x59 1>; - bits =3D <4 2>; - }; - usb_sel_t0: trim@54,0 { - reg =3D <0x54 1>; - bits =3D <0 4>; - }; - usb_sel_t1: trim@55,0 { - reg =3D <0x55 1>; - bits =3D <0 4>; - }; - usb_sel_t2: trim@58,0 { - reg =3D <0x58 1>; - bits =3D <0 4>; - }; - usb_sel_t3: trim@59,0 { - reg =3D <0x59 1>; - bits =3D <0 4>; - }; - usb_hs_i0: trim@56,0 { - reg =3D <0x56 1>; - bits =3D <0 4>; - }; - usb_hs_i2: trim@5a,0 { - reg =3D <0x5a 1>; - bits =3D <0 4>; - }; + usb_rterm1: trim@55,4 { + reg =3D <0x55 1>; + bits =3D <4 2>; + }; + usb_rterm2: trim@58,4 { + reg =3D <0x58 1>; + bits =3D <4 2>; + }; + usb_rterm3: trim@59,4 { + reg =3D <0x59 1>; + bits =3D <4 2>; + }; + usb_sel_t0: trim@54,0 { + reg =3D <0x54 1>; + bits =3D <0 4>; + }; + usb_sel_t1: trim@55,0 { + reg =3D <0x55 1>; + bits =3D <0 4>; + }; + usb_sel_t2: trim@58,0 { + reg =3D <0x58 1>; + bits =3D <0 4>; + }; + usb_sel_t3: trim@59,0 { + reg =3D <0x59 1>; + bits =3D <0 4>; + }; + usb_hs_i0: trim@56,0 { + reg =3D <0x56 1>; + bits =3D <0 4>; + }; + usb_hs_i2: trim@5a,0 { + reg =3D <0x5a 1>; + bits =3D <0 4>; }; }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEDA5C4332F for ; Tue, 13 Dec 2022 08:25:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234818AbiLMIZu (ORCPT ); Tue, 13 Dec 2022 03:25:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234740AbiLMIZI (ORCPT ); Tue, 13 Dec 2022 03:25:08 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C6D8713DF1; Tue, 13 Dec 2022 00:25:06 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:05 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id EEBA82058B4F; Tue, 13 Dec 2022 17:25:04 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:04 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 74B70A855F; Tue, 13 Dec 2022 17:25:04 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 09/17] dt-bindings: soc: socionext: Add UniPhier system controller Date: Tue, 13 Dec 2022 17:24:41 +0900 Message-Id: <20221213082449.2721-10-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add devicetree binding schema for the system controller implemented on Socionext Uniphier SoCs. This system controller has multiple functions such as clock control, reset control, internal watchdog timer, thermal management, and so on. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext/socionext,uniphier-sysctrl.yaml | 104 ++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 105 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-sysctrl.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-sysctrl.yaml b/Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-sysctrl.yaml new file mode 100644 index 000000000000..3acb14201d1a --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-sy= sctrl.yaml @@ -0,0 +1,104 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-sysctr= l.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier system controller + +maintainers: + - Kunihiko Hayashi + +description: |+ + System controller implemented on Socionext UniPhier SoCs has multiple + functions such as clock control, reset control, internal watchdog timer, + thermal management, and so on. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-ld4-sysctrl + - socionext,uniphier-pro4-sysctrl + - socionext,uniphier-pro5-sysctrl + - socionext,uniphier-pxs2-sysctrl + - socionext,uniphier-sld8-sysctrl + - socionext,uniphier-ld11-sysctrl + - socionext,uniphier-ld20-sysctrl + - socionext,uniphier-pxs3-sysctrl + - socionext,uniphier-nx1-sysctrl + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + + clock-controller: + $ref: /schemas/clock/socionext,uniphier-clock.yaml# + + reset-controller: + $ref: /schemas/reset/socionext,uniphier-reset.yaml# + + watchdog: + $ref: /schemas/watchdog/socionext,uniphier-wdt.yaml# + + thermal-sensor: + $ref: /schemas/thermal/socionext,uniphier-thermal.yaml# + +allOf: + - if: + properties: + compatible: + contains: + const: socionext,uniphier-ld4-sysctrl + then: + properties: + watchdog: false + + - if: + properties: + compatible: + contains: + enum: + - socionext,uniphier-ld4-sysctrl + - socionext,uniphier-pro4-sysctrl + - socionext,uniphier-sld8-sysctrl + - socionext,uniphier-ld11-sysctrl + then: + properties: + thermal-sensor: false + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + syscon@61840000 { + compatible =3D "socionext,uniphier-ld20-sysctrl", + "simple-mfd", "syscon"; + reg =3D <0x61840000 0x4000>; + + clock-controller { + compatible =3D "socionext,uniphier-ld20-clock"; + #clock-cells =3D <1>; + }; + + reset-controller { + compatible =3D "socionext,uniphier-ld20-reset"; + #reset-cells =3D <1>; + }; + + watchdog { + compatible =3D "socionext,uniphier-wdt"; + }; + + thermal-sensor { + compatible =3D "socionext,uniphier-ld20-thermal"; + interrupts =3D ; + #thermal-sensor-cells =3D <0>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 0d8faba73fe8..8cec8ea46dd1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3103,6 +3103,7 @@ S: Maintained F: Documentation/devicetree/bindings/arm/socionext/uniphier.yaml F: Documentation/devicetree/bindings/gpio/socionext,uniphier-gpio.yaml F: Documentation/devicetree/bindings/pinctrl/socionext,uniphier-pinctrl.ya= ml +F: Documentation/devicetree/bindings/soc/socionext/socionext,uniphier*.yaml F: arch/arm/boot/dts/uniphier* F: arch/arm/include/asm/hardware/cache-uniphier.h F: arch/arm/mach-uniphier/ --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 008FAC4167B for ; Tue, 13 Dec 2022 08:26:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234805AbiLMI0K (ORCPT ); Tue, 13 Dec 2022 03:26:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234752AbiLMIZK (ORCPT ); Tue, 13 Dec 2022 03:25:10 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0FBA713E01; Tue, 13 Dec 2022 00:25:07 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:05 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 755CC2059054; Tue, 13 Dec 2022 17:25:05 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:05 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id CCA1BA855C; Tue, 13 Dec 2022 17:25:04 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 10/17] dt-bindings: soc: socionext: Add UniPhier SoC-glue logic Date: Tue, 13 Dec 2022 17:24:42 +0900 Message-Id: <20221213082449.2721-11-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add devicetree binding schema for the SoC-glue logic implemented on Socionext Uniphier SoCs. This SoC-glue logic is a set of miscellaneous function registers handling signals for specific devices outside system components, and also has multiple functions such as I/O pinmux, usb-phy, debug, clock-mux for a specific SoC, and so on. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext,uniphier-soc-glue.yaml | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-soc-glue.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-soc-glue.yaml b/Documentation/devicetree/bindings/soc/socionext/socion= ext,uniphier-soc-glue.yaml new file mode 100644 index 000000000000..4b6852db4747 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-so= c-glue.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-soc-gl= ue.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier SoC-glue logic + +maintainers: + - Kunihiko Hayashi + +description: |+ + SoC-glue logic implemented on Socionext UniPhier SoCs is a collection of + miscellaneous function registers handling signals outside system compone= nts. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-ld4-soc-glue + - socionext,uniphier-pro4-soc-glue + - socionext,uniphier-pro5-soc-glue + - socionext,uniphier-pxs2-soc-glue + - socionext,uniphier-sld8-soc-glue + - socionext,uniphier-ld11-soc-glue + - socionext,uniphier-ld20-soc-glue + - socionext,uniphier-pxs3-soc-glue + - socionext,uniphier-nx1-soc-glue + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + +patternProperties: + pinctrl: + $ref: /schemas/pinctrl/socionext,uniphier-pinctrl.yaml# + + usb-hub: + $ref: /schemas/phy/socionext,uniphier-usb2-phy.yaml# + + clock-controller: + $ref: /schemas/clock/socionext,uniphier-clock.yaml# + +allOf: + - if: + not: + properties: + compatible: + contains: + enum: + - socionext,uniphier-pro4-soc-glue + - socionext,uniphier-ld11-soc-glue + then: + properties: + usb-hub: false + + - if: + not: + properties: + compatible: + contains: + const: socionext,uniphier-pro4-soc-glue + then: + properties: + clock-controller: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@5f800000 { + compatible =3D "socionext,uniphier-pro4-soc-glue", + "simple-mfd", "syscon"; + reg =3D <0x5f800000 0x2000>; + + pinctrl { + compatible =3D "socionext,uniphier-pro4-pinctrl"; + }; + + usb-hub { + compatible =3D "socionext,uniphier-pro4-usb2-phy"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + phy@0 { + reg =3D <0>; + #phy-cells =3D <0>; + }; + + phy@1 { + reg =3D <1>; + #phy-cells =3D <0>; + }; + + phy@2 { + reg =3D <2>; + #phy-cells =3D <0>; + }; + + phy@3 { + reg =3D <3>; + #phy-cells =3D <0>; + }; + }; + + clock-controller { + compatible =3D "socionext,uniphier-pro4-sg-clock"; + #clock-cells =3D <1>; + }; + }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE3E8C4332F for ; Tue, 13 Dec 2022 08:25:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234813AbiLMIZh (ORCPT ); Tue, 13 Dec 2022 03:25:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234733AbiLMIZI (ORCPT ); Tue, 13 Dec 2022 03:25:08 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D34713CEE; Tue, 13 Dec 2022 00:25:06 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:05 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 78A672058B4F; Tue, 13 Dec 2022 17:25:05 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:05 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id EF303A855F; Tue, 13 Dec 2022 17:25:04 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 11/17] dt-bindings: soc: socionext: Add UniPhier SoC-glue logic debug part Date: Tue, 13 Dec 2022 17:24:43 +0900 Message-Id: <20221213082449.2721-12-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add devicetree binding schema for the SoC-glue logic debug part implemented on Socionext Uniphier SoCs. This SoC-glue logic debug part is a set of miscellaneous function registers handling signals for specific devices outside system components, and also has multiple functions such as efuse, debug unit, several monitors for specific SoC, and so on. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext,uniphier-soc-glue-debug.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-soc-glue-debug.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-soc-glue-debug.yaml b/Documentation/devicetree/bindings/soc/socionext/= socionext,uniphier-soc-glue-debug.yaml new file mode 100644 index 000000000000..1341544d1df5 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-so= c-glue-debug.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-soc-gl= ue-debug.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier SoC-glue logic debug part + +maintainers: + - Kunihiko Hayashi + +description: |+ + SoC-glue logic debug part implemented on Socionext UniPhier SoCs is + a collection of miscellaneous function registers handling signals outside + system components for debug and monitor use. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-ld4-soc-glue-debug + - socionext,uniphier-pro4-soc-glue-debug + - socionext,uniphier-pro5-soc-glue-debug + - socionext,uniphier-pxs2-soc-glue-debug + - socionext,uniphier-sld8-soc-glue-debug + - socionext,uniphier-ld11-soc-glue-debug + - socionext,uniphier-ld20-soc-glue-debug + - socionext,uniphier-pxs3-soc-glue-debug + - socionext,uniphier-nx1-soc-glue-debug + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + +patternProperties: + "^efuse@[0-9a-f]+$": + $ref: /schemas/nvmem/socionext,uniphier-efuse.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@5f900000 { + compatible =3D "socionext,uniphier-pxs2-soc-glue-debug", + "simple-mfd", "syscon"; + reg =3D <0x5f900000 0x2000>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0 0x5f900000 0x2000>; + + efuse@100 { + compatible =3D "socionext,uniphier-efuse"; + reg =3D <0x100 0x28>; + }; + }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D45DFC4167B for ; Tue, 13 Dec 2022 08:26:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234862AbiLMI0Z (ORCPT ); Tue, 13 Dec 2022 03:26:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234763AbiLMIZN (ORCPT ); Tue, 13 Dec 2022 03:25:13 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3930013DF1; Tue, 13 Dec 2022 00:25:09 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:05 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 78BC52058442; Tue, 13 Dec 2022 17:25:05 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:05 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 1F568A855C; Tue, 13 Dec 2022 17:25:05 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 12/17] dt-bindings: soc: socionext: Add UniPhier peripheral block Date: Tue, 13 Dec 2022 17:24:44 +0900 Message-Id: <20221213082449.2721-13-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add devicetree binding schema for the peripheral block implemented on Socionext Uniphier SoCs. Peripheral block implemented on Socionext UniPhier SoCs is an integrated component of the peripherals including UART, I2C/FI2C, and SCSSI. Peripheral block has some function logics to control the component. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext,uniphier-perictrl.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-perictrl.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-perictrl.yaml b/Documentation/devicetree/bindings/soc/socionext/socion= ext,uniphier-perictrl.yaml new file mode 100644 index 000000000000..0adcffe859ab --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-pe= rictrl.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-perict= rl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier peripheral block controller + +maintainers: + - Kunihiko Hayashi + +description: |+ + Peripheral block implemented on Socionext UniPhier SoCs is an integrated + component of the peripherals including UART, I2C/FI2C, and SCSSI. + Peripheral block controller is a logic to control the component. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-ld4-perictrl + - socionext,uniphier-pro4-perictrl + - socionext,uniphier-pro5-perictrl + - socionext,uniphier-pxs2-perictrl + - socionext,uniphier-sld8-perictrl + - socionext,uniphier-ld11-perictrl + - socionext,uniphier-ld20-perictrl + - socionext,uniphier-pxs3-perictrl + - socionext,uniphier-nx1-perictrl + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + + clock-controller: + $ref: /schemas/clock/socionext,uniphier-clock.yaml# + + reset-controller: + $ref: /schemas/reset/socionext,uniphier-reset.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@59820000 { + compatible =3D "socionext,uniphier-ld20-perictrl", + "simple-mfd", "syscon"; + reg =3D <0x59820000 0x200>; + + clock-controller { + compatible =3D "socionext,uniphier-ld20-peri-clock"; + #clock-cells =3D <1>; + }; + + reset-controller { + compatible =3D "socionext,uniphier-ld20-peri-reset"; + #reset-cells =3D <1>; + }; + }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6441C4332F for ; Tue, 13 Dec 2022 08:26:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234661AbiLMI0P (ORCPT ); Tue, 13 Dec 2022 03:26:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234755AbiLMIZL (ORCPT ); Tue, 13 Dec 2022 03:25:11 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C32F0B4B4; Tue, 13 Dec 2022 00:25:08 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:05 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 8F90F2058B4F; Tue, 13 Dec 2022 17:25:05 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:05 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 43C1DA855F; Tue, 13 Dec 2022 17:25:05 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 13/17] dt-bindings: soc: socionext: Add UniPhier media I/O block Date: Tue, 13 Dec 2022 17:24:45 +0900 Message-Id: <20221213082449.2721-14-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add devicetree binding schema for the media I/O block implemented on Socionext Uniphier SoCs. This block is implemented on LD4, sLD8, Pro4, and LD11 SoCs. Media I/O block implemented on Socionext UniPhier SoCs is an integrated component of the stream type peripherals including SD, USB2.0, eMMC, and MIO-DMAC. Media I/O block has a common logic to control the component. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext/socionext,uniphier-mioctrl.yaml | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-mioctrl.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-mioctrl.yaml b/Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-mioctrl.yaml new file mode 100644 index 000000000000..2cc38bb5038e --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-mi= octrl.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-mioctr= l.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier media I/O block (MIO) controller + +maintainers: + - Kunihiko Hayashi + +description: |+ + Media I/O block implemented on Socionext UniPhier SoCs is a legacy + integrated component of the stream type peripherals including USB2.0, + SD/eMMC, and MIO-DMAC. + Media I/O block has a common logic to control the component. + + Recent SoCs have SD interface logic specialized only for SD functions + as a subset of media I/O block. See socionext,uniphier-sdctrl.yaml. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-ld4-mioctrl + - socionext,uniphier-pro4-mioctrl + - socionext,uniphier-sld8-mioctrl + - socionext,uniphier-ld11-mioctrl + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + + clock-controller: + $ref: /schemas/clock/socionext,uniphier-clock.yaml# + + reset-controller: + $ref: /schemas/reset/socionext,uniphier-reset.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@5b3e0000 { + compatible =3D "socionext,uniphier-ld11-mioctrl", + "simple-mfd", "syscon"; + reg =3D <0x5b3e0000 0x800>; + + clock-controller { + compatible =3D "socionext,uniphier-ld11-mio-clock"; + #clock-cells =3D <1>; + }; + + reset-controller { + compatible =3D "socionext,uniphier-ld11-mio-reset"; + #reset-cells =3D <1>; + resets =3D <&sys_rst 7>; + }; + }; + --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5FC46C4332F for ; Tue, 13 Dec 2022 08:26:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234546AbiLMI0F (ORCPT ); Tue, 13 Dec 2022 03:26:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234753AbiLMIZK (ORCPT ); Tue, 13 Dec 2022 03:25:10 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C3ACB13E8B; Tue, 13 Dec 2022 00:25:08 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:06 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id 156A72058B4F; Tue, 13 Dec 2022 17:25:06 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:06 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 6832EA855C; Tue, 13 Dec 2022 17:25:05 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 14/17] dt-bindings: soc: socionext: Add UniPhier SD interface block Date: Tue, 13 Dec 2022 17:24:46 +0900 Message-Id: <20221213082449.2721-15-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add devicetree binding schema for the SD interface block implemented on Socionext Uniphier SoCs. This SD interface block is attached outside SDHC, and has some SD related functions such as clock control, reset control, mode switch, and so on. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext/socionext,uniphier-sdctrl.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-sdctrl.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-sdctrl.yaml b/Documentation/devicetree/bindings/soc/socionext/socionex= t,uniphier-sdctrl.yaml new file mode 100644 index 000000000000..cb3b0d42739f --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-sd= ctrl.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-sdctrl= .yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier SD interface logic + +maintainers: + - Kunihiko Hayashi + +description: |+ + SD interface logic implemented on Socionext UniPhier SoCs is + attached outside SDHC, and has some SD related functions such as + clock control, reset control, mode switch, and so on. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-pro5-sdctrl + - socionext,uniphier-pxs2-sdctrl + - socionext,uniphier-ld11-sdctrl + - socionext,uniphier-ld20-sdctrl + - socionext,uniphier-pxs3-sdctrl + - socionext,uniphier-nx1-sdctrl + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + + clock-controller: + $ref: /schemas/clock/socionext,uniphier-clock.yaml# + + reset-controller: + $ref: /schemas/reset/socionext,uniphier-reset.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@59810000 { + compatible =3D "socionext,uniphier-ld20-sdctrl", + "simple-mfd", "syscon"; + reg =3D <0x59810000 0x400>; + + clock-controller { + compatible =3D "socionext,uniphier-ld20-sd-clock"; + #clock-cells =3D <1>; + }; + + reset-controller { + compatible =3D "socionext,uniphier-ld20-sd-reset"; + #reset-cells =3D <1>; + }; + }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89F3CC4332F for ; Tue, 13 Dec 2022 08:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234854AbiLMI0U (ORCPT ); Tue, 13 Dec 2022 03:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234762AbiLMIZM (ORCPT ); Tue, 13 Dec 2022 03:25:12 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 67DAF13FA1; Tue, 13 Dec 2022 00:25:09 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:06 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 1921C2059054; Tue, 13 Dec 2022 17:25:06 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:06 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id 8CFBCA855F; Tue, 13 Dec 2022 17:25:05 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 15/17] dt-bindings: soc: socionext: Add UniPhier ADAMV block Date: Tue, 13 Dec 2022 17:24:47 +0900 Message-Id: <20221213082449.2721-16-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add devicetree binding schema for the ADAMV block implemented on Socionext Uniphier SoCs. The ADAMV block is analog signal amplifier that is a part of the external video and audio I/O system. This block is implemented on LD11 and LD20, and this is defined for controlling audio I/O reset only. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext/socionext,uniphier-adamv.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-adamv.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-adamv.yaml b/Documentation/devicetree/bindings/soc/socionext/socionext= ,uniphier-adamv.yaml new file mode 100644 index 000000000000..32d9cc2d72a8 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-ad= amv.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-adamv.= yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier ADAMV block + +maintainers: + - Kunihiko Hayashi + +description: |+ + ADAMV block implemented on Socionext UniPhier SoCs is an analog signal + amplifier that is a part of the external video and audio I/O system. + + This block is defined for controlling audio I/O reset only. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-ld11-adamv + - socionext,uniphier-ld20-adamv + - const: simple-mfd + - const: syscon + + reg: + maxItems: 1 + + reset-controller: + $ref: /schemas/reset/socionext,uniphier-reset.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@57920000 { + compatible =3D "socionext,uniphier-ld20-adamv", + "simple-mfd", "syscon"; + reg =3D <0x57920000 0x1000>; + + reset-controller { + compatible =3D "socionext,uniphier-ld20-adamv-reset"; + #reset-cells =3D <1>; + }; + }; --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F7D3C4332F for ; Tue, 13 Dec 2022 08:26:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234870AbiLMI02 (ORCPT ); Tue, 13 Dec 2022 03:26:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234765AbiLMIZN (ORCPT ); Tue, 13 Dec 2022 03:25:13 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 675F413F6E; Tue, 13 Dec 2022 00:25:09 -0800 (PST) Received: from unknown (HELO iyokan2-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:06 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan2-ex.css.socionext.com (Postfix) with ESMTP id F30662058B4F; Tue, 13 Dec 2022 17:25:05 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:05 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id B1DB9A855C; Tue, 13 Dec 2022 17:25:05 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 16/17] dt-bindings: soc: socionext: Add UniPhier DWC3 USB glue layer Date: Tue, 13 Dec 2022 17:24:48 +0900 Message-Id: <20221213082449.2721-17-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add DT binding schema for components belonging to the platform-specific DWC3 USB glue layer implemented in UniPhier SoCs. This USB glue layer works as a sideband logic for the host controller, including core reset, vbus control, PHYs, and some signals to the controller. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext,uniphier-dwc3-glue.yaml | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-dwc3-glue.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-dwc3-glue.yaml b/Documentation/devicetree/bindings/soc/socionext/socio= next,uniphier-dwc3-glue.yaml new file mode 100644 index 000000000000..bd0def7236b5 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-dw= c3-glue.yaml @@ -0,0 +1,106 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-dwc3-g= lue.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier SoC DWC3 USB3.0 glue layer + +maintainers: + - Kunihiko Hayashi + +description: |+ + DWC3 USB3.0 glue layer implemented on Socionext UniPhier SoCs is + a sideband logic handling signals to DWC3 host controller inside + USB3.0 component. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-pro4-dwc3-glue + - socionext,uniphier-pro5-dwc3-glue + - socionext,uniphier-pxs2-dwc3-glue + - socionext,uniphier-ld20-dwc3-glue + - socionext,uniphier-pxs3-dwc3-glue + - socionext,uniphier-nx1-dwc3-glue + - const: simple-mfd + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + +patternProperties: + "^reset-controller@[0-9a-f]+$": + $ref: /schemas/reset/socionext,uniphier-glue-reset.yaml# + + "^regulator@[0-9a-f]+$": + $ref: /schemas/regulator/socionext,uniphier-regulator.yaml# + + "^phy@[0-9a-f]+$": + oneOf: + - $ref: /schemas/phy/socionext,uniphier-usb3hs-phy.yaml# + - $ref: /schemas/phy/socionext,uniphier-usb3ss-phy.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + usb@65b00000 { + compatible =3D "socionext,uniphier-ld20-dwc3-glue", "simple-mfd"; + reg =3D <0x65b00000 0x400>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0 0x65b00000 0x400>; + + reset-controller@0 { + compatible =3D "socionext,uniphier-ld20-usb3-reset"; + reg =3D <0x0 0x4>; + #reset-cells =3D <1>; + clock-names =3D "link"; + clocks =3D <&sys_clk 14>; + reset-names =3D "link"; + resets =3D <&sys_rst 14>; + }; + + regulator@100 { + compatible =3D "socionext,uniphier-ld20-usb3-regulator"; + reg =3D <0x100 0x10>; + clock-names =3D "link"; + clocks =3D <&sys_clk 14>; + reset-names =3D "link"; + resets =3D <&sys_rst 14>; + }; + + phy@200 { + compatible =3D "socionext,uniphier-ld20-usb3-hsphy"; + reg =3D <0x200 0x10>; + #phy-cells =3D <0>; + clock-names =3D "link", "phy"; + clocks =3D <&sys_clk 14>, <&sys_clk 16>; + reset-names =3D "link", "phy"; + resets =3D <&sys_rst 14>, <&sys_rst 16>; + }; + + phy@300 { + compatible =3D "socionext,uniphier-ld20-usb3-ssphy"; + reg =3D <0x300 0x10>; + #phy-cells =3D <0>; + clock-names =3D "link", "phy"; + clocks =3D <&sys_clk 14>, <&sys_clk 18>; + reset-names =3D "link", "phy"; + resets =3D <&sys_rst 14>, <&sys_rst 18>; + }; + }; + --=20 2.25.1 From nobody Thu Sep 18 10:19:09 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B588BC4332F for ; Tue, 13 Dec 2022 08:26:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234889AbiLMI0c (ORCPT ); Tue, 13 Dec 2022 03:26:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234764AbiLMIZN (ORCPT ); Tue, 13 Dec 2022 03:25:13 -0500 Received: from mx.socionext.com (mx.socionext.com [202.248.49.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 394B513DF9; Tue, 13 Dec 2022 00:25:08 -0800 (PST) Received: from unknown (HELO kinkan2-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 13 Dec 2022 17:25:06 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan2-ex.css.socionext.com (Postfix) with ESMTP id 7CBBE2059054; Tue, 13 Dec 2022 17:25:06 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 13 Dec 2022 17:25:06 +0900 Received: from plum.e01.socionext.com (unknown [10.212.243.119]) by kinkan2.css.socionext.com (Postfix) with ESMTP id D6428A855C; Tue, 13 Dec 2022 17:25:05 +0900 (JST) From: Kunihiko Hayashi To: Rob Herring , Krzysztof Kozlowski Cc: Masami Hiramatsu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi Subject: [PATCH v3 17/17] dt-bindings: soc: socionext: Add UniPhier AHCI glue layer Date: Tue, 13 Dec 2022 17:24:49 +0900 Message-Id: <20221213082449.2721-18-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> References: <20221213082449.2721-1-hayashi.kunihiko@socionext.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add DT binding schema for components belonging to the platform-specific AHCI glue layer implemented in UniPhier SoCs. This AHCI glue layer works as a sideband logic for the host controller, including core reset, PHYs, and some signals to the controller. Signed-off-by: Kunihiko Hayashi Reviewed-by: Krzysztof Kozlowski --- .../socionext,uniphier-ahci-glue.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/socionext/socione= xt,uniphier-ahci-glue.yaml diff --git a/Documentation/devicetree/bindings/soc/socionext/socionext,unip= hier-ahci-glue.yaml b/Documentation/devicetree/bindings/soc/socionext/socio= next,uniphier-ahci-glue.yaml new file mode 100644 index 000000000000..09f861cc068f --- /dev/null +++ b/Documentation/devicetree/bindings/soc/socionext/socionext,uniphier-ah= ci-glue.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/socionext/socionext,uniphier-ahci-g= lue.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Socionext UniPhier SoC AHCI glue layer + +maintainers: + - Kunihiko Hayashi + +description: |+ + AHCI glue layer implemented on Socionext UniPhier SoCs is a sideband + logic handling signals to AHCI host controller inside AHCI component. + +properties: + compatible: + items: + - enum: + - socionext,uniphier-pro4-ahci-glue + - socionext,uniphier-pxs2-ahci-glue + - socionext,uniphier-pxs3-ahci-glue + - const: simple-mfd + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + +patternProperties: + "^reset-controller@[0-9a-f]+$": + $ref: /schemas/reset/socionext,uniphier-glue-reset.yaml# + + "phy@[0-9a-f]+$": + $ref: /schemas/phy/socionext,uniphier-ahci-phy.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + sata-controller@65700000 { + compatible =3D "socionext,uniphier-pxs3-ahci-glue", "simple-mfd"; + reg =3D <0x65b00000 0x400>; + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges =3D <0 0x65700000 0x100>; + + reset-controller@0 { + compatible =3D "socionext,uniphier-pxs3-ahci-reset"; + reg =3D <0x0 0x4>; + clock-names =3D "link"; + clocks =3D <&sys_clk 28>; + reset-names =3D "link"; + resets =3D <&sys_rst 28>; + #reset-cells =3D <1>; + }; + + phy@10 { + compatible =3D "socionext,uniphier-pxs3-ahci-phy"; + reg =3D <0x10 0x10>; + clock-names =3D "link", "phy"; + clocks =3D <&sys_clk 28>, <&sys_clk 30>; + reset-names =3D "link", "phy"; + resets =3D <&sys_rst 28>, <&sys_rst 30>; + #phy-cells =3D <0>; + }; + }; --=20 2.25.1