From patchwork Tue Feb 7 11:40:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 53850 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2799985wrn; Tue, 7 Feb 2023 03:44:06 -0800 (PST) X-Google-Smtp-Source: AK7set+idZuAoepKwm1dB0s/YrGMDsKyx8qs4TUWuf/Tmgza1L65swEyErOf0ArcNclqqXkJLAB8 X-Received: by 2002:a17:902:c755:b0:199:1c65:2c42 with SMTP id q21-20020a170902c75500b001991c652c42mr2090456plq.12.1675770246184; Tue, 07 Feb 2023 03:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675770246; cv=none; d=google.com; s=arc-20160816; b=IXuOqr47pNr8HxEwA/S+wGDmVSE66Es+ykT4YkhWBWH7U8Cs2tidDWf+xSpODzbnFs Fd5TwsIgBDN+t73ZnmQGGkqbvsuwbs7USMyEM+hwQhH1LRnt/7QiTnv5s9ev6gyDso0P WFof4lK1beiuJTxI4BwuYWWNyXnNkVERulXPsZLRH7GCQHtHLw2Ho/t48HWDCM3g8bUE XAPNrjUVlGKJ70/gfoY8h/GgcHmWb313KnuRHt+I9dhJvoCQ6dvxf9SEFBGtT2xCGt95 xucjiW/TgzGubNcEJmb9798Rvqr6SQwv93rThFvipEUee6MJG4CI3B97DYkkKwnnXpAV A93g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sDatRZBqiUI2ElF++MvN6nONqINB6h8G+ODmLux2ut8=; b=HfST6Ao4Ss5QDzyvJe00peXesiEPgw7QyBM669RWRYxzFfFBCtLT6VHp+XLGYAv2Ks LapPBN+blZIGq+sswcL97iOPOsoKjqnuggk5jFcWa4tYhQtvlz1wYsisJFDYqEm0jrhT NuAtf3co+tPRbd5tpkcNi+FCaWa4QySuzda19NBAtYCK0dWjl248PE30vJLnsE96WvDm I+z0u+AEogXEWoE6zZgt5AGMLDr1u8Q1W95nP9jUNQTjOb34uOb3HYRNsXuuU6X45LSH N8ys8jOI9K/U90vZPaYuRAHRAQASYiKlwkDvhGdXMqXcgOlD82V7Kr21spvah9C5rc4y vXjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UbJx6nOE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a170902854b00b001930212bebfsi12839379plo.530.2023.02.07.03.43.53; Tue, 07 Feb 2023 03:44:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UbJx6nOE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231686AbjBGLkx (ORCPT + 99 others); Tue, 7 Feb 2023 06:40:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231373AbjBGLkv (ORCPT ); Tue, 7 Feb 2023 06:40:51 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31AB615CBE for ; Tue, 7 Feb 2023 03:40:47 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id j29-20020a05600c1c1d00b003dc52fed235so11233754wms.1 for ; Tue, 07 Feb 2023 03:40:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=sDatRZBqiUI2ElF++MvN6nONqINB6h8G+ODmLux2ut8=; b=UbJx6nOES/5CVkxT2y0+f0gyICo7sUHnyUxLOElgPp0ArrXCZ3ma0xG7tnuhlOM5r9 pUAHCZn5LeWL/sSSR949JTcfTFVLzCSVDScY4qAvlsxaasS6jDGRAB/ZOYPaSxSJ/g4I zyB5KtYHrIxxL5od9AiVWQ+Fn2MIMi2Cz8a+36f7KWnzzEadtFlqW2r+QKmB66XlV1YM kD71BYQW8YiUbTHfA/aHd3cbqAPKcc22dntETCWyGu2ZuAxgAd0IRkupVl7xx0xwRyox 4IWlYz0ywZ5A+Rmyx41HS35p3fer5vPa/1uYUPbLXX0uOAqy25u2ziNe15zRrKxZ1wzs eUzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=sDatRZBqiUI2ElF++MvN6nONqINB6h8G+ODmLux2ut8=; b=AHHqfhFwH2yF/V/9QUnqpsykO6AEOJWUn9rmuV974xeoERbokNYw+PTlYKJ+J1q/RI C1J/z4oadaOplTib47rAmOwC2a5p50wmiWzXvtJEXRXV5IFunW9gqaDupVPzzzT7+HfO vHF9DBvxsPinaHCHLU3f5+/Iu/0aIAFqr3cTiuVujeMXsJZk7+UOopTy2AD93w2fi3ve UO2WFzll0ylXnAuGYwpfe2anz07IhDIrjfYQnVsbla3ZZENPmxVJQsoitpSA/c58wSiy 8BKfP6n52S+I+CuaHk05ukBu0iX+G8AkIIEDIphiBnDe7eZeLuEymMvJX8uHARdQ0yGF /Dgw== X-Gm-Message-State: AO0yUKVcbXrW7I8FJceHWU0INN6VRT/huwHN81UN7EPtvZREz01AlPC+ eGG1cE4rsDEnntouVENeEwDtQQ== X-Received: by 2002:a05:600c:713:b0:3df:e4b4:de69 with SMTP id i19-20020a05600c071300b003dfe4b4de69mr2821331wmn.27.1675770045665; Tue, 07 Feb 2023 03:40:45 -0800 (PST) Received: from hackbox.lan ([94.52.112.99]) by smtp.gmail.com with ESMTPSA id c7-20020a05600c0ac700b003d1d5a83b2esm18326005wmr.35.2023.02.07.03.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 03:40:45 -0800 (PST) From: Abel Vesa To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , "vkoul@kernel.org" , Kishon Vijay Abraham I , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, Linux Kernel Mailing List Subject: [PATCH v5 1/6] dt-bindings: phy: Add qcom,snps-eusb2-phy schema file Date: Tue, 7 Feb 2023 13:40:19 +0200 Message-Id: <20230207114024.944314-2-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230207114024.944314-1-abel.vesa@linaro.org> References: <20230207114024.944314-1-abel.vesa@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757172462105622333?= X-GMAIL-MSGID: =?utf-8?q?1757172462105622333?= The SM8550 SoC uses Synopsis eUSB2 PHY. Add a dt-binding schema for the new driver. Signed-off-by: Abel Vesa Reviewed-by: Rob Herring --- There will be a binding check warning from Rob's bot because of the tcsr clock bindings missing (dt-bindings/clock/qcom,sm8550-tcsr.h), but that is expected as the header is already merged through Bjorn's clocks tree. The v4 version of this patch was here: https://lore.kernel.org/all/20230202132511.3983095-2-abel.vesa@linaro.org/ Changes since v4: * none Changes since v3: * removed blank line, like Rob suggested * dropped quotes and reset description, like Rob suggested * dropped the RPMH_CXO_PAD_CLK clock and the ref_src clock name to match the schema * fixed filenames of the includes in the example (sm8550-gcc and sm8550-tcsr) Changes since v2: * none Changes since v1: * dropped the "ref src" clock * dropped the usb-repeater property .../bindings/phy/qcom,snps-eusb2-phy.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml new file mode 100644 index 000000000000..de72577e34a4 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,snps-eusb2-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SNPS eUSB2 phy controller + +maintainers: + - Abel Vesa + +description: + eUSB2 controller supports LS/FS/HS usb connectivity on Qualcomm chipsets. + +properties: + compatible: + const: qcom,sm8550-snps-eusb2-phy + + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + clocks: + items: + - description: ref + + clock-names: + items: + - const: ref + + resets: + maxItems: 1 + + vdd-supply: + description: + Phandle to 0.88V regulator supply to PHY digital circuit. + + vdda12-supply: + description: + Phandle to 1.2V regulator supply to PHY refclk pll block. + +required: + - compatible + - reg + - "#phy-cells" + - clocks + - clock-names + - vdd-supply + - vdda12-supply + - resets + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usb_1_hsphy: phy@88e3000 { + compatible = "qcom,sm8550-snps-eusb2-phy"; + reg = <0x88e3000 0x154>; + #phy-cells = <0>; + + clocks = <&tcsrcc TCSR_USB2_CLKREF_EN>; + clock-names = "ref"; + + vdd-supply = <&vreg_l1e_0p88>; + vdda12-supply = <&vreg_l3e_1p2>; + + resets = <&gcc GCC_QUSB2PHY_PRIM_BCR>; + };