From patchwork Thu Feb 22 17:42:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danila Tikhonov X-Patchwork-Id: 20811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp102271dyb; Thu, 22 Feb 2024 09:46:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVZ4litdiPOh0xpnTDhzdUgmFtQ18G8HSluj5e+zehwmMIX+HSC1UFKkXpdKry8IdfbYZau1PpcGFpy3AV/fNnHy+u9xg== X-Google-Smtp-Source: AGHT+IGEPnL+MMmeUCXNstNzVlkuLqsf+8aZQVCPsCcgraY6OgX0rVAopaHSddHZmoxnZFWH2l6t X-Received: by 2002:a05:6358:7f15:b0:17b:55f0:3bba with SMTP id p21-20020a0563587f1500b0017b55f03bbamr4827542rwn.5.1708623983610; Thu, 22 Feb 2024 09:46:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708623983; cv=pass; d=google.com; s=arc-20160816; b=pYklFeAYtrTciwZSdrnGUY0M7VLXDDcu347TjMvxv+p+DEHiy3Q1Lfz8dp+b1FSLdG +DdxvY4rMe+bJb9fpWL2yXSwVwsGMFKaH0YStSWvvxHgqfsAGM9gEEvpxX4iagwSaLZe 1l7gW0sPdE8PI9enWlKg+FPm7YFt/376lB0Kd7DWVqc+FVMB7enlD7Zpvim8+OiSAVHR 3yhVxuhmV3BmDcqM6KORVSmuOQwpvs7QtNxAEBkjRQoiN33MdyTXMR8Zs50icBfKm0by C9CfQF/5ThDsObqJSL+J+tFgCNSPkvYcsxYpASWAIK8cc9iWequ9H5NXbBuI8v8z/NzO 6W8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=1TenuOkcG5evzoXACnxDUOLvNvTUV6mwDyHgHdTFX6U=; fh=h5QBpSmPADC2J2jrlEIGPFBmLeXtQWyLYJTxWOjNPpk=; b=ClJsvakj8MOdji3oyKmD0joyomu2Fum/nJoFB8iOhGANwa9WGMoWWulvrF+djZdHMI hR6b3n2MfCTC0faM12m9CxXhOj7zedxzse/Aee8uE2ABomkM5QJmIfw9ocuW1oksNzRm /R6qPPNlXy6WrTsBFmc597c7sJ8AUC+2zuOTvjGBDkPe3qR1iDJLL+ucqodR+Yx6ZMSP lBN49cy5Y7Q3Pdw57rENWsXuC+shsor8FoZdzM7cuPDxOuEhwTOq857XiBs0WfeKiuor NXsTVA52EOYpump+ov94J6LM0w75xKg+XfUPozAJX5nHs0OUkpwkeEDTJqlGhlwgO8LE Bq0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@jiaxyga.com header.s=mailru header.b=BiO1UabS; arc=pass (i=1 spf=pass spfdomain=jiaxyga.com dkim=pass dkdomain=jiaxyga.com); spf=pass (google.com: domain of linux-kernel+bounces-77001-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77001-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id dr3-20020a056a020fc300b005dc43104eefsi10471721pgb.104.2024.02.22.09.46.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 09:46:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77001-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=fail header.i=@jiaxyga.com header.s=mailru header.b=BiO1UabS; arc=pass (i=1 spf=pass spfdomain=jiaxyga.com dkim=pass dkdomain=jiaxyga.com); spf=pass (google.com: domain of linux-kernel+bounces-77001-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77001-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0067E28BDB7 for ; Thu, 22 Feb 2024 17:44:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3F261586FF; Thu, 22 Feb 2024 17:43:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=jiaxyga.com header.i=@jiaxyga.com header.b="BiO1UabS" Received: from smtp35.i.mail.ru (smtp35.i.mail.ru [95.163.41.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F255E155A5D; Thu, 22 Feb 2024 17:43:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.163.41.76 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708623786; cv=none; b=nMNH/5TsNEYKHPCIRkwqX0Z5XJIfMOKb2hAWeXQstbOGUXSS55aTKqGmZTAXkg050QBWYP+HwqnOHW7iYEEYXBdY5oh7soEXcrECu/u3LAYLgtJoIcdP6eH9rlexpw8l/1AosFlK76ASLfy3gvMCvuElC7ZYfpM7HcR7gh5VGVI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708623786; c=relaxed/simple; bh=WIVrwDsBbPzNaMTb/dnHv/LOTju4W7kM0gkxzAbBHjE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Kh02kaervwlX/M84H9C1vHgnRa2OxPGNK/VPZtGVGLA/8HQVxTlVOXlkjwt/5tkniIRY6SLxZP5lkNitjQAyDKKd1GyZ3Imsxms/iC2Xxm3bubEL+vI56R2G4yIOoNPBj98jnn/g983/huld2/Cyig8+dvk5Fs/vVlTQ+MztneM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jiaxyga.com; spf=pass smtp.mailfrom=jiaxyga.com; dkim=pass (1024-bit key) header.d=jiaxyga.com header.i=@jiaxyga.com header.b=BiO1UabS; arc=none smtp.client-ip=95.163.41.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jiaxyga.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jiaxyga.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jiaxyga.com ; s=mailru; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:From:Sender:Reply-To:To:Cc:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive: X-Cloud-Ids:Disposition-Notification-To; bh=1TenuOkcG5evzoXACnxDUOLvNvTUV6mwDyHgHdTFX6U=; t=1708623783; x=1708713783; b=BiO1UabS3WtRHwzHu4jq4ZVGUYECgnHMUVqxYDATusNP3DUuvn+bRnJsyFZ/MDN5Ld9AHWzxFQF Zw2d6ViRaz76hbC5od3dhoRbNAWw1VGREahFUlwP4VKydrpU+lqzj285p4BpkuGXUoyBw0DbRuVyN 8BFRUQhLkIzsaGGYEWo=; Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1rdD5x-0000000BMIH-1gOl; Thu, 22 Feb 2024 20:42:54 +0300 From: Danila Tikhonov To: andersson@kernel.org, konrad.dybcio@linaro.org, djakov@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Danila Tikhonov Subject: [PATCH v2 0/2] Add interconnect support for SM7150 SoC Date: Thu, 22 Feb 2024 20:42:48 +0300 Message-ID: <20240222174250.80493-1-danila@jiaxyga.com> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Authentication-Results: smtp35.i.mail.ru; auth=pass smtp.auth=danila@jiaxyga.com smtp.mailfrom=danila@jiaxyga.com X-Mailru-Src: smtp X-7564579A: EEAE043A70213CC8 X-77F55803: 4F1203BC0FB41BD9A0539DA8B638EEE24480D7EFA423187C2F2D41C068758ED8182A05F5380850404C228DA9ACA6FE275F91DB108F9063E233594132A326AF8B58F75731F803AB97B13BC05B40DCEAA5A7398ABDDC9FB8BB X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE72E2D36A15E1833D8EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F790063764BF1E09E94CC6278638F802B75D45FF36EB9D2243A4F8B5A6FCA7DBDB1FC311F39EFFDF887939037866D6147AF826D8EF89892920D8F9F2E3BE5448EA843F6215E66FA7512B0D92CC7F00164DA146DAFE8445B8C89999728AA50765F7900637A359038F01FFAF82389733CBF5DBD5E9C8A9BA7A39EFB766F5D81C698A659EA7CC7F00164DA146DA9985D098DBDEAEC878444BBB7636F62AF6B57BC7E6449061A352F6E88A58FB86F5D81C698A659EA73AA81AA40904B5D9A18204E546F3947C6A1CB4668A9CA5FAAD7EC71F1DB884274AD6D5ED66289B523666184CF4C3C14F6136E347CC761E07725E5C173C3A84C3056D5A8E4C6B598EBA3038C0950A5D36B5C8C57E37DE458B330BD67F2E7D9AF16D1867E19FE14079C09775C1D3CA48CF17B107DEF921CE791DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C3CD42BCEBB57B85E635872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-C1DE0DAB: 0D63561A33F958A5D26ACACEAAE7E4505002B1117B3ED6969193E638BD89DD93D57BAD45EC4C5DE1823CB91A9FED034534781492E4B8EEADF12279BA039A6965C79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADE00A9FD3E00BEEDF77DD89D51EBB7742D3581295AF09D3DF87807E0823442EA2ED31085941D9CD0AF7F820E7B07EA4CFD2B247E9CF04F14960109914BCFAB4729AE3539482CB76B6A0CA6D78E6D66DEADDCE95BB4BF576A60C89D780EEF94DBEEA0DBE6432E8D8EFDEAC876D50C401A62B426FFEA59737B1AF108DC32EA72A8402C26D483E81D6BE72B480F99247062FEE42F474E8A1C6FD34D382445848F2F3 X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu530nj6fImhcD4MUrOEAnl0W826KZ9Q+tr5ycPtXkTV4k65bRjmOUUP8cvGozZ33TWg5HZplvhhXbhDGzqmQDTd6OAevLeAnq3Ra9uf7zvY2zzsIhlcp/Y7m53TZgf2aB4JOg4gkr2biojjw0udeJQYBTEXJUu31OKJw== X-Mailru-Sender: 9EB879F2C80682A09F26F806C7394981B30287F184E31E97BC5A20191D90C84F23187A5E454F60C90BEC391E8E0905FF2C62728BC403A049225EC17F3711B6CF1A6F2E8989E84EC137BFB0221605B344978139F6FA5A77F05FEEDEB644C299C0ED14614B50AE0675 X-Mras: Ok X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791622101937091955 X-GMAIL-MSGID: 1791622101937091955 Add dtbindings and driver support for the Qualcomm SM7150 SoC. Changes in v2: - dt-bindings: Drop "'#interconnect-cells': true" - driver: Unwrap qnoc_of_match entities and add a space before the closing curly bracket (Konrad) - driver: Use core_initcall instead of module_platform_driver (Konrad) - Link to v1: https://lore.kernel.org/all/20240218183239.85319-1-danila@jiaxyga.com/ To: Bjorn Andersson To: Konrad Dybcio To: Georgi Djakov To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley Cc: linux-arm-msm@vger.kernel.org Cc: linux-pm@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Danila Tikhonov Danila Tikhonov (2): dt-bindings: interconnect: Add Qualcomm SM7150 DT bindings interconnect: qcom: Add SM7150 driver support .../interconnect/qcom,sm7150-rpmh.yaml | 84 + drivers/interconnect/qcom/Kconfig | 9 + drivers/interconnect/qcom/Makefile | 2 + drivers/interconnect/qcom/sm7150.c | 1754 +++++++++++++++++ drivers/interconnect/qcom/sm7150.h | 140 ++ .../interconnect/qcom,sm7150-rpmh.h | 150 ++ 6 files changed, 2139 insertions(+) create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,sm7150-rpmh.yaml create mode 100644 drivers/interconnect/qcom/sm7150.c create mode 100644 drivers/interconnect/qcom/sm7150.h create mode 100644 include/dt-bindings/interconnect/qcom,sm7150-rpmh.h