From patchwork Mon Aug 14 10:40:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 135433 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2756088vqi; Mon, 14 Aug 2023 06:46:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi7+MnHay8er9YI5DN2M0mpOvQnJC4mDIPCoQs3aYM/aMdwEaoOzK+C1sF8fGP1NWeQqFu X-Received: by 2002:a17:902:d4cf:b0:1b8:9b1b:ae8e with SMTP id o15-20020a170902d4cf00b001b89b1bae8emr8981364plg.59.1692020805949; Mon, 14 Aug 2023 06:46:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692020805; cv=none; d=google.com; s=arc-20160816; b=ZhqKMLzSMKQRIcXJfwNUnFCPhCVn8z5+CVre+z+EiipCzexwSS5wL+pDGX4T22c6iq 2Z+ZlHwVEgQeHSINu4gC7QSEiYrjNP7FABwhpDJzfYyM7VPmpVnmKIFHbx5oPEp+TZb2 aZKWPxw9FAQREy8Wgl1G3fN0WTFsaDSKlagmuNjxc5lVjENduFELT7U97SESxdczL/iy vzocSKYNJ6Hus51i5q80uLpjt6AI9YxMyNdCsR3b1h88oLbPpBtrxclHzyKmc2xW+2X3 aGVOyt8U0HlPUmNRJiTe/0LL0+nmXtmWQ5lvSbHk8re6YtVwuTb6Tqbow6pNjPdzDk2y POlA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=jSw4csycOwpeCvjk1+out8qA4MHRdLgT4XjSRFi9YI4=; fh=6/LvzppCRXPAaDdGpS43keOOhXgz8k+r+JsW9TGp2Vo=; b=IKArS0HCeOvs49IXnOUX3TmNJQT9cXotadl6r2Oep+T2LYei+9/1jkL+gU3mwk5Y22 qMrG9XRECj3w8RLqqtuLy4abGDErlfquZFe8ieWF+hI6M4N+ns4a2wc8Tthx2PWfCoZk 4frKJxphTP48bFDWNQp5i/c5PcG3xsD5L60yvKVbrUZ1IRNxQn8LC2yJHcK/CvoMxVKq VW0FwhtXgru5zp/o2ZDcbpnipODhYbHJP9dC1QVm926H8fpln2dykZIIw3uF43QMHKol 6aRlTCh9tctdOD7gRzGJjjHoFnDy3aCV0H16+23zjSrDaBnmszK6KfeF93dNDyJoIwwJ 74Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura.hr header.s=sartura header.b=raD8xCmJ; 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=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r17-20020a170903015100b001b8a4519706si7817811plc.19.2023.08.14.06.46.31; Mon, 14 Aug 2023 06:46:45 -0700 (PDT) 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=@sartura.hr header.s=sartura header.b=raD8xCmJ; 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=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233783AbjHNKls (ORCPT + 99 others); Mon, 14 Aug 2023 06:41:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235136AbjHNKle (ORCPT ); Mon, 14 Aug 2023 06:41:34 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBBE6E58 for ; Mon, 14 Aug 2023 03:41:25 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-99c4923195dso567165366b.2 for ; Mon, 14 Aug 2023 03:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; t=1692009684; x=1692614484; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jSw4csycOwpeCvjk1+out8qA4MHRdLgT4XjSRFi9YI4=; b=raD8xCmJS5LggmRmeEcYRS9BpLx62slvvmJlaJmLv3zXqb2NxLl83bXkWTa39H2ai/ 1K1tAruj0xQezMsnjHOd4AFYg15nI+uP6swbX78Vd/bmydsYxHVV7ZpyD07eZ8bQ3AYm o0xnJE3sTA6YXVuGTOBCa5MW/D5KnrH9mqlKMZMlIbae0Pq8DIduIwtFciGsEIUoiWo+ XFxUmKIb1etw6Lavv9dKY72eio1Ke47t9i8ob8kDUkhbwV4QAjINwzE6Bn8ryUGP4l+c xmQuoQDB0DJ1MB61ouBwFf9v43/M/0adbvH/vqz5YpX526T1z0WGGAd+WxnR8A0PMvAg sPhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692009684; x=1692614484; 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=jSw4csycOwpeCvjk1+out8qA4MHRdLgT4XjSRFi9YI4=; b=Ap3kCZht8uWVeyCB04c/Oi4Q7n7feCWOUlYk3rGbaymT9UVUCjpduMPxkIgHeQs7Jm EFHp/xNdxzoGFStIXaCjPnnqF0THeWPZF6Ih8qzVuMyOBjywvB7Wft7fH1bdvYq474Tp vrzCWzx3CntyzE6xC67ppDWAS4L02vrTjKqTsl8Md81709qwV/YzOORq4Xhy8ID4UbiR zIN3FUkQHdZYRuTK852ixEtcvS9ApzzPrXKkWITUqJieOwBQ1Jsr5Xv1LFn5aAcrUXOY PASz2fERlPc2PkxU21x317I8ftyxPs/NutNMdV1brkVy9GDzuXscQzl4QGdCDMs5EUdi l8UQ== X-Gm-Message-State: AOJu0YyuHPw2u6ux7G3/4pniukJLW2EQQYCZQThemwujQsgFZTRmy1Rz E9buJZjDGlG82aXoy9V4G3nyGQ== X-Received: by 2002:a17:907:801f:b0:992:b3a3:81f9 with SMTP id ft31-20020a170907801f00b00992b3a381f9mr6271991ejc.71.1692009684062; Mon, 14 Aug 2023 03:41:24 -0700 (PDT) Received: from fedora.. (cpezg-94-253-129-24-cbl.xnet.hr. [94.253.129.24]) by smtp.googlemail.com with ESMTPSA id qw4-20020a170906fca400b009934707378fsm5486586ejb.87.2023.08.14.03.41.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 03:41:23 -0700 (PDT) From: Robert Marko To: andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Robert Marko Subject: [PATCH 1/2] dt-bindings: clock: qcom: ipq4019: add missing networking resets Date: Mon, 14 Aug 2023 12:40:23 +0200 Message-ID: <20230814104119.96858-1-robert.marko@sartura.hr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no 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: INBOX X-GMAIL-THRID: 1774212408473608758 X-GMAIL-MSGID: 1774212408473608758 Add bindings for the missing networking resets found in IPQ4019 GCC. Signed-off-by: Robert Marko --- include/dt-bindings/clock/qcom,gcc-ipq4019.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/dt-bindings/clock/qcom,gcc-ipq4019.h b/include/dt-bindings/clock/qcom,gcc-ipq4019.h index 7e8a7be6dcda..fa0587857547 100644 --- a/include/dt-bindings/clock/qcom,gcc-ipq4019.h +++ b/include/dt-bindings/clock/qcom,gcc-ipq4019.h @@ -165,5 +165,11 @@ #define GCC_QDSS_BCR 69 #define GCC_MPM_BCR 70 #define GCC_SPDM_BCR 71 +#define ESS_MAC1_ARES 72 +#define ESS_MAC2_ARES 73 +#define ESS_MAC3_ARES 74 +#define ESS_MAC4_ARES 75 +#define ESS_MAC5_ARES 76 +#define ESS_PSGMII_ARES 77 #endif From patchwork Mon Aug 14 10:40:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 135361 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2690581vqi; Mon, 14 Aug 2023 04:58:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6bsQ+oMF6APnBBHTGUzJ2kwOnqGZSzWFrsrJrdDG+RSFTPyECsoj08eGey8zkU5vrBXl9 X-Received: by 2002:a17:906:5386:b0:99b:e9f7:b073 with SMTP id g6-20020a170906538600b0099be9f7b073mr7300535ejo.14.1692014289313; Mon, 14 Aug 2023 04:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692014289; cv=none; d=google.com; s=arc-20160816; b=XREpXwouXufle88ZrxB0Cqmi6c9t/X48B9iSOstQ9JyZ7oruPhX8L8pFiUc9Ll/gUa JbH74PBRGSW1Lvq4v8c1J/Zbt3r+l6BoUMUpKvpSCGcMeKHelBff2FoWHcBa5d3svIyJ jmY/xeTKq2CPUWSdF3V784Xus9UQ2xS7qfh3O+P4mY62XexnZtMbQ9VyJ8CIVJleOYyN +LMhfSRnd+W9Az9lpVvFrtHmxfsZTtDHzhfr/PaBMoBe/KRrCtHxDNK8v0f3oCbvcG4H gwglQ5izybB6dJQvyJJESadY8uIDrj7wJodi+LEpy4L7/khIxtC8G7KtFEriW6Hq9ZGx ZgSQ== 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=Djj4l4V/6mjTCVIY5j1u2m14Bqurma+fObOXnVezLR0=; fh=6/LvzppCRXPAaDdGpS43keOOhXgz8k+r+JsW9TGp2Vo=; b=EGdkWjYa5Bhp47SJ5UIl3tCm1TB1qX7wzQAdsPysQ3m5Y6s/YWvaHDbgaXA6+E+ikC j64ZpFOQFX6gvFTfRMottUjSSEVGBut64jhoLWHd1N/fa74JWbF0rmjG1nNZFWapBWNY redyYzDP2lZkYfKD8Lme0RcHf2Zq0istVoLFRcVYz5nziGtmxbwviOXZ8Mksp9SDEert dlaNjrCw3h1u36WsCpk9iTQUjhzxfJjDBXDZ9nXsCx1bSpeaMKolmmu5h49bPozGpzU+ aJFvAv3dlCJMF2sslDEqYn7BFpG34Nwf/2UfwPJk/DJgZi2va+7MN0DfZaQBm5YCmZ5X wFvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sartura.hr header.s=sartura header.b=fBXI+rRn; 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=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id se1-20020a170906ce4100b00992a91b422fsi8091769ejb.41.2023.08.14.04.57.46; Mon, 14 Aug 2023 04:58:09 -0700 (PDT) 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=@sartura.hr header.s=sartura header.b=fBXI+rRn; 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=REJECT sp=NONE dis=NONE) header.from=sartura.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233316AbjHNKlq (ORCPT + 99 others); Mon, 14 Aug 2023 06:41:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235217AbjHNKlh (ORCPT ); Mon, 14 Aug 2023 06:41:37 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E1B10D1 for ; Mon, 14 Aug 2023 03:41:27 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-977e0fbd742so540250466b.2 for ; Mon, 14 Aug 2023 03:41:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura.hr; s=sartura; t=1692009685; x=1692614485; 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=Djj4l4V/6mjTCVIY5j1u2m14Bqurma+fObOXnVezLR0=; b=fBXI+rRnh1me98p2B6w9MJ+himWLu2zzOVjf19ltNVYFfR/dNpJxyBqCz8zTs1bJhx 9ETPAkFP8toVGszYn8vNWF3zgyNJ8dTJ9EmV/PRn8ORbDyGt51YRA8tUs1AlGBYPc/uf c1fZgwFTy5MW7wNzz0TeWZ+AVGDOxn1ORnT6Y3bMVEA1O6o86YSQvaIUysQgP58JRag5 N96eyCE5fUlCS1zHrsFwr4JEbOWtlKfr8WuPGfjnxcW3dS4jg+n7i3mahMjWVqicC5YO +I4PbOWPQMjmRjlFmekO9xOnSInNBXEPmWFHHhWf5DFsvyNZTp8R5HQaQrITnK2LjyuE L5gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692009685; x=1692614485; 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=Djj4l4V/6mjTCVIY5j1u2m14Bqurma+fObOXnVezLR0=; b=FSFpd9Tx5t4uWyp2yIEqpANhfRQLsYAaJYB1YXdmrIyqSNgtVU8MXBQS0vvE7XB3zz z7VRFDCR3s4oSUtvH+GuG5q1TPYMBsGGI/M7mNgkigJWMJM3Wv6p20va/wsANGdg59Rd WVN3KdIF2+R82ukIhtn8ZhcJJEkzUk9Z/xjdvT+xXNO0Ir4G6BK/eaI+GMg3JZgSiW2B QZz/cmqIUgFZb28BM5rRL9MuY+OcvQ3C0hWmXUZwAm6ZmxYnzEoZDxGRvt9NyW34aBQm MdtfyiKTCcCLdzAwyyLM/UZ30KtyD0Dm+xodoEUwZllUf/F8HaD0qnOnuBA4wYkzRWOC ww8w== X-Gm-Message-State: AOJu0Ywac3CV+MHYLakTHmhBhf0nQYdfyzHcmf5AzzBooDn6rGQ1F4vn iRhxVyOvqT8irPZjPiakodw48w== X-Received: by 2002:a17:906:7489:b0:974:183a:54b6 with SMTP id e9-20020a170906748900b00974183a54b6mr7128442ejl.33.1692009685347; Mon, 14 Aug 2023 03:41:25 -0700 (PDT) Received: from fedora.. (cpezg-94-253-129-24-cbl.xnet.hr. [94.253.129.24]) by smtp.googlemail.com with ESMTPSA id qw4-20020a170906fca400b009934707378fsm5486586ejb.87.2023.08.14.03.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 03:41:24 -0700 (PDT) From: Robert Marko To: andersson@kernel.org, agross@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Robert Marko Subject: [PATCH 2/2] clk: qcom: gcc-ipq4019: add missing networking resets Date: Mon, 14 Aug 2023 12:40:24 +0200 Message-ID: <20230814104119.96858-2-robert.marko@sartura.hr> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230814104119.96858-1-robert.marko@sartura.hr> References: <20230814104119.96858-1-robert.marko@sartura.hr> 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,NO_DNS_FOR_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=no 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: INBOX X-GMAIL-THRID: 1774205575224223878 X-GMAIL-MSGID: 1774205575224223878 IPQ4019 has more networking related resets that will be required for future wired networking support, so lets add them. Signed-off-by: Robert Marko --- drivers/clk/qcom/gcc-ipq4019.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/qcom/gcc-ipq4019.c b/drivers/clk/qcom/gcc-ipq4019.c index c134c468bb33..4a0bd668892e 100644 --- a/drivers/clk/qcom/gcc-ipq4019.c +++ b/drivers/clk/qcom/gcc-ipq4019.c @@ -1713,6 +1713,12 @@ static const struct qcom_reset_map gcc_ipq4019_resets[] = { [GCC_TCSR_BCR] = {0x22000, 0}, [GCC_MPM_BCR] = {0x24000, 0}, [GCC_SPDM_BCR] = {0x25000, 0}, + [ESS_MAC1_ARES] = {0x1200C, 0}, + [ESS_MAC2_ARES] = {0x1200C, 1}, + [ESS_MAC3_ARES] = {0x1200C, 2}, + [ESS_MAC4_ARES] = {0x1200C, 3}, + [ESS_MAC5_ARES] = {0x1200C, 4}, + [ESS_PSGMII_ARES] = {0x1200C, 5}, }; static const struct regmap_config gcc_ipq4019_regmap_config = {