From patchwork Mon Sep 13 08:00:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 12488083 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 89B1FC433F5 for ; Mon, 13 Sep 2021 08:00:39 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 5572460FBF for ; Mon, 13 Sep 2021 08:00:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5572460FBF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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=Yjr2+Y1xfE5eDMJQUSf3flHeedgDweHaBLStbLShA6Y=; b=gSvwK4nEVyZd+r 3QTwG0cRORzykM3JtD/X+oxzg5tNXs5GNKPuJXTtsyqIhkZft0UCGf6rwqmFSRW0OoMHCxTSBB6c8 e1Kx4F6mVnLK95Eh92kuBBfLiyp+bSit1jjC4WAK/EwsR3dyt+HxaGsAoTx9MboRrfOGjkEx3lle/ /fFOakBWLNXhGD7/AuBy+V9ckCYlvrVLjdji9xKMkPVjuph2jXLwDMNSuAaljYuW621sSZ5SEceUS g7ibZ7Zc2268hliW6Ep8brq4vT+676gyk0fvqAD705wkpCUyqoaVMKgWUaBH0DHSrKicNH8jmKdhm VOxg28JmQL6n3XfrBajA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPgtK-000bz1-RV; Mon, 13 Sep 2021 08:00:38 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mPgtH-000bwj-Rp for linux-phy@lists.infradead.org; Mon, 13 Sep 2021 08:00:37 +0000 Received: by mail-lf1-x131.google.com with SMTP id s10so19214799lfr.11 for ; Mon, 13 Sep 2021 01:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8u0fRL7/WtYh13V0VL96ZPbNOKZAmwP1HL9vKQArsNU=; b=N8uo1W5bIWEeY6l3C2BNxEYJ40i32+XodLrhXu8Kdbrrv82LcoZIG1BCCH+6ZUb+xF ZXl9IS/4ppRT2jmTTvrR7WyL6vuM3qriR2A6z6Djh5mA4lTTgwjC63UJ5spNG/aDtrPE Yk/v31W4WIc21mP7seCIW7gHltGU60rxOIgtdSyhwN8Ip7yO2pRoYwRwzHYfaGMOazHk JAW/RA3sfif+VeH8DOEte+0OrYgGCo3m5XTNeCbrAr8xUtm8BFVDtKcL800fSQjJDlx7 ujHpWcXMJn1v6Am5x1YiTEolK5NOI7bwWyvWOqD7zOhGtjn6g2J21C/licj92lEwrU9h rVEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8u0fRL7/WtYh13V0VL96ZPbNOKZAmwP1HL9vKQArsNU=; b=M1BbL+vI/11MKGOUzuV/RMmNSMNOQ6NefvxtMCIabtktkwnk+ig8oQUF9dCUD/wn9I Yc6A+klVjKJhW/PqNbCCOxsrO8pCVA6WVqFeyseEZDarx9bJZcNtk7sx0r01EG0S4CbE eIfySwpNLs152qtIJF5hUEHhx13Xn+lO6r2ucUeavRpyjVcDPPtfHsMDUxn0nUUOGtoM QNgr6pTHJ42F1L/zkR9E+0a1XEO16BEnXfUCARpD58VJ9YukgCparHqecKywv9de9Iff awUph8vvdGiM0CY1WaQ5p0+POxKPQbTwS7TM8i++PWtYKgqcyvmJk8oS2UoyyNIpq5sn vxkw== X-Gm-Message-State: AOAM531EAdM8S0wVafwrafFMiL9sR8eHRHvVizJgZrcupj2kPBQacNg1 7W0qFIAjt7xO7QMlVhyNMAs= X-Google-Smtp-Source: ABdhPJwtAtZdB6NNq0qSlE2Pn4jMd+9FtZOAFlcXue44QZOy3MVnTmt5XGM7en9RAeBIe43H5R0j4w== X-Received: by 2002:a05:6512:4008:: with SMTP id br8mr5800865lfb.23.1631520032515; Mon, 13 Sep 2021 01:00:32 -0700 (PDT) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id t13sm747059lff.46.2021.09.13.01.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 01:00:32 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Kishon Vijay Abraham I , Vinod Koul , Lee Jones , Rob Herring Cc: linux-phy@lists.infradead.org, Florian Fainelli , Chunfeng Yun , devicetree@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 1/4] dt-bindings: mfd: brcm,cru: add clkset syscon Date: Mon, 13 Sep 2021 10:00:21 +0200 Message-Id: <20210913080024.6951-1-zajec5@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210913_010035_946782_95481E2C X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki CRU has a shared register that is used e.g. to control USB 2.0 PHY block access. It's a single 32 b register. Document it as syscon so it can be used with a regmap. Signed-off-by: Rafał Miłecki Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/mfd/brcm,cru.yaml | 8 ++++++++ Documentation/devicetree/bindings/mfd/syscon.yaml | 1 + 2 files changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/brcm,cru.yaml b/Documentation/devicetree/bindings/mfd/brcm,cru.yaml index fc1317ab3226..bf4e585d3c18 100644 --- a/Documentation/devicetree/bindings/mfd/brcm,cru.yaml +++ b/Documentation/devicetree/bindings/mfd/brcm,cru.yaml @@ -39,6 +39,9 @@ patternProperties: '^clock-controller@[a-f0-9]+$': $ref: ../clock/brcm,iproc-clocks.yaml + '^syscon@[a-f0-9]+$': + $ref: syscon.yaml + '^thermal@[a-f0-9]+$': $ref: ../thermal/brcm,ns-thermal.yaml @@ -73,6 +76,11 @@ examples: "iprocfast", "sata1", "sata2"; }; + syscon@180 { + compatible = "brcm,cru-clkset", "syscon"; + reg = <0x180 0x4>; + }; + pinctrl { compatible = "brcm,bcm4708-pinmux"; offset = <0x1c0>; diff --git a/Documentation/devicetree/bindings/mfd/syscon.yaml b/Documentation/devicetree/bindings/mfd/syscon.yaml index abe3fd817e0b..0dcffc273c2b 100644 --- a/Documentation/devicetree/bindings/mfd/syscon.yaml +++ b/Documentation/devicetree/bindings/mfd/syscon.yaml @@ -38,6 +38,7 @@ properties: - allwinner,sun8i-h3-system-controller - allwinner,sun8i-v3s-system-controller - allwinner,sun50i-a64-system-controller + - brcm,cru-clkset - hisilicon,dsa-subctrl - hisilicon,hi6220-sramctrl - hisilicon,pcie-sas-subctrl