mbox series

[v5,0/8] Add support for sm6115,4250 and OnePlus Nord N100

Message ID 20221030094258.486428-1-iskren.chernev@gmail.com
Headers show
Series Add support for sm6115,4250 and OnePlus Nord N100 | expand

Message

Iskren Chernev Oct. 30, 2022, 9:42 a.m. UTC
Changes from v4
v4: https://lore.kernel.org/linux-arm-msm/20220919180618.1840194-1-iskren.chernev@gmail.com/
- rebase on next-20221028
- drop merged patches
- add unmerged patches from https://lore.kernel.org/linux-devicetree/20220815100952.23795-1-a39.skl@gmail.com/
- all in all, treat this as a resend

Changes from v3
---------------
v3: https://lore.kernel.org/linux-arm-msm/20220910143213.477261-1-iskren.chernev@gmail.com/
- move qcom,smem to reserved-memory region
- change soc to soc@0
- pad reg addresses to 8 digits
- align pinctrl with latest linux-next
- rename usb labels to align with existing socs
- use named masks for armv8-timer
- order billie2 overrides by label name
- dual license dts(i) files
- dropped merged patches

NOTE: Not done as suggested:
- armv8-timer: I used GIC_CPU_MASK_SIMPLE(4) instead of GIC_CPU_MASK_SIMPLE(8),
  which would have changed the hardcoded mask
- I haven't changed the default state of regulators - there seems to be no
  clear way to do that across the board

Changes from v2
---------------
v2: https://lore.kernel.org/all/20220903174150.3566935-1-iskren.chernev@gmail.com/
- fix ufs bindings to follow sdm845
- drop nvmem, firmware, reserved-range patches (merged)
- add patch that fixes sm6115-dwc3 bindings (4/9)
- add patch that fixes qcom,sm6115-sdhci bindings (5/9)
- add patch that fixes qcom,sm6115-qmp-ufs-phy bindings (6/9)
- drop dynamic reserved memory regions
- drop clock-output-names
- drop frequency for timer
- fix mmc pinctrl regression in v2
- move board clock freqs in relative scope
- fix indentation to please Konrad
- reorder some DT props (reg, status, compatible)

Changes from v1
---------------
v1: https://lore.kernel.org/all/20220901072414.1923075-1-iskren.chernev@gmail.com/
- merge dtsi patches in one
- fix ufs binding (allow ice register)
- fix dt schema issues (to the best of my ability)
- add a few necessary bindings (compats)
- some comments on remaining schema issues after commit msg (patch 7 and 9)

This series adds support for sm6115 (clocks, pinctrl, usb, ufs, sdhc),
sm4250 (mostly empty shell on top of sm6115) and finally basic OnePlus Nord
N100 (codename billie2), including the above mentiond items plus simple
framebuffer.

Adam Skladowski (3):
  dt-bindings: dmaengine: qcom: gpi: add compatible for SM6115
  dt-bindings: arm-smmu: Add compatible for Qualcomm SM6115
  iommu/arm-smmu-qcom: Add SM6115 support

Iskren Chernev (5):
  dt-bindings: ufs: qcom: Add sm6115 binding
  dt-bindings: arm: qcom: Add compatible for oneplus,billie2 phone
  arm64: dts: qcom: sm6115: Add basic soc dtsi
  arm64: dts: qcom: sm4250: Add soc dtsi
  arm64: dts: qcom: sm4250: Add support for oneplus-billie2

 .../devicetree/bindings/arm/qcom.yaml         |   7 +
 .../devicetree/bindings/dma/qcom,gpi.yaml     |   1 +
 .../devicetree/bindings/iommu/arm,smmu.yaml   |   1 +
 .../devicetree/bindings/ufs/qcom,ufs.yaml     |  26 +
 arch/arm64/boot/dts/qcom/Makefile             |   1 +
 .../boot/dts/qcom/sm4250-oneplus-billie2.dts  | 241 +++++
 arch/arm64/boot/dts/qcom/sm4250.dtsi          |  38 +
 arch/arm64/boot/dts/qcom/sm6115.dtsi          | 854 ++++++++++++++++++
 drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c    |   1 +
 9 files changed, 1170 insertions(+)
 create mode 100644 arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts
 create mode 100644 arch/arm64/boot/dts/qcom/sm4250.dtsi
 create mode 100644 arch/arm64/boot/dts/qcom/sm6115.dtsi

Comments

Will Deacon Nov. 14, 2022, 2:20 p.m. UTC | #1
On Sun, 30 Oct 2022 11:42:50 +0200, Iskren Chernev wrote:
> Changes from v4
> v4: https://lore.kernel.org/linux-arm-msm/20220919180618.1840194-1-iskren.chernev@gmail.com/
> - rebase on next-20221028
> - drop merged patches
> - add unmerged patches from https://lore.kernel.org/linux-devicetree/20220815100952.23795-1-a39.skl@gmail.com/
> - all in all, treat this as a resend
> 
> [...]

Applied SMMU bindings to arm64 (for-joerg/arm-smmu/bindings), thanks!

[4/8] dt-bindings: arm-smmu: Add compatible for Qualcomm SM6115
      https://git.kernel.org/arm64/c/728b22a57232
[5/8] iommu/arm-smmu-qcom: Add SM6115 support
      https://git.kernel.org/arm64/c/2fd6e1ad7e19

Cheers,
Krzysztof Kozlowski Nov. 14, 2022, 2:29 p.m. UTC | #2
On 14/11/2022 15:20, Will Deacon wrote:
> On Sun, 30 Oct 2022 11:42:50 +0200, Iskren Chernev wrote:
>> Changes from v4
>> v4: https://lore.kernel.org/linux-arm-msm/20220919180618.1840194-1-iskren.chernev@gmail.com/
>> - rebase on next-20221028
>> - drop merged patches
>> - add unmerged patches from https://lore.kernel.org/linux-devicetree/20220815100952.23795-1-a39.skl@gmail.com/
>> - all in all, treat this as a resend
>>
>> [...]
> 
> Applied SMMU bindings to arm64 (for-joerg/arm-smmu/bindings), thanks!
> 
> [4/8] dt-bindings: arm-smmu: Add compatible for Qualcomm SM6115
>       https://git.kernel.org/arm64/c/728b22a57232
> [5/8] iommu/arm-smmu-qcom: Add SM6115 support
>       https://git.kernel.org/arm64/c/2fd6e1ad7e19


This has the same problem as QDR1000 - we want to stop extending this
table. Can we apply instead:
https://lore.kernel.org/all/20221102184420.534094-12-dmitry.baryshkov@linaro.org/

Best regards,
Krzysztof