From patchwork Tue Apr 23 17:06:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13640410 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 3F5CBC19F4E for ; Tue, 23 Apr 2024 17:06:59 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=uyczNq09syItzyCQu0R5WhrmPNQIyv21Zs9eWv0BjjE=; b=rJg9+FeGOeoPKP kKgdECq9YZvvdFIjxh7FQTYn9v1GGdUHTbjJ4Qtzi8ktJaaPkkWLsr3cV9e+pX25MWbYgJI5QgXWH VuVaL2x9l2s+IIhwU9wHM4UD5yGVQmqJhCuiBfDFjew1/EWnLaKrL44crt87vs3Dw+i2F/u3MyU7V rp/ssPBtG4UPoR88E+ao/Q8sSJW1CffVQ2UjZIu/w9Bk+aVCJFpsBIBBQvZBf4QCbH2K9eAhCm5yi hxph4qZnwKIS1kLeFVy3tt6iIXtzuA7KKXRf18sH8xNAXXi0V4k7OO6Axgk0O81WzWq9nH4upnmRs EHMXZF6DRof0fqTnw0Vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzJbU-00000000sMf-16vF; Tue, 23 Apr 2024 17:06:48 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzJb9-00000000s9a-0vvM for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 17:06:30 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a5200afe39eso650833666b.1 for ; Tue, 23 Apr 2024 10:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713891985; x=1714496785; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=AmVOMAacL5XFgxZMBxM5qRIgA9vpdjsgMSXx5Z5N0AI=; b=DTYqFvE6y78VDrTPGVpzt6GxC1sU3S0paucTrzk+rhFRO5NvfGxI+C9KYxYi3EcZ++ 2rKF1rDidoZCbDyR3mO7yVBGmzHWQhIvGnTwYCnnw18GQ03DP9zBPIEIQCQZ4x/fT+Oy TL6k6/kWGX8l7xBKm6oMtz1gLy63H81vu5IpZUO1Jj2fnBx25JUvoT9xQfh6bRhKVk95 qSW2SUESy9o9wO0o+YVAmcgiORqo/8wknzIi8ac+eQ9wDkd5ea4Gm1mptteC9C5MQHeK EHVuXGNG7OPz2i68lGLX5or1S13dzzmP6nvZF+gzgLFhnLuUFJsEVQ0M8GLa462Ajs0P eNPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713891985; x=1714496785; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AmVOMAacL5XFgxZMBxM5qRIgA9vpdjsgMSXx5Z5N0AI=; b=e3eW8zx0XrhTIAKaE++MGDJKhOV5LH8FiCv+kJRTXr1sIDOvOoBwa9TtgL6Sz5vcJh G+sTqJVX03KLNN4X+olmROgq8ZVsbIEI8i6Z/z5jNCiLFHMx8RddB4yQuaGQjRu7Yp/H FTiHVm09Y2EB1peEJS+NJl6keblS97GmedkegM3Y3QIMt+FMctW6Yy5af2xnK2F/fNaW oTO/b/cw/7tT/2sZYZUTxhMc8KcQPfFpV+3QA/fWzcU2AYH2XGy8R+em+RM6V4qEEnYV xeWO8up5uhGepo8gRPqxxDSVte8M8/0ciYXz8Af3UZGgPPbk1ZGeOMjDX4nZg/iGWvZI iNXg== X-Forwarded-Encrypted: i=1; AJvYcCUayZ7D8aGk/g28Cq5pjTGVFRNkXI7S39Bct6Lz4r9O6H0OSnFTmucUnOuil4V++7ux+WIF1oTyVyRTzLHRNfjkhgy5t8KJYloeqUZo4jCaA0o+aBg= X-Gm-Message-State: AOJu0YzrdFtawv7DtqxGgoBfQqJKTr9yo19AQlqRuUt7yYVT1arQKKS8 qpAvChX/II0/D9VuyvYYEk7h+ptSIt9hTZ7CkD9b5gSaOhD4rQhD4x0DX8l/zeI= X-Google-Smtp-Source: AGHT+IHFr6sGyLI+yphYekoqsdNMAx6XjzCJoHMxUHv0NqmcqlAxDCxNlJfyBgFU/lBIG84EZQBqaw== X-Received: by 2002:a17:906:fad4:b0:a52:3492:d168 with SMTP id lu20-20020a170906fad400b00a523492d168mr11332528ejb.50.1713891985270; Tue, 23 Apr 2024 10:06:25 -0700 (PDT) Received: from puffmais.c.googlers.com (8.239.204.35.bc.googleusercontent.com. [35.204.239.8]) by smtp.gmail.com with ESMTPSA id t22-20020a1709063e5600b00a5209dc79c1sm7351624eji.146.2024.04.23.10.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 10:06:24 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Tue, 23 Apr 2024 18:06:03 +0100 Subject: [PATCH 1/7] dt-bindings: phy: samsung,usb3-drd-phy: add gs101 compatible MIME-Version: 1.0 Message-Id: <20240423-usb-phy-gs101-v1-1-ebdcb3ac174d@linaro.org> References: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> In-Reply-To: <20240423-usb-phy-gs101-v1-0-ebdcb3ac174d@linaro.org> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Marek Szyprowski , Sylwester Nawrocki , Alim Akhtar , Sam Protsenko Cc: Krzysztof Kozlowski , Tudor Ambarus , Will McVicker , Roy Luo , kernel-team@android.com, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?q?Andr=C3=A9?= =?utf-8?q?_Draszik?= X-Mailer: b4 0.12.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240423_100627_452974_1930C14C X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. 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 a dedicated google,gs101-usb31drd-phy compatible for Google Tensor gs101 SoC. It needs additional clocks enabled for register access, and additional memory regions (PCS & PMA) are required for successful configuration. Signed-off-by: André Draszik --- .../bindings/phy/samsung,usb3-drd-phy.yaml | 78 +++++++++++++++++----- 1 file changed, 61 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml index 452e584d9812..db1dc4c60b72 100644 --- a/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml +++ b/Documentation/devicetree/bindings/phy/samsung,usb3-drd-phy.yaml @@ -25,6 +25,7 @@ description: | properties: compatible: enum: + - google,gs101-usb31drd-phy - samsung,exynos5250-usbdrd-phy - samsung,exynos5420-usbdrd-phy - samsung,exynos5433-usbdrd-phy @@ -57,7 +58,18 @@ properties: the OF graph bindings specified. reg: - maxItems: 1 + minItems: 1 + items: + - description: PHY register base address. + - description: PCS register base address. + - description: PMA register base address. + + reg-names: + minItems: 1 + items: + - const: phy + - const: pcs + - const: pma samsung,pmu-syscon: $ref: /schemas/types.yaml#/definitions/phandle @@ -85,30 +97,62 @@ allOf: properties: compatible: contains: - enum: - - samsung,exynos5433-usbdrd-phy - - samsung,exynos7-usbdrd-phy + const: google,gs101-usb31drd-phy then: properties: clocks: - minItems: 5 - maxItems: 5 - clock-names: items: - - const: phy - - const: ref - - const: phy_utmi - - const: phy_pipe - - const: itp - else: - properties: - clocks: - minItems: 2 - maxItems: 2 + - description: Gate of main PHY clock + - description: Gate of PHY reference clock + - description: Gate of control interface AXI clock + - description: Gate of control interface APB clock + - description: Gate of SCL APB clock clock-names: items: - const: phy - const: ref + - const: ctrl_aclk + - const: ctrl_pclk + - const: scl_pclk + reg: + minItems: 3 + reg-names: + minItems: 3 + required: + - reg-names + else: + if: + properties: + compatible: + contains: + enum: + - samsung,exynos5433-usbdrd-phy + - samsung,exynos7-usbdrd-phy + then: + properties: + clocks: + minItems: 5 + maxItems: 5 + clock-names: + items: + - const: phy + - const: ref + - const: phy_utmi + - const: phy_pipe + - const: itp + reg: + maxItems: 1 + else: + properties: + clocks: + minItems: 2 + maxItems: 2 + clock-names: + items: + - const: phy + - const: ref + reg: + maxItems: 1 additionalProperties: false