From patchwork Sat May 18 20:44:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13667700 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B57BEC25B74 for ; Sat, 18 May 2024 20:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yWuA3v8St1kTJ4BxP3aut5ZF7DpijNr2GjoGY3luM5k=; b=jWMJbLIXUif+T3 4FSkc6kThKFbgCUWLoTvuARa8ymRNerWkRv2zq1Fc5pYSEnurctQJbNrM2zkjgVaSrGQDCYD6KGzZ mmh55HQKxD7i+luf6TGq5OK8Fl0LxYEQDy+rQneYnxhXRX1YkKJ4mXNrtUOfJ29P0+sl9GS6dTBe4 1j/TOBx9TrZOuQKiKNDLi5GTGvmq4c3al1Tqgqz9I+FjzGgQTaS0L2BCBuleWAxHMhW57RceU55wi 1TVjsXxMsBJs7gssn2FaLut0FwbK/O5Vh3NsOoHWEwh9EShMvnEanP77OxXIAZv2L0lQpkDQ98Kda twEL/t6rTRqDxroaNz3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8Qw9-0000000Ak27-1lMJ; Sat, 18 May 2024 20:45:49 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8Qw6-0000000Ak1M-29yb for linux-arm-kernel@lists.infradead.org; Sat, 18 May 2024 20:45:48 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a59b178b75bso429857766b.0 for ; Sat, 18 May 2024 13:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716065144; x=1716669944; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DUhuNF9gHTk1IAfIZXzg3k6X/meW7+BoTontLnhR/a4=; b=crao+1p8ZHN/WK1C+7cS7SeAlqXkg+frTnnN3Z/O8mqb9NNjnZ2WI93Uoj00s9JCLc AxSUTGJyCVbgv4JpmRFOR8wg45Vty4yjkAiJxScD5EtqOx0YE26yIssZfPvybaauHjC/ juavRTzoWc6ZyEgsmqDXEUTqMOtFduU1Gl4BxMfira5PvYZqayNPHhxGI8eG0eOqosxN Hzf1G9KmiTrDPvyHhn3iI5CEXDrMc/sT194J6kPIV7dfhJ0RzuxmQ5BnlZ2i30cEV5pz al6/awNHa37VvddknGVopFpLJv6/AOIBBWKkr6Pf9k4BjcwWM3BqvetyFxmzGemR46pu skqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716065144; x=1716669944; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DUhuNF9gHTk1IAfIZXzg3k6X/meW7+BoTontLnhR/a4=; b=CZ9VZmrUcO7onOhQk/lC30QMOPmHVl4Cf96kxmpKgC1oU+MPflhs9tN8lsJD0G08u4 XQFdM2CSUERTR8eRjRSz9WVjKTI4nLmmNYPlnq4o7yOPS7CukzPcFjOu71yoASjLFNF8 KjvESrLpS11XFi0RBJ41zcfpzMobZhV3Fj849IV9z27oajbUUX9Gd/WTkbBZvI6wysLS +SjcKMjkKcC7c9goERisoR7o+vIrTsAAN7ZvTONHR+DkCOMgWnbDrWHJ7oWLhNY/UbVh IcwVqDqhVXwmj3BIyETHSTpt0X1Zt3LXVsgFXycaJ7QIN/uul7hf0eQpijb0g3OHHBIT WR4Q== X-Forwarded-Encrypted: i=1; AJvYcCVCuXCHlwN3LktQofSJSzQUXrFbuGRJTH9xGWGkH8r9Yi1zRHn7mT02LB6Vd06zyjJKdwnjLTe0XiGXpjYUvGek4JQ9+L3HfN0G4RV4pfnzESRniyE= X-Gm-Message-State: AOJu0YxvAXyFJVr6QnmvyuaMMwycCtL4CFAGGU0ft/EbAQdX5SZLYQsd FqBJZcIoOvabtZE4hL4OsiDCEmT/4ZBerFs1YYaVygW0Euc2gdXp2bPBLY7Scc+EIWPXz0+u1Ae R X-Google-Smtp-Source: AGHT+IFLoW6ZA9b1C63Bf8OHLm3WLy3NeBN1vX3eOc7oCC6JLBiBVaypz0Q6D7yjtaz1sIWPPtH/WA== X-Received: by 2002:a17:906:1797:b0:a5a:8d07:6a00 with SMTP id a640c23a62f3a-a5a8d076e2cmr827982966b.64.1716065143946; Sat, 18 May 2024 13:45:43 -0700 (PDT) Received: from krzk-bin.. ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17892471sm1261716566b.84.2024.05.18.13.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 13:45:43 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wei Xu , Carvalho Chehab , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski , Jiaxun Yang Subject: [PATCH 1/2] dt-bindings: soc: hisilicon: document hi3660-usb3-otg-bc Date: Sat, 18 May 2024 22:44:42 +0200 Message-ID: <20240518204443.122586-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240518_134546_588444_D07F2A34 X-CRM114-Status: GOOD ( 12.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add dedicated bindings for the Hisilicon Kirin 960 USB OTG Syscon, to fully document the block and also fix dtbs_check warning: hi3660-hikey960.dtb: usb3_otg_bc@ff200000: compatible: ['syscon', 'simple-mfd'] is too short Signed-off-by: Krzysztof Kozlowski Reviewed-by: Conor Dooley --- Cc: Jiaxun Yang --- .../hisilicon,hi3660-usb3-otg-bc.yaml | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml diff --git a/Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml b/Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml new file mode 100644 index 000000000000..2e26637a4711 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/hisilicon/hisilicon,hi3660-usb3-otg-bc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Hisilicon Kirin 960 USB OTG Syscon + +maintainers: + - Mauro Carvalho Chehab + +properties: + compatible: + items: + - const: hisilicon,hi3660-usb3-otg-bc + - const: syscon + - const: simple-mfd + + reg: + maxItems: 1 + + usb-phy: + $ref: /schemas/phy/hisilicon,hi3660-usb3.yaml + description: USB Phy node + +required: + - compatible + - reg + - usb-phy + +additionalProperties: false + +examples: + - | + syscon@ff200000 { + compatible = "hisilicon,hi3660-usb3-otg-bc", "syscon", "simple-mfd"; + reg = <0xff200000 0x1000>; + + usb-phy { + compatible = "hisilicon,hi3660-usb-phy"; + #phy-cells = <0>; + hisilicon,pericrg-syscon = <&crg_ctrl>; + hisilicon,pctrl-syscon = <&pctrl>; + hisilicon,eye-diagram-param = <0x22466e4>; + }; + }; From patchwork Sat May 18 20:44:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13667701 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 081E5C25B74 for ; Sat, 18 May 2024 20:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+qOae5/aagCcNp+tl/6wffDfUzDqg046jz02JiSAQtw=; b=RR/r5O6FdhtA+t cI7RojGH1//w44b25Q+Ez/hAOiL9vrsHXw1vU5hM+anq1uHewkMZSQI5MguqJDSfPAnDNvSpHCMz2 nEJFQwlxrG4444tKZNaL5Ni0axwbOoLn093g91VBU8f6iekAcSY7xt1EZQoawi/KUTD7pDTb0blte mAiBJHzFTT6wBm999bxrqI/Ovin58yg4MJgRB2/bSxdusagcpwNMx95bCZBpaf0EcRh0ErtaebZaP fS+UQL47x/x9k4S3KidhORVWbvMI2TQfUYpEnUyJadC+A7Thjb45+avYSrcyxow5abxxktpgwk+nY sZKk1kyKwzijJNt+a5jg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8QwE-0000000Ak3f-1Kd5; Sat, 18 May 2024 20:45:54 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s8QwA-0000000Ak1X-0gTo for linux-arm-kernel@lists.infradead.org; Sat, 18 May 2024 20:45:51 +0000 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-a5a4bc9578cso542904866b.2 for ; Sat, 18 May 2024 13:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716065145; x=1716669945; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j+9awidLeL0V0G9gp7oNQRrSLvxa9AsxzbbOSMIs68k=; b=X0q6kshZ6ICyszwu/vFCDkcs+Jgd/LPouH/Ghbncde2IMzHEwLpnusX2V4hCms/Vhc /V5dgteoAlkKhH20NHLj72FbGWrRLymWV1fxOlpfFAY27qRIddQPRCJ/1bBUaUoIisDd GR8EmoCjfklg0Lrjv5kGsMRcSu6IwkboS6dImKkRyr0KOXjXkXISSh5v6gCEmZJTUxMo 3Ns+jMQE29ucwj/pOneEyknXnBgjsCxl+p9KUVbi/29TVkLlYRNfhtgdkHqFeoAs1gL+ 9IWkaHi0GWkvVklHvWiikuSuFRhd8UHCd8BRSAAAV669FzjFfsyn5iJ8w9sf66Mp0jsS 7KyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716065145; x=1716669945; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j+9awidLeL0V0G9gp7oNQRrSLvxa9AsxzbbOSMIs68k=; b=d8mD0eC/HSmfYsPgUHZadY0PSUuz6X+kwr0KZHRr3EZP5ZogUaXuEQpQOsK7StsNTc HTp89DKpxXuM6XF9nA80zjqIKJXw6jKdWzB5IBnipROr7EBU+pP2IzsDm3wUcj+DAgsz sGzkaFeNYqHLSNu9XCx24OpFKhO3QD8UJYcHyNNGZpc2UlM67yHaSfbGrVFP/2Z54Y+8 UvF7umEwS76wzwsjdo60I8tuefY42tLQoqRCrQP1Rv9mCsQhXXg8yq8S2tsEdjxF+XaM NClieoHKt3s0eyUfR0GdNFpI/LYC39atbuUqPnBOXZYkh6kShojOI1K3obCQ02flYUTp V38Q== X-Forwarded-Encrypted: i=1; AJvYcCVU6c9ti6plZL1KjKIL6QppnLFrjwPMVWsp0LqLy8oCjJtjYyWv8jBRDDVqRQTIV3G7wvNG2lkDz+RrqJb6jVbATjBiz0FcROdglbW4LCiCNm2F/LA= X-Gm-Message-State: AOJu0YwqbKHagqLU9dXFaNSN6RUD3ZvLAydo3QKJTF3RsyByc3UGc7p+ S5WfbfcOjmtA+KBNT6gCVlV7lXf0RDsvBHZP6lcJ8dtpIdmawvWcxfzfbG+Rc9c= X-Google-Smtp-Source: AGHT+IFk88WcIbMB7VwpjkiwjM1k8iI3LM850DJVBxeHYXHCJsfR1TKr5Ls0kHsiDggcf6UxNaEG/w== X-Received: by 2002:a17:907:9446:b0:a59:afdd:590a with SMTP id a640c23a62f3a-a5a2d65d66dmr3011292266b.56.1716065145394; Sat, 18 May 2024 13:45:45 -0700 (PDT) Received: from krzk-bin.. ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17892471sm1261716566b.84.2024.05.18.13.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 May 2024 13:45:44 -0700 (PDT) From: Krzysztof Kozlowski To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wei Xu , Carvalho Chehab , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski , Jiaxun Yang Subject: [PATCH 2/2] arm64: dts: hisilicon: hi3660: add dedicated hi3660-usb3-otg-bc compatible Date: Sat, 18 May 2024 22:44:43 +0200 Message-ID: <20240518204443.122586-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240518204443.122586-1-krzysztof.kozlowski@linaro.org> References: <20240518204443.122586-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240518_134550_229657_5DD2AAD9 X-CRM114-Status: GOOD ( 11.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Each syscon node must come with a dedicated/specific compatible, which is also reported by dtbs_check: hi3660-hikey960.dtb: usb3_otg_bc@ff200000: compatible: ['syscon', 'simple-mfd'] is too short Signed-off-by: Krzysztof Kozlowski --- Cc: Jiaxun Yang --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 7e137a884ae5..957a1b41f19b 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -1161,7 +1161,7 @@ map1 { }; usb3_otg_bc: usb3_otg_bc@ff200000 { - compatible = "syscon", "simple-mfd"; + compatible = "hisilicon,hi3660-usb3-otg-bc", "syscon", "simple-mfd"; reg = <0x0 0xff200000 0x0 0x1000>; usb_phy: usb-phy {