From patchwork Mon Jul 3 13:31:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 11550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp539522vqx; Mon, 3 Jul 2023 06:52:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BjHtVs8sMGKCEGEhm3vY6btYgzJSqbO0bRPqASi4cuRqF7wlbTG8aViOWuFl4s5dR2ZeM X-Received: by 2002:a05:6a21:999a:b0:11a:dbb3:703b with SMTP id ve26-20020a056a21999a00b0011adbb3703bmr16325048pzb.6.1688392373429; Mon, 03 Jul 2023 06:52:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688392373; cv=none; d=google.com; s=arc-20160816; b=j5cR0AyJEG7S9cqGJm6WGCBa1nCFmTSNr/FNEBh8C5UXNGojL9GB8tmJ9m6TzxHbnS PA0ocaQ3Ye1pDilGvpBKvDG+tjO9QY1Z/I8MTCaxHZN4PsvSArvkyb7Q8Smcp/QsARY/ +uWaGB5MYB5MVZ0qbxYN/JuMprSmckLIYLbeVXI7DJ4iLDxfa+BUpEK9uc5WHY8NIf9Q UC7+b3SNxH2P79QLD9rpXc3gI8020FL6LsKRWZTbcqABqatr9BwBuU2iDMPQKA0vpKxv CazZ4z8AuiKzEPq0s1ANNkc+ZbvBAUZ87V1AVwj8DO69H4ULZII/MyTIkK9W5BmAhft8 uH5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=mmnKR6NrcH13RIboC24wgvo0cXm9uFpdKMc5Nw0n2zA=; fh=EV+5bRVCKNG17q531vPQpoKiuN4tfzBrxhdEOIK2W5o=; b=iDcIoOLlyPJPwvt1IMe8/5HZycI3o0d+tKIsMkDqR6XvHO7qxWhY4kQa4GTwqr1q6g 0VC6HwQhq9m6v0/xrVZYKu7zFlKAsKXHcj6YVsDeD8Hj/7H1fajjNyoG5mFLmEFdLfEE XIqZ4z9pgZORsY5mUqo+mQCO/97SIaPS34D03pXy8kYN/poWY1q+AuxgIVXLi694JAmb TGMzuhFlu7HYdwjWoEn9HGcbOzKgKabcT6QmExE6rWOK83bu2yLq6COOXr5fVw/7wglM bIeddWkmSzXGuxblnciN+4JCuWexFRZV5nFKLWfer1poSCjintyGYx4jHwSUpi3uBsEM jPTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ScMdpPo+; 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 w10-20020a056a0014ca00b006828c76a9f1si3034201pfu.74.2023.07.03.06.52.41; Mon, 03 Jul 2023 06:52:53 -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=@linaro.org header.s=google header.b=ScMdpPo+; 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 S231584AbjGCNbT (ORCPT + 99 others); Mon, 3 Jul 2023 09:31:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbjGCNbR (ORCPT ); Mon, 3 Jul 2023 09:31:17 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6288AE50 for ; Mon, 3 Jul 2023 06:31:15 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f004cc54f4so6691915e87.3 for ; Mon, 03 Jul 2023 06:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688391073; x=1690983073; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=mmnKR6NrcH13RIboC24wgvo0cXm9uFpdKMc5Nw0n2zA=; b=ScMdpPo+quZsGKt6VxpWHDSxyvsyHQTKTkDln/Nk5LM97r3ByHE8tRaLbaMvIxbS85 lQMOOI6mNxiq/LTabMNpFsGcPccJoVDJvShOaSrpsRAAw2GVxGZ0/hQb3kL+DOn9bPO3 LzzMb+6WZ9gj9hrm80XN+GiplqVeWvzt2DHlJzYUm4O3fYez/hIEfojd6aCDtOQLMyDw /JST52UuE9cGQN/N23OmzKAbDBCwMaT+9FXOCFXxFcoYHA40lGBrO7AfStANI6Fie7bc AybJ0M1nIfz4EcE8lNqRCIoqPrMLcwxi6MjmTcgE/1FmWXxq/MKuYPxjFySG61Pss78+ QEIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688391073; x=1690983073; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mmnKR6NrcH13RIboC24wgvo0cXm9uFpdKMc5Nw0n2zA=; b=KU3dlhzB7vOHSqrEviBJ3C43P+C/4K+i8qmZcKQyaD55zs2//NI1wNHvEFS5/ZCCox mLRTb1z06+MH8aX42bWaNa16EIhFSrZm71oyyZFsbNoKlO3jY/uwKKqfStdLY3w2FFiZ mdygEehyGpnPlkLzkKhMCN8It3DPAW7VQnEDkMN6jEAXMDl1v3AqiWar1qaiMMm5aMGv tJz6ZAb65JzWGMHBx2EhkTAbscjxI9kY1DIuPfXrU+ysdmRohYa7OVz+hJf3xNeUeU4x Ab0aMlWPN4Usq9wZHtYL/7QuTOlQqqWdsZvx/2i8NEIly91E5+2uft/t2z6U2I+3j6vw CKdQ== X-Gm-Message-State: ABy/qLYb0g2Em/t1uwXMnwQc8W6GQLkde90rXKpo4CvndESAKKUJKIRq Ne8EwMb16f7I27Yat5WUdt8shQ== X-Received: by 2002:a05:6512:3984:b0:4fb:85b2:cf78 with SMTP id j4-20020a056512398400b004fb85b2cf78mr8856638lfu.37.1688391073559; Mon, 03 Jul 2023 06:31:13 -0700 (PDT) Received: from [192.168.1.101] (abyj26.neoplus.adsl.tpnet.pl. [83.9.29.26]) by smtp.gmail.com with ESMTPSA id ep7-20020a056512484700b004fbb1f70ceesm833417lfb.227.2023.07.03.06.31.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 06:31:13 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH 0/5] Add interconnects to QUPs on SM8250 Date: Mon, 03 Jul 2023 15:31:09 +0200 Message-Id: <20230703-topic-8250_qup_icc-v1-0-fea39aa07525@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJ3NomQC/x2N0QqDMAwAf0XyvEBtp5X9yhCpMZsBqV2rMhD/f WGPd3DcCYWzcIFHdULmQ4qsUaG+VUBziG9GmZTBGuuMNw63NQlhZxszfPY0CBG2tW+74O7kmUD DMRTGMYdIs6ZxXxaVKfNLvv/Ts7+uH6A3bfx5AAAA To: Andy Gross , Bjorn Andersson , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , Andi Shyti Cc: Marijn Suijten , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-i2c@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1688391072; l=1274; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=P/b9sUtVGW1aCLv/5W9/Do7IS4MZ5AYwLEHs4cWI4Yo=; b=FeyN/5yDiFSyKCkhToHlIcdNwZzpYCsAzae8/E3MTmMzSSgehX8sZSykvbqgM4E5OR2o/LBXV pAWX9VvkUzICzoebYDjNNIbkASbiD70Z2u/I6lHttwRFt3eIaxT4Pcp X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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,T_SCC_BODY_TEXT_LINE 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?1770407721281695134?= X-GMAIL-MSGID: =?utf-8?q?1770407721281695134?= SM8250 (like SM8150 but unlike all other QUP-equipped SoCs) doesn't provide a qup-core path. Adjust the bindings and drivers as necessary, and then describe the icc paths in the device tree. This makes it possible for interconnect sync_state succeed so long as you don't use UFS. Signed-off-by: Konrad Dybcio --- Konrad Dybcio (5): dt-bindings: spi: spi-geni-qcom: Allow no qup-core icc path dt-bindings: serial: geni-qcom: Allow no qup-core icc path dt-bindings: i2c: qcom,i2c-geni: Allow no qup-core icc path soc: qcom: geni-se: Allow any combination of icc paths arm64: dts: qcom: sm8250: Add interconnects and power-domains to QUPs .../bindings/i2c/qcom,i2c-geni-qcom.yaml | 27 ++-- .../bindings/serial/qcom,serial-geni-qcom.yaml | 26 ++-- .../bindings/spi/qcom,spi-geni-qcom.yaml | 15 ++- arch/arm64/boot/dts/qcom/sm8250.dtsi | 150 +++++++++++++++++++++ drivers/soc/qcom/qcom-geni-se.c | 9 +- 5 files changed, 204 insertions(+), 23 deletions(-) --- base-commit: 296d53d8f84ce50ffaee7d575487058c8d437335 change-id: 20230703-topic-8250_qup_icc-61768a34c7ec Best regards,